@builder.io/sdk-vue 3.0.6 → 4.0.0
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-sU4SDpX0.js → awaiter-DlOqOX5z.js} +1 -1
- package/lib/browser/{awaiter-B_2yazFf.cjs → awaiter-vdgasK22.cjs} +1 -1
- package/lib/browser/block-styles-1zdZBD3_.js +84 -0
- package/lib/browser/block-styles-C2qOWXLT.cjs +1 -0
- package/lib/browser/{block-wrapper-cNFnfUiY.cjs → block-wrapper-KwNijOoq.cjs} +1 -1
- package/lib/browser/{block-wrapper-sJoVtUVt.js → block-wrapper-mWQd3eds.js} +3 -3
- package/lib/browser/blocks/video/video.vue.d.ts +3 -1
- package/lib/browser/{component-ref-Lo1xYT1R.cjs → component-ref-D8G8i0SU.cjs} +1 -1
- package/lib/browser/{component-ref-InYIqrKn.js → component-ref-fX9luBp4.js} +3 -3
- package/lib/browser/components/content-variants/content-variants.types.d.ts +2 -2
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -1
- package/lib/browser/constants/device-sizes.d.ts +3 -2
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-CKOWhK-0.cjs → get-block-properties-GIlOh7KW.cjs} +1 -1
- package/lib/browser/{get-block-properties-aoErppFn.js → get-block-properties-skcPpF7F.js} +1 -1
- package/lib/browser/helpers/subscribe-to-editor.d.ts +13 -13
- package/lib/browser/{index-kfabrDm6.cjs → index--ZUFWfhP.cjs} +19 -19
- package/lib/browser/{index-B6NDWuX_.js → index-yHm9GN7F.js} +308 -247
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-KGwyg5jh.cjs → repeated-block-4rLodLPa.cjs} +1 -1
- package/lib/browser/{repeated-block-P2xyBE88.js → repeated-block-s8wpauxV.js} +2 -2
- package/lib/browser/scripts/init-editing.d.ts +3 -1
- package/lib/browser/types/builder-block.d.ts +0 -1
- package/lib/browser/types/builder-content.d.ts +1 -0
- package/lib/edge/{awaiter-fXaD_JAB.js → awaiter-2r6u2dJ4.js} +1 -1
- package/lib/edge/{awaiter-EmQONKEI.cjs → awaiter-bR9ekICW.cjs} +1 -1
- package/lib/edge/block-styles-d3KRk_ab.cjs +1 -0
- package/lib/edge/block-styles-qmawnL2_.js +83 -0
- package/lib/edge/{block-wrapper-eADCpP6y.cjs → block-wrapper-dj07vUo2.cjs} +1 -1
- package/lib/edge/{block-wrapper-0SD0oCxs.js → block-wrapper-ga1Q8gAe.js} +3 -3
- package/lib/edge/blocks/video/video.vue.d.ts +3 -1
- package/lib/edge/{component-ref-gyS-V1Pb.cjs → component-ref-APzUXbFO.cjs} +1 -1
- package/lib/edge/{component-ref-jFmm1Yr5.js → component-ref-kF7QYHtR.js} +3 -3
- package/lib/edge/components/content-variants/content-variants.types.d.ts +2 -2
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -1
- package/lib/edge/constants/device-sizes.d.ts +3 -2
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-rOVHCadT.js → get-block-properties-8YAn4NDv.js} +1 -1
- package/lib/edge/{get-block-properties-uNDsnJ_q.cjs → get-block-properties-aIlaPST5.cjs} +1 -1
- package/lib/edge/helpers/subscribe-to-editor.d.ts +13 -13
- package/lib/edge/{index-L-qMWRJU.cjs → index-GUN3bmOV.cjs} +23 -23
- package/lib/edge/{index-NtpyQKYV.js → index-iGa536AK.js} +607 -546
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/repeated-block-vtexff4h.cjs → edge/repeated-block-OzRUfzWW.cjs} +1 -1
- package/lib/edge/{repeated-block-sEp_7OeP.js → repeated-block-s8LkZB7_.js} +2 -2
- package/lib/edge/scripts/init-editing.d.ts +3 -1
- package/lib/edge/types/builder-block.d.ts +0 -1
- package/lib/edge/types/builder-content.d.ts +1 -0
- package/lib/node/{awaiter-vuOYJM0Z.js → awaiter-4f_ytnHK.js} +1 -1
- package/lib/node/{awaiter-2QzOhSsm.cjs → awaiter-OY9itOXx.cjs} +1 -1
- package/lib/node/block-styles-I8VnS9H0.cjs +1 -0
- package/lib/node/block-styles-jsefu77A.js +84 -0
- package/lib/node/{block-wrapper-lX2JGnCZ.cjs → block-wrapper-YGW0E_7i.cjs} +1 -1
- package/lib/node/{block-wrapper-QmVhjKN-.js → block-wrapper-cmV-hW0a.js} +3 -3
- package/lib/node/blocks/video/video.vue.d.ts +3 -1
- package/lib/node/{component-ref-I3kUaCp3.cjs → component-ref-U44S4K28.cjs} +1 -1
- package/lib/node/{component-ref-KxI6DtDP.js → component-ref-qbqVS7Se.js} +3 -3
- package/lib/node/components/content-variants/content-variants.types.d.ts +2 -2
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -1
- package/lib/node/constants/device-sizes.d.ts +3 -2
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-DkXAWgRI.cjs → get-block-properties-WcC5NqID.cjs} +1 -1
- package/lib/node/{get-block-properties-767HBW90.js → get-block-properties-g8gAwjx3.js} +1 -1
- package/lib/node/helpers/subscribe-to-editor.d.ts +13 -13
- package/lib/node/{index-2pJd7fhw.cjs → index-4E72ai__.cjs} +16 -16
- package/lib/node/{index-n5uLpvet.js → index-Izb0_b7V.js} +309 -248
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-ldoaTwur.js → repeated-block-aLoVuYCX.js} +2 -2
- package/lib/{edge/repeated-block-LZ0_ayRt.cjs → node/repeated-block-xnbh1API.cjs} +1 -1
- package/lib/node/scripts/init-editing.d.ts +3 -1
- package/lib/node/types/builder-block.d.ts +0 -1
- package/lib/node/types/builder-content.d.ts +1 -0
- package/package.json +1 -1
- package/lib/browser/block-styles-K1JPlueX.js +0 -76
- package/lib/browser/block-styles-rosksv3P.cjs +0 -1
- package/lib/edge/block-styles-ET_8Qv_h.cjs +0 -1
- package/lib/edge/block-styles-V2TEosdx.js +0 -75
- package/lib/node/block-styles-ZraAZYMV.js +0 -76
- package/lib/node/block-styles-oEhFbcHe.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as g, openBlock as c, createElementBlock as p, Fragment as $, createBlock as y, resolveDynamicComponent as
|
|
2
|
+
import { defineComponent as g, openBlock as c, createElementBlock as p, Fragment as $, createBlock as y, resolveDynamicComponent as z, mergeProps as C, toHandlers as x, withCtx as W, renderSlot as B, resolveComponent as k, createTextVNode as wt, toDisplayString as ne, defineAsyncComponent as K, createVNode as P, renderList as N, createCommentVNode as S, h as Fe, createElementVNode as M, normalizeStyle as F, normalizeClass as J, markRaw as Tt } from "vue";
|
|
3
3
|
const It = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), $t = (e) => typeof e == "string" && It.has(e.toLowerCase());
|
|
4
4
|
function V(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
@@ -24,21 +24,21 @@ const Rt = g({
|
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
26
|
function Et(e, t, n, o, r, s) {
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (c(), y(
|
|
28
|
-
typeof e.TagName == "string" ? (c(), y(
|
|
29
|
-
default:
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (c(), y(z(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (c(), p($, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (c(), y(z(e.TagName), C({ key: 0 }, e.attributes, x(e.actionAttributes)), {
|
|
29
|
+
default: W(() => [
|
|
30
30
|
B(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (c(), y(
|
|
34
|
-
default:
|
|
33
|
+
}, 16)) : (c(), y(z(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), {
|
|
34
|
+
default: W(() => [
|
|
35
35
|
B(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const me = /* @__PURE__ */ b(Rt, [["render", Et]]),
|
|
41
|
+
const me = /* @__PURE__ */ b(Rt, [["render", Et]]), Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
43
|
default: me
|
|
44
44
|
}, Symbol.toStringTag, { value: "Module" })), R = "vue", _ = () => {
|
|
@@ -90,7 +90,7 @@ function Bt(e, t, n, o, r, s) {
|
|
|
90
90
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
|
-
default:
|
|
93
|
+
default: W(() => [
|
|
94
94
|
wt(ne(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
@@ -126,24 +126,24 @@ const At = /* @__PURE__ */ b(Pt, [["render", Bt]]), xt = Symbol(), ce = {
|
|
|
126
126
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : 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
|
-
const
|
|
132
|
+
const Nt = (e) => {
|
|
133
133
|
const t = {};
|
|
134
134
|
return e.forEach((n, o) => {
|
|
135
135
|
t[o] = n;
|
|
136
136
|
}), t;
|
|
137
|
-
}, Le = (e) => e instanceof URLSearchParams ?
|
|
138
|
-
function
|
|
139
|
-
return
|
|
137
|
+
}, Le = (e) => e instanceof URLSearchParams ? Nt(e) : e, Me = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
138
|
+
function Wt() {
|
|
139
|
+
return w() && window.self !== window.top;
|
|
140
140
|
}
|
|
141
141
|
function E(e) {
|
|
142
|
-
return
|
|
142
|
+
return Wt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
143
143
|
Me(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
144
144
|
}
|
|
145
145
|
const Ot = () => {
|
|
146
|
-
if (
|
|
146
|
+
if (w()) {
|
|
147
147
|
const e = new URL(location.href);
|
|
148
148
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
149
149
|
} else
|
|
@@ -188,8 +188,8 @@ const Ot = () => {
|
|
|
188
188
|
event: n
|
|
189
189
|
}), Dt = () => ({
|
|
190
190
|
isEditing: E(),
|
|
191
|
-
isBrowser:
|
|
192
|
-
isServer: !
|
|
191
|
+
isBrowser: w(),
|
|
192
|
+
isServer: !w(),
|
|
193
193
|
getUserAttributes: () => He()
|
|
194
194
|
}), Lt = (e, {
|
|
195
195
|
isExpression: t = !0
|
|
@@ -252,11 +252,11 @@ const Ht = ({
|
|
|
252
252
|
return !1;
|
|
253
253
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
254
254
|
return t && n && !o ? (e && A.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;
|
|
255
|
-
}, jt = (e) => (
|
|
255
|
+
}, jt = (e) => (w() || Ht({
|
|
256
256
|
shouldLogWarning: !0
|
|
257
|
-
}), $e(e)), Kt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/,
|
|
257
|
+
}), $e(e)), Kt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, zt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, qt = (e) => {
|
|
258
258
|
var t, n, o, r, s, i;
|
|
259
|
-
return ((o = (n = (t = Kt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((i = (s = (r =
|
|
259
|
+
return ((o = (n = (t = Kt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((i = (s = (r = zt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : s.getPath) == null ? void 0 : i.slice(1));
|
|
260
260
|
};
|
|
261
261
|
function Y({
|
|
262
262
|
code: e,
|
|
@@ -269,7 +269,7 @@ function Y({
|
|
|
269
269
|
}) {
|
|
270
270
|
if (e.trim() === "")
|
|
271
271
|
return;
|
|
272
|
-
const l =
|
|
272
|
+
const l = qt(e.trim());
|
|
273
273
|
if (l)
|
|
274
274
|
return De({
|
|
275
275
|
...o,
|
|
@@ -363,7 +363,7 @@ function Zt(e, t) {
|
|
|
363
363
|
var n, o;
|
|
364
364
|
return (n = e.component) != null && n.options && Xt((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 = Qt(e.component.options, t ?? "Default")), e;
|
|
365
365
|
}
|
|
366
|
-
const he = (e) => JSON.parse(JSON.stringify(e)),
|
|
366
|
+
const he = (e) => JSON.parse(JSON.stringify(e)), ze = (e, t, n) => {
|
|
367
367
|
if (Object(e) !== e)
|
|
368
368
|
return e;
|
|
369
369
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -425,7 +425,7 @@ const _t = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), en = (e) =
|
|
|
425
425
|
rootSetState: r,
|
|
426
426
|
context: t
|
|
427
427
|
});
|
|
428
|
-
|
|
428
|
+
ze(s, i, a);
|
|
429
429
|
}
|
|
430
430
|
return s;
|
|
431
431
|
};
|
|
@@ -445,8 +445,8 @@ function nn({
|
|
|
445
445
|
context: t
|
|
446
446
|
});
|
|
447
447
|
}
|
|
448
|
-
function
|
|
449
|
-
const t = e || (
|
|
448
|
+
function qe(e) {
|
|
449
|
+
const t = e || (w() ? window.location.search : void 0);
|
|
450
450
|
return t ? Me(t).indexOf("builder.preview=") !== -1 : !1;
|
|
451
451
|
}
|
|
452
452
|
const on = (e) => ({
|
|
@@ -463,7 +463,7 @@ const Re = {};
|
|
|
463
463
|
function sn(e, t) {
|
|
464
464
|
e === "plugin" && (t = te(t));
|
|
465
465
|
let n = Re[e];
|
|
466
|
-
if (n || (n = Re[e] = []), n.push(t),
|
|
466
|
+
if (n || (n = Re[e] = []), n.push(t), w()) {
|
|
467
467
|
const o = {
|
|
468
468
|
type: "builder.register",
|
|
469
469
|
data: {
|
|
@@ -479,8 +479,8 @@ function sn(e, t) {
|
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
const Ee = {};
|
|
482
|
-
function
|
|
483
|
-
if (
|
|
482
|
+
function Zs(e) {
|
|
483
|
+
if (w()) {
|
|
484
484
|
Object.assign(Ee, e);
|
|
485
485
|
const t = {
|
|
486
486
|
type: "builder.settingsChange",
|
|
@@ -500,11 +500,11 @@ const Pe = "builder.", an = "options.", Je = (e) => {
|
|
|
500
500
|
}
|
|
501
501
|
}), n;
|
|
502
502
|
}, ln = () => {
|
|
503
|
-
if (!
|
|
503
|
+
if (!w())
|
|
504
504
|
return {};
|
|
505
505
|
const e = new URLSearchParams(window.location.search);
|
|
506
506
|
return Je(e);
|
|
507
|
-
}, Ge = "
|
|
507
|
+
}, Ge = "4.0.0", Ye = () => ({
|
|
508
508
|
"X-Builder-SDK": R,
|
|
509
509
|
"X-Builder-SDK-GEN": "2",
|
|
510
510
|
"X-Builder-SDK-Version": Ge
|
|
@@ -529,7 +529,7 @@ const Pe = "builder.", an = "options.", Je = (e) => {
|
|
|
529
529
|
value: t,
|
|
530
530
|
expires: n
|
|
531
531
|
}) => {
|
|
532
|
-
const r = (
|
|
532
|
+
const r = (w() ? location.protocol === "https:" : !0) ? un : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", cn(window.location.hostname)], ...r];
|
|
533
533
|
return dn(i);
|
|
534
534
|
}, ge = async ({
|
|
535
535
|
name: e,
|
|
@@ -584,7 +584,7 @@ const Ze = "builderSessionId", hn = async ({
|
|
|
584
584
|
name: Ze,
|
|
585
585
|
value: e,
|
|
586
586
|
canTrack: t
|
|
587
|
-
}), _e = () =>
|
|
587
|
+
}), _e = () => w() && typeof localStorage < "u" ? localStorage : void 0, bn = ({
|
|
588
588
|
key: e,
|
|
589
589
|
canTrack: t
|
|
590
590
|
}) => {
|
|
@@ -682,7 +682,7 @@ async function ue({
|
|
|
682
682
|
A.error("Missing API key for track call. Please provide your API key.");
|
|
683
683
|
return;
|
|
684
684
|
}
|
|
685
|
-
if (!t.canTrack || E() || !(
|
|
685
|
+
if (!t.canTrack || E() || !(w() || R === "reactNative"))
|
|
686
686
|
return;
|
|
687
687
|
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
688
688
|
return be(o), fetch(o, {
|
|
@@ -699,7 +699,7 @@ async function ue({
|
|
|
699
699
|
console.error("Failed to track: ", r);
|
|
700
700
|
});
|
|
701
701
|
}
|
|
702
|
-
const
|
|
702
|
+
const _s = (e) => ue({
|
|
703
703
|
...e,
|
|
704
704
|
canTrack: !0
|
|
705
705
|
}), Tn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
@@ -733,9 +733,9 @@ const In = () => {
|
|
|
733
733
|
});
|
|
734
734
|
};
|
|
735
735
|
let Be = !1;
|
|
736
|
-
const nt = (e
|
|
736
|
+
const nt = (e) => {
|
|
737
737
|
var t, n;
|
|
738
|
-
Be || (Be = !0,
|
|
738
|
+
Be || (Be = !0, w() && ((t = window.parent) == null || t.postMessage({
|
|
739
739
|
type: "builder.sdkInfo",
|
|
740
740
|
data: {
|
|
741
741
|
target: R,
|
|
@@ -745,6 +745,9 @@ const nt = (e = {}) => {
|
|
|
745
745
|
// scope our '+ add block' button styling
|
|
746
746
|
supportsAddBlockScoping: !0,
|
|
747
747
|
supportsCustomBreakpoints: !0,
|
|
748
|
+
modelName: e.modelName,
|
|
749
|
+
apiKey: e.apiKey,
|
|
750
|
+
supportsXSmallBreakpoint: !0,
|
|
748
751
|
blockLevelPersonalization: !0
|
|
749
752
|
}
|
|
750
753
|
}, "*"), (n = window.parent) == null || n.postMessage({
|
|
@@ -821,24 +824,32 @@ const nt = (e = {}) => {
|
|
|
821
824
|
break;
|
|
822
825
|
}
|
|
823
826
|
}
|
|
824
|
-
},
|
|
825
|
-
|
|
827
|
+
}, ei = ({
|
|
828
|
+
model: e,
|
|
829
|
+
apiKey: t,
|
|
830
|
+
callback: n,
|
|
831
|
+
trustedHosts: o
|
|
832
|
+
}) => {
|
|
833
|
+
if (!w)
|
|
826
834
|
return A.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
827
835
|
};
|
|
828
|
-
nt(
|
|
829
|
-
|
|
836
|
+
nt({
|
|
837
|
+
modelName: e,
|
|
838
|
+
apiKey: t
|
|
839
|
+
});
|
|
840
|
+
const r = ot({
|
|
830
841
|
callbacks: {
|
|
831
|
-
contentUpdate:
|
|
842
|
+
contentUpdate: n,
|
|
832
843
|
animation: () => {
|
|
833
844
|
},
|
|
834
845
|
configureSdk: () => {
|
|
835
846
|
}
|
|
836
847
|
},
|
|
837
848
|
model: e,
|
|
838
|
-
trustedHosts:
|
|
849
|
+
trustedHosts: o
|
|
839
850
|
});
|
|
840
|
-
return window.addEventListener("message",
|
|
841
|
-
window.removeEventListener("message",
|
|
851
|
+
return window.addEventListener("message", r), () => {
|
|
852
|
+
window.removeEventListener("message", r);
|
|
842
853
|
};
|
|
843
854
|
}, $n = "builder.tests", ye = (e) => `${$n}.${e}`, Rn = ({
|
|
844
855
|
contentId: e
|
|
@@ -940,7 +951,7 @@ function Vn() {
|
|
|
940
951
|
const t = /* @__PURE__ */ new Set();
|
|
941
952
|
return {
|
|
942
953
|
setUserAttributes(n) {
|
|
943
|
-
if (!
|
|
954
|
+
if (!w())
|
|
944
955
|
return;
|
|
945
956
|
const o = {
|
|
946
957
|
...this.getUserAttributes(),
|
|
@@ -953,7 +964,7 @@ function Vn() {
|
|
|
953
964
|
}), t.forEach((r) => r(o));
|
|
954
965
|
},
|
|
955
966
|
getUserAttributes() {
|
|
956
|
-
return
|
|
967
|
+
return w() ? JSON.parse(fe({
|
|
957
968
|
name: Ae,
|
|
958
969
|
canTrack: e
|
|
959
970
|
}) || "{}") : {};
|
|
@@ -968,23 +979,23 @@ function Vn() {
|
|
|
968
979
|
}
|
|
969
980
|
};
|
|
970
981
|
}
|
|
971
|
-
const at = Vn(),
|
|
982
|
+
const at = Vn(), ti = (e) => {
|
|
972
983
|
at.setUserAttributes(e);
|
|
973
984
|
}, G = (e) => {
|
|
974
985
|
const t = U(e) ? e : !0;
|
|
975
986
|
return at.setCanTrack(t), t;
|
|
976
987
|
};
|
|
977
|
-
function
|
|
988
|
+
function Nn() {
|
|
978
989
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
979
990
|
}
|
|
980
|
-
function
|
|
981
|
-
const e =
|
|
991
|
+
function Wn() {
|
|
992
|
+
const e = Nn().fetch;
|
|
982
993
|
if (typeof e > "u")
|
|
983
994
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
984
995
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
985
996
|
return e;
|
|
986
997
|
}
|
|
987
|
-
const On =
|
|
998
|
+
const On = Wn();
|
|
988
999
|
function pe(e, t = null, n = ".") {
|
|
989
1000
|
return Object.keys(e).reduce((o, r) => {
|
|
990
1001
|
const s = e[r], i = [t, r].filter(Boolean).join(n);
|
|
@@ -1050,8 +1061,8 @@ const Un = "v3", xe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ke = (
|
|
|
1050
1061
|
const O = pe({
|
|
1051
1062
|
sort: v
|
|
1052
1063
|
});
|
|
1053
|
-
for (const
|
|
1054
|
-
I.searchParams.set(
|
|
1064
|
+
for (const j in O)
|
|
1065
|
+
I.searchParams.set(j, JSON.stringify(O[j]));
|
|
1055
1066
|
}
|
|
1056
1067
|
const Te = {
|
|
1057
1068
|
...ln(),
|
|
@@ -1068,8 +1079,8 @@ const Un = "v3", xe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ke = (
|
|
|
1068
1079
|
const O = lt({
|
|
1069
1080
|
query: o
|
|
1070
1081
|
});
|
|
1071
|
-
for (const
|
|
1072
|
-
I.searchParams.set(
|
|
1082
|
+
for (const j in O)
|
|
1083
|
+
I.searchParams.set(j, JSON.stringify(O[j]));
|
|
1073
1084
|
}
|
|
1074
1085
|
return I;
|
|
1075
1086
|
}, Dn = (e) => {
|
|
@@ -1078,7 +1089,7 @@ const Un = "v3", xe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ke = (
|
|
|
1078
1089
|
n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
|
|
1079
1090
|
return t;
|
|
1080
1091
|
}, Ln = (e) => {
|
|
1081
|
-
if (
|
|
1092
|
+
if (w() && e.preview === "BUILDER_STUDIO") {
|
|
1082
1093
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
1083
1094
|
const t = Dn(e), {
|
|
1084
1095
|
userAttributes: n
|
|
@@ -1106,7 +1117,7 @@ const Hn = async (e) => {
|
|
|
1106
1117
|
return await (await n(t.href, o)).json();
|
|
1107
1118
|
}, jn = async (e, t, n = ke(e)) => {
|
|
1108
1119
|
const o = G(e.canTrack);
|
|
1109
|
-
if (n.search.includes("preview="), !o || !(
|
|
1120
|
+
if (n.search.includes("preview="), !o || !(w() || R === "reactNative"))
|
|
1110
1121
|
return t.results;
|
|
1111
1122
|
try {
|
|
1112
1123
|
const r = [];
|
|
@@ -1131,7 +1142,7 @@ async function Kn(e) {
|
|
|
1131
1142
|
}), n;
|
|
1132
1143
|
return jn(e, n);
|
|
1133
1144
|
}
|
|
1134
|
-
const
|
|
1145
|
+
const ni = async (e) => {
|
|
1135
1146
|
var o, r, s;
|
|
1136
1147
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1137
1148
|
...e,
|
|
@@ -1151,7 +1162,7 @@ const oi = async (e) => {
|
|
|
1151
1162
|
content: await ve(n)
|
|
1152
1163
|
};
|
|
1153
1164
|
}, Se = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1154
|
-
function
|
|
1165
|
+
function zn(e, t, n = {}) {
|
|
1155
1166
|
let o, r, s, i = null, l = 0;
|
|
1156
1167
|
const a = function() {
|
|
1157
1168
|
l = n.leading === !1 ? 0 : Date.now(), i = null, s = e.apply(o, r), i || (o = r = null);
|
|
@@ -1173,7 +1184,7 @@ function q(e, ...t) {
|
|
|
1173
1184
|
}
|
|
1174
1185
|
return n;
|
|
1175
1186
|
}
|
|
1176
|
-
function
|
|
1187
|
+
function qn(e) {
|
|
1177
1188
|
for (const t of e)
|
|
1178
1189
|
switch (t.trigger) {
|
|
1179
1190
|
case "pageLoad":
|
|
@@ -1230,7 +1241,7 @@ function Gn(e) {
|
|
|
1230
1241
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1231
1242
|
})) : e.repeat && o && !r && !l(n) && (o = !1, q(n.style, e.steps[0].styles));
|
|
1232
1243
|
}
|
|
1233
|
-
const i =
|
|
1244
|
+
const i = zn(s, 200, {
|
|
1234
1245
|
leading: !1
|
|
1235
1246
|
});
|
|
1236
1247
|
function l(h) {
|
|
@@ -1253,7 +1264,7 @@ const pt = (e) => Object.entries(e).map(([n, o]) => {
|
|
|
1253
1264
|
if (typeof o == "string")
|
|
1254
1265
|
return `${Se(n)}: ${o};`;
|
|
1255
1266
|
}).filter(U), Yn = (e) => pt(e).join(`
|
|
1256
|
-
`),
|
|
1267
|
+
`), oi = ({
|
|
1257
1268
|
mediaQuery: e,
|
|
1258
1269
|
className: t,
|
|
1259
1270
|
styles: n
|
|
@@ -1270,7 +1281,7 @@ function Xn({
|
|
|
1270
1281
|
}) {
|
|
1271
1282
|
return e;
|
|
1272
1283
|
}
|
|
1273
|
-
const
|
|
1284
|
+
const ri = ({
|
|
1274
1285
|
block: e,
|
|
1275
1286
|
context: t
|
|
1276
1287
|
}) => mt(Xn({
|
|
@@ -1367,22 +1378,22 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1367
1378
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1368
1379
|
e
|
|
1369
1380
|
), e;
|
|
1370
|
-
}), ro = () => import("./block-styles-
|
|
1381
|
+
}), ro = () => import("./block-styles-1zdZBD3_.js").then((e) => e.default).catch((e) => {
|
|
1371
1382
|
throw console.error(
|
|
1372
1383
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1373
1384
|
e
|
|
1374
1385
|
), e;
|
|
1375
|
-
}), so = () => import("./block-wrapper-
|
|
1386
|
+
}), so = () => import("./block-wrapper-mWQd3eds.js").then((e) => e.default).catch((e) => {
|
|
1376
1387
|
throw console.error(
|
|
1377
1388
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1378
1389
|
e
|
|
1379
1390
|
), e;
|
|
1380
|
-
}), io = () => import("./component-ref-
|
|
1391
|
+
}), io = () => import("./component-ref-fX9luBp4.js").then((e) => e.default).catch((e) => {
|
|
1381
1392
|
throw console.error(
|
|
1382
1393
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1383
1394
|
e
|
|
1384
1395
|
), e;
|
|
1385
|
-
}), ao = () => import("./repeated-block-
|
|
1396
|
+
}), ao = () => import("./repeated-block-s8wpauxV.js").then((e) => e.default).catch((e) => {
|
|
1386
1397
|
throw console.error(
|
|
1387
1398
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1388
1399
|
e
|
|
@@ -1390,11 +1401,11 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1390
1401
|
}), lo = g({
|
|
1391
1402
|
name: "block",
|
|
1392
1403
|
components: {
|
|
1393
|
-
BlockStyles:
|
|
1394
|
-
RepeatedBlock:
|
|
1395
|
-
ComponentRef:
|
|
1396
|
-
BlockWrapper:
|
|
1397
|
-
DynamicDiv:
|
|
1404
|
+
BlockStyles: K(ro),
|
|
1405
|
+
RepeatedBlock: K(ao),
|
|
1406
|
+
ComponentRef: K(io),
|
|
1407
|
+
BlockWrapper: K(so),
|
|
1408
|
+
DynamicDiv: K(oo)
|
|
1398
1409
|
},
|
|
1399
1410
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1400
1411
|
data() {
|
|
@@ -1407,7 +1418,7 @@ const ht = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1407
1418
|
},
|
|
1408
1419
|
mounted() {
|
|
1409
1420
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1410
|
-
t && e &&
|
|
1421
|
+
t && e && qn(
|
|
1411
1422
|
t.map((n) => ({
|
|
1412
1423
|
...n,
|
|
1413
1424
|
elementId: e
|
|
@@ -1490,7 +1501,7 @@ function co(e, t, n, o, r, s) {
|
|
|
1490
1501
|
context: e.context
|
|
1491
1502
|
}, null, 8, ["block", "context"]),
|
|
1492
1503
|
(m = e.blockComponent) != null && m.noWrap ? (c(), p($, { key: 1 }, [
|
|
1493
|
-
e.repeatItem ? (c(!0), p($, { key: 1 },
|
|
1504
|
+
e.repeatItem ? (c(!0), p($, { key: 1 }, N(e.repeatItem, (d, f) => (c(), y(h, {
|
|
1494
1505
|
key: f,
|
|
1495
1506
|
repeatContext: d.context,
|
|
1496
1507
|
block: d.block,
|
|
@@ -1509,7 +1520,7 @@ function co(e, t, n, o, r, s) {
|
|
|
1509
1520
|
isInteractive: e.componentRefProps.isInteractive
|
|
1510
1521
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1511
1522
|
], 64)) : (c(), p($, { key: 0 }, [
|
|
1512
|
-
e.repeatItem ? (c(!0), p($, { key: 1 },
|
|
1523
|
+
e.repeatItem ? (c(!0), p($, { key: 1 }, N(e.repeatItem, (d, f) => (c(), y(h, {
|
|
1513
1524
|
key: f,
|
|
1514
1525
|
repeatContext: d.context,
|
|
1515
1526
|
block: d.block,
|
|
@@ -1521,7 +1532,7 @@ function co(e, t, n, o, r, s) {
|
|
|
1521
1532
|
block: e.processedBlock,
|
|
1522
1533
|
context: e.context
|
|
1523
1534
|
}, {
|
|
1524
|
-
default:
|
|
1535
|
+
default: W(() => [
|
|
1525
1536
|
P(l, {
|
|
1526
1537
|
componentRef: e.componentRefProps.componentRef,
|
|
1527
1538
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -1533,7 +1544,7 @@ function co(e, t, n, o, r, s) {
|
|
|
1533
1544
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1534
1545
|
isInteractive: e.componentRefProps.isInteractive
|
|
1535
1546
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1536
|
-
(c(!0), p($, null,
|
|
1547
|
+
(c(!0), p($, null, N(e.childrenWithoutParentComponent, (d, f) => (c(), y(a, {
|
|
1537
1548
|
key: d.id,
|
|
1538
1549
|
block: d,
|
|
1539
1550
|
registeredComponents: e.registeredComponents,
|
|
@@ -1546,7 +1557,7 @@ function co(e, t, n, o, r, s) {
|
|
|
1546
1557
|
], 64))
|
|
1547
1558
|
], 64)) : S("", !0);
|
|
1548
1559
|
}
|
|
1549
|
-
const ft = /* @__PURE__ */ b(lo, [["render", co]]),
|
|
1560
|
+
const ft = /* @__PURE__ */ b(lo, [["render", co]]), si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1550
1561
|
__proto__: null,
|
|
1551
1562
|
default: ft
|
|
1552
1563
|
}, Symbol.toStringTag, { value: "Module" })), uo = g({
|
|
@@ -1608,7 +1619,7 @@ const ft = /* @__PURE__ */ b(lo, [["render", co]]), ii = /* @__PURE__ */ Object.
|
|
|
1608
1619
|
}
|
|
1609
1620
|
});
|
|
1610
1621
|
function po(e, t, n, o, r, s) {
|
|
1611
|
-
return c(), y(
|
|
1622
|
+
return c(), y(z(e.BlocksWrapper), C({
|
|
1612
1623
|
ref: "blocksWrapperRef",
|
|
1613
1624
|
class: e.className + " component-tqyw9m0iue",
|
|
1614
1625
|
"builder-path": e.dataPath,
|
|
@@ -1618,7 +1629,7 @@ function po(e, t, n, o, r, s) {
|
|
|
1618
1629
|
onMouseEnter: (i) => e.onMouseEnter(),
|
|
1619
1630
|
onKeyPress: (i) => e.onClick()
|
|
1620
1631
|
}, { ...e.BlocksWrapperProps }), {
|
|
1621
|
-
default:
|
|
1632
|
+
default: W(() => [
|
|
1622
1633
|
B(e.$slots, "default", {}, void 0, !0)
|
|
1623
1634
|
]),
|
|
1624
1635
|
_: 3
|
|
@@ -1654,8 +1665,8 @@ function fo(e, t, n, o, r, s) {
|
|
|
1654
1665
|
BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapper),
|
|
1655
1666
|
BlocksWrapperProps: ((h = e.context) == null ? void 0 : h.BlocksWrapperProps) || ((m = e.builderContext) == null ? void 0 : m.BlocksWrapperProps)
|
|
1656
1667
|
}, {
|
|
1657
|
-
default:
|
|
1658
|
-
e.blocks ? (c(!0), p($, { key: 0 },
|
|
1668
|
+
default: W(() => [
|
|
1669
|
+
e.blocks ? (c(!0), p($, { key: 0 }, N(e.blocks, (d, f) => {
|
|
1659
1670
|
var v;
|
|
1660
1671
|
return c(), y(i, {
|
|
1661
1672
|
key: d.id,
|
|
@@ -1669,7 +1680,7 @@ function fo(e, t, n, o, r, s) {
|
|
|
1669
1680
|
_: 1
|
|
1670
1681
|
}, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
1671
1682
|
}
|
|
1672
|
-
const
|
|
1683
|
+
const H = /* @__PURE__ */ b(ho, [["render", fo]]), go = g({
|
|
1673
1684
|
name: "dynamic-div",
|
|
1674
1685
|
props: []
|
|
1675
1686
|
});
|
|
@@ -1692,8 +1703,13 @@ const X = /* @__PURE__ */ b(go, [["render", bo]]), yo = /* @__PURE__ */ Object.f
|
|
|
1692
1703
|
name: "inlined-styles",
|
|
1693
1704
|
props: ["styles", "id", "nonce"]
|
|
1694
1705
|
}), gt = {
|
|
1706
|
+
xsmall: {
|
|
1707
|
+
min: 0,
|
|
1708
|
+
default: 160,
|
|
1709
|
+
max: 320
|
|
1710
|
+
},
|
|
1695
1711
|
small: {
|
|
1696
|
-
min:
|
|
1712
|
+
min: 321,
|
|
1697
1713
|
default: 321,
|
|
1698
1714
|
max: 640
|
|
1699
1715
|
},
|
|
@@ -1707,38 +1723,50 @@ const X = /* @__PURE__ */ b(go, [["render", bo]]), yo = /* @__PURE__ */ Object.f
|
|
|
1707
1723
|
default: 991,
|
|
1708
1724
|
max: 1200
|
|
1709
1725
|
}
|
|
1710
|
-
},
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
const
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1726
|
+
}, ii = (e, t = gt) => `@media (max-width: ${t[e].max}px)`, ko = (e) => {
|
|
1727
|
+
const t = he(gt);
|
|
1728
|
+
if (!e)
|
|
1729
|
+
return t;
|
|
1730
|
+
const {
|
|
1731
|
+
xsmall: n,
|
|
1732
|
+
small: o,
|
|
1733
|
+
medium: r
|
|
1734
|
+
} = e;
|
|
1735
|
+
if (n) {
|
|
1736
|
+
const a = Math.floor(n / 2);
|
|
1737
|
+
t.xsmall = {
|
|
1738
|
+
max: n,
|
|
1739
|
+
min: a,
|
|
1740
|
+
default: a + 1
|
|
1741
|
+
};
|
|
1742
|
+
}
|
|
1743
|
+
if (!o || !r)
|
|
1744
|
+
return t;
|
|
1745
|
+
const s = n ? t.xsmall.max + 1 : Math.floor(o / 2);
|
|
1746
|
+
t.small = {
|
|
1747
|
+
max: o,
|
|
1748
|
+
min: s,
|
|
1749
|
+
default: s + 1
|
|
1722
1750
|
};
|
|
1723
|
-
const
|
|
1724
|
-
|
|
1725
|
-
max:
|
|
1726
|
-
min:
|
|
1727
|
-
default:
|
|
1751
|
+
const i = t.small.max + 1;
|
|
1752
|
+
t.medium = {
|
|
1753
|
+
max: r,
|
|
1754
|
+
min: i,
|
|
1755
|
+
default: i + 1
|
|
1728
1756
|
};
|
|
1729
|
-
const
|
|
1730
|
-
return
|
|
1757
|
+
const l = t.medium.max + 1;
|
|
1758
|
+
return t.large = {
|
|
1731
1759
|
max: 2e3,
|
|
1732
1760
|
// TODO: decide upper limit
|
|
1733
|
-
min:
|
|
1734
|
-
default:
|
|
1735
|
-
},
|
|
1761
|
+
min: l,
|
|
1762
|
+
default: l + 1
|
|
1763
|
+
}, t;
|
|
1736
1764
|
}, vo = (e) => `builder-columns ${e}-breakpoints`, So = g({
|
|
1737
1765
|
name: "builder-columns",
|
|
1738
1766
|
components: {
|
|
1739
1767
|
InlinedStyles: Ce,
|
|
1740
1768
|
DynamicRenderer: me,
|
|
1741
|
-
Blocks:
|
|
1769
|
+
Blocks: H,
|
|
1742
1770
|
DynamicDiv: X
|
|
1743
1771
|
},
|
|
1744
1772
|
props: [
|
|
@@ -1877,7 +1905,7 @@ const X = /* @__PURE__ */ b(go, [["render", bo]]), yo = /* @__PURE__ */ Object.f
|
|
|
1877
1905
|
function Co(e, t, n, o, r, s) {
|
|
1878
1906
|
var u;
|
|
1879
1907
|
const i = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1880
|
-
return c(), p("div",
|
|
1908
|
+
return c(), p("div", C({
|
|
1881
1909
|
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
|
|
1882
1910
|
style: e.columnsCssVars()
|
|
1883
1911
|
}, {}), [
|
|
@@ -1887,13 +1915,13 @@ function Co(e, t, n, o, r, s) {
|
|
|
1887
1915
|
styles: e.columnsStyles(),
|
|
1888
1916
|
nonce: e.builderContext.nonce
|
|
1889
1917
|
}, null, 8, ["styles", "nonce"])) : S("", !0),
|
|
1890
|
-
(c(!0), p($, null,
|
|
1918
|
+
(c(!0), p($, null, N(e.columns, (h, m) => (c(), y(a, {
|
|
1891
1919
|
key: m,
|
|
1892
1920
|
TagName: e.getTagName(h),
|
|
1893
1921
|
actionAttributes: {},
|
|
1894
1922
|
attributes: e.getAttributes(h, m)
|
|
1895
1923
|
}, {
|
|
1896
|
-
default:
|
|
1924
|
+
default: W(() => [
|
|
1897
1925
|
P(l, {
|
|
1898
1926
|
path: `columns.${m}.blocks`,
|
|
1899
1927
|
parent: e.builderBlock.id,
|
|
@@ -2006,13 +2034,13 @@ const Po = g({
|
|
|
2006
2034
|
function Vo(e, t, n, o, r, s) {
|
|
2007
2035
|
var i, l, a, u, h, m;
|
|
2008
2036
|
return c(), p($, null, [
|
|
2009
|
-
|
|
2037
|
+
M("picture", null, [
|
|
2010
2038
|
e.webpSrcSet ? (c(), p("source", {
|
|
2011
2039
|
key: 0,
|
|
2012
2040
|
type: "image/webp",
|
|
2013
2041
|
srcset: e.webpSrcSet
|
|
2014
2042
|
}, null, 8, Bo)) : S("", !0),
|
|
2015
|
-
|
|
2043
|
+
M("img", {
|
|
2016
2044
|
loading: e.highPriority ? "eager" : "lazy",
|
|
2017
2045
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
2018
2046
|
alt: e.altText,
|
|
@@ -2043,7 +2071,7 @@ function Vo(e, t, n, o, r, s) {
|
|
|
2043
2071
|
])) : S("", !0)
|
|
2044
2072
|
], 64);
|
|
2045
2073
|
}
|
|
2046
|
-
const
|
|
2074
|
+
const No = /* @__PURE__ */ b(Po, [["render", Vo], ["__scopeId", "data-v-33d4f353"]]), Wo = g({
|
|
2047
2075
|
name: "builder-section-component",
|
|
2048
2076
|
props: ["attributes", "maxWidth"],
|
|
2049
2077
|
data() {
|
|
@@ -2051,7 +2079,7 @@ const Wo = /* @__PURE__ */ b(Po, [["render", Vo], ["__scopeId", "data-v-33d4f353
|
|
|
2051
2079
|
}
|
|
2052
2080
|
});
|
|
2053
2081
|
function Oo(e, t, n, o, r, s) {
|
|
2054
|
-
return c(), p("section",
|
|
2082
|
+
return c(), p("section", C({
|
|
2055
2083
|
style: {
|
|
2056
2084
|
width: "100%",
|
|
2057
2085
|
alignSelf: "stretch",
|
|
@@ -2068,7 +2096,7 @@ function Oo(e, t, n, o, r, s) {
|
|
|
2068
2096
|
B(e.$slots, "default")
|
|
2069
2097
|
], 16);
|
|
2070
2098
|
}
|
|
2071
|
-
const Fo = /* @__PURE__ */ b(
|
|
2099
|
+
const Fo = /* @__PURE__ */ b(Wo, [["render", Oo]]), se = {
|
|
2072
2100
|
"@type": "@builder.io/sdk:Element",
|
|
2073
2101
|
layerName: "Accordion item title",
|
|
2074
2102
|
responsiveStyles: {
|
|
@@ -2194,7 +2222,7 @@ const Fo = /* @__PURE__ */ b(No, [["render", Oo]]), se = {
|
|
|
2194
2222
|
}
|
|
2195
2223
|
}, Do = (e) => e.toString(), Lo = g({
|
|
2196
2224
|
name: "builder-accordion",
|
|
2197
|
-
components: { Blocks:
|
|
2225
|
+
components: { Blocks: H },
|
|
2198
2226
|
props: [
|
|
2199
2227
|
"grid",
|
|
2200
2228
|
"oneAtATime",
|
|
@@ -2294,8 +2322,8 @@ function Ho(e, t, n, o, r, s) {
|
|
|
2294
2322
|
class: "builder-accordion",
|
|
2295
2323
|
style: F(e.accordionStyles)
|
|
2296
2324
|
}, [
|
|
2297
|
-
(c(!0), p($, null,
|
|
2298
|
-
|
|
2325
|
+
(c(!0), p($, null, N(e.items, (l, a) => (c(), p($, { key: a }, [
|
|
2326
|
+
M("div", {
|
|
2299
2327
|
class: J(e.getAccordionTitleClassName(a)),
|
|
2300
2328
|
style: F({
|
|
2301
2329
|
...e.accordionTitleStyles,
|
|
@@ -2369,7 +2397,7 @@ const jo = /* @__PURE__ */ b(Lo, [["render", Ho]]), Ko = {
|
|
|
2369
2397
|
shouldReceiveBuilderProps: {
|
|
2370
2398
|
builderLinkComponent: !0
|
|
2371
2399
|
}
|
|
2372
|
-
},
|
|
2400
|
+
}, zo = {
|
|
2373
2401
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2374
2402
|
name: "Columns",
|
|
2375
2403
|
isRSC: !0,
|
|
@@ -2576,7 +2604,7 @@ const jo = /* @__PURE__ */ b(Lo, [["render", Ho]]), Ko = {
|
|
|
2576
2604
|
builderComponents: !0,
|
|
2577
2605
|
builderLinkComponent: !0
|
|
2578
2606
|
}
|
|
2579
|
-
},
|
|
2607
|
+
}, qo = {
|
|
2580
2608
|
name: "Fragment",
|
|
2581
2609
|
static: !0,
|
|
2582
2610
|
hidden: !0,
|
|
@@ -2758,13 +2786,13 @@ const jo = /* @__PURE__ */ b(Lo, [["render", Ho]]), Ko = {
|
|
|
2758
2786
|
}
|
|
2759
2787
|
}, Qo = g({
|
|
2760
2788
|
name: "builder-slot",
|
|
2761
|
-
components: { Blocks:
|
|
2789
|
+
components: { Blocks: H },
|
|
2762
2790
|
props: ["builderContext", "name", "builderComponents"]
|
|
2763
2791
|
});
|
|
2764
2792
|
function Zo(e, t, n, o, r, s) {
|
|
2765
2793
|
var l, a, u;
|
|
2766
2794
|
const i = k("Blocks");
|
|
2767
|
-
return c(), p("div",
|
|
2795
|
+
return c(), p("div", C(
|
|
2768
2796
|
{ style: {
|
|
2769
2797
|
pointerEvents: "auto"
|
|
2770
2798
|
} },
|
|
@@ -2963,7 +2991,7 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
|
|
|
2963
2991
|
}
|
|
2964
2992
|
}, nr = g({
|
|
2965
2993
|
name: "builder-tabs",
|
|
2966
|
-
components: { Blocks:
|
|
2994
|
+
components: { Blocks: H },
|
|
2967
2995
|
props: [
|
|
2968
2996
|
"defaultActiveTab",
|
|
2969
2997
|
"tabs",
|
|
@@ -2990,7 +3018,7 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
|
|
|
2990
3018
|
function sr(e, t, n, o, r, s) {
|
|
2991
3019
|
const i = k("Blocks");
|
|
2992
3020
|
return c(), p("div", null, [
|
|
2993
|
-
|
|
3021
|
+
M("div", {
|
|
2994
3022
|
class: "builder-tabs-wrap",
|
|
2995
3023
|
style: F({
|
|
2996
3024
|
display: "flex",
|
|
@@ -2999,7 +3027,7 @@ function sr(e, t, n, o, r, s) {
|
|
|
2999
3027
|
overflow: "auto"
|
|
3000
3028
|
})
|
|
3001
3029
|
}, [
|
|
3002
|
-
(c(!0), p($, null,
|
|
3030
|
+
(c(!0), p($, null, N(e.tabs, (l, a) => (c(), p("span", {
|
|
3003
3031
|
key: a,
|
|
3004
3032
|
class: J(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
3005
3033
|
style: F({
|
|
@@ -3436,7 +3464,7 @@ const wr = /* @__PURE__ */ b(vr, [["render", Cr]]), Tr = {
|
|
|
3436
3464
|
return Ir.includes(e) ? e : "production";
|
|
3437
3465
|
}, Rr = g({
|
|
3438
3466
|
name: "builder-form-component",
|
|
3439
|
-
components: { Blocks:
|
|
3467
|
+
components: { Blocks: H },
|
|
3440
3468
|
props: [
|
|
3441
3469
|
"builderContext",
|
|
3442
3470
|
"previewState",
|
|
@@ -3522,7 +3550,7 @@ const wr = /* @__PURE__ */ b(vr, [["render", Cr]]), Tr = {
|
|
|
3522
3550
|
else {
|
|
3523
3551
|
const d = {};
|
|
3524
3552
|
Array.from(l).forEach(({ value: f, key: v }) => {
|
|
3525
|
-
|
|
3553
|
+
ze(d, v, f);
|
|
3526
3554
|
}), s = JSON.stringify(d);
|
|
3527
3555
|
}
|
|
3528
3556
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -3593,7 +3621,7 @@ const wr = /* @__PURE__ */ b(vr, [["render", Cr]]), Tr = {
|
|
|
3593
3621
|
};
|
|
3594
3622
|
function Br(e, t, n, o, r, s) {
|
|
3595
3623
|
const i = k("Blocks");
|
|
3596
|
-
return c(), p("form",
|
|
3624
|
+
return c(), p("form", C({
|
|
3597
3625
|
validate: e.validate,
|
|
3598
3626
|
ref: "formRef",
|
|
3599
3627
|
action: !e.sendWithJs && e.action,
|
|
@@ -3688,9 +3716,9 @@ const Ar = /* @__PURE__ */ b(Rr, [["render", Br], ["__scopeId", "data-v-4ef43cdd
|
|
|
3688
3716
|
data() {
|
|
3689
3717
|
return { isEditing: E, filterAttrs: V };
|
|
3690
3718
|
}
|
|
3691
|
-
}),
|
|
3692
|
-
function
|
|
3693
|
-
return c(), p("input",
|
|
3719
|
+
}), Nr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3720
|
+
function Wr(e, t, n, o, r, s) {
|
|
3721
|
+
return c(), p("input", C({
|
|
3694
3722
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3695
3723
|
placeholder: e.placeholder,
|
|
3696
3724
|
type: e.type,
|
|
@@ -3698,9 +3726,9 @@ function Nr(e, t, n, o, r, s) {
|
|
|
3698
3726
|
value: e.value,
|
|
3699
3727
|
defaultValue: e.defaultValue,
|
|
3700
3728
|
required: e.required
|
|
3701
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
3729
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Nr);
|
|
3702
3730
|
}
|
|
3703
|
-
const Or = /* @__PURE__ */ b(Vr, [["render",
|
|
3731
|
+
const Or = /* @__PURE__ */ b(Vr, [["render", Wr]]), Fr = {
|
|
3704
3732
|
name: "Form:Select",
|
|
3705
3733
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3706
3734
|
defaultStyles: {
|
|
@@ -3750,14 +3778,14 @@ const Or = /* @__PURE__ */ b(Vr, [["render", Nr]]), Fr = {
|
|
|
3750
3778
|
}
|
|
3751
3779
|
}), Dr = ["value", "defaultValue", "name", "required"], Lr = ["value"];
|
|
3752
3780
|
function Mr(e, t, n, o, r, s) {
|
|
3753
|
-
return c(), p("select",
|
|
3781
|
+
return c(), p("select", C({
|
|
3754
3782
|
value: e.value,
|
|
3755
3783
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3756
3784
|
defaultValue: e.defaultValue,
|
|
3757
3785
|
name: e.name,
|
|
3758
3786
|
required: e.required
|
|
3759
3787
|
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3760
|
-
(c(!0), p($, null,
|
|
3788
|
+
(c(!0), p($, null, N(e.options, (i, l) => (c(), p("option", {
|
|
3761
3789
|
key: `${i.name}-${l}`,
|
|
3762
3790
|
value: i.value
|
|
3763
3791
|
}, ne(i.name || i.value), 9, Lr))), 128))
|
|
@@ -3795,10 +3823,10 @@ const Hr = /* @__PURE__ */ b(Ur, [["render", Mr]]), jr = {
|
|
|
3795
3823
|
return { filterAttrs: V };
|
|
3796
3824
|
}
|
|
3797
3825
|
});
|
|
3798
|
-
function
|
|
3799
|
-
return c(), p("button",
|
|
3826
|
+
function zr(e, t, n, o, r, s) {
|
|
3827
|
+
return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ne(e.text), 17);
|
|
3800
3828
|
}
|
|
3801
|
-
const
|
|
3829
|
+
const qr = /* @__PURE__ */ b(Kr, [["render", zr]]), Jr = {
|
|
3802
3830
|
name: "Form:TextArea",
|
|
3803
3831
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3804
3832
|
inputs: [{
|
|
@@ -3849,7 +3877,7 @@ const zr = /* @__PURE__ */ b(Kr, [["render", qr]]), Jr = {
|
|
|
3849
3877
|
}
|
|
3850
3878
|
}), Yr = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
3851
3879
|
function Xr(e, t, n, o, r, s) {
|
|
3852
|
-
return c(), p("textarea",
|
|
3880
|
+
return c(), p("textarea", C({
|
|
3853
3881
|
placeholder: e.placeholder,
|
|
3854
3882
|
name: e.name,
|
|
3855
3883
|
value: e.value,
|
|
@@ -3886,7 +3914,7 @@ const Qr = /* @__PURE__ */ b(Gr, [["render", Xr]]), Zr = {
|
|
|
3886
3914
|
}
|
|
3887
3915
|
}), es = ["alt", "src"];
|
|
3888
3916
|
function ts(e, t, n, o, r, s) {
|
|
3889
|
-
return c(), p("img",
|
|
3917
|
+
return c(), p("img", C({
|
|
3890
3918
|
style: {
|
|
3891
3919
|
objectFit: e.backgroundSize || "cover",
|
|
3892
3920
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -3983,6 +4011,7 @@ const ns = /* @__PURE__ */ b(_r, [["render", ts]]), os = {
|
|
|
3983
4011
|
}, rs = g({
|
|
3984
4012
|
name: "builder-video",
|
|
3985
4013
|
props: [
|
|
4014
|
+
"lazyLoad",
|
|
3986
4015
|
"autoPlay",
|
|
3987
4016
|
"muted",
|
|
3988
4017
|
"controls",
|
|
@@ -3993,12 +4022,39 @@ const ns = /* @__PURE__ */ b(_r, [["render", ts]]), os = {
|
|
|
3993
4022
|
"fit",
|
|
3994
4023
|
"position",
|
|
3995
4024
|
"aspectRatio",
|
|
3996
|
-
"video",
|
|
3997
4025
|
"posterImage",
|
|
3998
|
-
"
|
|
4026
|
+
"video",
|
|
3999
4027
|
"fitContent",
|
|
4000
4028
|
"builderBlock"
|
|
4001
4029
|
],
|
|
4030
|
+
data() {
|
|
4031
|
+
return { lazyVideoObserver: void 0 };
|
|
4032
|
+
},
|
|
4033
|
+
mounted() {
|
|
4034
|
+
if (this.lazyLoad) {
|
|
4035
|
+
const e = new IntersectionObserver(function(t) {
|
|
4036
|
+
t.forEach(function(n) {
|
|
4037
|
+
if (!n.isIntersecting)
|
|
4038
|
+
return;
|
|
4039
|
+
const o = n.target;
|
|
4040
|
+
try {
|
|
4041
|
+
Array.from(o.children).filter(
|
|
4042
|
+
(r) => r instanceof HTMLElement && r.tagName === "SOURCE"
|
|
4043
|
+
).forEach((r) => {
|
|
4044
|
+
const s = r.dataset.src;
|
|
4045
|
+
s && (r.src = s);
|
|
4046
|
+
}), o.load(), e.unobserve(o);
|
|
4047
|
+
} catch (r) {
|
|
4048
|
+
console.error("Error loading lazy video:", r);
|
|
4049
|
+
}
|
|
4050
|
+
});
|
|
4051
|
+
});
|
|
4052
|
+
this.$refs.videoRef && e.observe(this.$refs.videoRef), this.lazyVideoObserver = e;
|
|
4053
|
+
}
|
|
4054
|
+
},
|
|
4055
|
+
unmounted() {
|
|
4056
|
+
this.lazyVideoObserver && this.lazyVideoObserver.disconnect();
|
|
4057
|
+
},
|
|
4002
4058
|
computed: {
|
|
4003
4059
|
videoProps() {
|
|
4004
4060
|
return {
|
|
@@ -4027,14 +4083,14 @@ const ns = /* @__PURE__ */ b(_r, [["render", ts]]), os = {
|
|
|
4027
4083
|
}
|
|
4028
4084
|
}), ss = { style: {
|
|
4029
4085
|
position: "relative"
|
|
4030
|
-
} }, is = ["preload", "
|
|
4086
|
+
} }, is = ["preload", "poster"], as = {
|
|
4031
4087
|
key: 1,
|
|
4032
4088
|
style: {
|
|
4033
4089
|
display: "flex",
|
|
4034
4090
|
flexDirection: "column",
|
|
4035
4091
|
alignItems: "stretch"
|
|
4036
4092
|
}
|
|
4037
|
-
},
|
|
4093
|
+
}, ls = {
|
|
4038
4094
|
key: 2,
|
|
4039
4095
|
style: {
|
|
4040
4096
|
pointerEvents: "none",
|
|
@@ -4048,12 +4104,13 @@ const ns = /* @__PURE__ */ b(_r, [["render", ts]]), os = {
|
|
|
4048
4104
|
height: "100%"
|
|
4049
4105
|
}
|
|
4050
4106
|
};
|
|
4051
|
-
function
|
|
4107
|
+
function cs(e, t, n, o, r, s) {
|
|
4052
4108
|
var i, l, a, u, h, m, d;
|
|
4053
4109
|
return c(), p("div", ss, [
|
|
4054
|
-
|
|
4110
|
+
M("video", C({
|
|
4055
4111
|
class: "builder-video",
|
|
4056
|
-
|
|
4112
|
+
ref: "videoRef",
|
|
4113
|
+
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
4057
4114
|
style: {
|
|
4058
4115
|
width: "100%",
|
|
4059
4116
|
height: "100%",
|
|
@@ -4067,14 +4124,16 @@ function ds(e, t, n, o, r, s) {
|
|
|
4067
4124
|
position: "absolute"
|
|
4068
4125
|
} : null
|
|
4069
4126
|
},
|
|
4070
|
-
src: e.video || "no-src",
|
|
4071
4127
|
poster: e.posterImage
|
|
4072
4128
|
}, e.spreadProps), [
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4129
|
+
M("source", C(
|
|
4130
|
+
{ type: "video/mp4" },
|
|
4131
|
+
e.lazyLoad ? {
|
|
4132
|
+
"data-src": e.video
|
|
4133
|
+
} : {
|
|
4134
|
+
src: e.video
|
|
4135
|
+
}
|
|
4136
|
+
), null, 16)
|
|
4078
4137
|
], 16, is),
|
|
4079
4138
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (c(), p("div", {
|
|
4080
4139
|
key: 0,
|
|
@@ -4085,15 +4144,15 @@ function ds(e, t, n, o, r, s) {
|
|
|
4085
4144
|
fontSize: "0px"
|
|
4086
4145
|
})
|
|
4087
4146
|
}, null, 4)) : S("", !0),
|
|
4088
|
-
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), p("div",
|
|
4147
|
+
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), p("div", as, [
|
|
4089
4148
|
B(e.$slots, "default")
|
|
4090
4149
|
])) : S("", !0),
|
|
4091
|
-
(d = (m = e.builderBlock) == null ? void 0 : m.children) != null && d.length && !e.fitContent ? (c(), p("div",
|
|
4150
|
+
(d = (m = e.builderBlock) == null ? void 0 : m.children) != null && d.length && !e.fitContent ? (c(), p("div", ls, [
|
|
4092
4151
|
B(e.$slots, "default")
|
|
4093
4152
|
])) : S("", !0)
|
|
4094
4153
|
]);
|
|
4095
4154
|
}
|
|
4096
|
-
const
|
|
4155
|
+
const ds = /* @__PURE__ */ b(rs, [["render", cs]]), us = () => [{
|
|
4097
4156
|
component: gr,
|
|
4098
4157
|
...pr
|
|
4099
4158
|
}, {
|
|
@@ -4106,7 +4165,7 @@ const us = /* @__PURE__ */ b(rs, [["render", ds]]), ps = () => [{
|
|
|
4106
4165
|
component: Or,
|
|
4107
4166
|
...xr
|
|
4108
4167
|
}, {
|
|
4109
|
-
component:
|
|
4168
|
+
component: qr,
|
|
4110
4169
|
...jr
|
|
4111
4170
|
}, {
|
|
4112
4171
|
component: Hr,
|
|
@@ -4118,19 +4177,19 @@ const us = /* @__PURE__ */ b(rs, [["render", ds]]), ps = () => [{
|
|
|
4118
4177
|
component: ns,
|
|
4119
4178
|
...Zr
|
|
4120
4179
|
}, {
|
|
4121
|
-
component:
|
|
4180
|
+
component: ds,
|
|
4122
4181
|
...os
|
|
4123
|
-
}],
|
|
4182
|
+
}], Ne = () => [{
|
|
4124
4183
|
component: At,
|
|
4125
4184
|
...Ko
|
|
4126
4185
|
}, {
|
|
4127
4186
|
component: wo,
|
|
4128
|
-
...
|
|
4187
|
+
...zo
|
|
4129
4188
|
}, {
|
|
4130
4189
|
component: $o,
|
|
4131
|
-
...
|
|
4190
|
+
...qo
|
|
4132
4191
|
}, {
|
|
4133
|
-
component:
|
|
4192
|
+
component: No,
|
|
4134
4193
|
...Go
|
|
4135
4194
|
}, {
|
|
4136
4195
|
component: Fo,
|
|
@@ -4139,7 +4198,7 @@ const us = /* @__PURE__ */ b(rs, [["render", ds]]), ps = () => [{
|
|
|
4139
4198
|
component: _o,
|
|
4140
4199
|
...Xo
|
|
4141
4200
|
}, {
|
|
4142
|
-
component:
|
|
4201
|
+
component: Gs,
|
|
4143
4202
|
...er
|
|
4144
4203
|
}, {
|
|
4145
4204
|
component: ur,
|
|
@@ -4150,7 +4209,7 @@ const us = /* @__PURE__ */ b(rs, [["render", ds]]), ps = () => [{
|
|
|
4150
4209
|
}, {
|
|
4151
4210
|
component: jo,
|
|
4152
4211
|
...Uo
|
|
4153
|
-
}, ...
|
|
4212
|
+
}, ...us()], ps = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4154
4213
|
function getAndSetVariantId() {
|
|
4155
4214
|
function setCookie(name, value, days) {
|
|
4156
4215
|
let expires = '';
|
|
@@ -4206,7 +4265,7 @@ const us = /* @__PURE__ */ b(rs, [["render", ds]]), ps = () => [{
|
|
|
4206
4265
|
}).join('');
|
|
4207
4266
|
styleEl.innerHTML = newStyleStr;
|
|
4208
4267
|
}
|
|
4209
|
-
}`,
|
|
4268
|
+
}`, ms = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4210
4269
|
if (!navigator.cookieEnabled) {
|
|
4211
4270
|
return;
|
|
4212
4271
|
}
|
|
@@ -4244,25 +4303,25 @@ const us = /* @__PURE__ */ b(rs, [["render", ds]]), ps = () => [{
|
|
|
4244
4303
|
...t,
|
|
4245
4304
|
testVariationId: t.id,
|
|
4246
4305
|
id: e == null ? void 0 : e.id
|
|
4247
|
-
})),
|
|
4306
|
+
})), hs = ({
|
|
4248
4307
|
canTrack: e,
|
|
4249
4308
|
content: t
|
|
4250
|
-
}) => !(!(Z(t).length > 0) || !e),
|
|
4251
|
-
window.${yt} = ${
|
|
4252
|
-
window.${kt} = ${
|
|
4253
|
-
`,
|
|
4309
|
+
}) => !(!(Z(t).length > 0) || !e), fs = (e) => e === "react" || e === "reactNative", vt = fs(R), gs = () => `
|
|
4310
|
+
window.${yt} = ${ps}
|
|
4311
|
+
window.${kt} = ${ms}
|
|
4312
|
+
`, bs = (e, t) => `
|
|
4254
4313
|
window.${yt}(
|
|
4255
4314
|
"${t}",${JSON.stringify(e)}, ${vt}
|
|
4256
|
-
)`,
|
|
4315
|
+
)`, ys = ({
|
|
4257
4316
|
contentId: e,
|
|
4258
4317
|
variationId: t
|
|
4259
4318
|
}) => `window.${kt}(
|
|
4260
4319
|
"${t}", "${e}", ${vt}
|
|
4261
4320
|
)`;
|
|
4262
|
-
function
|
|
4321
|
+
function We(e) {
|
|
4263
4322
|
return Math.round(e * 1e3) / 1e3;
|
|
4264
4323
|
}
|
|
4265
|
-
const
|
|
4324
|
+
const ks = (e, t, n = !0) => {
|
|
4266
4325
|
if (!(e instanceof HTMLElement))
|
|
4267
4326
|
return null;
|
|
4268
4327
|
let o = n ? e : e.parentElement;
|
|
@@ -4273,20 +4332,20 @@ const vs = (e, t, n = !0) => {
|
|
|
4273
4332
|
return o;
|
|
4274
4333
|
} while (o = o.parentElement);
|
|
4275
4334
|
return null;
|
|
4276
|
-
},
|
|
4335
|
+
}, vs = (e) => ks(e, (t) => {
|
|
4277
4336
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4278
4337
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4279
4338
|
}), Oe = ({
|
|
4280
4339
|
event: e,
|
|
4281
4340
|
target: t
|
|
4282
4341
|
}) => {
|
|
4283
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s =
|
|
4342
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = We(o / n.width), i = We(r / n.height);
|
|
4284
4343
|
return {
|
|
4285
4344
|
x: s,
|
|
4286
4345
|
y: i
|
|
4287
4346
|
};
|
|
4288
|
-
},
|
|
4289
|
-
const t = e.target, n = t &&
|
|
4347
|
+
}, Ss = (e) => {
|
|
4348
|
+
const t = e.target, n = t && vs(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4290
4349
|
return {
|
|
4291
4350
|
targetBuilderElement: o || void 0,
|
|
4292
4351
|
metadata: {
|
|
@@ -4301,7 +4360,7 @@ const vs = (e, t, n = !0) => {
|
|
|
4301
4360
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4302
4361
|
}
|
|
4303
4362
|
};
|
|
4304
|
-
},
|
|
4363
|
+
}, Cs = ["svelte", "qwik", "vue"], ws = () => Cs.includes(R) && (E() || qe()), Ts = (e) => {
|
|
4305
4364
|
var s;
|
|
4306
4365
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((s = e == null ? void 0 : e.files) == null ? void 0 : s.regular);
|
|
4307
4366
|
let r = "";
|
|
@@ -4327,15 +4386,15 @@ font-weight: ${i};
|
|
|
4327
4386
|
`.trim());
|
|
4328
4387
|
}
|
|
4329
4388
|
return r;
|
|
4330
|
-
},
|
|
4389
|
+
}, Is = ({
|
|
4331
4390
|
customFonts: e
|
|
4332
4391
|
}) => {
|
|
4333
4392
|
var t;
|
|
4334
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4335
|
-
},
|
|
4393
|
+
return ((t = e == null ? void 0 : e.map((n) => Ts(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4394
|
+
}, $s = ({
|
|
4336
4395
|
cssCode: e,
|
|
4337
4396
|
contentId: t
|
|
4338
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4397
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Rs = `
|
|
4339
4398
|
.builder-button {
|
|
4340
4399
|
all: unset;
|
|
4341
4400
|
}
|
|
@@ -4352,7 +4411,7 @@ font-weight: ${i};
|
|
|
4352
4411
|
text-align: inherit;
|
|
4353
4412
|
font-family: inherit;
|
|
4354
4413
|
}
|
|
4355
|
-
`,
|
|
4414
|
+
`, Es = (e) => e ? "" : Rs, Ps = (e) => `variant-${e}`, Bs = g({
|
|
4356
4415
|
name: "enable-editor",
|
|
4357
4416
|
components: { DynamicDiv: X },
|
|
4358
4417
|
props: [
|
|
@@ -4379,8 +4438,8 @@ font-weight: ${i};
|
|
|
4379
4438
|
httpReqsPending: {},
|
|
4380
4439
|
clicked: !1,
|
|
4381
4440
|
builderContext: ce,
|
|
4382
|
-
needsElementRefDivForEditing:
|
|
4383
|
-
getWrapperClassName:
|
|
4441
|
+
needsElementRefDivForEditing: ws,
|
|
4442
|
+
getWrapperClassName: Ps
|
|
4384
4443
|
};
|
|
4385
4444
|
},
|
|
4386
4445
|
provide() {
|
|
@@ -4394,7 +4453,7 @@ font-weight: ${i};
|
|
|
4394
4453
|
},
|
|
4395
4454
|
mounted() {
|
|
4396
4455
|
var e, t;
|
|
4397
|
-
if (
|
|
4456
|
+
if (w()) {
|
|
4398
4457
|
if (E() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4399
4458
|
new CustomEvent("initeditingbldr")
|
|
4400
4459
|
), this.builderContextSignal.content && G(this.canTrack)) {
|
|
@@ -4408,7 +4467,7 @@ font-weight: ${i};
|
|
|
4408
4467
|
variationId: o !== r ? o : void 0
|
|
4409
4468
|
});
|
|
4410
4469
|
}
|
|
4411
|
-
|
|
4470
|
+
qe() && !E() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4412
4471
|
new CustomEvent("initpreviewingbldr")
|
|
4413
4472
|
);
|
|
4414
4473
|
}
|
|
@@ -4442,7 +4501,7 @@ font-weight: ${i};
|
|
|
4442
4501
|
}
|
|
4443
4502
|
},
|
|
4444
4503
|
unmounted() {
|
|
4445
|
-
|
|
4504
|
+
w() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
4446
4505
|
"builder:component:stateChangeListenerActivated",
|
|
4447
4506
|
this.emitStateUpdate
|
|
4448
4507
|
));
|
|
@@ -4535,7 +4594,7 @@ font-weight: ${i};
|
|
|
4535
4594
|
contentId: r,
|
|
4536
4595
|
apiKey: this.apiKey,
|
|
4537
4596
|
variationId: o !== r ? o : void 0,
|
|
4538
|
-
...
|
|
4597
|
+
...Ss(e),
|
|
4539
4598
|
unique: !this.clicked
|
|
4540
4599
|
});
|
|
4541
4600
|
}
|
|
@@ -4596,12 +4655,14 @@ font-weight: ${i};
|
|
|
4596
4655
|
} : {},
|
|
4597
4656
|
...this.trustedHosts ? {
|
|
4598
4657
|
trustedHosts: this.trustedHosts
|
|
4599
|
-
} : {}
|
|
4658
|
+
} : {},
|
|
4659
|
+
modelName: this.model ?? "",
|
|
4660
|
+
apiKey: this.apiKey
|
|
4600
4661
|
}), Object.values(
|
|
4601
4662
|
this.builderContextSignal.componentInfos
|
|
4602
4663
|
).forEach((t) => {
|
|
4603
4664
|
var n, o;
|
|
4604
|
-
if (!
|
|
4665
|
+
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
4605
4666
|
const r = on(t);
|
|
4606
4667
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
4607
4668
|
}
|
|
@@ -4616,7 +4677,7 @@ font-weight: ${i};
|
|
|
4616
4677
|
`builder.overrides.${n}`
|
|
4617
4678
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
4618
4679
|
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && ve({
|
|
4619
|
-
model: this.model
|
|
4680
|
+
model: this.model,
|
|
4620
4681
|
apiKey: this.apiKey,
|
|
4621
4682
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
4622
4683
|
...n === "BUILDER_STUDIO" && ((s = this.context) != null && s.symbolId) ? {
|
|
@@ -4630,9 +4691,9 @@ font-weight: ${i};
|
|
|
4630
4691
|
}
|
|
4631
4692
|
}
|
|
4632
4693
|
});
|
|
4633
|
-
function
|
|
4694
|
+
function As(e, t, n, o, r, s) {
|
|
4634
4695
|
var i, l, a;
|
|
4635
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (c(), y(
|
|
4696
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (c(), y(z(e.ContentWrapper), C({
|
|
4636
4697
|
key: 0,
|
|
4637
4698
|
ref: "elementRef",
|
|
4638
4699
|
onClick: (u) => e.onClick(u),
|
|
@@ -4645,27 +4706,27 @@ function xs(e, t, n, o, r, s) {
|
|
|
4645
4706
|
onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
|
|
4646
4707
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
4647
4708
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
4648
|
-
default:
|
|
4709
|
+
default: W(() => [
|
|
4649
4710
|
B(e.$slots, "default")
|
|
4650
4711
|
]),
|
|
4651
4712
|
_: 3
|
|
4652
4713
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
|
|
4653
4714
|
}
|
|
4654
|
-
const
|
|
4715
|
+
const xs = /* @__PURE__ */ b(Bs, [["render", As]]), Vs = g({
|
|
4655
4716
|
name: "content-styles",
|
|
4656
4717
|
components: { InlinedStyles: Ce },
|
|
4657
4718
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
4658
4719
|
data() {
|
|
4659
4720
|
return {
|
|
4660
4721
|
injectedStyles: `
|
|
4661
|
-
${
|
|
4722
|
+
${$s({
|
|
4662
4723
|
cssCode: this.cssCode,
|
|
4663
4724
|
contentId: this.contentId
|
|
4664
4725
|
})}
|
|
4665
|
-
${
|
|
4726
|
+
${Is({
|
|
4666
4727
|
customFonts: this.customFonts
|
|
4667
4728
|
})}
|
|
4668
|
-
${
|
|
4729
|
+
${Es(this.isNestedRender)}
|
|
4669
4730
|
`.trim()
|
|
4670
4731
|
};
|
|
4671
4732
|
}
|
|
@@ -4678,7 +4739,7 @@ function Ns(e, t, n, o, r, s) {
|
|
|
4678
4739
|
nonce: e.nonce
|
|
4679
4740
|
}, null, 8, ["styles", "nonce"]);
|
|
4680
4741
|
}
|
|
4681
|
-
const
|
|
4742
|
+
const Ws = /* @__PURE__ */ b(Vs, [["render", Ns]]), Os = ({
|
|
4682
4743
|
content: e,
|
|
4683
4744
|
data: t,
|
|
4684
4745
|
locale: n
|
|
@@ -4695,7 +4756,7 @@ const Os = /* @__PURE__ */ b(Ws, [["render", Ns]]), Fs = ({
|
|
|
4695
4756
|
locale: n
|
|
4696
4757
|
} : {}
|
|
4697
4758
|
};
|
|
4698
|
-
},
|
|
4759
|
+
}, Fs = ({
|
|
4699
4760
|
content: e,
|
|
4700
4761
|
data: t
|
|
4701
4762
|
}) => e ? {
|
|
@@ -4705,13 +4766,13 @@ const Os = /* @__PURE__ */ b(Ws, [["render", Ns]]), Fs = ({
|
|
|
4705
4766
|
...t
|
|
4706
4767
|
},
|
|
4707
4768
|
meta: e == null ? void 0 : e.meta
|
|
4708
|
-
} : void 0,
|
|
4769
|
+
} : void 0, Us = Tt, Ds = g({
|
|
4709
4770
|
name: "content-component",
|
|
4710
4771
|
components: {
|
|
4711
|
-
EnableEditor:
|
|
4772
|
+
EnableEditor: xs,
|
|
4712
4773
|
InlinedScript: bt,
|
|
4713
|
-
ContentStyles:
|
|
4714
|
-
Blocks:
|
|
4774
|
+
ContentStyles: Ws,
|
|
4775
|
+
Blocks: H,
|
|
4715
4776
|
DynamicDiv: X
|
|
4716
4777
|
},
|
|
4717
4778
|
props: [
|
|
@@ -4740,32 +4801,32 @@ const Os = /* @__PURE__ */ b(Ws, [["render", Ns]]), Fs = ({
|
|
|
4740
4801
|
data() {
|
|
4741
4802
|
var e, t;
|
|
4742
4803
|
return {
|
|
4743
|
-
scriptStr:
|
|
4804
|
+
scriptStr: ys({
|
|
4744
4805
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4745
4806
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
4746
4807
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4747
4808
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
4748
4809
|
}),
|
|
4749
4810
|
registeredComponents: [
|
|
4750
|
-
...
|
|
4811
|
+
...Ne(),
|
|
4751
4812
|
...this.customComponents || []
|
|
4752
4813
|
].reduce(
|
|
4753
4814
|
(n, { component: o, ...r }) => ({
|
|
4754
4815
|
...n,
|
|
4755
4816
|
[r.name]: {
|
|
4756
|
-
component:
|
|
4817
|
+
component: Us(o),
|
|
4757
4818
|
...te(r)
|
|
4758
4819
|
}
|
|
4759
4820
|
}),
|
|
4760
4821
|
{}
|
|
4761
4822
|
),
|
|
4762
4823
|
builderContextSignal: {
|
|
4763
|
-
content:
|
|
4824
|
+
content: Fs({
|
|
4764
4825
|
content: this.content,
|
|
4765
4826
|
data: this.data
|
|
4766
4827
|
}),
|
|
4767
4828
|
localState: void 0,
|
|
4768
|
-
rootState:
|
|
4829
|
+
rootState: Os({
|
|
4769
4830
|
content: this.content,
|
|
4770
4831
|
data: this.data,
|
|
4771
4832
|
locale: this.locale
|
|
@@ -4776,7 +4837,7 @@ const Os = /* @__PURE__ */ b(Ws, [["render", Ns]]), Fs = ({
|
|
|
4776
4837
|
apiKey: this.apiKey,
|
|
4777
4838
|
apiVersion: this.apiVersion,
|
|
4778
4839
|
componentInfos: [
|
|
4779
|
-
...
|
|
4840
|
+
...Ne(),
|
|
4780
4841
|
...this.customComponents || []
|
|
4781
4842
|
].reduce(
|
|
4782
4843
|
(n, { component: o, ...r }) => ({
|
|
@@ -4789,7 +4850,7 @@ const Os = /* @__PURE__ */ b(Ws, [["render", Ns]]), Fs = ({
|
|
|
4789
4850
|
BlocksWrapper: this.blocksWrapper || "div",
|
|
4790
4851
|
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
4791
4852
|
nonce: this.nonce || "",
|
|
4792
|
-
model: this.model
|
|
4853
|
+
model: this.model
|
|
4793
4854
|
},
|
|
4794
4855
|
TARGET: R
|
|
4795
4856
|
};
|
|
@@ -4825,9 +4886,9 @@ const Os = /* @__PURE__ */ b(Ws, [["render", Ns]]), Fs = ({
|
|
|
4825
4886
|
}
|
|
4826
4887
|
}
|
|
4827
4888
|
});
|
|
4828
|
-
function
|
|
4889
|
+
function Ls(e, t, n, o, r, s) {
|
|
4829
4890
|
const i = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
4830
|
-
return c(), y(u,
|
|
4891
|
+
return c(), y(u, C({
|
|
4831
4892
|
apiHost: e.apiHost,
|
|
4832
4893
|
nonce: e.nonce,
|
|
4833
4894
|
content: e.content,
|
|
@@ -4845,7 +4906,7 @@ function Ms(e, t, n, o, r, s) {
|
|
|
4845
4906
|
trustedHosts: e.trustedHosts,
|
|
4846
4907
|
isNestedRender: e.isNestedRender
|
|
4847
4908
|
}, {}), {
|
|
4848
|
-
default:
|
|
4909
|
+
default: W(() => {
|
|
4849
4910
|
var h, m, d, f, v, T, D;
|
|
4850
4911
|
return [
|
|
4851
4912
|
e.isSsrAbTest ? (c(), y(i, {
|
|
@@ -4873,12 +4934,12 @@ function Ms(e, t, n, o, r, s) {
|
|
|
4873
4934
|
_: 1
|
|
4874
4935
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
4875
4936
|
}
|
|
4876
|
-
const
|
|
4937
|
+
const Ms = /* @__PURE__ */ b(Ds, [["render", Ls]]), Hs = g({
|
|
4877
4938
|
name: "content-variants",
|
|
4878
4939
|
components: {
|
|
4879
4940
|
InlinedScript: bt,
|
|
4880
4941
|
InlinedStyles: Ce,
|
|
4881
|
-
ContentComponent:
|
|
4942
|
+
ContentComponent: Ms
|
|
4882
4943
|
},
|
|
4883
4944
|
props: [
|
|
4884
4945
|
"canTrack",
|
|
@@ -4903,12 +4964,12 @@ const Hs = /* @__PURE__ */ b(Ls, [["render", Ms]]), js = g({
|
|
|
4903
4964
|
],
|
|
4904
4965
|
data() {
|
|
4905
4966
|
return {
|
|
4906
|
-
shouldRenderVariants:
|
|
4967
|
+
shouldRenderVariants: hs({
|
|
4907
4968
|
canTrack: G(this.canTrack),
|
|
4908
4969
|
content: this.content
|
|
4909
4970
|
}),
|
|
4910
4971
|
TARGET: R,
|
|
4911
|
-
getInitVariantsFnsScriptString:
|
|
4972
|
+
getInitVariantsFnsScriptString: gs,
|
|
4912
4973
|
getVariants: Z
|
|
4913
4974
|
};
|
|
4914
4975
|
},
|
|
@@ -4917,7 +4978,7 @@ const Hs = /* @__PURE__ */ b(Ls, [["render", Ms]]), js = g({
|
|
|
4917
4978
|
computed: {
|
|
4918
4979
|
updateCookieAndStylesScriptStr() {
|
|
4919
4980
|
var e;
|
|
4920
|
-
return
|
|
4981
|
+
return bs(
|
|
4921
4982
|
Z(this.content).map((t) => ({
|
|
4922
4983
|
id: t.testVariationId,
|
|
4923
4984
|
testRatio: t.testRatio
|
|
@@ -4940,7 +5001,7 @@ const Hs = /* @__PURE__ */ b(Ls, [["render", Ms]]), js = g({
|
|
|
4940
5001
|
}
|
|
4941
5002
|
}
|
|
4942
5003
|
});
|
|
4943
|
-
function
|
|
5004
|
+
function js(e, t, n, o, r, s) {
|
|
4944
5005
|
const i = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
4945
5006
|
return c(), p($, null, [
|
|
4946
5007
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (c(), y(i, {
|
|
@@ -4960,7 +5021,7 @@ function Ks(e, t, n, o, r, s) {
|
|
|
4960
5021
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
4961
5022
|
nonce: e.nonce || ""
|
|
4962
5023
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
4963
|
-
(c(!0), p($, null,
|
|
5024
|
+
(c(!0), p($, null, N(e.getVariants(e.content), (u, h) => (c(), y(a, C({
|
|
4964
5025
|
key: u.testVariationId,
|
|
4965
5026
|
apiHost: e.apiHost,
|
|
4966
5027
|
isNestedRender: e.isNestedRender,
|
|
@@ -4985,7 +5046,7 @@ function Ks(e, t, n, o, r, s) {
|
|
|
4985
5046
|
trustedHosts: e.trustedHosts
|
|
4986
5047
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
4987
5048
|
], 64)) : S("", !0),
|
|
4988
|
-
P(a,
|
|
5049
|
+
P(a, C({
|
|
4989
5050
|
apiHost: e.apiHost,
|
|
4990
5051
|
nonce: e.nonce,
|
|
4991
5052
|
isNestedRender: e.isNestedRender,
|
|
@@ -5012,7 +5073,7 @@ function Ks(e, t, n, o, r, s) {
|
|
|
5012
5073
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5013
5074
|
], 64);
|
|
5014
5075
|
}
|
|
5015
|
-
const
|
|
5076
|
+
const Ks = /* @__PURE__ */ b(Hs, [["render", js]]), zs = async ({
|
|
5016
5077
|
builderContextValue: e,
|
|
5017
5078
|
symbol: t
|
|
5018
5079
|
}) => {
|
|
@@ -5030,9 +5091,9 @@ const qs = /* @__PURE__ */ b(js, [["render", Ks]]), zs = async ({
|
|
|
5030
5091
|
}).catch((n) => {
|
|
5031
5092
|
A.error("Could not fetch symbol content: ", n);
|
|
5032
5093
|
});
|
|
5033
|
-
},
|
|
5094
|
+
}, qs = g({
|
|
5034
5095
|
name: "builder-symbol",
|
|
5035
|
-
components: { ContentVariants:
|
|
5096
|
+
components: { ContentVariants: Ks, DynamicDiv: X },
|
|
5036
5097
|
props: [
|
|
5037
5098
|
"symbol",
|
|
5038
5099
|
"attributes",
|
|
@@ -5090,10 +5151,10 @@ const qs = /* @__PURE__ */ b(js, [["render", Ks]]), zs = async ({
|
|
|
5090
5151
|
}
|
|
5091
5152
|
}
|
|
5092
5153
|
});
|
|
5093
|
-
function
|
|
5154
|
+
function Js(e, t, n, o, r, s) {
|
|
5094
5155
|
var l, a, u, h, m;
|
|
5095
5156
|
const i = k("ContentVariants");
|
|
5096
|
-
return c(), p("div",
|
|
5157
|
+
return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5097
5158
|
P(i, {
|
|
5098
5159
|
nonce: e.builderContext.nonce,
|
|
5099
5160
|
isNestedRender: !0,
|
|
@@ -5110,7 +5171,7 @@ function Gs(e, t, n, o, r, s) {
|
|
|
5110
5171
|
...(h = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : h.state
|
|
5111
5172
|
},
|
|
5112
5173
|
canTrack: e.builderContext.canTrack,
|
|
5113
|
-
model: (m = e.symbol) == null ? void 0 : m.model,
|
|
5174
|
+
model: ((m = e.symbol) == null ? void 0 : m.model) ?? "",
|
|
5114
5175
|
content: e.contentToUse,
|
|
5115
5176
|
linkComponent: e.builderLinkComponent,
|
|
5116
5177
|
blocksWrapper: e.blocksWrapper,
|
|
@@ -5118,7 +5179,7 @@ function Gs(e, t, n, o, r, s) {
|
|
|
5118
5179
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5119
5180
|
], 16);
|
|
5120
5181
|
}
|
|
5121
|
-
const
|
|
5182
|
+
const Gs = /* @__PURE__ */ b(qs, [["render", Js]]);
|
|
5122
5183
|
export {
|
|
5123
5184
|
jn as A,
|
|
5124
5185
|
ft as B,
|
|
@@ -5126,37 +5187,37 @@ export {
|
|
|
5126
5187
|
Kn as D,
|
|
5127
5188
|
ve as E,
|
|
5128
5189
|
$o as F,
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5190
|
+
Qs as G,
|
|
5191
|
+
si as H,
|
|
5192
|
+
No as I,
|
|
5132
5193
|
Fo as S,
|
|
5133
5194
|
R as T,
|
|
5134
|
-
|
|
5195
|
+
ds as V,
|
|
5135
5196
|
Ce as _,
|
|
5136
|
-
|
|
5137
|
-
|
|
5197
|
+
oi as a,
|
|
5198
|
+
ii as b,
|
|
5138
5199
|
U as c,
|
|
5139
5200
|
Se as d,
|
|
5140
5201
|
b as e,
|
|
5141
5202
|
Y as f,
|
|
5142
5203
|
ko as g,
|
|
5143
|
-
|
|
5204
|
+
ri as h,
|
|
5144
5205
|
_ as i,
|
|
5145
5206
|
ce as j,
|
|
5146
5207
|
At as k,
|
|
5147
|
-
|
|
5208
|
+
Gs as l,
|
|
5148
5209
|
ur as m,
|
|
5149
|
-
|
|
5150
|
-
|
|
5210
|
+
H as n,
|
|
5211
|
+
Ks as o,
|
|
5151
5212
|
E as p,
|
|
5152
|
-
|
|
5213
|
+
qe as q,
|
|
5153
5214
|
on as r,
|
|
5154
|
-
|
|
5215
|
+
ti as s,
|
|
5155
5216
|
sn as t,
|
|
5156
|
-
|
|
5217
|
+
Zs as u,
|
|
5157
5218
|
Je as v,
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5219
|
+
Us as w,
|
|
5220
|
+
_s as x,
|
|
5221
|
+
ei as y,
|
|
5222
|
+
ni as z
|
|
5162
5223
|
};
|