@builder.io/sdk-vue 5.2.9 → 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-QtLKYOQC.cjs → awaiter-MAyQwJUp.cjs} +1 -1
- package/lib/browser/{awaiter-GiQQpYhW.js → awaiter-quz2SFrg.js} +1 -1
- package/lib/browser/{block-wrapper-ViH1iyRS.js → block-wrapper-SCckT0M5.js} +3 -3
- package/lib/browser/{block-wrapper-y-IsMpII.cjs → block-wrapper-vBu_Ygm8.cjs} +1 -1
- package/lib/browser/{component-ref-rZJpDoXF.cjs → component-ref-HWBSC66Y.cjs} +1 -1
- package/lib/browser/{component-ref-zhlOI1eN.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-GRPDkwr1.js → get-block-properties-Hny6jqGG.js} +1 -1
- package/lib/browser/{get-block-properties-d2CFs8mL.cjs → get-block-properties-odFddSWh.cjs} +1 -1
- package/lib/browser/{index-jB9t6TLT.js → index-7bXAC1Q8.js} +692 -682
- 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-1ndmHzhK.cjs → live-edit-AUagAEej.cjs} +1 -1
- package/lib/browser/{live-edit-3N2WSAw-.js → live-edit-x4eHrcJh.js} +1 -1
- package/lib/browser/{repeated-block-XxWoPtha.cjs → repeated-block-ZGXPYgA8.cjs} +1 -1
- package/lib/browser/{repeated-block-9RiEvqga.js → repeated-block-uVi8A50N.js} +2 -2
- package/lib/browser/scripts/init-editing.d.ts +2 -0
- package/lib/browser/{style-wrapper-_KapIYCB.cjs → style-wrapper-C_c9B5_Y.cjs} +1 -1
- package/lib/browser/{style-wrapper--RSHsBTz.js → style-wrapper-usFESjt5.js} +1 -1
- package/lib/edge/{awaiter-OrQGcr3m.js → awaiter-RSfMls5f.js} +1 -1
- package/lib/edge/{awaiter-v2bPTW8r.cjs → awaiter-zow2zgzw.cjs} +1 -1
- package/lib/{node/block-wrapper-9Cx64vVu.cjs → edge/block-wrapper-4qKpWsP8.cjs} +1 -1
- package/lib/edge/{block-wrapper-ZzFH9Ulb.js → block-wrapper-GT2d4luN.js} +3 -3
- package/lib/edge/{component-ref-6FeHZp7H.js → component-ref-1iPK0xOE.js} +4 -4
- package/lib/edge/{component-ref-R3PgJrYU.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-nY3-hKH0.cjs → get-block-properties-2E03ld67.cjs} +1 -1
- package/lib/edge/{get-block-properties-yRp1-2RV.js → get-block-properties-bMVCvUX0.js} +1 -1
- package/lib/edge/{index-ptOklu9Y.js → index-Bgm0yCrN.js} +1229 -1219
- 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-LIJBIu6y.cjs → edge/live-edit-oLYhcuYs.cjs} +1 -1
- package/lib/edge/{live-edit-B5uw3o8F.js → live-edit-tegdYGJO.js} +1 -1
- package/lib/edge/{repeated-block-2_Qz4lsj.cjs → repeated-block--MhEsXmR.cjs} +1 -1
- package/lib/edge/{repeated-block-uNrMFIKx.js → repeated-block-yZJM5I60.js} +2 -2
- package/lib/edge/scripts/init-editing.d.ts +2 -0
- package/lib/edge/{style-wrapper-Zga-Wtqn.cjs → style-wrapper-8JiLG-FF.cjs} +1 -1
- package/lib/edge/{style-wrapper-vpmAkV03.js → style-wrapper-i8R7NpdY.js} +1 -1
- package/lib/node/{awaiter-bswJZJnI.cjs → awaiter-Vwjft2v-.cjs} +1 -1
- package/lib/node/{awaiter-TiRf4nxt.js → awaiter-o3ynOQKr.js} +1 -1
- package/lib/{edge/block-wrapper-wbI15Y2t.cjs → node/block-wrapper-KX1-Y2Oq.cjs} +1 -1
- package/lib/node/{block-wrapper-itY5eEAP.js → block-wrapper-PUFgSKq_.js} +3 -3
- package/lib/node/{component-ref-9RhufDjP.js → component-ref-HmJKie9z.js} +5 -5
- package/lib/node/{component-ref-2UVw1lsO.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-nLiNlxIX.cjs → get-block-properties-2yGkQVh7.cjs} +1 -1
- package/lib/node/{get-block-properties-TbU7Zqh1.js → get-block-properties-DGfMhs4M.js} +2 -2
- package/lib/node/index-7xT7wMXt.cjs +350 -0
- package/lib/node/{index-sSbqLpd0.js → index-JQgNoVXs.js} +639 -629
- 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/node/{live-edit-RkqTgGBJ.js → live-edit-hxNZMHld.js} +1 -1
- package/lib/{edge/live-edit-OxTeX9Lr.cjs → node/live-edit-xPik2aUh.cjs} +1 -1
- package/lib/node/{repeated-block-wHkyYKX5.cjs → repeated-block-LHiXlO3e.cjs} +1 -1
- package/lib/node/{repeated-block-XWWc2Vbn.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-raAbGE2L.cjs → should-force-browser-runtime-in-node-aeKfQiEQ.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-WtPYGMUG.js → should-force-browser-runtime-in-node-ooRgTwqs.js} +1 -1
- package/lib/node/{style-wrapper-0ycJqVq3.cjs → style-wrapper-3l8xaVr4.cjs} +1 -1
- package/lib/node/{style-wrapper-iWa0ZPUf.js → style-wrapper-U-7exIwN.js} +2 -2
- package/package.json +1 -1
- package/lib/browser/index--piap5VV.cjs +0 -350
- package/lib/edge/index-dGvhih8u.cjs +0 -368
- package/lib/node/index-demcjU9J.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]]), Cs = /* @__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]]), Cs = /* @__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
|
|
372
|
+
const ws = (e) => ae({
|
|
373
373
|
...e,
|
|
374
374
|
canTrack: !0
|
|
375
375
|
}), un = ({
|
|
@@ -386,11 +386,11 @@ const Ts = (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
|
-
function
|
|
678
|
-
e === "plugin" && (t =
|
|
677
|
+
function Is(e, 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: {
|
|
@@ -692,9 +692,9 @@ function ws(e, t) {
|
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function
|
|
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",
|
|
@@ -703,8 +703,8 @@ function Is(e) {
|
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
705
|
const Me = {};
|
|
706
|
-
function
|
|
707
|
-
if (
|
|
706
|
+
function Es(e) {
|
|
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
|
}, "*");
|
|
@@ -835,13 +835,13 @@ const gt = (e) => {
|
|
|
835
835
|
break;
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
|
-
},
|
|
838
|
+
}, Rs = ({
|
|
839
839
|
model: e,
|
|
840
840
|
apiKey: t,
|
|
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,81 +1053,82 @@ 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
|
-
...
|
|
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
|
-
}, Gn = (e) => {
|
|
1100
|
+
return C;
|
|
1101
|
+
}, Gn = (e) => e === "true" ? !0 : e === "false" ? !1 : e, Jn = (e) => {
|
|
1101
1102
|
const t = {};
|
|
1102
1103
|
for (const n in e)
|
|
1103
|
-
n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
|
|
1104
|
+
n.startsWith("userAttributes.") && (t[n] = Gn(e[n]), delete e[n]);
|
|
1104
1105
|
return t;
|
|
1105
|
-
},
|
|
1106
|
-
if (
|
|
1106
|
+
}, Qn = (e) => {
|
|
1107
|
+
if (w() && e.preview === "BUILDER_STUDIO") {
|
|
1107
1108
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
1108
|
-
const t =
|
|
1109
|
+
const t = Jn(e), {
|
|
1109
1110
|
userAttributes: n
|
|
1110
1111
|
} = Kn(t);
|
|
1111
1112
|
return n;
|
|
1112
1113
|
}
|
|
1113
1114
|
return {};
|
|
1114
|
-
},
|
|
1115
|
-
async function
|
|
1115
|
+
}, Yn = (e) => "results" in e;
|
|
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 = {
|
|
1119
1120
|
locale: t,
|
|
1120
1121
|
...e.userAttributes
|
|
1121
1122
|
});
|
|
1122
|
-
const n = await
|
|
1123
|
+
const n = await _n({
|
|
1123
1124
|
...e,
|
|
1124
1125
|
limit: 1
|
|
1125
1126
|
});
|
|
1126
1127
|
return n && n[0] || null;
|
|
1127
1128
|
}
|
|
1128
|
-
const
|
|
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 Yn = async (e) => {
|
|
|
1135
1136
|
}
|
|
1136
1137
|
};
|
|
1137
1138
|
return await (await n(t.href, o)).json();
|
|
1138
|
-
},
|
|
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 = [];
|
|
@@ -1152,17 +1153,17 @@ const Yn = async (e) => {
|
|
|
1152
1153
|
}
|
|
1153
1154
|
return t.results;
|
|
1154
1155
|
};
|
|
1155
|
-
async function
|
|
1156
|
-
const t =
|
|
1157
|
-
if (!
|
|
1156
|
+
async function _n(e) {
|
|
1157
|
+
const t = Ne(e), n = await Xn(e);
|
|
1158
|
+
if (!Yn(n))
|
|
1158
1159
|
throw B.error("Error fetching data. ", {
|
|
1159
1160
|
url: t,
|
|
1160
1161
|
content: n,
|
|
1161
1162
|
options: e
|
|
1162
1163
|
}), n;
|
|
1163
|
-
return
|
|
1164
|
+
return Zn(e, n);
|
|
1164
1165
|
}
|
|
1165
|
-
const
|
|
1166
|
+
const As = async (e) => {
|
|
1166
1167
|
var o, r, i;
|
|
1167
1168
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1168
1169
|
...e,
|
|
@@ -1179,10 +1180,10 @@ const Ps = 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
|
-
function
|
|
1186
|
+
function eo(e, t, n = {}) {
|
|
1186
1187
|
let o, r, i, s = null, l = 0;
|
|
1187
1188
|
const a = function() {
|
|
1188
1189
|
l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
@@ -1194,7 +1195,7 @@ function _n(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];
|
|
@@ -1204,14 +1205,14 @@ function Z(e, ...t) {
|
|
|
1204
1205
|
}
|
|
1205
1206
|
return n;
|
|
1206
1207
|
}
|
|
1207
|
-
function
|
|
1208
|
+
function to(e) {
|
|
1208
1209
|
for (const t of e)
|
|
1209
1210
|
switch (t.trigger) {
|
|
1210
1211
|
case "pageLoad":
|
|
1211
1212
|
It(t);
|
|
1212
1213
|
break;
|
|
1213
1214
|
case "scrollInView":
|
|
1214
|
-
|
|
1215
|
+
oo(t);
|
|
1215
1216
|
break;
|
|
1216
1217
|
}
|
|
1217
1218
|
}
|
|
@@ -1219,12 +1220,12 @@ function Tt(e) {
|
|
|
1219
1220
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1220
1221
|
}
|
|
1221
1222
|
function wt(e, t) {
|
|
1222
|
-
const n =
|
|
1223
|
+
const n = no(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
1223
1224
|
for (const l of s)
|
|
1224
1225
|
for (const a of n)
|
|
1225
1226
|
a in l || (l[a] = o[a]);
|
|
1226
1227
|
}
|
|
1227
|
-
function
|
|
1228
|
+
function no(e) {
|
|
1228
1229
|
const t = [];
|
|
1229
1230
|
for (const n of e.steps)
|
|
1230
1231
|
for (const o in n.styles)
|
|
@@ -1238,14 +1239,14 @@ 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
|
});
|
|
1246
1247
|
});
|
|
1247
1248
|
}
|
|
1248
|
-
function
|
|
1249
|
+
function oo(e) {
|
|
1249
1250
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1250
1251
|
if (!t.length) {
|
|
1251
1252
|
Tt(e.elementId || e.id || "");
|
|
@@ -1256,21 +1257,21 @@ function no(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
|
-
const s =
|
|
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,28 +1284,28 @@ function no(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
|
-
`),
|
|
1287
|
+
}).filter(j), ro = (e) => $t(e).join(`
|
|
1288
|
+
`), Bs = ({
|
|
1288
1289
|
mediaQuery: e,
|
|
1289
1290
|
className: t,
|
|
1290
1291
|
styles: n
|
|
1291
1292
|
}) => {
|
|
1292
1293
|
const o = `.${t} {
|
|
1293
|
-
${
|
|
1294
|
+
${ro(n)}
|
|
1294
1295
|
}`;
|
|
1295
1296
|
return e ? `${e} {
|
|
1296
1297
|
${o}
|
|
1297
1298
|
}` : o;
|
|
1298
1299
|
};
|
|
1299
|
-
function
|
|
1300
|
+
function io({
|
|
1300
1301
|
style: e
|
|
1301
1302
|
}) {
|
|
1302
1303
|
return e;
|
|
1303
1304
|
}
|
|
1304
|
-
const
|
|
1305
|
+
const Vs = ({
|
|
1305
1306
|
block: e,
|
|
1306
1307
|
context: t
|
|
1307
|
-
}) => Et(
|
|
1308
|
+
}) => Et(io({
|
|
1308
1309
|
style: e.style || {},
|
|
1309
1310
|
context: t,
|
|
1310
1311
|
block: e
|
|
@@ -1323,7 +1324,7 @@ function Et(e) {
|
|
|
1323
1324
|
return e;
|
|
1324
1325
|
}
|
|
1325
1326
|
}
|
|
1326
|
-
const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0,
|
|
1327
|
+
const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, so = ({
|
|
1327
1328
|
block: e,
|
|
1328
1329
|
registeredComponents: t,
|
|
1329
1330
|
model: n
|
|
@@ -1340,7 +1341,7 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1340
1341
|
return;
|
|
1341
1342
|
} else
|
|
1342
1343
|
return r;
|
|
1343
|
-
},
|
|
1344
|
+
}, ao = ({
|
|
1344
1345
|
block: e,
|
|
1345
1346
|
context: t
|
|
1346
1347
|
}) => {
|
|
@@ -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,
|
|
@@ -1373,59 +1374,59 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1373
1374
|
},
|
|
1374
1375
|
block: o
|
|
1375
1376
|
}));
|
|
1376
|
-
},
|
|
1377
|
+
}, lo = (e, t) => {
|
|
1377
1378
|
var n;
|
|
1378
1379
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1379
1380
|
builderLinkComponent: t
|
|
1380
1381
|
} : {};
|
|
1381
|
-
},
|
|
1382
|
+
}, co = (e, t, n) => {
|
|
1382
1383
|
var o;
|
|
1383
1384
|
return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
|
|
1384
1385
|
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !Rt(s, n)))
|
|
1385
1386
|
} : {};
|
|
1386
|
-
},
|
|
1387
|
+
}, uo = (e, t) => {
|
|
1387
1388
|
var n;
|
|
1388
1389
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1389
1390
|
builderBlock: t
|
|
1390
1391
|
} : {};
|
|
1391
|
-
},
|
|
1392
|
+
}, po = (e, t) => {
|
|
1392
1393
|
var n;
|
|
1393
1394
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1394
1395
|
builderContext: t
|
|
1395
1396
|
} : {};
|
|
1396
|
-
},
|
|
1397
|
+
}, mo = (e) => e.toString(), ho = () => Promise.resolve().then(() => Ro).then((e) => e.default).catch((e) => {
|
|
1397
1398
|
throw console.error(
|
|
1398
1399
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1399
1400
|
e
|
|
1400
1401
|
), e;
|
|
1401
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
|
1420
1421
|
), e;
|
|
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() {
|
|
@@ -1434,12 +1435,12 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1434
1435
|
value: null,
|
|
1435
1436
|
update: !1
|
|
1436
1437
|
},
|
|
1437
|
-
generateKey:
|
|
1438
|
+
generateKey: mo
|
|
1438
1439
|
};
|
|
1439
1440
|
},
|
|
1440
1441
|
mounted() {
|
|
1441
1442
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1442
|
-
t && e &&
|
|
1443
|
+
t && e && to(
|
|
1443
1444
|
t.map((n) => ({
|
|
1444
1445
|
...n,
|
|
1445
1446
|
elementId: e
|
|
@@ -1450,7 +1451,7 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1450
1451
|
},
|
|
1451
1452
|
computed: {
|
|
1452
1453
|
repeatItem() {
|
|
1453
|
-
return
|
|
1454
|
+
return ao({
|
|
1454
1455
|
block: this.block,
|
|
1455
1456
|
context: this.context
|
|
1456
1457
|
});
|
|
@@ -1466,7 +1467,7 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1466
1467
|
});
|
|
1467
1468
|
},
|
|
1468
1469
|
blockComponent() {
|
|
1469
|
-
return
|
|
1470
|
+
return so({
|
|
1470
1471
|
block: this.processedBlock,
|
|
1471
1472
|
registeredComponents: this.registeredComponents,
|
|
1472
1473
|
model: this.context.model
|
|
@@ -1494,10 +1495,10 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1494
1495
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1495
1496
|
componentOptions: {
|
|
1496
1497
|
...Sn(this.processedBlock, this.context),
|
|
1497
|
-
...
|
|
1498
|
-
...
|
|
1499
|
-
...
|
|
1500
|
-
...
|
|
1498
|
+
...uo(this.blockComponent, this.processedBlock),
|
|
1499
|
+
...po(this.blockComponent, this.context),
|
|
1500
|
+
...lo(this.blockComponent, this.linkComponent),
|
|
1501
|
+
...co(
|
|
1501
1502
|
this.blockComponent,
|
|
1502
1503
|
this.registeredComponents,
|
|
1503
1504
|
this.context.model
|
|
@@ -1513,8 +1514,8 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1513
1514
|
}
|
|
1514
1515
|
}
|
|
1515
1516
|
});
|
|
1516
|
-
function
|
|
1517
|
-
var
|
|
1517
|
+
function So(e, t, n, o, r, i) {
|
|
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 vo(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 vo(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 vo(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 vo(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,12 +1578,12 @@ function vo(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
|
-
const Pt = /* @__PURE__ */ v(
|
|
1583
|
+
const Pt = /* @__PURE__ */ v(vo, [["render", So]]), Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1583
1584
|
__proto__: null,
|
|
1584
1585
|
default: Pt
|
|
1585
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1586
|
+
}, Symbol.toStringTag, { value: "Module" })), ko = y({
|
|
1586
1587
|
name: "builder-blocks-wrapper",
|
|
1587
1588
|
props: [
|
|
1588
1589
|
"blocks",
|
|
@@ -1652,8 +1653,8 @@ const Pt = /* @__PURE__ */ v(yo, [["render", vo]]), Vs = /* @__PURE__ */ Object.
|
|
|
1652
1653
|
}
|
|
1653
1654
|
}
|
|
1654
1655
|
});
|
|
1655
|
-
function
|
|
1656
|
-
return d(), S(
|
|
1656
|
+
function Co(e, t, n, o, r, i) {
|
|
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,15 +1664,15 @@ function ko(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
|
|
1670
1671
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1671
1672
|
}
|
|
1672
|
-
const
|
|
1673
|
+
const To = /* @__PURE__ */ v(ko, [["render", Co], ["__scopeId", "data-v-82fc93d6"]]), wo = y({
|
|
1673
1674
|
name: "builder-blocks",
|
|
1674
|
-
components: { BlocksWrapper:
|
|
1675
|
+
components: { BlocksWrapper: To, Block: Pt },
|
|
1675
1676
|
props: [
|
|
1676
1677
|
"blocks",
|
|
1677
1678
|
"parent",
|
|
@@ -1684,12 +1685,12 @@ const Co = /* @__PURE__ */ v(So, [["render", ko], ["__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
|
-
function
|
|
1692
|
-
var a, u, p,
|
|
1692
|
+
function Io(e, t, n, o, r, i) {
|
|
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,37 +1699,37 @@ function wo(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"]);
|
|
1718
1719
|
}
|
|
1719
|
-
const K = /* @__PURE__ */ v(
|
|
1720
|
+
const K = /* @__PURE__ */ v(wo, [["render", Io]]), $o = y({
|
|
1720
1721
|
name: "dynamic-div",
|
|
1721
1722
|
props: []
|
|
1722
1723
|
});
|
|
1723
|
-
function
|
|
1724
|
+
function Eo(e, t, n, o, r, i) {
|
|
1724
1725
|
return d(), h("div", null, [
|
|
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(Io, [["render", $o]]), Eo = /* @__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 {
|
|
@@ -1797,13 +1798,13 @@ const te = /* @__PURE__ */ v(Io, [["render", $o]]), Eo = /* @__PURE__ */ Object.
|
|
|
1797
1798
|
min: l,
|
|
1798
1799
|
default: l + 1
|
|
1799
1800
|
}, t;
|
|
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",
|
|
@@ -1816,7 +1817,7 @@ const te = /* @__PURE__ */ v(Io, [["render", $o]]), Eo = /* @__PURE__ */ Object.
|
|
|
1816
1817
|
"builderComponents"
|
|
1817
1818
|
],
|
|
1818
1819
|
data() {
|
|
1819
|
-
return { TARGET: E, getColumnsClass:
|
|
1820
|
+
return { TARGET: E, getColumnsClass: Ao };
|
|
1820
1821
|
},
|
|
1821
1822
|
computed: {
|
|
1822
1823
|
gutterSize() {
|
|
@@ -1895,7 +1896,7 @@ const te = /* @__PURE__ */ v(Io, [["render", $o]]), Eo = /* @__PURE__ */ Object.
|
|
|
1895
1896
|
},
|
|
1896
1897
|
getWidthForBreakpointSize(e) {
|
|
1897
1898
|
var n, o;
|
|
1898
|
-
return
|
|
1899
|
+
return Po(
|
|
1899
1900
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1900
1901
|
)[e].max;
|
|
1901
1902
|
},
|
|
@@ -1932,13 +1933,13 @@ const te = /* @__PURE__ */ v(Io, [["render", $o]]), Eo = /* @__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
|
}
|
|
1939
1940
|
}
|
|
1940
1941
|
});
|
|
1941
|
-
function
|
|
1942
|
+
function Vo(e, t, n, o, r, i) {
|
|
1942
1943
|
var u;
|
|
1943
1944
|
const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1944
1945
|
return d(), h("div", $({
|
|
@@ -1950,16 +1951,16 @@ function Bo(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,7 +1975,7 @@ function Bo(e, t, n, o, r, i) {
|
|
|
1974
1975
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1975
1976
|
], 16);
|
|
1976
1977
|
}
|
|
1977
|
-
const
|
|
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
|
});
|
|
@@ -1983,15 +1984,15 @@ function Wo(e, t, n, o, r, i) {
|
|
|
1983
1984
|
N(e.$slots, "default")
|
|
1984
1985
|
]);
|
|
1985
1986
|
}
|
|
1986
|
-
const
|
|
1987
|
+
const Do = /* @__PURE__ */ v(Oo, [["render", Wo]]);
|
|
1987
1988
|
function Je(e) {
|
|
1988
1989
|
return e.replace(/http(s)?:/, "");
|
|
1989
1990
|
}
|
|
1990
|
-
function
|
|
1991
|
+
function xo(e = "", t, n) {
|
|
1991
1992
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1992
1993
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1993
1994
|
}
|
|
1994
|
-
function
|
|
1995
|
+
function Uo(e, t) {
|
|
1995
1996
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1996
1997
|
return e;
|
|
1997
1998
|
if (t === "master")
|
|
@@ -2003,18 +2004,18 @@ function xo(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];
|
|
2010
2011
|
if (e.match(/builder\.io/)) {
|
|
2011
2012
|
let n = e;
|
|
2012
2013
|
const o = Number(e.split("?width=")[1]);
|
|
2013
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
2014
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${xo(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
2014
2015
|
}
|
|
2015
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
2016
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Uo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
2016
2017
|
}
|
|
2017
|
-
const
|
|
2018
|
+
const Lo = y({
|
|
2018
2019
|
name: "builder-image",
|
|
2019
2020
|
props: [
|
|
2020
2021
|
"lazy",
|
|
@@ -2044,10 +2045,10 @@ const Uo = 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() {
|
|
@@ -2068,60 +2069,60 @@ const Uo = y({
|
|
|
2068
2069
|
return this.aspectRatio ? e : void 0;
|
|
2069
2070
|
}
|
|
2070
2071
|
}
|
|
2071
|
-
}),
|
|
2072
|
+
}), Fo = ["srcset", "sizes"], Ho = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Mo = {
|
|
2072
2073
|
key: 2,
|
|
2073
2074
|
class: "div-t43jfuqn6g-2"
|
|
2074
2075
|
};
|
|
2075
|
-
function
|
|
2076
|
-
var s, l, a, u, p,
|
|
2076
|
+
function jo(e, t, n, o, r, i) {
|
|
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,
|
|
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,
|
|
2100
2101
|
srcset: e.srcSetToUse,
|
|
2101
2102
|
sizes: e.sizesToUse
|
|
2102
|
-
}, null, 14,
|
|
2103
|
+
}, null, 14, Ho)
|
|
2103
2104
|
]),
|
|
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
|
-
const
|
|
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
|
-
function
|
|
2125
|
+
function qo(e, t, n, o, r, i) {
|
|
2125
2126
|
return d(), h("section", $({
|
|
2126
2127
|
style: {
|
|
2127
2128
|
width: "100%",
|
|
@@ -2135,12 +2136,12 @@ function Ko(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
|
}
|
|
2142
|
-
const
|
|
2143
|
-
function
|
|
2143
|
+
const Go = /* @__PURE__ */ v(Ko, [["render", qo]]);
|
|
2144
|
+
function Jo(e, t, n, o) {
|
|
2144
2145
|
function r(u) {
|
|
2145
2146
|
return typeof u == "string";
|
|
2146
2147
|
}
|
|
@@ -2150,41 +2151,41 @@ function Go(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
|
}
|
|
@@ -2197,7 +2198,7 @@ function Go(e, t, n, o) {
|
|
|
2197
2198
|
}, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2198
2199
|
return l.startDate && new Date(l.startDate) > a || l.endDate && new Date(l.endDate) < a ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => s(e, u));
|
|
2199
2200
|
}
|
|
2200
|
-
const
|
|
2201
|
+
const Qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
2201
2202
|
if (!navigator.cookieEnabled) {
|
|
2202
2203
|
return;
|
|
2203
2204
|
}
|
|
@@ -2242,7 +2243,7 @@ const Jo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2242
2243
|
thisScript.remove();
|
|
2243
2244
|
}
|
|
2244
2245
|
}
|
|
2245
|
-
}`,
|
|
2246
|
+
}`, Yo = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2246
2247
|
function isString(val) {
|
|
2247
2248
|
return typeof val === 'string';
|
|
2248
2249
|
}
|
|
@@ -2320,7 +2321,7 @@ const Jo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2320
2321
|
return item.query.every(filter => {
|
|
2321
2322
|
return objectMatchesQuery(userAttributes, filter);
|
|
2322
2323
|
});
|
|
2323
|
-
}`,
|
|
2324
|
+
}`, Xo = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
2324
2325
|
function getCookie(name) {
|
|
2325
2326
|
const nameEQ = name + '=';
|
|
2326
2327
|
const ca = document.cookie.split(';');
|
|
@@ -2358,11 +2359,11 @@ const Jo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2358
2359
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2359
2360
|
}
|
|
2360
2361
|
}
|
|
2361
|
-
}`,
|
|
2362
|
-
function
|
|
2363
|
-
return !(e && e.length > 0) || !t ? !1 : Vt.includes(E) ? !0 : !
|
|
2362
|
+
}`, ie = "default", Qe = "filterWithCustomTargeting", Ce = "builderIoPersonalization", Te = "updateVisibilityStylesScript", Zo = "PersonalizationContainer", Bt = ["react", "vue", "svelte", "qwik"], Vt = ["vue", "svelte", "qwik"];
|
|
2363
|
+
function _o(e, t) {
|
|
2364
|
+
return !(e && e.length > 0) || !t ? !1 : Vt.includes(E) ? !0 : !w();
|
|
2364
2365
|
}
|
|
2365
|
-
function
|
|
2366
|
+
function er({
|
|
2366
2367
|
variants: e,
|
|
2367
2368
|
previewingIndex: t,
|
|
2368
2369
|
isHydrated: n,
|
|
@@ -2372,7 +2373,7 @@ function _o({
|
|
|
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 _o({
|
|
|
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 _o({
|
|
|
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
|
-
},
|
|
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
|
-
window.${Qe} = ${
|
|
2410
|
-
}
|
|
2411
|
-
if (!window.${ke}) {
|
|
2412
|
-
window.${ke} = ${Jo};
|
|
2410
|
+
window.${Qe} = ${Yo};
|
|
2413
2411
|
}
|
|
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",
|
|
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: {
|
|
@@ -2475,7 +2476,7 @@ const Te = (e) => {
|
|
|
2475
2476
|
}
|
|
2476
2477
|
}
|
|
2477
2478
|
}]
|
|
2478
|
-
},
|
|
2479
|
+
}, ir = {
|
|
2479
2480
|
name: "Builder:Accordion",
|
|
2480
2481
|
canHaveChildren: !0,
|
|
2481
2482
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -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
|
}, {
|
|
@@ -2539,7 +2540,7 @@ const Te = (e) => {
|
|
|
2539
2540
|
builderComponents: !0,
|
|
2540
2541
|
builderLinkComponent: !0
|
|
2541
2542
|
}
|
|
2542
|
-
},
|
|
2543
|
+
}, sr = (e) => e.toString(), ar = y({
|
|
2543
2544
|
name: "builder-accordion",
|
|
2544
2545
|
components: { Blocks: K },
|
|
2545
2546
|
props: [
|
|
@@ -2553,7 +2554,7 @@ const Te = (e) => {
|
|
|
2553
2554
|
"builderLinkComponent"
|
|
2554
2555
|
],
|
|
2555
2556
|
data() {
|
|
2556
|
-
return { open: [], convertOrderNumberToString:
|
|
2557
|
+
return { open: [], convertOrderNumberToString: sr };
|
|
2557
2558
|
},
|
|
2558
2559
|
computed: {
|
|
2559
2560
|
onlyOneAtATime() {
|
|
@@ -2634,17 +2635,17 @@ const Te = (e) => {
|
|
|
2634
2635
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2635
2636
|
}
|
|
2636
2637
|
}
|
|
2637
|
-
}),
|
|
2638
|
-
function
|
|
2638
|
+
}), lr = ["data-index", "onClick"];
|
|
2639
|
+
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,
|
|
@@ -2662,11 +2663,11 @@ function lr(e, t, n, o, r, i) {
|
|
|
2662
2663
|
registeredComponents: e.builderComponents,
|
|
2663
2664
|
linkComponent: e.builderLinkComponent
|
|
2664
2665
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2665
|
-
], 14,
|
|
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,11 +2677,11 @@ function lr(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
|
}
|
|
2683
|
-
const
|
|
2684
|
+
const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
2684
2685
|
name: "Core:Button",
|
|
2685
2686
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2686
2687
|
defaultStyles: {
|
|
@@ -2716,7 +2717,7 @@ const cr = /* @__PURE__ */ v(sr, [["render", lr]]), dr = {
|
|
|
2716
2717
|
shouldReceiveBuilderProps: {
|
|
2717
2718
|
builderLinkComponent: !0
|
|
2718
2719
|
}
|
|
2719
|
-
},
|
|
2720
|
+
}, pr = {
|
|
2720
2721
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2721
2722
|
name: "Columns",
|
|
2722
2723
|
isRSC: !0,
|
|
@@ -2923,13 +2924,13 @@ const cr = /* @__PURE__ */ v(sr, [["render", lr]]), dr = {
|
|
|
2923
2924
|
builderComponents: !0,
|
|
2924
2925
|
builderLinkComponent: !0
|
|
2925
2926
|
}
|
|
2926
|
-
},
|
|
2927
|
+
}, mr = {
|
|
2927
2928
|
name: "Fragment",
|
|
2928
2929
|
static: !0,
|
|
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 cr = /* @__PURE__ */ v(sr, [["render", lr]]), dr = {
|
|
|
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 cr = /* @__PURE__ */ v(sr, [["render", lr]]), dr = {
|
|
|
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
|
}
|
|
@@ -3042,7 +3043,7 @@ const cr = /* @__PURE__ */ v(sr, [["render", lr]]), dr = {
|
|
|
3042
3043
|
shouldReceiveBuilderProps: {
|
|
3043
3044
|
builderBlock: !0
|
|
3044
3045
|
}
|
|
3045
|
-
},
|
|
3046
|
+
}, br = {
|
|
3046
3047
|
name: "PersonalizationContainer",
|
|
3047
3048
|
shouldReceiveBuilderProps: {
|
|
3048
3049
|
builderBlock: !0,
|
|
@@ -3078,7 +3079,7 @@ const cr = /* @__PURE__ */ v(sr, [["render", lr]]), dr = {
|
|
|
3078
3079
|
defaultValue: []
|
|
3079
3080
|
}]
|
|
3080
3081
|
}]
|
|
3081
|
-
},
|
|
3082
|
+
}, xe = y({
|
|
3082
3083
|
render() {
|
|
3083
3084
|
return _e("script", {
|
|
3084
3085
|
innerHTML: this.scriptStr,
|
|
@@ -3088,12 +3089,12 @@ const cr = /* @__PURE__ */ v(sr, [["render", lr]]), dr = {
|
|
|
3088
3089
|
},
|
|
3089
3090
|
name: "inlined-script",
|
|
3090
3091
|
props: ["scriptStr", "id", "nonce"]
|
|
3091
|
-
}),
|
|
3092
|
+
}), gr = y({
|
|
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,32 +3107,32 @@ const cr = /* @__PURE__ */ v(sr, [["render", lr]]), dr = {
|
|
|
3106
3107
|
data() {
|
|
3107
3108
|
var e, t, n, o, r, i, s;
|
|
3108
3109
|
return {
|
|
3109
|
-
userAttributes:
|
|
3110
|
-
scriptStr:
|
|
3110
|
+
userAttributes: de.getUserAttributes(),
|
|
3111
|
+
scriptStr: or(
|
|
3111
3112
|
this.variants,
|
|
3112
3113
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
3113
3114
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
3114
3115
|
),
|
|
3115
|
-
updateVisibilityStylesScript:
|
|
3116
|
+
updateVisibilityStylesScript: rr(
|
|
3116
3117
|
this.variants,
|
|
3117
3118
|
((o = this.builderBlock) == null ? void 0 : o.id) || "none",
|
|
3118
3119
|
(i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
|
|
3119
3120
|
),
|
|
3120
3121
|
unsubscribers: [],
|
|
3121
|
-
shouldRenderVariants:
|
|
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 cr = /* @__PURE__ */ v(sr, [["render", lr]]), dr = {
|
|
|
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 cr = /* @__PURE__ */ v(sr, [["render", lr]]), dr = {
|
|
|
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,15 +3173,15 @@ const cr = /* @__PURE__ */ v(sr, [["render", lr]]), dr = {
|
|
|
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() {
|
|
3181
3182
|
return (this.variants || []).filter((e) => {
|
|
3182
3183
|
var t, n, o, r;
|
|
3183
|
-
return
|
|
3184
|
+
return Jo(
|
|
3184
3185
|
{
|
|
3185
3186
|
...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
|
|
3186
3187
|
locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
|
|
@@ -3195,7 +3196,7 @@ const cr = /* @__PURE__ */ v(sr, [["render", lr]]), dr = {
|
|
|
3195
3196
|
},
|
|
3196
3197
|
blocksToRender() {
|
|
3197
3198
|
var e;
|
|
3198
|
-
return
|
|
3199
|
+
return er({
|
|
3199
3200
|
variants: this.variants,
|
|
3200
3201
|
fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
|
|
3201
3202
|
isHydrated: this.shouldResetVariants,
|
|
@@ -3213,8 +3214,8 @@ const cr = /* @__PURE__ */ v(sr, [["render", lr]]), dr = {
|
|
|
3213
3214
|
}
|
|
3214
3215
|
}
|
|
3215
3216
|
});
|
|
3216
|
-
function
|
|
3217
|
-
var u, p,
|
|
3217
|
+
function yr(e, t, n, o, r, i) {
|
|
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 gr(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 gr(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,27 +3279,27 @@ function gr(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
|
-
const
|
|
3302
|
+
const vr = /* @__PURE__ */ v(gr, [["render", yr]]), Sr = {
|
|
3302
3303
|
name: "Core:Section",
|
|
3303
3304
|
static: !0,
|
|
3304
3305
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3337,7 +3338,7 @@ const yr = /* @__PURE__ */ v(br, [["render", gr]]), vr = {
|
|
|
3337
3338
|
}
|
|
3338
3339
|
}
|
|
3339
3340
|
}]
|
|
3340
|
-
},
|
|
3341
|
+
}, kr = {
|
|
3341
3342
|
name: "Slot",
|
|
3342
3343
|
isRSC: !0,
|
|
3343
3344
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3354,12 +3355,12 @@ const yr = /* @__PURE__ */ v(br, [["render", gr]]), vr = {
|
|
|
3354
3355
|
builderContext: !0,
|
|
3355
3356
|
builderComponents: !0
|
|
3356
3357
|
}
|
|
3357
|
-
},
|
|
3358
|
+
}, Cr = y({
|
|
3358
3359
|
name: "builder-slot",
|
|
3359
3360
|
components: { Blocks: K },
|
|
3360
3361
|
props: ["builderContext", "name", "builderComponents"]
|
|
3361
3362
|
});
|
|
3362
|
-
function
|
|
3363
|
+
function Tr(e, t, n, o, r, i) {
|
|
3363
3364
|
var l, a, u;
|
|
3364
3365
|
const s = k("Blocks");
|
|
3365
3366
|
return d(), h("div", $(
|
|
@@ -3379,7 +3380,7 @@ function Cr(e, t, n, o, r, i) {
|
|
|
3379
3380
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
3380
3381
|
], 16);
|
|
3381
3382
|
}
|
|
3382
|
-
const
|
|
3383
|
+
const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
3383
3384
|
name: "Symbol",
|
|
3384
3385
|
noWrap: !0,
|
|
3385
3386
|
static: !0,
|
|
@@ -3418,7 +3419,7 @@ const Tr = /* @__PURE__ */ v(kr, [["render", Cr]]), wr = {
|
|
|
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 Tr = /* @__PURE__ */ v(kr, [["render", Cr]]), wr = {
|
|
|
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: {
|
|
@@ -3456,7 +3457,7 @@ const Tr = /* @__PURE__ */ v(kr, [["render", Cr]]), wr = {
|
|
|
3456
3457
|
text: "New tab content "
|
|
3457
3458
|
}
|
|
3458
3459
|
}
|
|
3459
|
-
},
|
|
3460
|
+
}, $r = {
|
|
3460
3461
|
name: "Builder: Tabs",
|
|
3461
3462
|
inputs: [{
|
|
3462
3463
|
name: "tabs",
|
|
@@ -3466,16 +3467,16 @@ const Tr = /* @__PURE__ */ v(kr, [["render", Cr]]), wr = {
|
|
|
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 Tr = /* @__PURE__ */ v(kr, [["render", Cr]]), wr = {
|
|
|
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 Tr = /* @__PURE__ */ v(kr, [["render", Cr]]), wr = {
|
|
|
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 Tr = /* @__PURE__ */ v(kr, [["render", Cr]]), wr = {
|
|
|
3503
3504
|
}
|
|
3504
3505
|
}],
|
|
3505
3506
|
content: [{
|
|
3506
|
-
...
|
|
3507
|
+
...ge,
|
|
3507
3508
|
component: {
|
|
3508
3509
|
name: "Text",
|
|
3509
3510
|
options: {
|
|
@@ -3559,7 +3560,7 @@ const Tr = /* @__PURE__ */ v(kr, [["render", Cr]]), wr = {
|
|
|
3559
3560
|
builderComponents: !0,
|
|
3560
3561
|
builderLinkComponent: !0
|
|
3561
3562
|
}
|
|
3562
|
-
},
|
|
3563
|
+
}, Er = y({
|
|
3563
3564
|
name: "builder-tabs",
|
|
3564
3565
|
components: { Blocks: K },
|
|
3565
3566
|
props: [
|
|
@@ -3587,23 +3588,23 @@ const Tr = /* @__PURE__ */ v(kr, [["render", Cr]]), wr = {
|
|
|
3587
3588
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3588
3589
|
}
|
|
3589
3590
|
}
|
|
3590
|
-
}),
|
|
3591
|
-
function
|
|
3591
|
+
}), Rr = ["onClick"], Pr = { key: 0 };
|
|
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, {
|
|
@@ -3614,9 +3615,9 @@ function Pr(e, t, n, o, r, i) {
|
|
|
3614
3615
|
registeredComponents: e.builderComponents,
|
|
3615
3616
|
linkComponent: e.builderLinkComponent
|
|
3616
3617
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3617
|
-
], 14,
|
|
3618
|
+
], 14, Rr))), 128))
|
|
3618
3619
|
], 4),
|
|
3619
|
-
e.activeTabContent(e.activeTab) ? (d(), h("div",
|
|
3620
|
+
e.activeTabContent(e.activeTab) ? (d(), h("div", Pr, [
|
|
3620
3621
|
R(s, {
|
|
3621
3622
|
parent: e.builderBlock.id,
|
|
3622
3623
|
path: `tabs.${e.activeTab}.content`,
|
|
@@ -3625,10 +3626,10 @@ function Pr(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
|
-
const
|
|
3632
|
+
const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
3632
3633
|
shouldReceiveBuilderProps: {},
|
|
3633
3634
|
name: "Text",
|
|
3634
3635
|
static: !0,
|
|
@@ -3646,10 +3647,10 @@ const Ar = /* @__PURE__ */ v($r, [["render", Pr]]), Br = {
|
|
|
3646
3647
|
height: "auto",
|
|
3647
3648
|
textAlign: "center"
|
|
3648
3649
|
}
|
|
3649
|
-
},
|
|
3650
|
+
}, Nr = y({
|
|
3650
3651
|
name: "builder-text",
|
|
3651
3652
|
props: ["text"]
|
|
3652
|
-
}),
|
|
3653
|
+
}), Or = ["innerHTML"];
|
|
3653
3654
|
function Wr(e, t, n, o, r, i) {
|
|
3654
3655
|
var s;
|
|
3655
3656
|
return d(), h("div", {
|
|
@@ -3658,9 +3659,9 @@ function Wr(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
|
|
3664
|
+
const Dr = /* @__PURE__ */ v(Nr, [["render", Wr]]), xr = {
|
|
3664
3665
|
name: "Custom Code",
|
|
3665
3666
|
static: !0,
|
|
3666
3667
|
requiredPermissions: ["editCode"],
|
|
@@ -3682,7 +3683,7 @@ const Or = /* @__PURE__ */ v(Vr, [["render", Wr]]), Dr = {
|
|
|
3682
3683
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3683
3684
|
advanced: !0
|
|
3684
3685
|
}]
|
|
3685
|
-
},
|
|
3686
|
+
}, Ur = y({
|
|
3686
3687
|
name: "builder-custom-code",
|
|
3687
3688
|
props: ["code", "replaceNodes"],
|
|
3688
3689
|
data() {
|
|
@@ -3741,15 +3742,15 @@ const Or = /* @__PURE__ */ v(Vr, [["render", Wr]]), Dr = {
|
|
|
3741
3742
|
}
|
|
3742
3743
|
}
|
|
3743
3744
|
}
|
|
3744
|
-
}),
|
|
3745
|
-
function
|
|
3745
|
+
}), Lr = ["innerHTML"];
|
|
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
|
-
}, null, 10,
|
|
3751
|
+
}, null, 10, Lr);
|
|
3751
3752
|
}
|
|
3752
|
-
const
|
|
3753
|
+
const Hr = /* @__PURE__ */ v(Ur, [["render", Fr]]), Mr = {
|
|
3753
3754
|
name: "Embed",
|
|
3754
3755
|
static: !0,
|
|
3755
3756
|
inputs: [{
|
|
@@ -3764,7 +3765,7 @@ const Fr = /* @__PURE__ */ v(xr, [["render", Lr]]), Hr = {
|
|
|
3764
3765
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3765
3766
|
hideFromUI: !0
|
|
3766
3767
|
}]
|
|
3767
|
-
},
|
|
3768
|
+
}, jr = ["text/javascript", "application/javascript", "application/ecmascript"], zr = (e) => jr.includes(e.type), Kr = y({
|
|
3768
3769
|
name: "builder-embed",
|
|
3769
3770
|
props: ["content"],
|
|
3770
3771
|
data() {
|
|
@@ -3797,7 +3798,7 @@ const Fr = /* @__PURE__ */ v(xr, [["render", Lr]]), Hr = {
|
|
|
3797
3798
|
this.scriptsInserted.push(n.src);
|
|
3798
3799
|
const o = document.createElement("script");
|
|
3799
3800
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3800
|
-
} else if (
|
|
3801
|
+
} else if (zr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3801
3802
|
try {
|
|
3802
3803
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3803
3804
|
} catch (o) {
|
|
@@ -3806,15 +3807,15 @@ const Fr = /* @__PURE__ */ v(xr, [["render", Lr]]), Hr = {
|
|
|
3806
3807
|
}
|
|
3807
3808
|
}
|
|
3808
3809
|
}
|
|
3809
|
-
}),
|
|
3810
|
-
function
|
|
3810
|
+
}), qr = ["innerHTML"];
|
|
3811
|
+
function Gr(e, t, n, o, r, i) {
|
|
3811
3812
|
return d(), h("div", {
|
|
3812
3813
|
class: "builder-embed",
|
|
3813
3814
|
ref: "elem",
|
|
3814
3815
|
innerHTML: e.content
|
|
3815
|
-
}, null, 8,
|
|
3816
|
+
}, null, 8, qr);
|
|
3816
3817
|
}
|
|
3817
|
-
const
|
|
3818
|
+
const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
3818
3819
|
name: "Form:Form",
|
|
3819
3820
|
// editableTags: ['builder-form-error']
|
|
3820
3821
|
defaults: {
|
|
@@ -4051,10 +4052,10 @@ const Gr = /* @__PURE__ */ v(zr, [["render", qr]]), Jr = {
|
|
|
4051
4052
|
builderComponents: !0,
|
|
4052
4053
|
builderLinkComponent: !0
|
|
4053
4054
|
}
|
|
4054
|
-
},
|
|
4055
|
+
}, Yr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Xr = () => {
|
|
4055
4056
|
const e = process.env.NODE_ENV || "production";
|
|
4056
|
-
return
|
|
4057
|
-
},
|
|
4057
|
+
return Yr.includes(e) ? e : "production";
|
|
4058
|
+
}, Zr = y({
|
|
4058
4059
|
name: "builder-form-component",
|
|
4059
4060
|
components: { Blocks: K },
|
|
4060
4061
|
props: [
|
|
@@ -4082,7 +4083,7 @@ const Gr = /* @__PURE__ */ v(zr, [["render", qr]]), Jr = {
|
|
|
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 Gr = /* @__PURE__ */ v(zr, [["render", qr]]), Jr = {
|
|
|
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 Gr = /* @__PURE__ */ v(zr, [["render", qr]]), Jr = {
|
|
|
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 Gr = /* @__PURE__ */ v(zr, [["render", qr]]), Jr = {
|
|
|
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));
|
|
@@ -4165,10 +4166,10 @@ const Gr = /* @__PURE__ */ v(zr, [["render", qr]]), Jr = {
|
|
|
4165
4166
|
});
|
|
4166
4167
|
return;
|
|
4167
4168
|
}
|
|
4168
|
-
const p = `${
|
|
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 Gr = /* @__PURE__ */ v(zr, [["render", qr]]), Jr = {
|
|
|
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 Gr = /* @__PURE__ */ v(zr, [["render", qr]]), Jr = {
|
|
|
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
|
}
|
|
@@ -4231,11 +4232,11 @@ const Gr = /* @__PURE__ */ v(zr, [["render", qr]]), Jr = {
|
|
|
4231
4232
|
}
|
|
4232
4233
|
}
|
|
4233
4234
|
}
|
|
4234
|
-
}),
|
|
4235
|
+
}), _r = ["validate", "action", "method", "name"], ei = {
|
|
4235
4236
|
key: 2,
|
|
4236
4237
|
class: "builder-form-error-text pre-2oa2wtipkzk"
|
|
4237
4238
|
};
|
|
4238
|
-
function
|
|
4239
|
+
function ti(e, t, n, o, r, i) {
|
|
4239
4240
|
const s = k("Blocks");
|
|
4240
4241
|
return d(), h("form", $({
|
|
4241
4242
|
validate: e.validate,
|
|
@@ -4244,30 +4245,30 @@ function ei(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",
|
|
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
|
-
], 16,
|
|
4268
|
+
}, null, 8, ["blocks", "context"])) : T("", !0)
|
|
4269
|
+
], 16, _r);
|
|
4269
4270
|
}
|
|
4270
|
-
const
|
|
4271
|
+
const ni = /* @__PURE__ */ v(Zr, [["render", ti], ["__scopeId", "data-v-77c7888c"]]), oi = {
|
|
4271
4272
|
name: "Form:Input",
|
|
4272
4273
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4273
4274
|
inputs: [
|
|
@@ -4318,7 +4319,7 @@ const ti = /* @__PURE__ */ v(Xr, [["render", ei], ["__scopeId", "data-v-77c7888c
|
|
|
4318
4319
|
borderStyle: "solid",
|
|
4319
4320
|
borderColor: "#ccc"
|
|
4320
4321
|
}
|
|
4321
|
-
},
|
|
4322
|
+
}, ri = y({
|
|
4322
4323
|
name: "builder-form-input-component",
|
|
4323
4324
|
props: [
|
|
4324
4325
|
"attributes",
|
|
@@ -4330,10 +4331,10 @@ const ti = /* @__PURE__ */ v(Xr, [["render", ei], ["__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
|
-
function
|
|
4336
|
+
}), ii = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4337
|
+
function si(e, t, n, o, r, i) {
|
|
4337
4338
|
return d(), h("input", $({
|
|
4338
4339
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4339
4340
|
placeholder: e.placeholder,
|
|
@@ -4342,9 +4343,9 @@ function ii(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
|
-
const
|
|
4348
|
+
const ai = /* @__PURE__ */ v(ri, [["render", si]]), li = {
|
|
4348
4349
|
name: "Form:Select",
|
|
4349
4350
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4350
4351
|
defaultStyles: {
|
|
@@ -4386,28 +4387,28 @@ const si = /* @__PURE__ */ v(oi, [["render", ii]]), ai = {
|
|
|
4386
4387
|
}],
|
|
4387
4388
|
static: !0,
|
|
4388
4389
|
noWrap: !0
|
|
4389
|
-
},
|
|
4390
|
+
}, ci = y({
|
|
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
|
-
function
|
|
4396
|
+
}), di = ["value", "defaultValue", "name", "required"], ui = ["value"];
|
|
4397
|
+
function pi(e, t, n, o, r, i) {
|
|
4397
4398
|
return d(), h("select", $({
|
|
4398
4399
|
value: e.value,
|
|
4399
4400
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
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
|
-
], 16,
|
|
4408
|
+
}, ue(s.name || s.value), 9, ui))), 128))
|
|
4409
|
+
], 16, di);
|
|
4409
4410
|
}
|
|
4410
|
-
const
|
|
4411
|
+
const mi = /* @__PURE__ */ v(ci, [["render", pi]]), hi = {
|
|
4411
4412
|
name: "Form:SubmitButton",
|
|
4412
4413
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4413
4414
|
defaultStyles: {
|
|
@@ -4432,17 +4433,17 @@ const pi = /* @__PURE__ */ v(li, [["render", ui]]), mi = {
|
|
|
4432
4433
|
// that only shows if advanced setting is flipped
|
|
4433
4434
|
// TODO: defaultChildren
|
|
4434
4435
|
// canHaveChildren: true,
|
|
4435
|
-
},
|
|
4436
|
+
}, fi = y({
|
|
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
|
-
function
|
|
4443
|
-
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4443
|
+
function bi(e, t, n, o, r, i) {
|
|
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
|
-
const
|
|
4446
|
+
const gi = /* @__PURE__ */ v(fi, [["render", bi]]), yi = {
|
|
4446
4447
|
name: "Form:TextArea",
|
|
4447
4448
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4448
4449
|
inputs: [{
|
|
@@ -4478,7 +4479,7 @@ const bi = /* @__PURE__ */ v(hi, [["render", fi]]), gi = {
|
|
|
4478
4479
|
},
|
|
4479
4480
|
static: !0,
|
|
4480
4481
|
noWrap: !0
|
|
4481
|
-
},
|
|
4482
|
+
}, vi = y({
|
|
4482
4483
|
name: "builder-textarea",
|
|
4483
4484
|
props: [
|
|
4484
4485
|
"attributes",
|
|
@@ -4489,19 +4490,19 @@ const bi = /* @__PURE__ */ v(hi, [["render", fi]]), gi = {
|
|
|
4489
4490
|
"required"
|
|
4490
4491
|
],
|
|
4491
4492
|
data() {
|
|
4492
|
-
return { filterAttrs:
|
|
4493
|
+
return { filterAttrs: O };
|
|
4493
4494
|
}
|
|
4494
|
-
}),
|
|
4495
|
-
function
|
|
4495
|
+
}), Si = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4496
|
+
function ki(e, t, n, o, r, i) {
|
|
4496
4497
|
return d(), h("textarea", $({
|
|
4497
4498
|
placeholder: e.placeholder,
|
|
4498
4499
|
name: e.name,
|
|
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
|
-
const
|
|
4505
|
+
const Ci = /* @__PURE__ */ v(vi, [["render", ki]]), Ti = {
|
|
4505
4506
|
name: "Raw:Img",
|
|
4506
4507
|
hideFromInsertMenu: !0,
|
|
4507
4508
|
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",
|
|
@@ -4509,7 +4510,7 @@ const ki = /* @__PURE__ */ v(yi, [["render", Si]]), Ci = {
|
|
|
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",
|
|
@@ -4545,7 +4546,7 @@ const ki = /* @__PURE__ */ v(yi, [["render", Si]]), Ci = {
|
|
|
4545
4546
|
defaultValue: 0.7041
|
|
4546
4547
|
}],
|
|
4547
4548
|
noWrap: !0
|
|
4548
|
-
},
|
|
4549
|
+
}, wi = y({
|
|
4549
4550
|
name: "builder-img-component",
|
|
4550
4551
|
props: [
|
|
4551
4552
|
"imgSrc",
|
|
@@ -4564,19 +4565,19 @@ const ki = /* @__PURE__ */ v(yi, [["render", Si]]), Ci = {
|
|
|
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
|
}
|
|
4577
4578
|
}
|
|
4578
|
-
}),
|
|
4579
|
-
function
|
|
4579
|
+
}), Ii = ["alt", "title", "src"];
|
|
4580
|
+
function $i(e, t, n, o, r, i) {
|
|
4580
4581
|
var s;
|
|
4581
4582
|
return d(), h("img", $({
|
|
4582
4583
|
loading: "lazy",
|
|
@@ -4590,9 +4591,9 @@ function Ii(e, t, n, o, r, i) {
|
|
|
4590
4591
|
aspectRatio: e.aspectRatio || void 0,
|
|
4591
4592
|
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4592
4593
|
}
|
|
4593
|
-
}, e.imgAttrs), null, 16,
|
|
4594
|
+
}, e.imgAttrs), null, 16, Ii);
|
|
4594
4595
|
}
|
|
4595
|
-
const
|
|
4596
|
+
const Ei = /* @__PURE__ */ v(wi, [["render", $i]]), Ri = {
|
|
4596
4597
|
name: "Video",
|
|
4597
4598
|
canHaveChildren: !0,
|
|
4598
4599
|
defaultStyles: {
|
|
@@ -4603,14 +4604,14 @@ const $i = /* @__PURE__ */ v(Ti, [["render", Ii]]), Ei = {
|
|
|
4603
4604
|
inputs: [{
|
|
4604
4605
|
name: "video",
|
|
4605
4606
|
type: "file",
|
|
4606
|
-
allowedFileTypes:
|
|
4607
|
+
allowedFileTypes: hr,
|
|
4607
4608
|
bubble: !0,
|
|
4608
4609
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
4609
4610
|
required: !0
|
|
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",
|
|
@@ -4676,7 +4677,7 @@ const $i = /* @__PURE__ */ v(Ti, [["render", Ii]]), Ei = {
|
|
|
4676
4677
|
shouldReceiveBuilderProps: {
|
|
4677
4678
|
builderBlock: !0
|
|
4678
4679
|
}
|
|
4679
|
-
},
|
|
4680
|
+
}, Pi = y({
|
|
4680
4681
|
name: "builder-video",
|
|
4681
4682
|
props: [
|
|
4682
4683
|
"lazyLoad",
|
|
@@ -4749,16 +4750,16 @@ const $i = /* @__PURE__ */ v(Ti, [["render", Ii]]), Ei = {
|
|
|
4749
4750
|
};
|
|
4750
4751
|
}
|
|
4751
4752
|
}
|
|
4752
|
-
}),
|
|
4753
|
+
}), Ai = { style: {
|
|
4753
4754
|
position: "relative"
|
|
4754
|
-
} },
|
|
4755
|
+
} }, Bi = ["preload", "poster"], Vi = {
|
|
4755
4756
|
key: 1,
|
|
4756
4757
|
style: {
|
|
4757
4758
|
display: "flex",
|
|
4758
4759
|
flexDirection: "column",
|
|
4759
4760
|
alignItems: "stretch"
|
|
4760
4761
|
}
|
|
4761
|
-
},
|
|
4762
|
+
}, Ni = {
|
|
4762
4763
|
key: 2,
|
|
4763
4764
|
style: {
|
|
4764
4765
|
pointerEvents: "none",
|
|
@@ -4772,10 +4773,10 @@ const $i = /* @__PURE__ */ v(Ti, [["render", Ii]]), Ei = {
|
|
|
4772
4773
|
height: "100%"
|
|
4773
4774
|
}
|
|
4774
4775
|
};
|
|
4775
|
-
function
|
|
4776
|
-
var s, l, a, u, p,
|
|
4777
|
-
return d(), h("div",
|
|
4778
|
-
|
|
4776
|
+
function Oi(e, t, n, o, r, i) {
|
|
4777
|
+
var s, l, a, u, p, b, c;
|
|
4778
|
+
return d(), h("div", Ai, [
|
|
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 Ni(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
|
|
@@ -4802,85 +4803,85 @@ function Ni(e, t, n, o, r, i) {
|
|
|
4802
4803
|
src: e.video
|
|
4803
4804
|
}
|
|
4804
4805
|
), null, 16)
|
|
4805
|
-
], 16,
|
|
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
|
-
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div",
|
|
4815
|
+
}, null, 4)) : T("", !0),
|
|
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 Wi = /* @__PURE__ */ v(
|
|
4824
|
-
component:
|
|
4825
|
-
...
|
|
4824
|
+
const Wi = /* @__PURE__ */ v(Pi, [["render", Oi]]), Di = () => [{
|
|
4825
|
+
component: Hr,
|
|
4826
|
+
...xr
|
|
4826
4827
|
}, {
|
|
4827
|
-
component:
|
|
4828
|
-
...
|
|
4828
|
+
component: Jr,
|
|
4829
|
+
...Mr
|
|
4829
4830
|
}, {
|
|
4830
|
-
component:
|
|
4831
|
-
...
|
|
4831
|
+
component: ni,
|
|
4832
|
+
...Qr
|
|
4832
4833
|
}, {
|
|
4833
|
-
component:
|
|
4834
|
-
...
|
|
4834
|
+
component: ai,
|
|
4835
|
+
...oi
|
|
4835
4836
|
}, {
|
|
4836
|
-
component:
|
|
4837
|
-
...
|
|
4837
|
+
component: gi,
|
|
4838
|
+
...hi
|
|
4838
4839
|
}, {
|
|
4839
|
-
component:
|
|
4840
|
-
...
|
|
4840
|
+
component: mi,
|
|
4841
|
+
...li
|
|
4841
4842
|
}, {
|
|
4842
|
-
component:
|
|
4843
|
-
...
|
|
4843
|
+
component: Ci,
|
|
4844
|
+
...yi
|
|
4844
4845
|
}, {
|
|
4845
|
-
component:
|
|
4846
|
-
...
|
|
4846
|
+
component: Ei,
|
|
4847
|
+
...Ti
|
|
4847
4848
|
}, {
|
|
4848
4849
|
component: Wi,
|
|
4849
|
-
...
|
|
4850
|
+
...Ri
|
|
4850
4851
|
}], Ye = () => [{
|
|
4851
4852
|
component: Mt,
|
|
4852
|
-
...dr
|
|
4853
|
-
}, {
|
|
4854
|
-
component: Vo,
|
|
4855
4853
|
...ur
|
|
4856
4854
|
}, {
|
|
4857
|
-
component:
|
|
4855
|
+
component: No,
|
|
4858
4856
|
...pr
|
|
4859
4857
|
}, {
|
|
4860
|
-
component:
|
|
4861
|
-
...
|
|
4858
|
+
component: Do,
|
|
4859
|
+
...mr
|
|
4862
4860
|
}, {
|
|
4863
|
-
component:
|
|
4864
|
-
...
|
|
4861
|
+
component: zo,
|
|
4862
|
+
...fr
|
|
4865
4863
|
}, {
|
|
4866
|
-
component:
|
|
4864
|
+
component: Go,
|
|
4867
4865
|
...Sr
|
|
4868
4866
|
}, {
|
|
4869
|
-
component:
|
|
4870
|
-
...
|
|
4867
|
+
component: wr,
|
|
4868
|
+
...kr
|
|
4869
|
+
}, {
|
|
4870
|
+
component: Ss,
|
|
4871
|
+
...Ir
|
|
4871
4872
|
}, {
|
|
4872
|
-
component:
|
|
4873
|
-
...
|
|
4873
|
+
component: Dr,
|
|
4874
|
+
...Vr
|
|
4874
4875
|
}, ...Bt.includes(E) ? [{
|
|
4875
|
-
component:
|
|
4876
|
-
...
|
|
4876
|
+
component: vr,
|
|
4877
|
+
...br
|
|
4877
4878
|
}] : [], {
|
|
4878
|
-
component:
|
|
4879
|
-
|
|
4879
|
+
component: Br,
|
|
4880
|
+
...$r
|
|
4880
4881
|
}, {
|
|
4881
|
-
component:
|
|
4882
|
-
...
|
|
4883
|
-
}, ...
|
|
4882
|
+
component: dr,
|
|
4883
|
+
...ir
|
|
4884
|
+
}, ...Di()], xi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4884
4885
|
function getAndSetVariantId() {
|
|
4885
4886
|
function setCookie(name, value, days) {
|
|
4886
4887
|
let expires = '';
|
|
@@ -4939,7 +4940,7 @@ const Wi = /* @__PURE__ */ v(Ri, [["render", Ni]]), Oi = () => [{
|
|
|
4939
4940
|
}).join('');
|
|
4940
4941
|
styleEl.innerHTML = newStyleStr;
|
|
4941
4942
|
}
|
|
4942
|
-
}`,
|
|
4943
|
+
}`, Ui = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4943
4944
|
if (!navigator.cookieEnabled) {
|
|
4944
4945
|
return;
|
|
4945
4946
|
}
|
|
@@ -4973,37 +4974,37 @@ const Wi = /* @__PURE__ */ v(Ri, [["render", Ni]]), Oi = () => [{
|
|
|
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} = ${Di};
|
|
4987
|
-
}
|
|
4988
4986
|
if (!window.${Ie}) {
|
|
4989
4987
|
window.${Ie} = ${xi};
|
|
4990
|
-
}
|
|
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
|
-
window.${
|
|
4996
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4997
|
-
)`,
|
|
4995
|
+
`, ji = (e, t) => `
|
|
4996
|
+
window.${Ie}(
|
|
4997
|
+
"${t}",${JSON.stringify(e)}, ${Ue}, ${Hi}
|
|
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;
|
|
5005
5006
|
}
|
|
5006
|
-
const
|
|
5007
|
+
const Ki = (e, t, n = !0) => {
|
|
5007
5008
|
if (!(e instanceof HTMLElement))
|
|
5008
5009
|
return null;
|
|
5009
5010
|
let o = n ? e : e.parentElement;
|
|
@@ -5014,7 +5015,7 @@ const zi = (e, t, n = !0) => {
|
|
|
5014
5015
|
return o;
|
|
5015
5016
|
} while (o = o.parentElement);
|
|
5016
5017
|
return null;
|
|
5017
|
-
},
|
|
5018
|
+
}, qi = (e) => Ki(e, (t) => {
|
|
5018
5019
|
const n = t.getAttribute("builder-id") || t.id;
|
|
5019
5020
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
5020
5021
|
}), Ze = ({
|
|
@@ -5026,8 +5027,8 @@ const zi = (e, t, n = !0) => {
|
|
|
5026
5027
|
x: i,
|
|
5027
5028
|
y: s
|
|
5028
5029
|
};
|
|
5029
|
-
},
|
|
5030
|
-
const t = e.target, n = t &&
|
|
5030
|
+
}, Gi = (e) => {
|
|
5031
|
+
const t = e.target, n = t && qi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
5031
5032
|
return {
|
|
5032
5033
|
targetBuilderElement: o || void 0,
|
|
5033
5034
|
metadata: {
|
|
@@ -5042,7 +5043,7 @@ const zi = (e, t, n = !0) => {
|
|
|
5042
5043
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
5043
5044
|
}
|
|
5044
5045
|
};
|
|
5045
|
-
},
|
|
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 = "";
|
|
@@ -5068,15 +5069,15 @@ font-weight: ${s};
|
|
|
5068
5069
|
`.trim());
|
|
5069
5070
|
}
|
|
5070
5071
|
return r;
|
|
5071
|
-
},
|
|
5072
|
+
}, Xi = ({
|
|
5072
5073
|
customFonts: e
|
|
5073
5074
|
}) => {
|
|
5074
5075
|
var t;
|
|
5075
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
5076
|
-
},
|
|
5076
|
+
return ((t = e == null ? void 0 : e.map((n) => Yi(n))) == null ? void 0 : t.join(" ")) || "";
|
|
5077
|
+
}, Zi = ({
|
|
5077
5078
|
cssCode: e,
|
|
5078
5079
|
contentId: t
|
|
5079
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
5080
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", _i = `
|
|
5080
5081
|
.builder-button {
|
|
5081
5082
|
all: unset;
|
|
5082
5083
|
}
|
|
@@ -5093,9 +5094,9 @@ font-weight: ${s};
|
|
|
5093
5094
|
text-align: inherit;
|
|
5094
5095
|
font-family: inherit;
|
|
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,15 +5126,15 @@ font-weight: ${s};
|
|
|
5124
5126
|
httpReqsData: {},
|
|
5125
5127
|
httpReqsPending: {},
|
|
5126
5128
|
clicked: !1,
|
|
5127
|
-
builderContext:
|
|
5128
|
-
needsElementRefDivForEditing:
|
|
5129
|
-
getWrapperClassName:
|
|
5129
|
+
builderContext: ye,
|
|
5130
|
+
needsElementRefDivForEditing: Qi,
|
|
5131
|
+
getWrapperClassName: ts
|
|
5130
5132
|
};
|
|
5131
5133
|
},
|
|
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,14 +5292,14 @@ 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,
|
|
5300
|
-
...
|
|
5302
|
+
...Gi(e),
|
|
5301
5303
|
unique: !this.clicked
|
|
5302
5304
|
});
|
|
5303
5305
|
}
|
|
@@ -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,
|
|
@@ -5418,9 +5423,9 @@ font-weight: ${s};
|
|
|
5418
5423
|
}
|
|
5419
5424
|
}
|
|
5420
5425
|
});
|
|
5421
|
-
function
|
|
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,32 +5438,32 @@ function ns(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
|
-
const
|
|
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 {
|
|
5448
5453
|
injectedStyles: `
|
|
5449
|
-
${
|
|
5454
|
+
${Zi({
|
|
5450
5455
|
cssCode: this.cssCode,
|
|
5451
5456
|
contentId: this.contentId
|
|
5452
5457
|
})}
|
|
5453
|
-
${
|
|
5458
|
+
${Xi({
|
|
5454
5459
|
customFonts: this.customFonts
|
|
5455
5460
|
})}
|
|
5456
|
-
${
|
|
5461
|
+
${es(this.isNestedRender)}
|
|
5457
5462
|
`.trim()
|
|
5458
5463
|
};
|
|
5459
5464
|
}
|
|
5460
5465
|
});
|
|
5461
|
-
function
|
|
5466
|
+
function ss(e, t, n, o, r, i) {
|
|
5462
5467
|
const s = k("InlinedStyles");
|
|
5463
5468
|
return d(), S(s, {
|
|
5464
5469
|
id: "builderio-content",
|
|
@@ -5466,7 +5471,7 @@ function is(e, t, n, o, r, i) {
|
|
|
5466
5471
|
nonce: e.nonce
|
|
5467
5472
|
}, null, 8, ["styles", "nonce"]);
|
|
5468
5473
|
}
|
|
5469
|
-
const
|
|
5474
|
+
const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
5470
5475
|
content: e,
|
|
5471
5476
|
data: t,
|
|
5472
5477
|
locale: n
|
|
@@ -5483,7 +5488,7 @@ const ss = /* @__PURE__ */ v(rs, [["render", is]]), as = ({
|
|
|
5483
5488
|
locale: n
|
|
5484
5489
|
} : {}
|
|
5485
5490
|
};
|
|
5486
|
-
},
|
|
5491
|
+
}, cs = ({
|
|
5487
5492
|
content: e,
|
|
5488
5493
|
data: t
|
|
5489
5494
|
}) => e ? {
|
|
@@ -5493,14 +5498,14 @@ const ss = /* @__PURE__ */ v(rs, [["render", is]]), as = ({
|
|
|
5493
5498
|
...t
|
|
5494
5499
|
},
|
|
5495
5500
|
meta: e == null ? void 0 : e.meta
|
|
5496
|
-
} : void 0,
|
|
5501
|
+
} : void 0, ds = Wt, us = y({
|
|
5497
5502
|
name: "content-component",
|
|
5498
5503
|
components: {
|
|
5499
|
-
EnableEditor:
|
|
5500
|
-
InlinedScript:
|
|
5501
|
-
ContentStyles:
|
|
5504
|
+
EnableEditor: rs,
|
|
5505
|
+
InlinedScript: xe,
|
|
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 ss = /* @__PURE__ */ v(rs, [["render", is]]), as = ({
|
|
|
5517
5522
|
"model",
|
|
5518
5523
|
"apiHost",
|
|
5519
5524
|
"enrich",
|
|
5525
|
+
"enrichOptions",
|
|
5520
5526
|
"showContent",
|
|
5521
5527
|
"contentWrapper",
|
|
5522
5528
|
"contentWrapperProps",
|
|
@@ -5528,7 +5534,7 @@ const ss = /* @__PURE__ */ v(rs, [["render", is]]), as = ({
|
|
|
5528
5534
|
data() {
|
|
5529
5535
|
var e, t;
|
|
5530
5536
|
return {
|
|
5531
|
-
scriptStr:
|
|
5537
|
+
scriptStr: zi({
|
|
5532
5538
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5533
5539
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5534
5540
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -5541,19 +5547,19 @@ const ss = /* @__PURE__ */ v(rs, [["render", is]]), as = ({
|
|
|
5541
5547
|
(n, { component: o, ...r }) => ({
|
|
5542
5548
|
...n,
|
|
5543
5549
|
[r.name]: {
|
|
5544
|
-
component:
|
|
5545
|
-
...
|
|
5550
|
+
component: ds(o),
|
|
5551
|
+
...ce(r)
|
|
5546
5552
|
}
|
|
5547
5553
|
}),
|
|
5548
5554
|
{}
|
|
5549
5555
|
),
|
|
5550
5556
|
builderContextSignal: {
|
|
5551
|
-
content:
|
|
5557
|
+
content: cs({
|
|
5552
5558
|
content: this.content,
|
|
5553
5559
|
data: this.data
|
|
5554
5560
|
}),
|
|
5555
5561
|
localState: void 0,
|
|
5556
|
-
rootState:
|
|
5562
|
+
rootState: ls({
|
|
5557
5563
|
content: this.content,
|
|
5558
5564
|
data: this.data,
|
|
5559
5565
|
locale: this.locale
|
|
@@ -5569,7 +5575,7 @@ const ss = /* @__PURE__ */ v(rs, [["render", is]]), as = ({
|
|
|
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 ss = /* @__PURE__ */ v(rs, [["render", is]]), as = ({
|
|
|
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,
|
|
@@ -5629,7 +5635,7 @@ const ss = /* @__PURE__ */ v(rs, [["render", is]]), as = ({
|
|
|
5629
5635
|
}
|
|
5630
5636
|
}
|
|
5631
5637
|
});
|
|
5632
|
-
function
|
|
5638
|
+
function ps(e, t, n, o, r, i) {
|
|
5633
5639
|
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
5634
5640
|
return d(), S(u, $({
|
|
5635
5641
|
apiHost: e.apiHost,
|
|
@@ -5642,6 +5648,7 @@ function us(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 us(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,14 +5682,14 @@ function us(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
|
-
const
|
|
5687
|
+
const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = y({
|
|
5681
5688
|
name: "content-variants",
|
|
5682
5689
|
components: {
|
|
5683
|
-
InlinedScript:
|
|
5684
|
-
InlinedStyles:
|
|
5685
|
-
ContentComponent:
|
|
5690
|
+
InlinedScript: xe,
|
|
5691
|
+
InlinedStyles: me,
|
|
5692
|
+
ContentComponent: ms
|
|
5686
5693
|
},
|
|
5687
5694
|
props: [
|
|
5688
5695
|
"canTrack",
|
|
@@ -5699,6 +5706,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = y({
|
|
|
5699
5706
|
"linkComponent",
|
|
5700
5707
|
"locale",
|
|
5701
5708
|
"enrich",
|
|
5709
|
+
"enrichOptions",
|
|
5702
5710
|
"blocksWrapper",
|
|
5703
5711
|
"blocksWrapperProps",
|
|
5704
5712
|
"contentWrapper",
|
|
@@ -5707,16 +5715,16 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = y({
|
|
|
5707
5715
|
],
|
|
5708
5716
|
data() {
|
|
5709
5717
|
return {
|
|
5710
|
-
shouldRenderVariants:
|
|
5711
|
-
canTrack:
|
|
5718
|
+
shouldRenderVariants: Li({
|
|
5719
|
+
canTrack: J(this.canTrack),
|
|
5712
5720
|
content: this.content
|
|
5713
5721
|
}),
|
|
5714
|
-
shouldEmitPersonalizationFns:
|
|
5722
|
+
shouldEmitPersonalizationFns: tr(this.content),
|
|
5715
5723
|
SDKS_SUPPORTING_PERSONALIZATION: Bt,
|
|
5716
|
-
getInitPersonalizationVariantsFnsScriptString:
|
|
5724
|
+
getInitPersonalizationVariantsFnsScriptString: nr,
|
|
5717
5725
|
TARGET: E,
|
|
5718
|
-
getInitVariantsFnsScriptString:
|
|
5719
|
-
getVariants:
|
|
5726
|
+
getInitVariantsFnsScriptString: Mi,
|
|
5727
|
+
getVariants: se
|
|
5720
5728
|
};
|
|
5721
5729
|
},
|
|
5722
5730
|
mounted() {
|
|
@@ -5724,8 +5732,8 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = y({
|
|
|
5724
5732
|
computed: {
|
|
5725
5733
|
updateCookieAndStylesScriptStr() {
|
|
5726
5734
|
var e;
|
|
5727
|
-
return
|
|
5728
|
-
|
|
5735
|
+
return ji(
|
|
5736
|
+
se(this.content).map((t) => ({
|
|
5729
5737
|
id: t.testVariationId,
|
|
5730
5738
|
testRatio: t.testRatio
|
|
5731
5739
|
})),
|
|
@@ -5733,7 +5741,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = 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,12 +5750,12 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = 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
|
}
|
|
5749
5757
|
});
|
|
5750
|
-
function
|
|
5758
|
+
function fs(e, t, n, o, r, i) {
|
|
5751
5759
|
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5752
5760
|
return d(), h(I, null, [
|
|
5753
5761
|
e.shouldEmitPersonalizationFns ? (d(), h(I, { key: 0 }, [
|
|
@@ -5756,8 +5764,8 @@ function hs(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 hs(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 hs(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 hs(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,16 +5833,16 @@ function hs(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
|
-
const
|
|
5839
|
+
const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = async ({
|
|
5830
5840
|
builderContextValue: e,
|
|
5831
5841
|
symbol: t
|
|
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,
|
|
@@ -5844,9 +5854,9 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = async ({
|
|
|
5844
5854
|
}).catch((n) => {
|
|
5845
5855
|
B.error("Could not fetch symbol content: ", n);
|
|
5846
5856
|
});
|
|
5847
|
-
},
|
|
5857
|
+
}, ys = y({
|
|
5848
5858
|
name: "builder-symbol",
|
|
5849
|
-
components: { ContentVariants:
|
|
5859
|
+
components: { ContentVariants: bs, DynamicDiv: ne },
|
|
5850
5860
|
props: [
|
|
5851
5861
|
"symbol",
|
|
5852
5862
|
"builderComponents",
|
|
@@ -5861,7 +5871,7 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = 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 fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = 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
|
|
@@ -5903,7 +5913,7 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = async ({
|
|
|
5903
5913
|
methods: {
|
|
5904
5914
|
setContent() {
|
|
5905
5915
|
var e;
|
|
5906
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
5916
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || gs({
|
|
5907
5917
|
symbol: this.symbol,
|
|
5908
5918
|
builderContextValue: this.builderContext
|
|
5909
5919
|
}).then((t) => {
|
|
@@ -5913,10 +5923,10 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = async ({
|
|
|
5913
5923
|
}
|
|
5914
5924
|
}
|
|
5915
5925
|
});
|
|
5916
|
-
function
|
|
5917
|
-
var l, a, u, p,
|
|
5926
|
+
function vs(e, t, n, o, r, i) {
|
|
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 ys(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) ?? "",
|
|
@@ -5941,47 +5951,47 @@ function ys(e, t, n, o, r, i) {
|
|
|
5941
5951
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5942
5952
|
], 16);
|
|
5943
5953
|
}
|
|
5944
|
-
const
|
|
5954
|
+
const Ss = /* @__PURE__ */ v(ys, [["render", vs]]);
|
|
5945
5955
|
export {
|
|
5946
|
-
|
|
5956
|
+
Rs as A,
|
|
5947
5957
|
Pt as B,
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
+
No as C,
|
|
5959
|
+
As as D,
|
|
5960
|
+
Zn as E,
|
|
5961
|
+
Do as F,
|
|
5962
|
+
_n as G,
|
|
5963
|
+
Oe as H,
|
|
5964
|
+
zo as I,
|
|
5965
|
+
Ts as J,
|
|
5966
|
+
Ns as K,
|
|
5967
|
+
Go as S,
|
|
5958
5968
|
E as T,
|
|
5959
5969
|
Wi as V,
|
|
5960
5970
|
v as _,
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5971
|
+
M as a,
|
|
5972
|
+
ye as b,
|
|
5973
|
+
me as c,
|
|
5974
|
+
j as d,
|
|
5975
|
+
te as e,
|
|
5976
|
+
Po as f,
|
|
5977
|
+
Vs as g,
|
|
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,
|
|
5974
|
-
|
|
5975
|
-
|
|
5984
|
+
Ss as n,
|
|
5985
|
+
Dr as o,
|
|
5976
5986
|
K as p,
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5987
|
+
bs as q,
|
|
5988
|
+
Be as r,
|
|
5989
|
+
Ps as s,
|
|
5980
5990
|
An as t,
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5991
|
+
Is as u,
|
|
5992
|
+
$s as v,
|
|
5993
|
+
ds as w,
|
|
5994
|
+
Es as x,
|
|
5985
5995
|
ft as y,
|
|
5986
|
-
|
|
5996
|
+
ws as z
|
|
5987
5997
|
};
|