@builder.io/sdk-vue 5.1.0 → 5.2.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-GjRYxPnU.cjs → awaiter-Xj7xgU8A.cjs} +1 -1
- package/lib/browser/{awaiter-5WjT5CVy.js → awaiter-fiHMd9OX.js} +1 -1
- package/lib/browser/block-wrapper-2d_iPFQQ.js +51 -0
- package/lib/browser/block-wrapper-lKLgKxgH.cjs +1 -0
- package/lib/browser/blocks/form/form/form.vue.d.ts +3 -3
- package/lib/browser/blocks/form/input/input.vue.d.ts +3 -3
- package/lib/browser/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/lib/browser/blocks/symbol/symbol.types.d.ts +2 -0
- package/lib/browser/component-ref-Bo_fwbYK.cjs +1 -0
- package/lib/browser/component-ref-YEfZKvMy.js +185 -0
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +9 -9
- package/lib/browser/components/content/components/styles.vue.d.ts +3 -3
- package/lib/browser/components/content/content.vue.d.ts +9 -9
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +9 -9
- package/lib/browser/components/inlined-script.vue.d.ts +3 -3
- package/lib/browser/components/inlined-styles.vue.d.ts +3 -3
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/evaluate/evaluate.d.ts +1 -1
- package/lib/browser/functions/evaluate/helpers.d.ts +9 -1
- package/lib/browser/functions/get-block-actions-handler.d.ts +2 -0
- package/lib/browser/functions/get-block-actions.d.ts +2 -0
- package/lib/{edge/get-block-properties--YFzBEV7.js → browser/get-block-properties-5nuoWf39.js} +9 -7
- package/lib/browser/get-block-properties-d-Ruoi4f.cjs +1 -0
- package/lib/browser/index-1GET5eOz.cjs +334 -0
- package/lib/browser/{index-EQdaCBDB.js → index-eVqO7_Qb.js} +475 -459
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-tO-V6Sv7.js → live-edit-9paJdIsz.js} +1 -1
- package/lib/browser/{live-edit-Jion_iv8.cjs → live-edit-ETOoXz63.cjs} +1 -1
- package/lib/browser/{repeated-block-kNj6mfjr.js → repeated-block-A24n6o-E.js} +2 -2
- package/lib/browser/{repeated-block-uNYlrd8d.cjs → repeated-block-RfWox6Ev.cjs} +1 -1
- package/lib/browser/{style-wrapper-jthdwC6f.cjs → style-wrapper-GTejPbe6.cjs} +1 -1
- package/lib/browser/{style-wrapper-CSSH3Epu.js → style-wrapper-tibcUSpL.js} +1 -1
- package/lib/edge/{awaiter-0PdAd6k-.cjs → awaiter-SdqgCFCT.cjs} +1 -1
- package/lib/edge/{awaiter-OJqvwrja.js → awaiter-rbgcBB2Y.js} +1 -1
- package/lib/edge/block-wrapper-DYh1gucy.js +50 -0
- package/lib/edge/block-wrapper-WT0fK9OQ.cjs +1 -0
- package/lib/edge/blocks/form/form/form.vue.d.ts +3 -3
- package/lib/edge/blocks/form/input/input.vue.d.ts +3 -3
- package/lib/edge/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/lib/edge/blocks/symbol/symbol.types.d.ts +2 -0
- package/lib/edge/component-ref-14bWdw0y.js +184 -0
- package/lib/edge/component-ref-Ari_o8qM.cjs +1 -0
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +9 -9
- package/lib/edge/components/content/components/styles.vue.d.ts +3 -3
- package/lib/edge/components/content/content.vue.d.ts +9 -9
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +9 -9
- package/lib/edge/components/inlined-script.vue.d.ts +3 -3
- package/lib/edge/components/inlined-styles.vue.d.ts +3 -3
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/evaluate/evaluate.d.ts +1 -1
- package/lib/edge/functions/evaluate/helpers.d.ts +9 -1
- package/lib/edge/functions/get-block-actions-handler.d.ts +2 -0
- package/lib/edge/functions/get-block-actions.d.ts +2 -0
- package/lib/{browser/get-block-properties-dmm_DIxo.js → edge/get-block-properties-6j21Yx4_.js} +17 -17
- package/lib/edge/get-block-properties-kMAb8z5D.cjs +1 -0
- package/lib/edge/{index-ljVeDS39.cjs → index-2Armmtcs.cjs} +17 -17
- package/lib/edge/{index-Agn-gjHJ.js → index-unVH2XRb.js} +848 -832
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-jWT4dXgM.cjs → edge/live-edit-gMqK1-U2.cjs} +1 -1
- package/lib/{node/live-edit-E90Rueqo.js → edge/live-edit-yXkE9pDV.js} +1 -1
- package/lib/{node/repeated-block-gCLdrEyt.js → edge/repeated-block-F4oPiI78.js} +2 -2
- package/lib/edge/{repeated-block-GaabRNMP.cjs → repeated-block-Y0Z3ldLT.cjs} +1 -1
- package/lib/edge/{style-wrapper-I1DS5PUP.js → style-wrapper-Ad7ABy2Z.js} +1 -1
- package/lib/edge/{style-wrapper-MIBe_b13.cjs → style-wrapper-sL972lDH.cjs} +1 -1
- package/lib/node/{awaiter-qP3UIYQS.js → awaiter-_ZqW9w8N.js} +1 -1
- package/lib/node/{awaiter-ZX8mvzyL.cjs → awaiter-i0lAEAYI.cjs} +1 -1
- package/lib/node/block-wrapper-Bv_s1rr1.cjs +1 -0
- package/lib/node/block-wrapper-CnMu7UjK.js +50 -0
- package/lib/node/blocks/form/form/form.vue.d.ts +3 -3
- package/lib/node/blocks/form/input/input.vue.d.ts +3 -3
- package/lib/node/blocks/symbol/symbol.helpers.d.ts +2 -0
- package/lib/node/blocks/symbol/symbol.types.d.ts +2 -0
- package/lib/node/component-ref-LWytt0tD.cjs +1 -0
- package/lib/node/component-ref-lU9WFg32.js +185 -0
- package/lib/node/components/content/components/enable-editor.vue.d.ts +9 -9
- package/lib/node/components/content/components/styles.vue.d.ts +3 -3
- package/lib/node/components/content/content.vue.d.ts +9 -9
- package/lib/node/components/content-variants/content-variants.vue.d.ts +9 -9
- package/lib/node/components/inlined-script.vue.d.ts +3 -3
- package/lib/node/components/inlined-styles.vue.d.ts +3 -3
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/evaluate/evaluate.d.ts +1 -1
- package/lib/node/functions/evaluate/helpers.d.ts +9 -1
- package/lib/node/functions/get-block-actions-handler.d.ts +2 -0
- package/lib/node/functions/get-block-actions.d.ts +2 -0
- package/lib/node/{get-block-properties-o5VoFlz_.js → get-block-properties-oSP4WCJG.js} +18 -17
- package/lib/node/get-block-properties-sdbm535D.cjs +1 -0
- package/lib/node/{index-SH8gdiHf.js → index-9Wxomhx_.js} +702 -900
- package/lib/node/{index-AumTeVyL.cjs → index-z7Ed9MEJ.cjs} +30 -30
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +11 -11
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-TWpZ33A7.js → node/live-edit-ZjrPT1e_.js} +1 -1
- package/lib/{edge/live-edit-nHq1I7ij.cjs → node/live-edit-nQPgUSEF.cjs} +1 -1
- package/lib/node/{repeated-block-4pHYUEBM.cjs → repeated-block-G-7Wr2Ub.cjs} +1 -1
- package/lib/{edge/repeated-block-_wYfLmVg.js → node/repeated-block-zGwBOU59.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-5h08TaCf.js → should-force-browser-runtime-in-node-0jTQ7bdA.js} +261 -41
- package/lib/node/should-force-browser-runtime-in-node-kkE7IeZS.cjs +48 -0
- package/lib/node/{style-wrapper-7nh-8JLA.cjs → style-wrapper-QZvOi8Ur.cjs} +1 -1
- package/lib/node/{style-wrapper-1rHE_XSt.js → style-wrapper-QtIk1dHP.js} +10 -10
- package/package.json +1 -1
- package/lib/browser/block-wrapper-8v7I2JSB.cjs +0 -1
- package/lib/browser/block-wrapper-s3-0mqGr.js +0 -44
- package/lib/browser/component-ref-8g4g9kyF.js +0 -178
- package/lib/browser/component-ref-r7lSDLc0.cjs +0 -1
- package/lib/browser/get-block-properties-GPPIll7t.cjs +0 -1
- package/lib/browser/index-Treb985Y.cjs +0 -334
- package/lib/edge/block-wrapper-DfG53TBm.cjs +0 -1
- package/lib/edge/block-wrapper-LzMR5J5q.js +0 -43
- package/lib/edge/component-ref-30u-bbmm.js +0 -177
- package/lib/edge/component-ref-VTMpfeME.cjs +0 -1
- package/lib/edge/get-block-properties-yv9bFXVp.cjs +0 -1
- package/lib/node/block-wrapper-3FbaAWv9.js +0 -43
- package/lib/node/block-wrapper-mEOIfHOk.cjs +0 -1
- package/lib/node/component-ref-DHpSqIaD.cjs +0 -1
- package/lib/node/component-ref-MKSj3oym.js +0 -178
- package/lib/node/get-block-properties-b4xkM8mc.cjs +0 -1
- package/lib/node/should-force-browser-runtime-in-node-IsToRTN-.cjs +0 -48
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as
|
|
2
|
-
import { T as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as w, createBlock as S, resolveDynamicComponent as Y, mergeProps as I, toHandlers as O, withCtx as x, renderSlot as V, resolveComponent as k, createTextVNode as St, toDisplayString as le, defineAsyncComponent as Q, createVNode as $, renderList as F, createCommentVNode as C, h as Me, createElementVNode as z, normalizeStyle as M, normalizeClass as Z, markRaw as kt } from "vue";
|
|
2
|
+
import { T as R, g as Ct, f as Tt, i as E, s as wt, r as It, p as $t, a as Rt, l as L, b as qe, c as ye, d as Et, n as je, S as Pt, e as ve, h as re, j as At, k as ze, m as Bt, o as A, q as Ke, _ as Ae } from "./should-force-browser-runtime-in-node-0jTQ7bdA.js";
|
|
3
|
+
const Vt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Nt = (e) => typeof e == "string" && Vt.has(e.toLowerCase());
|
|
4
4
|
function N(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
@@ -11,11 +11,11 @@ function N(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const Wt = y({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: Nt };
|
|
19
19
|
}
|
|
20
20
|
}), v = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
@@ -23,26 +23,26 @@ const Ft = y({
|
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (d(), S(
|
|
28
|
-
typeof e.TagName == "string" ? (d(), S(
|
|
29
|
-
default:
|
|
26
|
+
function Dt(e, t, n, o, r, i) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (d(), S(Y(e.TagName), I({ key: 1 }, e.attributes, O(e.actionAttributes)), null, 16)) : (d(), h(w, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (d(), S(Y(e.TagName), I({ key: 0 }, e.attributes, O(e.actionAttributes)), {
|
|
29
|
+
default: x(() => [
|
|
30
30
|
V(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (d(), S(
|
|
34
|
-
default:
|
|
33
|
+
}, 16)) : (d(), S(Y(e.TagName), I({ key: 1 }, e.attributes, O(e.actionAttributes)), {
|
|
34
|
+
default: x(() => [
|
|
35
35
|
V(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const Se = /* @__PURE__ */ v(Wt, [["render", Dt]]), Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
45
|
-
switch (
|
|
43
|
+
default: Se
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), q = () => {
|
|
45
|
+
switch (R) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
48
48
|
case "rsc":
|
|
@@ -54,9 +54,9 @@ const ke = /* @__PURE__ */ v(Ft, [["render", Lt]]), hs = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, xt = y({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: Se },
|
|
60
60
|
props: [
|
|
61
61
|
"attributes",
|
|
62
62
|
"link",
|
|
@@ -71,7 +71,7 @@ const ke = /* @__PURE__ */ v(Ft, [["render", Lt]]), hs = /* @__PURE__ */ Object.
|
|
|
71
71
|
attrs() {
|
|
72
72
|
return {
|
|
73
73
|
...N(this.attributes, "v-on:", !1),
|
|
74
|
-
[
|
|
74
|
+
[q()]: `${this.link ? "" : "builder-button"} ${this.attributes[q()] || ""}`,
|
|
75
75
|
...this.link ? {
|
|
76
76
|
href: this.link,
|
|
77
77
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -83,20 +83,20 @@ const ke = /* @__PURE__ */ v(Ft, [["render", Lt]]), hs = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
86
|
+
function Ut(e, t, n, o, r, i) {
|
|
87
87
|
const s = k("DynamicRenderer");
|
|
88
88
|
return d(), S(s, {
|
|
89
89
|
attributes: e.attrs(),
|
|
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: x(() => [
|
|
94
|
+
St(le(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const Ot = /* @__PURE__ */ v(xt, [["render", Ut]]), Ft = Symbol(), he = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -113,14 +113,14 @@ const jt = /* @__PURE__ */ v(Ht, [["render", Mt]]), Kt = Symbol(), fe = {
|
|
|
113
113
|
nonce: "",
|
|
114
114
|
model: ""
|
|
115
115
|
},
|
|
116
|
-
key:
|
|
117
|
-
},
|
|
116
|
+
key: Ft
|
|
117
|
+
}, Lt = Symbol(), Ge = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
|
-
key:
|
|
119
|
+
key: Lt
|
|
120
120
|
}, Je = (e, t, n) => {
|
|
121
121
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
|
|
122
122
|
return o === void 0 || o === e ? n : o;
|
|
123
|
-
},
|
|
123
|
+
}, Ht = ({
|
|
124
124
|
code: e,
|
|
125
125
|
builder: t,
|
|
126
126
|
context: n,
|
|
@@ -129,45 +129,46 @@ const jt = /* @__PURE__ */ v(Ht, [["render", Mt]]), Kt = Symbol(), fe = {
|
|
|
129
129
|
rootSetState: i,
|
|
130
130
|
rootState: s
|
|
131
131
|
}) => {
|
|
132
|
-
const l =
|
|
132
|
+
const l = Ct({
|
|
133
133
|
builder: t,
|
|
134
134
|
context: n,
|
|
135
135
|
event: o,
|
|
136
|
-
state:
|
|
136
|
+
state: Tt({
|
|
137
137
|
rootState: s,
|
|
138
138
|
localState: r,
|
|
139
139
|
rootSetState: i
|
|
140
140
|
})
|
|
141
141
|
});
|
|
142
142
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
143
|
-
},
|
|
143
|
+
}, Mt = (e) => E() || wt({
|
|
144
144
|
shouldLogWarning: !0
|
|
145
|
-
}) ?
|
|
145
|
+
}) ? Ht(e) : It(e), qt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, jt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, zt = (e) => {
|
|
146
146
|
var t, n, o, r, i, s;
|
|
147
|
-
return ((o = (n = (t =
|
|
147
|
+
return ((o = (n = (t = qt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = jt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
148
148
|
};
|
|
149
|
-
function
|
|
149
|
+
function _({
|
|
150
150
|
code: e,
|
|
151
151
|
context: t,
|
|
152
152
|
localState: n,
|
|
153
153
|
rootState: o,
|
|
154
154
|
rootSetState: r,
|
|
155
155
|
event: i,
|
|
156
|
-
isExpression: s = !0
|
|
156
|
+
isExpression: s = !0,
|
|
157
|
+
trackingContext: l
|
|
157
158
|
}) {
|
|
158
159
|
if (e.trim() === "")
|
|
159
160
|
return;
|
|
160
|
-
const
|
|
161
|
-
if (
|
|
161
|
+
const a = zt(e.trim());
|
|
162
|
+
if (a)
|
|
162
163
|
return Je({
|
|
163
164
|
...o,
|
|
164
165
|
...n
|
|
165
|
-
},
|
|
166
|
-
const
|
|
167
|
-
code:
|
|
166
|
+
}, a);
|
|
167
|
+
const u = {
|
|
168
|
+
code: $t(e, {
|
|
168
169
|
isExpression: s
|
|
169
170
|
}),
|
|
170
|
-
builder:
|
|
171
|
+
builder: Rt(l),
|
|
171
172
|
context: t,
|
|
172
173
|
event: i,
|
|
173
174
|
rootSetState: r,
|
|
@@ -175,28 +176,28 @@ function ee({
|
|
|
175
176
|
localState: n
|
|
176
177
|
};
|
|
177
178
|
try {
|
|
178
|
-
return
|
|
179
|
-
} catch (
|
|
180
|
-
|
|
179
|
+
return Mt(u);
|
|
180
|
+
} catch (p) {
|
|
181
|
+
L.error("Failed code evaluation: " + p.message, {
|
|
181
182
|
code: e
|
|
182
183
|
});
|
|
183
184
|
return;
|
|
184
185
|
}
|
|
185
186
|
}
|
|
186
|
-
function
|
|
187
|
+
function Kt(e, t) {
|
|
187
188
|
var n;
|
|
188
189
|
return {
|
|
189
190
|
...(n = e.component) == null ? void 0 : n.options,
|
|
190
191
|
...e.options,
|
|
191
|
-
...
|
|
192
|
+
...Gt(e, t)
|
|
192
193
|
};
|
|
193
194
|
}
|
|
194
|
-
const
|
|
195
|
+
const Gt = (e, t) => {
|
|
195
196
|
var n, o;
|
|
196
197
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
|
|
197
198
|
return {
|
|
198
199
|
...e.component.options,
|
|
199
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) =>
|
|
200
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => _({
|
|
200
201
|
code: i,
|
|
201
202
|
context: t,
|
|
202
203
|
localState: t.localState,
|
|
@@ -205,7 +206,7 @@ const Zt = (e, t) => {
|
|
|
205
206
|
}))
|
|
206
207
|
};
|
|
207
208
|
};
|
|
208
|
-
function
|
|
209
|
+
function Jt(e, ...t) {
|
|
209
210
|
const n = Object.assign({}, e);
|
|
210
211
|
for (const o of t)
|
|
211
212
|
delete n[o];
|
|
@@ -231,7 +232,7 @@ function ie(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
231
232
|
function Qe(e) {
|
|
232
233
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
233
234
|
}
|
|
234
|
-
function
|
|
235
|
+
function Qt(e) {
|
|
235
236
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
236
237
|
return !1;
|
|
237
238
|
let t = !1;
|
|
@@ -242,30 +243,30 @@ function en(e) {
|
|
|
242
243
|
}
|
|
243
244
|
}), t;
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
+
function Yt(e, t) {
|
|
246
247
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ie(e, (n, o) => {
|
|
247
248
|
Qe(n) && o(n[t] ?? void 0);
|
|
248
249
|
}), e);
|
|
249
250
|
}
|
|
250
|
-
function
|
|
251
|
+
function Xt(e, t) {
|
|
251
252
|
var n, o;
|
|
252
|
-
return (n = e.component) != null && n.options &&
|
|
253
|
+
return (n = e.component) != null && n.options && Qt((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 = Yt(e.component.options, t ?? "Default")), e;
|
|
253
254
|
}
|
|
254
|
-
function
|
|
255
|
+
function fe(e) {
|
|
255
256
|
if (e === null || typeof e != "object")
|
|
256
257
|
return e;
|
|
257
258
|
if (Array.isArray(e))
|
|
258
|
-
return e.map((n) =>
|
|
259
|
+
return e.map((n) => fe(n));
|
|
259
260
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
260
261
|
return e;
|
|
261
262
|
const t = {};
|
|
262
263
|
for (const n in e)
|
|
263
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
264
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = fe(e[n]));
|
|
264
265
|
return t;
|
|
265
266
|
}
|
|
266
|
-
const
|
|
267
|
-
if (
|
|
268
|
-
const t =
|
|
267
|
+
const Zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), _t = (e) => {
|
|
268
|
+
if (Zt) {
|
|
269
|
+
const t = ye(e);
|
|
269
270
|
return {
|
|
270
271
|
...t,
|
|
271
272
|
properties: {
|
|
@@ -276,7 +277,7 @@ const on = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rn = (e) =
|
|
|
276
277
|
}
|
|
277
278
|
};
|
|
278
279
|
} else {
|
|
279
|
-
const t =
|
|
280
|
+
const t = fe(Jt(e, "children", "meta"));
|
|
280
281
|
return {
|
|
281
282
|
...t,
|
|
282
283
|
properties: {
|
|
@@ -289,7 +290,7 @@ const on = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rn = (e) =
|
|
|
289
290
|
meta: e.meta
|
|
290
291
|
};
|
|
291
292
|
}
|
|
292
|
-
},
|
|
293
|
+
}, en = ({
|
|
293
294
|
block: e,
|
|
294
295
|
context: t,
|
|
295
296
|
localState: n,
|
|
@@ -298,9 +299,9 @@ const on = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rn = (e) =
|
|
|
298
299
|
}) => {
|
|
299
300
|
if (!e.bindings)
|
|
300
301
|
return e;
|
|
301
|
-
const i =
|
|
302
|
+
const i = _t(e);
|
|
302
303
|
for (const s in e.bindings) {
|
|
303
|
-
const l = e.bindings[s], a =
|
|
304
|
+
const l = e.bindings[s], a = _({
|
|
304
305
|
code: l,
|
|
305
306
|
localState: n,
|
|
306
307
|
rootState: o,
|
|
@@ -311,7 +312,7 @@ const on = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rn = (e) =
|
|
|
311
312
|
}
|
|
312
313
|
return i;
|
|
313
314
|
};
|
|
314
|
-
function
|
|
315
|
+
function tn({
|
|
315
316
|
block: e,
|
|
316
317
|
context: t,
|
|
317
318
|
localState: n,
|
|
@@ -319,33 +320,33 @@ function an({
|
|
|
319
320
|
rootSetState: r
|
|
320
321
|
}) {
|
|
321
322
|
let i = e;
|
|
322
|
-
return i =
|
|
323
|
+
return i = en({
|
|
323
324
|
block: i,
|
|
324
325
|
localState: n,
|
|
325
326
|
rootState: o,
|
|
326
327
|
rootSetState: r,
|
|
327
328
|
context: t
|
|
328
|
-
}), i =
|
|
329
|
+
}), i = Xt(i, o.locale), i;
|
|
329
330
|
}
|
|
330
|
-
function
|
|
331
|
-
const t = e || (
|
|
332
|
-
return t ?
|
|
331
|
+
function ke(e) {
|
|
332
|
+
const t = e || (E() ? window.location.search : void 0);
|
|
333
|
+
return t ? Et(t).indexOf("builder.preview=") !== -1 : !1;
|
|
333
334
|
}
|
|
334
|
-
const
|
|
335
|
+
const nn = (e) => ({
|
|
335
336
|
type: "builder.registerComponent",
|
|
336
337
|
data: se(e)
|
|
337
|
-
}),
|
|
338
|
+
}), on = (e) => {
|
|
338
339
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
339
340
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
340
341
|
};
|
|
341
342
|
function se(e) {
|
|
342
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
343
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? on(n) : n));
|
|
343
344
|
}
|
|
344
|
-
const
|
|
345
|
-
function
|
|
345
|
+
const Be = {};
|
|
346
|
+
function Qi(e, t) {
|
|
346
347
|
e === "plugin" && (t = se(t));
|
|
347
|
-
let n =
|
|
348
|
-
if (n || (n =
|
|
348
|
+
let n = Be[e];
|
|
349
|
+
if (n || (n = Be[e] = []), n.push(t), E()) {
|
|
349
350
|
const o = {
|
|
350
351
|
type: "builder.register",
|
|
351
352
|
data: {
|
|
@@ -360,9 +361,9 @@ function fs(e, t) {
|
|
|
360
361
|
}
|
|
361
362
|
}
|
|
362
363
|
}
|
|
363
|
-
function
|
|
364
|
+
function Yi(e) {
|
|
364
365
|
var t;
|
|
365
|
-
if (
|
|
366
|
+
if (E()) {
|
|
366
367
|
const n = JSON.parse(JSON.stringify(e));
|
|
367
368
|
e.action && (n.action = e.action.toString()), (t = window.parent) == null || t.postMessage({
|
|
368
369
|
type: "builder.registerAction",
|
|
@@ -370,245 +371,47 @@ function bs(e) {
|
|
|
370
371
|
}, "*");
|
|
371
372
|
}
|
|
372
373
|
}
|
|
373
|
-
const
|
|
374
|
-
function
|
|
375
|
-
if (
|
|
376
|
-
Object.assign(
|
|
374
|
+
const Ve = {};
|
|
375
|
+
function Xi(e) {
|
|
376
|
+
if (E()) {
|
|
377
|
+
Object.assign(Ve, e);
|
|
377
378
|
const t = {
|
|
378
379
|
type: "builder.settingsChange",
|
|
379
|
-
data:
|
|
380
|
+
data: Ve
|
|
380
381
|
};
|
|
381
382
|
parent.postMessage(t, "*");
|
|
382
383
|
}
|
|
383
384
|
}
|
|
384
|
-
const
|
|
385
|
+
const Ne = "builder.", rn = "options.", Ye = (e) => {
|
|
385
386
|
if (!e)
|
|
386
387
|
return {};
|
|
387
|
-
const t =
|
|
388
|
+
const t = je(e), n = {};
|
|
388
389
|
return Object.keys(t).forEach((o) => {
|
|
389
|
-
if (o.startsWith(
|
|
390
|
-
const r = o.replace(
|
|
390
|
+
if (o.startsWith(Ne)) {
|
|
391
|
+
const r = o.replace(Ne, "").replace(rn, "");
|
|
391
392
|
n[r] = t[o];
|
|
392
393
|
}
|
|
393
394
|
}), n;
|
|
394
|
-
},
|
|
395
|
-
if (!
|
|
395
|
+
}, sn = () => {
|
|
396
|
+
if (!E())
|
|
396
397
|
return {};
|
|
397
398
|
const e = new URLSearchParams(window.location.search);
|
|
398
399
|
return Ye(e);
|
|
399
|
-
},
|
|
400
|
-
|
|
401
|
-
"X-Builder-SDK-GEN": "2",
|
|
402
|
-
"X-Builder-SDK-Version": Xe
|
|
403
|
-
}), pn = (e) => {
|
|
404
|
-
if (e === "localhost" || e === "127.0.0.1")
|
|
405
|
-
return e;
|
|
406
|
-
const t = e.split(".");
|
|
407
|
-
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
408
|
-
}, ce = ({
|
|
409
|
-
name: e,
|
|
410
|
-
canTrack: t
|
|
411
|
-
}) => {
|
|
412
|
-
var n;
|
|
413
|
-
try {
|
|
414
|
-
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
415
|
-
} catch (o) {
|
|
416
|
-
x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
417
|
-
return;
|
|
418
|
-
}
|
|
419
|
-
}, _e = async (e) => ce(e), mn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), hn = [["secure", ""], ["SameSite", "None"]], fn = ({
|
|
420
|
-
name: e,
|
|
421
|
-
value: t,
|
|
422
|
-
expires: n
|
|
423
|
-
}) => {
|
|
424
|
-
const r = (R() ? location.protocol === "https:" : !0) ? hn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", pn(window.location.hostname)], ...r];
|
|
425
|
-
return mn(s);
|
|
426
|
-
}, Te = async ({
|
|
427
|
-
name: e,
|
|
428
|
-
value: t,
|
|
429
|
-
expires: n,
|
|
430
|
-
canTrack: o
|
|
431
|
-
}) => {
|
|
432
|
-
try {
|
|
433
|
-
if (!o)
|
|
434
|
-
return;
|
|
435
|
-
const r = fn({
|
|
436
|
-
name: e,
|
|
437
|
-
value: t,
|
|
438
|
-
expires: n
|
|
439
|
-
});
|
|
440
|
-
document.cookie = r;
|
|
441
|
-
} catch (r) {
|
|
442
|
-
x.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
443
|
-
}
|
|
444
|
-
};
|
|
445
|
-
function bn() {
|
|
446
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
447
|
-
const t = Math.random() * 16 | 0;
|
|
448
|
-
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
function et() {
|
|
452
|
-
return bn().replace(/-/g, "");
|
|
453
|
-
}
|
|
454
|
-
const tt = "builderSessionId", gn = async ({
|
|
455
|
-
canTrack: e
|
|
456
|
-
}) => {
|
|
457
|
-
if (!e)
|
|
458
|
-
return;
|
|
459
|
-
const t = await _e({
|
|
460
|
-
name: tt,
|
|
461
|
-
canTrack: e
|
|
462
|
-
});
|
|
463
|
-
if (K(t))
|
|
464
|
-
return t;
|
|
465
|
-
{
|
|
466
|
-
const n = yn();
|
|
467
|
-
return vn({
|
|
468
|
-
id: n,
|
|
469
|
-
canTrack: e
|
|
470
|
-
}), n;
|
|
471
|
-
}
|
|
472
|
-
}, yn = () => et(), vn = ({
|
|
473
|
-
id: e,
|
|
474
|
-
canTrack: t
|
|
475
|
-
}) => Te({
|
|
476
|
-
name: tt,
|
|
477
|
-
value: e,
|
|
478
|
-
canTrack: t
|
|
479
|
-
}), nt = () => R() && typeof localStorage < "u" ? localStorage : void 0, Sn = ({
|
|
480
|
-
key: e,
|
|
481
|
-
canTrack: t
|
|
482
|
-
}) => {
|
|
483
|
-
var n;
|
|
484
|
-
try {
|
|
485
|
-
return t ? (n = nt()) == null ? void 0 : n.getItem(e) : void 0;
|
|
486
|
-
} catch (o) {
|
|
487
|
-
console.debug("[LocalStorage] GET error: ", o);
|
|
488
|
-
return;
|
|
489
|
-
}
|
|
490
|
-
}, kn = ({
|
|
491
|
-
key: e,
|
|
492
|
-
canTrack: t,
|
|
493
|
-
value: n
|
|
494
|
-
}) => {
|
|
495
|
-
var o;
|
|
496
|
-
try {
|
|
497
|
-
t && ((o = nt()) == null || o.setItem(e, n));
|
|
498
|
-
} catch (r) {
|
|
499
|
-
console.debug("[LocalStorage] SET error: ", r);
|
|
500
|
-
}
|
|
501
|
-
}, ot = "builderVisitorId", Cn = ({
|
|
502
|
-
canTrack: e
|
|
503
|
-
}) => {
|
|
504
|
-
if (!e)
|
|
505
|
-
return;
|
|
506
|
-
const t = Sn({
|
|
507
|
-
key: ot,
|
|
508
|
-
canTrack: e
|
|
509
|
-
});
|
|
510
|
-
if (K(t))
|
|
511
|
-
return t;
|
|
512
|
-
{
|
|
513
|
-
const n = Tn();
|
|
514
|
-
return In({
|
|
515
|
-
id: n,
|
|
516
|
-
canTrack: e
|
|
517
|
-
}), n;
|
|
518
|
-
}
|
|
519
|
-
}, Tn = () => et(), In = ({
|
|
520
|
-
id: e,
|
|
521
|
-
canTrack: t
|
|
522
|
-
}) => kn({
|
|
523
|
-
key: ot,
|
|
524
|
-
value: e,
|
|
525
|
-
canTrack: t
|
|
526
|
-
});
|
|
527
|
-
function Ie(e) {
|
|
528
|
-
var t;
|
|
529
|
-
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && x.log(e);
|
|
530
|
-
}
|
|
531
|
-
const wn = async ({
|
|
532
|
-
canTrack: e
|
|
533
|
-
}) => {
|
|
534
|
-
if (!e)
|
|
535
|
-
return {
|
|
536
|
-
visitorId: void 0,
|
|
537
|
-
sessionId: void 0
|
|
538
|
-
};
|
|
539
|
-
const t = await gn({
|
|
540
|
-
canTrack: e
|
|
541
|
-
}), n = Cn({
|
|
542
|
-
canTrack: e
|
|
543
|
-
});
|
|
544
|
-
return {
|
|
545
|
-
sessionId: t,
|
|
546
|
-
visitorId: n
|
|
547
|
-
};
|
|
548
|
-
}, $n = async ({
|
|
549
|
-
type: e,
|
|
550
|
-
canTrack: t,
|
|
551
|
-
apiKey: n,
|
|
552
|
-
metadata: o,
|
|
553
|
-
...r
|
|
554
|
-
}) => ({
|
|
555
|
-
type: e,
|
|
556
|
-
data: {
|
|
557
|
-
...r,
|
|
558
|
-
metadata: {
|
|
559
|
-
url: location.href,
|
|
560
|
-
...o
|
|
561
|
-
},
|
|
562
|
-
...await wn({
|
|
563
|
-
canTrack: t
|
|
564
|
-
}),
|
|
565
|
-
userAttributes: Dt(),
|
|
566
|
-
ownerId: n
|
|
567
|
-
}
|
|
568
|
-
});
|
|
569
|
-
async function ge({
|
|
570
|
-
apiHost: e,
|
|
571
|
-
...t
|
|
572
|
-
}) {
|
|
573
|
-
if (!t.apiKey) {
|
|
574
|
-
x.error("Missing API key for track call. Please provide your API key.");
|
|
575
|
-
return;
|
|
576
|
-
}
|
|
577
|
-
if (!t.canTrack || A() || !(R() || $ === "reactNative"))
|
|
578
|
-
return;
|
|
579
|
-
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
580
|
-
return Ie(o), fetch(o, {
|
|
581
|
-
method: "POST",
|
|
582
|
-
body: JSON.stringify({
|
|
583
|
-
events: [await $n(t)]
|
|
584
|
-
}),
|
|
585
|
-
headers: {
|
|
586
|
-
"content-type": "application/json",
|
|
587
|
-
...Ze()
|
|
588
|
-
},
|
|
589
|
-
mode: "cors"
|
|
590
|
-
}).catch((r) => {
|
|
591
|
-
console.error("Failed to track: ", r);
|
|
592
|
-
});
|
|
593
|
-
}
|
|
594
|
-
const ys = (e) => ge({
|
|
595
|
-
...e,
|
|
596
|
-
canTrack: !0
|
|
597
|
-
}), Rn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
598
|
-
function rt(e, t) {
|
|
400
|
+
}, an = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
401
|
+
function Xe(e, t) {
|
|
599
402
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
600
403
|
return !1;
|
|
601
404
|
const n = new URL(t.origin), o = n.hostname;
|
|
602
|
-
return (e ||
|
|
405
|
+
return (e || an).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
603
406
|
}
|
|
604
|
-
let
|
|
605
|
-
const
|
|
407
|
+
let We = !1;
|
|
408
|
+
const Ze = (e) => {
|
|
606
409
|
var t, n;
|
|
607
|
-
|
|
410
|
+
We || (We = !0, E() && ((t = window.parent) == null || t.postMessage({
|
|
608
411
|
type: "builder.sdkInfo",
|
|
609
412
|
data: {
|
|
610
|
-
target:
|
|
611
|
-
version:
|
|
413
|
+
target: R,
|
|
414
|
+
version: Pt,
|
|
612
415
|
supportsPatchUpdates: !1,
|
|
613
416
|
// Supports builder-model="..." attribute which is needed to
|
|
614
417
|
// scope our '+ add block' button styling
|
|
@@ -626,7 +429,7 @@ const it = (e) => {
|
|
|
626
429
|
}
|
|
627
430
|
}, "*"), window.addEventListener("message", (o) => {
|
|
628
431
|
var i, s;
|
|
629
|
-
if (!
|
|
432
|
+
if (!Xe(e.trustedHosts, o))
|
|
630
433
|
return;
|
|
631
434
|
const {
|
|
632
435
|
data: r
|
|
@@ -667,12 +470,12 @@ const it = (e) => {
|
|
|
667
470
|
}
|
|
668
471
|
}
|
|
669
472
|
})));
|
|
670
|
-
},
|
|
473
|
+
}, _e = ({
|
|
671
474
|
model: e,
|
|
672
475
|
trustedHosts: t,
|
|
673
476
|
callbacks: n
|
|
674
477
|
}) => (o) => {
|
|
675
|
-
if (!
|
|
478
|
+
if (!Xe(t, o))
|
|
676
479
|
return;
|
|
677
480
|
const {
|
|
678
481
|
data: r
|
|
@@ -698,20 +501,20 @@ const it = (e) => {
|
|
|
698
501
|
break;
|
|
699
502
|
}
|
|
700
503
|
}
|
|
701
|
-
},
|
|
504
|
+
}, Zi = ({
|
|
702
505
|
model: e,
|
|
703
506
|
apiKey: t,
|
|
704
507
|
callback: n,
|
|
705
508
|
trustedHosts: o
|
|
706
509
|
}) => {
|
|
707
|
-
if (!
|
|
708
|
-
return
|
|
510
|
+
if (!E)
|
|
511
|
+
return L.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
709
512
|
};
|
|
710
|
-
|
|
513
|
+
Ze({
|
|
711
514
|
modelName: e,
|
|
712
515
|
apiKey: t
|
|
713
516
|
});
|
|
714
|
-
const r =
|
|
517
|
+
const r = _e({
|
|
715
518
|
callbacks: {
|
|
716
519
|
contentUpdate: n,
|
|
717
520
|
animation: () => {
|
|
@@ -727,24 +530,24 @@ const it = (e) => {
|
|
|
727
530
|
return window.addEventListener("message", r), () => {
|
|
728
531
|
window.removeEventListener("message", r);
|
|
729
532
|
};
|
|
730
|
-
},
|
|
533
|
+
}, ln = "builder.tests", Ce = (e) => `${ln}.${e}`, cn = ({
|
|
731
534
|
contentId: e
|
|
732
|
-
}) =>
|
|
733
|
-
name:
|
|
535
|
+
}) => At({
|
|
536
|
+
name: Ce(e),
|
|
734
537
|
canTrack: !0
|
|
735
|
-
}),
|
|
538
|
+
}), dn = ({
|
|
736
539
|
contentId: e
|
|
737
|
-
}) =>
|
|
738
|
-
name:
|
|
540
|
+
}) => ve({
|
|
541
|
+
name: Ce(e),
|
|
739
542
|
canTrack: !0
|
|
740
|
-
}),
|
|
543
|
+
}), un = ({
|
|
741
544
|
contentId: e,
|
|
742
545
|
value: t
|
|
743
|
-
}) =>
|
|
744
|
-
name:
|
|
546
|
+
}) => ze({
|
|
547
|
+
name: Ce(e),
|
|
745
548
|
value: t,
|
|
746
549
|
canTrack: !0
|
|
747
|
-
}),
|
|
550
|
+
}), et = (e) => re(e.id) && re(e.variations) && Object.keys(e.variations).length > 0, pn = ({
|
|
748
551
|
id: e,
|
|
749
552
|
variations: t
|
|
750
553
|
}) => {
|
|
@@ -757,15 +560,15 @@ const it = (e) => {
|
|
|
757
560
|
return i;
|
|
758
561
|
}
|
|
759
562
|
return e;
|
|
760
|
-
},
|
|
761
|
-
const t =
|
|
762
|
-
return
|
|
563
|
+
}, tt = (e) => {
|
|
564
|
+
const t = pn(e);
|
|
565
|
+
return un({
|
|
763
566
|
contentId: e.id,
|
|
764
567
|
value: t
|
|
765
568
|
}).catch((n) => {
|
|
766
|
-
|
|
569
|
+
L.error("could not store A/B test variation: ", n);
|
|
767
570
|
}), t;
|
|
768
|
-
},
|
|
571
|
+
}, nt = ({
|
|
769
572
|
item: e,
|
|
770
573
|
testGroupId: t
|
|
771
574
|
}) => {
|
|
@@ -779,7 +582,7 @@ const it = (e) => {
|
|
|
779
582
|
testVariationId: n.id,
|
|
780
583
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
781
584
|
};
|
|
782
|
-
},
|
|
585
|
+
}, mn = ({
|
|
783
586
|
item: e,
|
|
784
587
|
canTrack: t
|
|
785
588
|
}) => {
|
|
@@ -787,14 +590,14 @@ const it = (e) => {
|
|
|
787
590
|
return e;
|
|
788
591
|
if (!e)
|
|
789
592
|
return;
|
|
790
|
-
if (!
|
|
593
|
+
if (!et(e))
|
|
791
594
|
return e;
|
|
792
|
-
const n =
|
|
595
|
+
const n = dn({
|
|
793
596
|
contentId: e.id
|
|
794
|
-
}) ||
|
|
597
|
+
}) || tt({
|
|
795
598
|
variations: e.variations,
|
|
796
599
|
id: e.id
|
|
797
|
-
}), o =
|
|
600
|
+
}), o = nt({
|
|
798
601
|
item: e,
|
|
799
602
|
testGroupId: n
|
|
800
603
|
});
|
|
@@ -802,18 +605,18 @@ const it = (e) => {
|
|
|
802
605
|
...e,
|
|
803
606
|
...o
|
|
804
607
|
};
|
|
805
|
-
},
|
|
608
|
+
}, hn = async ({
|
|
806
609
|
item: e,
|
|
807
610
|
canTrack: t
|
|
808
611
|
}) => {
|
|
809
|
-
if (!t || !
|
|
612
|
+
if (!t || !et(e))
|
|
810
613
|
return e;
|
|
811
|
-
const o = await
|
|
614
|
+
const o = await cn({
|
|
812
615
|
contentId: e.id
|
|
813
|
-
}) ||
|
|
616
|
+
}) || tt({
|
|
814
617
|
variations: e.variations,
|
|
815
618
|
id: e.id
|
|
816
|
-
}), r =
|
|
619
|
+
}), r = nt({
|
|
817
620
|
item: e,
|
|
818
621
|
testGroupId: o
|
|
819
622
|
});
|
|
@@ -822,27 +625,27 @@ const it = (e) => {
|
|
|
822
625
|
...r
|
|
823
626
|
};
|
|
824
627
|
};
|
|
825
|
-
const
|
|
826
|
-
function
|
|
628
|
+
const De = "builder.userAttributes";
|
|
629
|
+
function xe() {
|
|
827
630
|
let e = !0;
|
|
828
631
|
const t = /* @__PURE__ */ new Set();
|
|
829
632
|
return {
|
|
830
633
|
setUserAttributes(n) {
|
|
831
|
-
if (!
|
|
634
|
+
if (!E())
|
|
832
635
|
return;
|
|
833
636
|
const o = {
|
|
834
637
|
...this.getUserAttributes(),
|
|
835
638
|
...n
|
|
836
639
|
};
|
|
837
|
-
|
|
838
|
-
name:
|
|
640
|
+
ze({
|
|
641
|
+
name: De,
|
|
839
642
|
value: JSON.stringify(o),
|
|
840
643
|
canTrack: e
|
|
841
644
|
}), t.forEach((r) => r(o));
|
|
842
645
|
},
|
|
843
646
|
getUserAttributes() {
|
|
844
|
-
return
|
|
845
|
-
name:
|
|
647
|
+
return E() ? JSON.parse(ve({
|
|
648
|
+
name: De,
|
|
846
649
|
canTrack: e
|
|
847
650
|
}) || "{}") : {};
|
|
848
651
|
},
|
|
@@ -858,45 +661,45 @@ function Ue() {
|
|
|
858
661
|
}
|
|
859
662
|
};
|
|
860
663
|
}
|
|
861
|
-
let
|
|
862
|
-
|
|
863
|
-
const ae =
|
|
664
|
+
let be;
|
|
665
|
+
E() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = xe()), be = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : be = xe();
|
|
666
|
+
const ae = be, _i = (e) => {
|
|
864
667
|
ae.setUserAttributes(e);
|
|
865
|
-
},
|
|
866
|
-
const t =
|
|
668
|
+
}, K = (e) => {
|
|
669
|
+
const t = re(e) ? e : !0;
|
|
867
670
|
return ae.setCanTrack(t), t;
|
|
868
671
|
};
|
|
869
|
-
function
|
|
672
|
+
function fn() {
|
|
870
673
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
871
674
|
}
|
|
872
|
-
function
|
|
873
|
-
const e =
|
|
675
|
+
function bn() {
|
|
676
|
+
const e = fn().fetch;
|
|
874
677
|
if (typeof e > "u")
|
|
875
678
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
876
679
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
877
680
|
return e;
|
|
878
681
|
}
|
|
879
|
-
const
|
|
880
|
-
function
|
|
682
|
+
const gn = bn();
|
|
683
|
+
function ge(e, t = null, n = ".") {
|
|
881
684
|
return Object.keys(e).reduce((o, r) => {
|
|
882
685
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
883
686
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
884
687
|
...o,
|
|
885
|
-
...
|
|
688
|
+
...ge(i, s, n)
|
|
886
689
|
} : {
|
|
887
690
|
...o,
|
|
888
691
|
[s]: i
|
|
889
692
|
};
|
|
890
693
|
}, {});
|
|
891
694
|
}
|
|
892
|
-
function
|
|
695
|
+
function ot(e, t, n = {}) {
|
|
893
696
|
for (const o in e) {
|
|
894
697
|
const r = e[o], i = t ? t + "." + o : o;
|
|
895
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ?
|
|
698
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? ot(r, i, n) : n[i] = r;
|
|
896
699
|
}
|
|
897
700
|
return n;
|
|
898
701
|
}
|
|
899
|
-
function
|
|
702
|
+
function yn(e) {
|
|
900
703
|
const t = {};
|
|
901
704
|
for (const n in e) {
|
|
902
705
|
const o = n.split(".");
|
|
@@ -908,7 +711,7 @@ function Un(e) {
|
|
|
908
711
|
}
|
|
909
712
|
return t;
|
|
910
713
|
}
|
|
911
|
-
const
|
|
714
|
+
const vn = "v3", Ue = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Te = (e) => {
|
|
912
715
|
const {
|
|
913
716
|
limit: t = 30,
|
|
914
717
|
userAttributes: n,
|
|
@@ -917,7 +720,7 @@ const Fn = "v3", Fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, $e = (
|
|
|
917
720
|
apiKey: i,
|
|
918
721
|
enrich: s,
|
|
919
722
|
locale: l,
|
|
920
|
-
apiVersion: a =
|
|
723
|
+
apiVersion: a = vn,
|
|
921
724
|
fields: u,
|
|
922
725
|
omit: p,
|
|
923
726
|
offset: f,
|
|
@@ -934,98 +737,98 @@ const Fn = "v3", Fe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, $e = (
|
|
|
934
737
|
const U = t !== 1, B = P || "https://cdn.builder.io", T = new URL(`${B}/api/${a}/content/${r}`);
|
|
935
738
|
T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(U)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l);
|
|
936
739
|
let W = n || {};
|
|
937
|
-
if (s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", p ?? "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && T.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && T.searchParams.set("includeUnpublished", String(g)), c &&
|
|
938
|
-
const D =
|
|
740
|
+
if (s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", p ?? "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && T.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && T.searchParams.set("includeUnpublished", String(g)), c && Ue(c) && T.searchParams.set("cacheSeconds", String(c)), m && Ue(m) && T.searchParams.set("staleCacheSeconds", String(m)), b) {
|
|
741
|
+
const D = ge({
|
|
939
742
|
sort: b
|
|
940
743
|
});
|
|
941
744
|
for (const H in D)
|
|
942
745
|
T.searchParams.set(H, JSON.stringify(D[H]));
|
|
943
746
|
}
|
|
944
|
-
const
|
|
945
|
-
...
|
|
946
|
-
...
|
|
747
|
+
const G = {
|
|
748
|
+
...sn(),
|
|
749
|
+
...je(e.options || {})
|
|
947
750
|
};
|
|
948
751
|
W = {
|
|
949
752
|
...W,
|
|
950
|
-
...
|
|
753
|
+
...kn(G)
|
|
951
754
|
};
|
|
952
|
-
const
|
|
953
|
-
for (const D in
|
|
954
|
-
T.searchParams.set(D, String(
|
|
755
|
+
const J = ge(G);
|
|
756
|
+
for (const D in J)
|
|
757
|
+
T.searchParams.set(D, String(J[D]));
|
|
955
758
|
if (Object.keys(W).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(W)), o) {
|
|
956
|
-
const D =
|
|
759
|
+
const D = ot({
|
|
957
760
|
query: o
|
|
958
761
|
});
|
|
959
762
|
for (const H in D)
|
|
960
763
|
T.searchParams.set(H, JSON.stringify(D[H]));
|
|
961
764
|
}
|
|
962
765
|
return T;
|
|
963
|
-
},
|
|
766
|
+
}, Sn = (e) => {
|
|
964
767
|
const t = {};
|
|
965
768
|
for (const n in e)
|
|
966
769
|
n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
|
|
967
770
|
return t;
|
|
968
|
-
},
|
|
969
|
-
if (
|
|
771
|
+
}, kn = (e) => {
|
|
772
|
+
if (E() && e.preview === "BUILDER_STUDIO") {
|
|
970
773
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
971
|
-
const t =
|
|
774
|
+
const t = Sn(e), {
|
|
972
775
|
userAttributes: n
|
|
973
|
-
} =
|
|
776
|
+
} = yn(t);
|
|
974
777
|
return n;
|
|
975
778
|
}
|
|
976
779
|
return {};
|
|
977
|
-
},
|
|
978
|
-
async function
|
|
780
|
+
}, Cn = (e) => "results" in e;
|
|
781
|
+
async function we(e) {
|
|
979
782
|
var o;
|
|
980
783
|
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
981
784
|
t && (e.locale = t, e.userAttributes = {
|
|
982
785
|
locale: t,
|
|
983
786
|
...e.userAttributes
|
|
984
787
|
});
|
|
985
|
-
const n = await
|
|
788
|
+
const n = await In({
|
|
986
789
|
...e,
|
|
987
790
|
limit: 1
|
|
988
791
|
});
|
|
989
792
|
return n && n[0] || null;
|
|
990
793
|
}
|
|
991
|
-
const
|
|
794
|
+
const Tn = async (e) => {
|
|
992
795
|
var s;
|
|
993
|
-
const t =
|
|
796
|
+
const t = Te(e), n = e.fetch ?? gn, o = {
|
|
994
797
|
...e.fetchOptions,
|
|
995
798
|
headers: {
|
|
996
799
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
997
|
-
...
|
|
800
|
+
...Bt()
|
|
998
801
|
}
|
|
999
802
|
};
|
|
1000
803
|
return await (await n(t.href, o)).json();
|
|
1001
|
-
},
|
|
1002
|
-
const o =
|
|
1003
|
-
if (n.search.includes("preview="), !o || !(
|
|
804
|
+
}, wn = async (e, t, n = Te(e)) => {
|
|
805
|
+
const o = K(e.canTrack);
|
|
806
|
+
if (n.search.includes("preview="), !o || !(E() || R === "reactNative"))
|
|
1004
807
|
return t.results;
|
|
1005
808
|
try {
|
|
1006
809
|
const r = [];
|
|
1007
810
|
for (const i of t.results)
|
|
1008
|
-
r.push(await
|
|
811
|
+
r.push(await hn({
|
|
1009
812
|
item: i,
|
|
1010
813
|
canTrack: o
|
|
1011
814
|
}));
|
|
1012
815
|
t.results = r;
|
|
1013
816
|
} catch (r) {
|
|
1014
|
-
|
|
817
|
+
L.error("Could not process A/B tests. ", r);
|
|
1015
818
|
}
|
|
1016
819
|
return t.results;
|
|
1017
820
|
};
|
|
1018
|
-
async function
|
|
1019
|
-
const t =
|
|
1020
|
-
if (!
|
|
1021
|
-
throw
|
|
821
|
+
async function In(e) {
|
|
822
|
+
const t = Te(e), n = await Tn(e);
|
|
823
|
+
if (!Cn(n))
|
|
824
|
+
throw L.error("Error fetching data. ", {
|
|
1022
825
|
url: t,
|
|
1023
826
|
content: n,
|
|
1024
827
|
options: e
|
|
1025
828
|
}), n;
|
|
1026
|
-
return
|
|
829
|
+
return wn(e, n);
|
|
1027
830
|
}
|
|
1028
|
-
const
|
|
831
|
+
const es = async (e) => {
|
|
1029
832
|
var o, r, i;
|
|
1030
833
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1031
834
|
...e,
|
|
@@ -1042,10 +845,10 @@ const ks = async (e) => {
|
|
|
1042
845
|
return {
|
|
1043
846
|
apiKey: n.apiKey,
|
|
1044
847
|
model: n.model,
|
|
1045
|
-
content: await
|
|
848
|
+
content: await we(n)
|
|
1046
849
|
};
|
|
1047
|
-
},
|
|
1048
|
-
function
|
|
850
|
+
}, Ie = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
851
|
+
function $n(e, t, n = {}) {
|
|
1049
852
|
let o, r, i, s = null, l = 0;
|
|
1050
853
|
const a = function() {
|
|
1051
854
|
l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
@@ -1057,7 +860,7 @@ function zn(e, t, n = {}) {
|
|
|
1057
860
|
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;
|
|
1058
861
|
};
|
|
1059
862
|
}
|
|
1060
|
-
function
|
|
863
|
+
function X(e, ...t) {
|
|
1061
864
|
const n = Object(e);
|
|
1062
865
|
for (let o = 1; o < arguments.length; o++) {
|
|
1063
866
|
const r = arguments[o];
|
|
@@ -1067,64 +870,64 @@ function Z(e, ...t) {
|
|
|
1067
870
|
}
|
|
1068
871
|
return n;
|
|
1069
872
|
}
|
|
1070
|
-
function
|
|
873
|
+
function Rn(e) {
|
|
1071
874
|
for (const t of e)
|
|
1072
875
|
switch (t.trigger) {
|
|
1073
876
|
case "pageLoad":
|
|
1074
|
-
|
|
877
|
+
st(t);
|
|
1075
878
|
break;
|
|
1076
879
|
case "scrollInView":
|
|
1077
|
-
|
|
880
|
+
Pn(t);
|
|
1078
881
|
break;
|
|
1079
882
|
}
|
|
1080
883
|
}
|
|
1081
|
-
function
|
|
884
|
+
function rt(e) {
|
|
1082
885
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1083
886
|
}
|
|
1084
|
-
function
|
|
1085
|
-
const n =
|
|
887
|
+
function it(e, t) {
|
|
888
|
+
const n = En(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
1086
889
|
for (const l of s)
|
|
1087
890
|
for (const a of n)
|
|
1088
891
|
a in l || (l[a] = o[a]);
|
|
1089
892
|
}
|
|
1090
|
-
function
|
|
893
|
+
function En(e) {
|
|
1091
894
|
const t = [];
|
|
1092
895
|
for (const n of e.steps)
|
|
1093
896
|
for (const o in n.styles)
|
|
1094
897
|
t.indexOf(o) === -1 && t.push(o);
|
|
1095
898
|
return t;
|
|
1096
899
|
}
|
|
1097
|
-
function
|
|
900
|
+
function st(e) {
|
|
1098
901
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1099
902
|
if (!t.length) {
|
|
1100
|
-
|
|
903
|
+
rt(e.elementId || e.id || "");
|
|
1101
904
|
return;
|
|
1102
905
|
}
|
|
1103
906
|
Array.from(t).forEach((n) => {
|
|
1104
|
-
|
|
1105
|
-
n.style.transition = `all ${e.duration}s ${
|
|
907
|
+
it(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
|
|
908
|
+
n.style.transition = `all ${e.duration}s ${Ie(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1106
909
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1107
910
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1108
911
|
});
|
|
1109
912
|
});
|
|
1110
913
|
}
|
|
1111
|
-
function
|
|
914
|
+
function Pn(e) {
|
|
1112
915
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1113
916
|
if (!t.length) {
|
|
1114
|
-
|
|
917
|
+
rt(e.elementId || e.id || "");
|
|
1115
918
|
return;
|
|
1116
919
|
}
|
|
1117
920
|
Array.from(t).forEach((n) => {
|
|
1118
|
-
|
|
921
|
+
it(e, n);
|
|
1119
922
|
let o = !1, r = !1;
|
|
1120
923
|
function i() {
|
|
1121
924
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
1122
|
-
|
|
925
|
+
X(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
1123
926
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
1124
927
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1125
|
-
})) : e.repeat && o && !r && !l(n) && (o = !1,
|
|
928
|
+
})) : e.repeat && o && !r && !l(n) && (o = !1, X(n.style, e.steps[0].styles));
|
|
1126
929
|
}
|
|
1127
|
-
const s =
|
|
930
|
+
const s = $n(i, 200, {
|
|
1128
931
|
leading: !1
|
|
1129
932
|
});
|
|
1130
933
|
function l(p) {
|
|
@@ -1133,52 +936,52 @@ function Qn(e) {
|
|
|
1133
936
|
}
|
|
1134
937
|
const a = e.steps[0].styles;
|
|
1135
938
|
function u() {
|
|
1136
|
-
|
|
939
|
+
X(n.style, a);
|
|
1137
940
|
}
|
|
1138
941
|
u(), setTimeout(() => {
|
|
1139
|
-
n.style.transition = `all ${e.duration}s ${
|
|
942
|
+
n.style.transition = `all ${e.duration}s ${Ie(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
1140
943
|
}), document.addEventListener("scroll", s, {
|
|
1141
944
|
capture: !0,
|
|
1142
945
|
passive: !0
|
|
1143
946
|
}), i();
|
|
1144
947
|
});
|
|
1145
948
|
}
|
|
1146
|
-
const
|
|
949
|
+
const at = (e) => Object.entries(e).map(([n, o]) => {
|
|
1147
950
|
if (typeof o == "string")
|
|
1148
|
-
return `${
|
|
1149
|
-
}).filter(
|
|
1150
|
-
`),
|
|
951
|
+
return `${Ie(n)}: ${o};`;
|
|
952
|
+
}).filter(re), An = (e) => at(e).join(`
|
|
953
|
+
`), ts = ({
|
|
1151
954
|
mediaQuery: e,
|
|
1152
955
|
className: t,
|
|
1153
956
|
styles: n
|
|
1154
957
|
}) => {
|
|
1155
958
|
const o = `.${t} {
|
|
1156
|
-
${
|
|
959
|
+
${An(n)}
|
|
1157
960
|
}`;
|
|
1158
961
|
return e ? `${e} {
|
|
1159
962
|
${o}
|
|
1160
963
|
}` : o;
|
|
1161
964
|
};
|
|
1162
|
-
function
|
|
965
|
+
function Bn({
|
|
1163
966
|
style: e
|
|
1164
967
|
}) {
|
|
1165
968
|
return e;
|
|
1166
969
|
}
|
|
1167
|
-
const
|
|
970
|
+
const ns = ({
|
|
1168
971
|
block: e,
|
|
1169
972
|
context: t
|
|
1170
|
-
}) =>
|
|
973
|
+
}) => lt(Bn({
|
|
1171
974
|
style: e.style || {},
|
|
1172
975
|
context: t,
|
|
1173
976
|
block: e
|
|
1174
977
|
}));
|
|
1175
|
-
function
|
|
1176
|
-
switch (
|
|
978
|
+
function lt(e) {
|
|
979
|
+
switch (R) {
|
|
1177
980
|
case "svelte":
|
|
1178
981
|
case "vue":
|
|
1179
982
|
case "solid":
|
|
1180
983
|
case "angular":
|
|
1181
|
-
return
|
|
984
|
+
return at(e).join(" ");
|
|
1182
985
|
case "qwik":
|
|
1183
986
|
case "reactNative":
|
|
1184
987
|
case "react":
|
|
@@ -1186,7 +989,7 @@ function ft(e) {
|
|
|
1186
989
|
return e;
|
|
1187
990
|
}
|
|
1188
991
|
}
|
|
1189
|
-
const
|
|
992
|
+
const ct = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Vn = ({
|
|
1190
993
|
block: e,
|
|
1191
994
|
registeredComponents: t,
|
|
1192
995
|
model: n
|
|
@@ -1196,14 +999,14 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1196
999
|
if (!o)
|
|
1197
1000
|
return null;
|
|
1198
1001
|
const r = t[o];
|
|
1199
|
-
if (!r ||
|
|
1002
|
+
if (!r || ct(r, n)) {
|
|
1200
1003
|
console.warn(`
|
|
1201
1004
|
Could not find a registered component named "${o}".
|
|
1202
1005
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1203
1006
|
return;
|
|
1204
1007
|
} else
|
|
1205
1008
|
return r;
|
|
1206
|
-
},
|
|
1009
|
+
}, Nn = ({
|
|
1207
1010
|
block: e,
|
|
1208
1011
|
context: t
|
|
1209
1012
|
}) => {
|
|
@@ -1213,7 +1016,7 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1213
1016
|
} = e;
|
|
1214
1017
|
if (!(n != null && n.collection))
|
|
1215
1018
|
return;
|
|
1216
|
-
const r =
|
|
1019
|
+
const r = _({
|
|
1217
1020
|
code: n.collection,
|
|
1218
1021
|
localState: t.localState,
|
|
1219
1022
|
rootState: t.rootState,
|
|
@@ -1236,59 +1039,59 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1236
1039
|
},
|
|
1237
1040
|
block: o
|
|
1238
1041
|
}));
|
|
1239
|
-
},
|
|
1042
|
+
}, Wn = (e, t) => {
|
|
1240
1043
|
var n;
|
|
1241
1044
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1242
1045
|
builderLinkComponent: t
|
|
1243
1046
|
} : {};
|
|
1244
|
-
},
|
|
1047
|
+
}, Dn = (e, t, n) => {
|
|
1245
1048
|
var o;
|
|
1246
1049
|
return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
|
|
1247
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !
|
|
1050
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !ct(s, n)))
|
|
1248
1051
|
} : {};
|
|
1249
|
-
},
|
|
1052
|
+
}, xn = (e, t) => {
|
|
1250
1053
|
var n;
|
|
1251
1054
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1252
1055
|
builderBlock: t
|
|
1253
1056
|
} : {};
|
|
1254
|
-
},
|
|
1057
|
+
}, Un = (e, t) => {
|
|
1255
1058
|
var n;
|
|
1256
1059
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1257
1060
|
builderContext: t
|
|
1258
1061
|
} : {};
|
|
1259
|
-
},
|
|
1062
|
+
}, On = (e) => e.toString(), Fn = () => Promise.resolve().then(() => _n).then((e) => e.default).catch((e) => {
|
|
1260
1063
|
throw console.error(
|
|
1261
1064
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1262
1065
|
e
|
|
1263
1066
|
), e;
|
|
1264
|
-
}),
|
|
1067
|
+
}), Ln = () => import("./block-wrapper-CnMu7UjK.js").then((e) => e.default).catch((e) => {
|
|
1265
1068
|
throw console.error(
|
|
1266
1069
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1267
1070
|
e
|
|
1268
1071
|
), e;
|
|
1269
|
-
}),
|
|
1072
|
+
}), Hn = () => import("./component-ref-lU9WFg32.js").then((e) => e.default).catch((e) => {
|
|
1270
1073
|
throw console.error(
|
|
1271
1074
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1272
1075
|
e
|
|
1273
1076
|
), e;
|
|
1274
|
-
}),
|
|
1077
|
+
}), Mn = () => import("./repeated-block-zGwBOU59.js").then((e) => e.default).catch((e) => {
|
|
1275
1078
|
throw console.error(
|
|
1276
1079
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1277
1080
|
e
|
|
1278
1081
|
), e;
|
|
1279
|
-
}),
|
|
1082
|
+
}), qn = () => import("./style-wrapper-QtIk1dHP.js").then((e) => e.default).catch((e) => {
|
|
1280
1083
|
throw console.error(
|
|
1281
1084
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1282
1085
|
e
|
|
1283
1086
|
), e;
|
|
1284
|
-
}),
|
|
1087
|
+
}), jn = y({
|
|
1285
1088
|
name: "block",
|
|
1286
1089
|
components: {
|
|
1287
|
-
StyleWrapper:
|
|
1288
|
-
RepeatedBlock:
|
|
1289
|
-
ComponentRef:
|
|
1290
|
-
BlockWrapper:
|
|
1291
|
-
DynamicDiv:
|
|
1090
|
+
StyleWrapper: Q(qn),
|
|
1091
|
+
RepeatedBlock: Q(Mn),
|
|
1092
|
+
ComponentRef: Q(Hn),
|
|
1093
|
+
BlockWrapper: Q(Ln),
|
|
1094
|
+
DynamicDiv: Q(Fn)
|
|
1292
1095
|
},
|
|
1293
1096
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1294
1097
|
data() {
|
|
@@ -1297,12 +1100,12 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1297
1100
|
value: null,
|
|
1298
1101
|
update: !1
|
|
1299
1102
|
},
|
|
1300
|
-
generateKey:
|
|
1103
|
+
generateKey: On
|
|
1301
1104
|
};
|
|
1302
1105
|
},
|
|
1303
1106
|
mounted() {
|
|
1304
1107
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1305
|
-
t && e &&
|
|
1108
|
+
t && e && Rn(
|
|
1306
1109
|
t.map((n) => ({
|
|
1307
1110
|
...n,
|
|
1308
1111
|
elementId: e
|
|
@@ -1313,14 +1116,14 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1313
1116
|
},
|
|
1314
1117
|
computed: {
|
|
1315
1118
|
repeatItem() {
|
|
1316
|
-
return
|
|
1119
|
+
return Nn({
|
|
1317
1120
|
block: this.block,
|
|
1318
1121
|
context: this.context
|
|
1319
1122
|
});
|
|
1320
1123
|
},
|
|
1321
1124
|
processedBlock() {
|
|
1322
1125
|
var t;
|
|
1323
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1126
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : tn({
|
|
1324
1127
|
block: this.block,
|
|
1325
1128
|
localState: this.context.localState,
|
|
1326
1129
|
rootState: this.context.rootState,
|
|
@@ -1329,7 +1132,7 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1329
1132
|
});
|
|
1330
1133
|
},
|
|
1331
1134
|
blockComponent() {
|
|
1332
|
-
return
|
|
1135
|
+
return Vn({
|
|
1333
1136
|
block: this.processedBlock,
|
|
1334
1137
|
registeredComponents: this.registeredComponents,
|
|
1335
1138
|
model: this.context.model
|
|
@@ -1356,11 +1159,11 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1356
1159
|
blockChildren: this.processedBlock.children ?? [],
|
|
1357
1160
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1358
1161
|
componentOptions: {
|
|
1359
|
-
...
|
|
1360
|
-
...
|
|
1361
|
-
...
|
|
1362
|
-
...
|
|
1363
|
-
...
|
|
1162
|
+
...Kt(this.processedBlock, this.context),
|
|
1163
|
+
...xn(this.blockComponent, this.processedBlock),
|
|
1164
|
+
...Un(this.blockComponent, this.context),
|
|
1165
|
+
...Wn(this.blockComponent, this.linkComponent),
|
|
1166
|
+
...Dn(
|
|
1364
1167
|
this.blockComponent,
|
|
1365
1168
|
this.registeredComponents,
|
|
1366
1169
|
this.context.model
|
|
@@ -1371,22 +1174,22 @@ const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1371
1174
|
registeredComponents: this.registeredComponents,
|
|
1372
1175
|
builderBlock: this.processedBlock,
|
|
1373
1176
|
includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
|
|
1374
|
-
isInteractive: !((n = this.blockComponent) != null && n.isRSC &&
|
|
1177
|
+
isInteractive: !((n = this.blockComponent) != null && n.isRSC && R === "rsc")
|
|
1375
1178
|
};
|
|
1376
1179
|
}
|
|
1377
1180
|
}
|
|
1378
1181
|
});
|
|
1379
|
-
function
|
|
1182
|
+
function zn(e, t, n, o, r, i) {
|
|
1380
1183
|
var f;
|
|
1381
1184
|
const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
|
|
1382
|
-
return e.canShowBlock ? (d(), h(
|
|
1383
|
-
|
|
1185
|
+
return e.canShowBlock ? (d(), h(w, { key: 0 }, [
|
|
1186
|
+
$(s, {
|
|
1384
1187
|
block: e.processedBlock,
|
|
1385
1188
|
context: e.context,
|
|
1386
1189
|
id: e.block.id
|
|
1387
1190
|
}, null, 8, ["block", "context", "id"]),
|
|
1388
|
-
(f = e.blockComponent) != null && f.noWrap ? (d(), h(
|
|
1389
|
-
e.repeatItem ? (d(!0), h(
|
|
1191
|
+
(f = e.blockComponent) != null && f.noWrap ? (d(), h(w, { key: 1 }, [
|
|
1192
|
+
e.repeatItem ? (d(!0), h(w, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
|
|
1390
1193
|
key: e.generateKey(m),
|
|
1391
1194
|
repeatContext: c.context,
|
|
1392
1195
|
block: c.block,
|
|
@@ -1404,8 +1207,8 @@ function po(e, t, n, o, r, i) {
|
|
|
1404
1207
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1405
1208
|
isInteractive: e.componentRefProps.isInteractive
|
|
1406
1209
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1407
|
-
], 64)) : (d(), h(
|
|
1408
|
-
e.repeatItem ? (d(!0), h(
|
|
1210
|
+
], 64)) : (d(), h(w, { key: 0 }, [
|
|
1211
|
+
e.repeatItem ? (d(!0), h(w, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
|
|
1409
1212
|
key: e.generateKey(m),
|
|
1410
1213
|
repeatContext: c.context,
|
|
1411
1214
|
block: c.block,
|
|
@@ -1417,8 +1220,8 @@ function po(e, t, n, o, r, i) {
|
|
|
1417
1220
|
block: e.processedBlock,
|
|
1418
1221
|
context: e.context
|
|
1419
1222
|
}, {
|
|
1420
|
-
default:
|
|
1421
|
-
|
|
1223
|
+
default: x(() => [
|
|
1224
|
+
$(l, {
|
|
1422
1225
|
componentRef: e.componentRefProps.componentRef,
|
|
1423
1226
|
componentOptions: e.componentRefProps.componentOptions,
|
|
1424
1227
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -1429,7 +1232,7 @@ function po(e, t, n, o, r, i) {
|
|
|
1429
1232
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1430
1233
|
isInteractive: e.componentRefProps.isInteractive
|
|
1431
1234
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1432
|
-
(d(!0), h(
|
|
1235
|
+
(d(!0), h(w, null, F(e.childrenWithoutParentComponent, (c, m) => (d(), S(a, {
|
|
1433
1236
|
key: c.id,
|
|
1434
1237
|
block: c,
|
|
1435
1238
|
registeredComponents: e.registeredComponents,
|
|
@@ -1442,10 +1245,10 @@ function po(e, t, n, o, r, i) {
|
|
|
1442
1245
|
], 64))
|
|
1443
1246
|
], 64)) : C("", !0);
|
|
1444
1247
|
}
|
|
1445
|
-
const
|
|
1248
|
+
const dt = /* @__PURE__ */ v(jn, [["render", zn]]), os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1446
1249
|
__proto__: null,
|
|
1447
|
-
default:
|
|
1448
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1250
|
+
default: dt
|
|
1251
|
+
}, Symbol.toStringTag, { value: "Module" })), Kn = y({
|
|
1449
1252
|
name: "builder-blocks-wrapper",
|
|
1450
1253
|
props: [
|
|
1451
1254
|
"blocks",
|
|
@@ -1515,8 +1318,8 @@ const gt = /* @__PURE__ */ v(uo, [["render", po]]), Is = /* @__PURE__ */ Object.
|
|
|
1515
1318
|
}
|
|
1516
1319
|
}
|
|
1517
1320
|
});
|
|
1518
|
-
function
|
|
1519
|
-
return d(), S(
|
|
1321
|
+
function Gn(e, t, n, o, r, i) {
|
|
1322
|
+
return d(), S(Y(e.BlocksWrapper), I({
|
|
1520
1323
|
ref: "blocksWrapperRef",
|
|
1521
1324
|
class: e.className + " component-5vz8uirn7sc",
|
|
1522
1325
|
"builder-path": e.dataPath,
|
|
@@ -1526,15 +1329,15 @@ function ho(e, t, n, o, r, i) {
|
|
|
1526
1329
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
1527
1330
|
onKeyPress: (s) => e.onClick()
|
|
1528
1331
|
}, { ...e.BlocksWrapperProps }), {
|
|
1529
|
-
default:
|
|
1332
|
+
default: x(() => [
|
|
1530
1333
|
V(e.$slots, "default", {}, void 0, !0)
|
|
1531
1334
|
]),
|
|
1532
1335
|
_: 3
|
|
1533
1336
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1534
1337
|
}
|
|
1535
|
-
const
|
|
1338
|
+
const Jn = /* @__PURE__ */ v(Kn, [["render", Gn], ["__scopeId", "data-v-82fc93d6"]]), Qn = y({
|
|
1536
1339
|
name: "builder-blocks",
|
|
1537
|
-
components: { BlocksWrapper:
|
|
1340
|
+
components: { BlocksWrapper: Jn, Block: dt },
|
|
1538
1341
|
props: [
|
|
1539
1342
|
"blocks",
|
|
1540
1343
|
"parent",
|
|
@@ -1547,11 +1350,11 @@ const fo = /* @__PURE__ */ v(mo, [["render", ho], ["__scopeId", "data-v-82fc93d6
|
|
|
1547
1350
|
"registeredComponents"
|
|
1548
1351
|
],
|
|
1549
1352
|
inject: {
|
|
1550
|
-
builderContext:
|
|
1353
|
+
builderContext: he.key,
|
|
1551
1354
|
componentsContext: Ge.key
|
|
1552
1355
|
}
|
|
1553
1356
|
});
|
|
1554
|
-
function
|
|
1357
|
+
function Yn(e, t, n, o, r, i) {
|
|
1555
1358
|
var a, u, p, f;
|
|
1556
1359
|
const s = k("Block"), l = k("BlocksWrapper");
|
|
1557
1360
|
return d(), S(l, {
|
|
@@ -1563,9 +1366,9 @@ function go(e, t, n, o, r, i) {
|
|
|
1563
1366
|
classNameProp: e.className,
|
|
1564
1367
|
BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((f = e.builderContext) == null ? void 0 : f.BlocksWrapper)
|
|
1565
1368
|
}, {
|
|
1566
|
-
default:
|
|
1369
|
+
default: x(() => [
|
|
1567
1370
|
V(e.$slots, "default"),
|
|
1568
|
-
e.blocks ? (d(!0), h(
|
|
1371
|
+
e.blocks ? (d(!0), h(w, { key: 0 }, F(e.blocks, (c, m) => {
|
|
1569
1372
|
var b;
|
|
1570
1373
|
return d(), S(s, {
|
|
1571
1374
|
key: c.id,
|
|
@@ -1579,21 +1382,21 @@ function go(e, t, n, o, r, i) {
|
|
|
1579
1382
|
_: 3
|
|
1580
1383
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
1581
1384
|
}
|
|
1582
|
-
const
|
|
1385
|
+
const j = /* @__PURE__ */ v(Qn, [["render", Yn]]), Xn = y({
|
|
1583
1386
|
name: "dynamic-div",
|
|
1584
1387
|
props: []
|
|
1585
1388
|
});
|
|
1586
|
-
function
|
|
1389
|
+
function Zn(e, t, n, o, r, i) {
|
|
1587
1390
|
return d(), h("div", null, [
|
|
1588
1391
|
V(e.$slots, "default")
|
|
1589
1392
|
]);
|
|
1590
1393
|
}
|
|
1591
|
-
const
|
|
1394
|
+
const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1592
1395
|
__proto__: null,
|
|
1593
|
-
default:
|
|
1594
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1396
|
+
default: ee
|
|
1397
|
+
}, Symbol.toStringTag, { value: "Module" })), ce = y({
|
|
1595
1398
|
render() {
|
|
1596
|
-
return
|
|
1399
|
+
return Me("style", {
|
|
1597
1400
|
innerHTML: this.styles,
|
|
1598
1401
|
"data-id": this.id,
|
|
1599
1402
|
nonce: this.nonce
|
|
@@ -1601,7 +1404,7 @@ const te = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
|
|
|
1601
1404
|
},
|
|
1602
1405
|
name: "inlined-styles",
|
|
1603
1406
|
props: ["styles", "id", "nonce"]
|
|
1604
|
-
}),
|
|
1407
|
+
}), ut = {
|
|
1605
1408
|
xsmall: {
|
|
1606
1409
|
min: 0,
|
|
1607
1410
|
default: 160,
|
|
@@ -1622,8 +1425,8 @@ const te = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
|
|
|
1622
1425
|
default: 991,
|
|
1623
1426
|
max: 1200
|
|
1624
1427
|
}
|
|
1625
|
-
},
|
|
1626
|
-
const t =
|
|
1428
|
+
}, rs = (e, t = ut) => `@media (max-width: ${t[e].max}px)`, eo = (e) => {
|
|
1429
|
+
const t = ye(ut);
|
|
1627
1430
|
if (!e)
|
|
1628
1431
|
return t;
|
|
1629
1432
|
const {
|
|
@@ -1660,13 +1463,13 @@ const te = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
|
|
|
1660
1463
|
min: l,
|
|
1661
1464
|
default: l + 1
|
|
1662
1465
|
}, t;
|
|
1663
|
-
},
|
|
1466
|
+
}, to = (e) => `builder-columns ${e}-breakpoints`, no = y({
|
|
1664
1467
|
name: "builder-columns",
|
|
1665
1468
|
components: {
|
|
1666
|
-
InlinedStyles:
|
|
1667
|
-
DynamicRenderer:
|
|
1668
|
-
Blocks:
|
|
1669
|
-
DynamicDiv:
|
|
1469
|
+
InlinedStyles: ce,
|
|
1470
|
+
DynamicRenderer: Se,
|
|
1471
|
+
Blocks: j,
|
|
1472
|
+
DynamicDiv: ee
|
|
1670
1473
|
},
|
|
1671
1474
|
props: [
|
|
1672
1475
|
"space",
|
|
@@ -1679,7 +1482,7 @@ const te = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
|
|
|
1679
1482
|
"builderComponents"
|
|
1680
1483
|
],
|
|
1681
1484
|
data() {
|
|
1682
|
-
return { TARGET:
|
|
1485
|
+
return { TARGET: R, getColumnsClass: to };
|
|
1683
1486
|
},
|
|
1684
1487
|
computed: {
|
|
1685
1488
|
gutterSize() {
|
|
@@ -1758,7 +1561,7 @@ const te = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
|
|
|
1758
1561
|
},
|
|
1759
1562
|
getWidthForBreakpointSize(e) {
|
|
1760
1563
|
var n, o;
|
|
1761
|
-
return
|
|
1564
|
+
return eo(
|
|
1762
1565
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1763
1566
|
)[e].max;
|
|
1764
1567
|
},
|
|
@@ -1795,16 +1598,16 @@ const te = /* @__PURE__ */ v(yo, [["render", vo]]), So = /* @__PURE__ */ Object.
|
|
|
1795
1598
|
...e.link ? {
|
|
1796
1599
|
href: e.link
|
|
1797
1600
|
} : {},
|
|
1798
|
-
[
|
|
1799
|
-
style:
|
|
1601
|
+
[q()]: "builder-column",
|
|
1602
|
+
style: lt(this.columnCssVars(t))
|
|
1800
1603
|
};
|
|
1801
1604
|
}
|
|
1802
1605
|
}
|
|
1803
1606
|
});
|
|
1804
|
-
function
|
|
1607
|
+
function oo(e, t, n, o, r, i) {
|
|
1805
1608
|
var u;
|
|
1806
1609
|
const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1807
|
-
return d(), h("div",
|
|
1610
|
+
return d(), h("div", I({
|
|
1808
1611
|
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-1be3j8m9ewb",
|
|
1809
1612
|
style: e.columnsCssVars()
|
|
1810
1613
|
}, {}), [
|
|
@@ -1814,14 +1617,14 @@ function Io(e, t, n, o, r, i) {
|
|
|
1814
1617
|
styles: e.columnsStyles(),
|
|
1815
1618
|
nonce: e.builderContext.nonce
|
|
1816
1619
|
}, null, 8, ["styles", "nonce"])) : C("", !0),
|
|
1817
|
-
(d(!0), h(
|
|
1620
|
+
(d(!0), h(w, null, F(e.columns, (p, f) => (d(), S(a, {
|
|
1818
1621
|
key: f,
|
|
1819
1622
|
TagName: e.getTagName(p),
|
|
1820
1623
|
actionAttributes: {},
|
|
1821
1624
|
attributes: e.getAttributes(p, f)
|
|
1822
1625
|
}, {
|
|
1823
|
-
default:
|
|
1824
|
-
|
|
1626
|
+
default: x(() => [
|
|
1627
|
+
$(l, {
|
|
1825
1628
|
path: `columns.${f}.blocks`,
|
|
1826
1629
|
parent: e.builderBlock.id,
|
|
1827
1630
|
context: e.builderContext,
|
|
@@ -1837,47 +1640,47 @@ function Io(e, t, n, o, r, i) {
|
|
|
1837
1640
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1838
1641
|
], 16);
|
|
1839
1642
|
}
|
|
1840
|
-
const
|
|
1643
|
+
const ro = /* @__PURE__ */ v(no, [["render", oo], ["__scopeId", "data-v-ab15749a"]]), io = y({
|
|
1841
1644
|
name: "builder-fragment-component",
|
|
1842
1645
|
props: []
|
|
1843
1646
|
});
|
|
1844
|
-
function
|
|
1647
|
+
function so(e, t, n, o, r, i) {
|
|
1845
1648
|
return d(), h("span", null, [
|
|
1846
1649
|
V(e.$slots, "default")
|
|
1847
1650
|
]);
|
|
1848
1651
|
}
|
|
1849
|
-
const
|
|
1850
|
-
function
|
|
1652
|
+
const ao = /* @__PURE__ */ v(io, [["render", so]]);
|
|
1653
|
+
function Oe(e) {
|
|
1851
1654
|
return e.replace(/http(s)?:/, "");
|
|
1852
1655
|
}
|
|
1853
|
-
function
|
|
1656
|
+
function lo(e = "", t, n) {
|
|
1854
1657
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1855
1658
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1856
1659
|
}
|
|
1857
|
-
function
|
|
1660
|
+
function co(e, t) {
|
|
1858
1661
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1859
1662
|
return e;
|
|
1860
1663
|
if (t === "master")
|
|
1861
|
-
return
|
|
1664
|
+
return Oe(e);
|
|
1862
1665
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1863
1666
|
if (n) {
|
|
1864
1667
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
1865
|
-
return
|
|
1668
|
+
return Oe(`${o[0]}_${i}${r}`);
|
|
1866
1669
|
}
|
|
1867
1670
|
return null;
|
|
1868
1671
|
}
|
|
1869
|
-
function
|
|
1672
|
+
function te(e) {
|
|
1870
1673
|
if (!e)
|
|
1871
1674
|
return e;
|
|
1872
1675
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1873
1676
|
if (e.match(/builder\.io/)) {
|
|
1874
1677
|
let n = e;
|
|
1875
1678
|
const o = Number(e.split("?width=")[1]);
|
|
1876
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
1679
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${lo(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1877
1680
|
}
|
|
1878
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1681
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [co(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1879
1682
|
}
|
|
1880
|
-
const
|
|
1683
|
+
const uo = y({
|
|
1881
1684
|
name: "builder-image",
|
|
1882
1685
|
props: [
|
|
1883
1686
|
"lazy",
|
|
@@ -1907,10 +1710,10 @@ const Bo = y({
|
|
|
1907
1710
|
if (!this.noWebp) {
|
|
1908
1711
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
1909
1712
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
1910
|
-
return console.debug("Removed given srcset"),
|
|
1713
|
+
return console.debug("Removed given srcset"), te(t);
|
|
1911
1714
|
} else if (this.image && !this.srcset)
|
|
1912
|
-
return
|
|
1913
|
-
return
|
|
1715
|
+
return te(t);
|
|
1716
|
+
return te(t);
|
|
1914
1717
|
}
|
|
1915
1718
|
},
|
|
1916
1719
|
webpSrcSet() {
|
|
@@ -1928,19 +1731,19 @@ const Bo = y({
|
|
|
1928
1731
|
return this.aspectRatio ? e : void 0;
|
|
1929
1732
|
}
|
|
1930
1733
|
}
|
|
1931
|
-
}),
|
|
1734
|
+
}), po = ["srcset"], mo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], ho = {
|
|
1932
1735
|
key: 2,
|
|
1933
1736
|
class: "div-t43jfuqn6g-2"
|
|
1934
1737
|
};
|
|
1935
|
-
function
|
|
1738
|
+
function fo(e, t, n, o, r, i) {
|
|
1936
1739
|
var s, l, a, u, p, f;
|
|
1937
|
-
return d(), h(
|
|
1740
|
+
return d(), h(w, null, [
|
|
1938
1741
|
z("picture", null, [
|
|
1939
1742
|
e.webpSrcSet ? (d(), h("source", {
|
|
1940
1743
|
key: 0,
|
|
1941
1744
|
type: "image/webp",
|
|
1942
1745
|
srcset: e.webpSrcSet
|
|
1943
|
-
}, null, 8,
|
|
1746
|
+
}, null, 8, po)) : C("", !0),
|
|
1944
1747
|
z("img", {
|
|
1945
1748
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1946
1749
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
@@ -1952,13 +1755,13 @@ function Wo(e, t, n, o, r, i) {
|
|
|
1952
1755
|
objectFit: e.backgroundSize || "cover",
|
|
1953
1756
|
...e.aspectRatioCss
|
|
1954
1757
|
}),
|
|
1955
|
-
class:
|
|
1758
|
+
class: Z(
|
|
1956
1759
|
"builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
|
|
1957
1760
|
),
|
|
1958
1761
|
src: e.image,
|
|
1959
1762
|
srcset: e.srcSetToUse,
|
|
1960
1763
|
sizes: e.sizes
|
|
1961
|
-
}, null, 14,
|
|
1764
|
+
}, null, 14, mo)
|
|
1962
1765
|
]),
|
|
1963
1766
|
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
|
|
1964
1767
|
key: 0,
|
|
@@ -1968,20 +1771,20 @@ function Wo(e, t, n, o, r, i) {
|
|
|
1968
1771
|
})
|
|
1969
1772
|
}, null, 4)) : C("", !0),
|
|
1970
1773
|
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? V(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
|
|
1971
|
-
!e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div",
|
|
1774
|
+
!e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", ho, [
|
|
1972
1775
|
V(e.$slots, "default", {}, void 0, !0)
|
|
1973
1776
|
])) : C("", !0)
|
|
1974
1777
|
], 64);
|
|
1975
1778
|
}
|
|
1976
|
-
const
|
|
1779
|
+
const bo = /* @__PURE__ */ v(uo, [["render", fo], ["__scopeId", "data-v-741b9bbc"]]), go = y({
|
|
1977
1780
|
name: "builder-section-component",
|
|
1978
1781
|
props: ["attributes", "maxWidth"],
|
|
1979
1782
|
data() {
|
|
1980
1783
|
return { filterAttrs: N };
|
|
1981
1784
|
}
|
|
1982
1785
|
});
|
|
1983
|
-
function
|
|
1984
|
-
return d(), h("section",
|
|
1786
|
+
function yo(e, t, n, o, r, i) {
|
|
1787
|
+
return d(), h("section", I({
|
|
1985
1788
|
style: {
|
|
1986
1789
|
width: "100%",
|
|
1987
1790
|
alignSelf: "stretch",
|
|
@@ -1994,12 +1797,12 @@ function Uo(e, t, n, o, r, i) {
|
|
|
1994
1797
|
marginLeft: "auto",
|
|
1995
1798
|
marginRight: "auto"
|
|
1996
1799
|
}
|
|
1997
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1800
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1998
1801
|
V(e.$slots, "default")
|
|
1999
1802
|
], 16);
|
|
2000
1803
|
}
|
|
2001
|
-
const
|
|
2002
|
-
function
|
|
1804
|
+
const vo = /* @__PURE__ */ v(go, [["render", yo]]);
|
|
1805
|
+
function So(e, t, n, o) {
|
|
2003
1806
|
function r(u) {
|
|
2004
1807
|
return typeof u == "string";
|
|
2005
1808
|
}
|
|
@@ -2056,7 +1859,7 @@ function Lo(e, t, n, o) {
|
|
|
2056
1859
|
}, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2057
1860
|
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));
|
|
2058
1861
|
}
|
|
2059
|
-
const
|
|
1862
|
+
const ko = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
2060
1863
|
if (!navigator.cookieEnabled) {
|
|
2061
1864
|
return;
|
|
2062
1865
|
}
|
|
@@ -2101,7 +1904,7 @@ const Ho = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2101
1904
|
thisScript.remove();
|
|
2102
1905
|
}
|
|
2103
1906
|
}
|
|
2104
|
-
}`,
|
|
1907
|
+
}`, Co = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2105
1908
|
function isString(val) {
|
|
2106
1909
|
return typeof val === 'string';
|
|
2107
1910
|
}
|
|
@@ -2179,7 +1982,7 @@ const Ho = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2179
1982
|
return item.query.every(filter => {
|
|
2180
1983
|
return objectMatchesQuery(userAttributes, filter);
|
|
2181
1984
|
});
|
|
2182
|
-
}`,
|
|
1985
|
+
}`, To = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
2183
1986
|
function getCookie(name) {
|
|
2184
1987
|
const nameEQ = name + '=';
|
|
2185
1988
|
const ca = document.cookie.split(';');
|
|
@@ -2217,11 +2020,11 @@ const Ho = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2217
2020
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2218
2021
|
}
|
|
2219
2022
|
}
|
|
2220
|
-
}`,
|
|
2221
|
-
function
|
|
2222
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
2023
|
+
}`, ne = "default", wo = "filterWithCustomTargeting", pt = "builderIoPersonalization", mt = "updateVisibilityStylesScript", ht = ["react", "vue", "svelte", "qwik"], ft = ["vue", "svelte", "qwik"];
|
|
2024
|
+
function Io(e, t) {
|
|
2025
|
+
return !(e && e.length > 0) || !t ? !1 : ft.includes(R) ? !0 : !E();
|
|
2223
2026
|
}
|
|
2224
|
-
function
|
|
2027
|
+
function $o({
|
|
2225
2028
|
variants: e,
|
|
2226
2029
|
previewingIndex: t,
|
|
2227
2030
|
isHydrated: n,
|
|
@@ -2231,7 +2034,7 @@ function zo({
|
|
|
2231
2034
|
const i = {
|
|
2232
2035
|
blocks: r ?? [],
|
|
2233
2036
|
path: "this.children",
|
|
2234
|
-
index:
|
|
2037
|
+
index: ne
|
|
2235
2038
|
};
|
|
2236
2039
|
if (n && A()) {
|
|
2237
2040
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
@@ -2245,7 +2048,7 @@ function zo({
|
|
|
2245
2048
|
}
|
|
2246
2049
|
return i;
|
|
2247
2050
|
}
|
|
2248
|
-
if (
|
|
2051
|
+
if (E()) {
|
|
2249
2052
|
const s = o == null ? void 0 : o[0];
|
|
2250
2053
|
if (s && e) {
|
|
2251
2054
|
const l = e.indexOf(s);
|
|
@@ -2259,11 +2062,11 @@ function zo({
|
|
|
2259
2062
|
}
|
|
2260
2063
|
return i;
|
|
2261
2064
|
}
|
|
2262
|
-
const
|
|
2263
|
-
window.${
|
|
2264
|
-
window.${
|
|
2265
|
-
window.${
|
|
2266
|
-
`,
|
|
2065
|
+
const Ro = () => `
|
|
2066
|
+
window.${wo} = ${Co}
|
|
2067
|
+
window.${pt} = ${ko}
|
|
2068
|
+
window.${mt} = ${To}
|
|
2069
|
+
`, bt = R === "react", Eo = (e, t, n) => `window.${pt}(${JSON.stringify(e)}, "${t}", ${bt}${n ? `, "${n}"` : ""})`, Po = (e, t, n) => `window.${mt}(${JSON.stringify(e)}, "${t}", ${bt}${n ? `, "${n}"` : ""})`, de = {
|
|
2267
2070
|
"@type": "@builder.io/sdk:Element",
|
|
2268
2071
|
layerName: "Accordion item title",
|
|
2269
2072
|
responsiveStyles: {
|
|
@@ -2292,7 +2095,7 @@ const Go = () => `
|
|
|
2292
2095
|
}
|
|
2293
2096
|
}
|
|
2294
2097
|
}]
|
|
2295
|
-
},
|
|
2098
|
+
}, ue = {
|
|
2296
2099
|
"@type": "@builder.io/sdk:Element",
|
|
2297
2100
|
layerName: "Accordion item detail",
|
|
2298
2101
|
responsiveStyles: {
|
|
@@ -2323,7 +2126,7 @@ const Go = () => `
|
|
|
2323
2126
|
}
|
|
2324
2127
|
}
|
|
2325
2128
|
}]
|
|
2326
|
-
},
|
|
2129
|
+
}, Ao = {
|
|
2327
2130
|
name: "Builder:Accordion",
|
|
2328
2131
|
canHaveChildren: !0,
|
|
2329
2132
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2340,19 +2143,19 @@ const Go = () => `
|
|
|
2340
2143
|
name: "title",
|
|
2341
2144
|
type: "uiBlocks",
|
|
2342
2145
|
hideFromUI: !0,
|
|
2343
|
-
defaultValue: [
|
|
2146
|
+
defaultValue: [de]
|
|
2344
2147
|
}, {
|
|
2345
2148
|
name: "detail",
|
|
2346
2149
|
type: "uiBlocks",
|
|
2347
2150
|
hideFromUI: !0,
|
|
2348
|
-
defaultValue: [
|
|
2151
|
+
defaultValue: [ue]
|
|
2349
2152
|
}],
|
|
2350
2153
|
defaultValue: [{
|
|
2351
|
-
title: [
|
|
2352
|
-
detail: [
|
|
2154
|
+
title: [de],
|
|
2155
|
+
detail: [ue]
|
|
2353
2156
|
}, {
|
|
2354
|
-
title: [
|
|
2355
|
-
detail: [
|
|
2157
|
+
title: [de],
|
|
2158
|
+
detail: [ue]
|
|
2356
2159
|
}],
|
|
2357
2160
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2358
2161
|
}, {
|
|
@@ -2387,9 +2190,9 @@ const Go = () => `
|
|
|
2387
2190
|
builderComponents: !0,
|
|
2388
2191
|
builderLinkComponent: !0
|
|
2389
2192
|
}
|
|
2390
|
-
},
|
|
2193
|
+
}, Bo = (e) => e.toString(), Vo = y({
|
|
2391
2194
|
name: "builder-accordion",
|
|
2392
|
-
components: { Blocks:
|
|
2195
|
+
components: { Blocks: j },
|
|
2393
2196
|
props: [
|
|
2394
2197
|
"grid",
|
|
2395
2198
|
"oneAtATime",
|
|
@@ -2401,7 +2204,7 @@ const Go = () => `
|
|
|
2401
2204
|
"builderLinkComponent"
|
|
2402
2205
|
],
|
|
2403
2206
|
data() {
|
|
2404
|
-
return { open: [], convertOrderNumberToString:
|
|
2207
|
+
return { open: [], convertOrderNumberToString: Bo };
|
|
2405
2208
|
},
|
|
2406
2209
|
computed: {
|
|
2407
2210
|
onlyOneAtATime() {
|
|
@@ -2482,16 +2285,16 @@ const Go = () => `
|
|
|
2482
2285
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2483
2286
|
}
|
|
2484
2287
|
}
|
|
2485
|
-
}),
|
|
2486
|
-
function
|
|
2288
|
+
}), No = ["data-index", "onClick"];
|
|
2289
|
+
function Wo(e, t, n, o, r, i) {
|
|
2487
2290
|
const s = k("Blocks");
|
|
2488
2291
|
return d(), h("div", {
|
|
2489
2292
|
class: "builder-accordion",
|
|
2490
2293
|
style: M(e.accordionStyles)
|
|
2491
2294
|
}, [
|
|
2492
|
-
(d(!0), h(
|
|
2295
|
+
(d(!0), h(w, null, F(e.items, (l, a) => (d(), h(w, { key: a }, [
|
|
2493
2296
|
z("div", {
|
|
2494
|
-
class:
|
|
2297
|
+
class: Z(e.getAccordionTitleClassName(a)),
|
|
2495
2298
|
style: M({
|
|
2496
2299
|
...e.accordionTitleStyles,
|
|
2497
2300
|
...e.grid && {
|
|
@@ -2502,7 +2305,7 @@ function er(e, t, n, o, r, i) {
|
|
|
2502
2305
|
"data-index": a,
|
|
2503
2306
|
onClick: async (u) => e.onClick(a)
|
|
2504
2307
|
}, [
|
|
2505
|
-
|
|
2308
|
+
$(s, {
|
|
2506
2309
|
blocks: l.title,
|
|
2507
2310
|
path: `items.${a}.title`,
|
|
2508
2311
|
parent: e.builderBlock.id,
|
|
@@ -2510,13 +2313,13 @@ function er(e, t, n, o, r, i) {
|
|
|
2510
2313
|
registeredComponents: e.builderComponents,
|
|
2511
2314
|
linkComponent: e.builderLinkComponent
|
|
2512
2315
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2513
|
-
], 14,
|
|
2316
|
+
], 14, No),
|
|
2514
2317
|
e.open.includes(a) ? (d(), h("div", {
|
|
2515
2318
|
key: 0,
|
|
2516
|
-
class:
|
|
2319
|
+
class: Z(e.getAccordionDetailClassName(a)),
|
|
2517
2320
|
style: M(e.accordionDetailStyles)
|
|
2518
2321
|
}, [
|
|
2519
|
-
|
|
2322
|
+
$(s, {
|
|
2520
2323
|
blocks: l.detail,
|
|
2521
2324
|
path: `items.${a}.detail`,
|
|
2522
2325
|
parent: e.builderBlock.id,
|
|
@@ -2528,7 +2331,7 @@ function er(e, t, n, o, r, i) {
|
|
|
2528
2331
|
], 64))), 128))
|
|
2529
2332
|
], 4);
|
|
2530
2333
|
}
|
|
2531
|
-
const
|
|
2334
|
+
const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
|
|
2532
2335
|
name: "Core:Button",
|
|
2533
2336
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2534
2337
|
defaultStyles: {
|
|
@@ -2564,7 +2367,7 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
|
|
|
2564
2367
|
shouldReceiveBuilderProps: {
|
|
2565
2368
|
builderLinkComponent: !0
|
|
2566
2369
|
}
|
|
2567
|
-
},
|
|
2370
|
+
}, Uo = {
|
|
2568
2371
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2569
2372
|
name: "Columns",
|
|
2570
2373
|
isRSC: !0,
|
|
@@ -2771,13 +2574,13 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
|
|
|
2771
2574
|
builderComponents: !0,
|
|
2772
2575
|
builderLinkComponent: !0
|
|
2773
2576
|
}
|
|
2774
|
-
},
|
|
2577
|
+
}, Oo = {
|
|
2775
2578
|
name: "Fragment",
|
|
2776
2579
|
static: !0,
|
|
2777
2580
|
hidden: !0,
|
|
2778
2581
|
canHaveChildren: !0,
|
|
2779
2582
|
noWrap: !0
|
|
2780
|
-
},
|
|
2583
|
+
}, $e = ["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"], Fo = ["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"], Lo = {
|
|
2781
2584
|
name: "Image",
|
|
2782
2585
|
static: !0,
|
|
2783
2586
|
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",
|
|
@@ -2792,7 +2595,7 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
|
|
|
2792
2595
|
name: "image",
|
|
2793
2596
|
type: "file",
|
|
2794
2597
|
bubble: !0,
|
|
2795
|
-
allowedFileTypes:
|
|
2598
|
+
allowedFileTypes: $e,
|
|
2796
2599
|
required: !0,
|
|
2797
2600
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2798
2601
|
onChange: (e) => {
|
|
@@ -2889,7 +2692,7 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
|
|
|
2889
2692
|
shouldReceiveBuilderProps: {
|
|
2890
2693
|
builderBlock: !0
|
|
2891
2694
|
}
|
|
2892
|
-
},
|
|
2695
|
+
}, Ho = {
|
|
2893
2696
|
name: "PersonalizationContainer",
|
|
2894
2697
|
shouldReceiveBuilderProps: {
|
|
2895
2698
|
builderBlock: !0,
|
|
@@ -2925,9 +2728,9 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
|
|
|
2925
2728
|
defaultValue: []
|
|
2926
2729
|
}]
|
|
2927
2730
|
}]
|
|
2928
|
-
},
|
|
2731
|
+
}, Re = y({
|
|
2929
2732
|
render() {
|
|
2930
|
-
return
|
|
2733
|
+
return Me("script", {
|
|
2931
2734
|
innerHTML: this.scriptStr,
|
|
2932
2735
|
"data-id": this.id,
|
|
2933
2736
|
nonce: this.nonce
|
|
@@ -2935,12 +2738,12 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
|
|
|
2935
2738
|
},
|
|
2936
2739
|
name: "inlined-script",
|
|
2937
2740
|
props: ["scriptStr", "id", "nonce"]
|
|
2938
|
-
}),
|
|
2741
|
+
}), Mo = y({
|
|
2939
2742
|
name: "builder-personalization-container",
|
|
2940
2743
|
components: {
|
|
2941
|
-
Blocks:
|
|
2942
|
-
InlinedStyles:
|
|
2943
|
-
InlinedScript:
|
|
2744
|
+
Blocks: j,
|
|
2745
|
+
InlinedStyles: ce,
|
|
2746
|
+
InlinedScript: Re
|
|
2944
2747
|
},
|
|
2945
2748
|
props: [
|
|
2946
2749
|
"builderContext",
|
|
@@ -2954,25 +2757,25 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
|
|
|
2954
2757
|
var e, t, n, o, r, i, s;
|
|
2955
2758
|
return {
|
|
2956
2759
|
userAttributes: ae.getUserAttributes(),
|
|
2957
|
-
scriptStr:
|
|
2760
|
+
scriptStr: Eo(
|
|
2958
2761
|
this.variants,
|
|
2959
2762
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
2960
2763
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
2961
2764
|
),
|
|
2962
|
-
updateVisibilityStylesScript:
|
|
2765
|
+
updateVisibilityStylesScript: Po(
|
|
2963
2766
|
this.variants,
|
|
2964
2767
|
((o = this.builderBlock) == null ? void 0 : o.id) || "none",
|
|
2965
2768
|
(i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
|
|
2966
2769
|
),
|
|
2967
2770
|
unsubscribers: [],
|
|
2968
|
-
shouldRenderVariants:
|
|
2771
|
+
shouldRenderVariants: Io(
|
|
2969
2772
|
this.variants,
|
|
2970
|
-
|
|
2773
|
+
K((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
2971
2774
|
),
|
|
2972
2775
|
shouldResetVariants: !1,
|
|
2973
|
-
TARGET:
|
|
2974
|
-
DEFAULT_INDEX:
|
|
2975
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
2776
|
+
TARGET: R,
|
|
2777
|
+
DEFAULT_INDEX: ne,
|
|
2778
|
+
SDKS_REQUIRING_RESET_APPROACH: ft
|
|
2976
2779
|
};
|
|
2977
2780
|
},
|
|
2978
2781
|
mounted() {
|
|
@@ -2983,15 +2786,15 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
|
|
|
2983
2786
|
this.userAttributes = n;
|
|
2984
2787
|
},
|
|
2985
2788
|
{
|
|
2986
|
-
fireImmediately:
|
|
2789
|
+
fireImmediately: R === "qwik"
|
|
2987
2790
|
}
|
|
2988
2791
|
);
|
|
2989
|
-
if (!(A() ||
|
|
2792
|
+
if (!(A() || ke())) {
|
|
2990
2793
|
const n = this.filteredVariants[0];
|
|
2991
2794
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
2992
2795
|
new CustomEvent("builder.variantLoaded", {
|
|
2993
2796
|
detail: {
|
|
2994
|
-
variant: n ||
|
|
2797
|
+
variant: n || ne,
|
|
2995
2798
|
content: (t = this.builderContext) == null ? void 0 : t.content
|
|
2996
2799
|
},
|
|
2997
2800
|
bubbles: !0
|
|
@@ -3002,7 +2805,7 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
|
|
|
3002
2805
|
i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
|
|
3003
2806
|
new CustomEvent("builder.variantDisplayed", {
|
|
3004
2807
|
detail: {
|
|
3005
|
-
variant: n ||
|
|
2808
|
+
variant: n || ne,
|
|
3006
2809
|
content: (s = this.builderContext) == null ? void 0 : s.content
|
|
3007
2810
|
},
|
|
3008
2811
|
bubbles: !0
|
|
@@ -3021,13 +2824,13 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
|
|
|
3021
2824
|
return {
|
|
3022
2825
|
...N(this.attributes, "v-on:", !1),
|
|
3023
2826
|
...N(this.attributes, "v-on:", !0),
|
|
3024
|
-
[
|
|
2827
|
+
[q()]: `builder-personalization-container ${this.attributes[q()] || ""}`
|
|
3025
2828
|
};
|
|
3026
2829
|
},
|
|
3027
2830
|
filteredVariants() {
|
|
3028
2831
|
return (this.variants || []).filter((e) => {
|
|
3029
2832
|
var t, n, o, r;
|
|
3030
|
-
return
|
|
2833
|
+
return So(
|
|
3031
2834
|
{
|
|
3032
2835
|
...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
|
|
3033
2836
|
locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
|
|
@@ -3042,7 +2845,7 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
|
|
|
3042
2845
|
},
|
|
3043
2846
|
blocksToRender() {
|
|
3044
2847
|
var e;
|
|
3045
|
-
return
|
|
2848
|
+
return $o({
|
|
3046
2849
|
variants: this.variants,
|
|
3047
2850
|
fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
|
|
3048
2851
|
isHydrated: this.shouldResetVariants,
|
|
@@ -3060,10 +2863,10 @@ const tr = /* @__PURE__ */ v(Zo, [["render", er]]), nr = {
|
|
|
3060
2863
|
}
|
|
3061
2864
|
}
|
|
3062
2865
|
});
|
|
3063
|
-
function
|
|
2866
|
+
function qo(e, t, n, o, r, i) {
|
|
3064
2867
|
var u, p, f, c, m, b, g, P, U, B;
|
|
3065
2868
|
const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
|
|
3066
|
-
return d(), h("div",
|
|
2869
|
+
return d(), h("div", I({ ref: "rootRef" }, e.attrs), [
|
|
3067
2870
|
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
|
|
3068
2871
|
key: 0,
|
|
3069
2872
|
blocks: e.blocksToRender.blocks,
|
|
@@ -3076,24 +2879,24 @@ function cr(e, t, n, o, r, i) {
|
|
|
3076
2879
|
"data-variant-id": `${(f = e.builderBlock) == null ? void 0 : f.id}-${e.blocksToRender.index}`
|
|
3077
2880
|
}
|
|
3078
2881
|
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : C("", !0),
|
|
3079
|
-
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(
|
|
3080
|
-
e.shouldRenderVariants ? (d(), h(
|
|
3081
|
-
|
|
2882
|
+
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(w, { key: 1 }, [
|
|
2883
|
+
e.shouldRenderVariants ? (d(), h(w, { key: 0 }, [
|
|
2884
|
+
$(l, {
|
|
3082
2885
|
nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
|
|
3083
2886
|
styles: e.hideVariantsStyleString,
|
|
3084
2887
|
id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
|
|
3085
2888
|
}, null, 8, ["nonce", "styles", "id"]),
|
|
3086
|
-
|
|
2889
|
+
$(a, {
|
|
3087
2890
|
nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
|
|
3088
2891
|
scriptStr: e.updateVisibilityStylesScript,
|
|
3089
2892
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
3090
2893
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
3091
|
-
(d(!0), h(
|
|
3092
|
-
var
|
|
2894
|
+
(d(!0), h(w, null, F(e.variants, (T, W) => {
|
|
2895
|
+
var G, J, D, H;
|
|
3093
2896
|
return d(), S(s, {
|
|
3094
|
-
key: `${(
|
|
2897
|
+
key: `${(G = e.builderBlock) == null ? void 0 : G.id}-${W}`,
|
|
3095
2898
|
BlocksWrapperProps: {
|
|
3096
|
-
...(
|
|
2899
|
+
...(J = e.builderContext) == null ? void 0 : J.BlocksWrapperProps,
|
|
3097
2900
|
"aria-hidden": !0,
|
|
3098
2901
|
hidden: !0,
|
|
3099
2902
|
"data-variant-id": `${(D = e.builderBlock) == null ? void 0 : D.id}-${W}`
|
|
@@ -3104,13 +2907,13 @@ function cr(e, t, n, o, r, i) {
|
|
|
3104
2907
|
context: e.builderContext,
|
|
3105
2908
|
registeredComponents: e.builderComponents
|
|
3106
2909
|
}, {
|
|
3107
|
-
default:
|
|
3108
|
-
var
|
|
2910
|
+
default: x(() => {
|
|
2911
|
+
var Ee, Pe;
|
|
3109
2912
|
return [
|
|
3110
|
-
|
|
3111
|
-
nonce: ((
|
|
2913
|
+
$(a, {
|
|
2914
|
+
nonce: ((Ee = e.builderContext) == null ? void 0 : Ee.nonce) || "",
|
|
3112
2915
|
scriptStr: e.scriptStr,
|
|
3113
|
-
id: `variants-script-${(
|
|
2916
|
+
id: `variants-script-${(Pe = e.builderBlock) == null ? void 0 : Pe.id}-${W}`
|
|
3114
2917
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
3115
2918
|
];
|
|
3116
2919
|
}),
|
|
@@ -3118,7 +2921,7 @@ function cr(e, t, n, o, r, i) {
|
|
|
3118
2921
|
}, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
|
|
3119
2922
|
}), 128))
|
|
3120
2923
|
], 64)) : C("", !0),
|
|
3121
|
-
|
|
2924
|
+
$(s, {
|
|
3122
2925
|
blocks: e.blocksToRender.blocks,
|
|
3123
2926
|
parent: (P = e.builderBlock) == null ? void 0 : P.id,
|
|
3124
2927
|
path: e.blocksToRender.path,
|
|
@@ -3129,7 +2932,7 @@ function cr(e, t, n, o, r, i) {
|
|
|
3129
2932
|
"data-variant-id": `${(B = e.builderBlock) == null ? void 0 : B.id}-${e.blocksToRender.index}`
|
|
3130
2933
|
}
|
|
3131
2934
|
}, {
|
|
3132
|
-
default:
|
|
2935
|
+
default: x(() => {
|
|
3133
2936
|
var T, W;
|
|
3134
2937
|
return [
|
|
3135
2938
|
e.shouldRenderVariants ? (d(), S(a, {
|
|
@@ -3145,7 +2948,7 @@ function cr(e, t, n, o, r, i) {
|
|
|
3145
2948
|
], 64)) : C("", !0)
|
|
3146
2949
|
], 16);
|
|
3147
2950
|
}
|
|
3148
|
-
const
|
|
2951
|
+
const jo = /* @__PURE__ */ v(Mo, [["render", qo]]), zo = {
|
|
3149
2952
|
name: "Core:Section",
|
|
3150
2953
|
static: !0,
|
|
3151
2954
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3184,7 +2987,7 @@ const dr = /* @__PURE__ */ v(lr, [["render", cr]]), ur = {
|
|
|
3184
2987
|
}
|
|
3185
2988
|
}
|
|
3186
2989
|
}]
|
|
3187
|
-
},
|
|
2990
|
+
}, Ko = {
|
|
3188
2991
|
name: "Slot",
|
|
3189
2992
|
isRSC: !0,
|
|
3190
2993
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3201,15 +3004,15 @@ const dr = /* @__PURE__ */ v(lr, [["render", cr]]), ur = {
|
|
|
3201
3004
|
builderContext: !0,
|
|
3202
3005
|
builderComponents: !0
|
|
3203
3006
|
}
|
|
3204
|
-
},
|
|
3007
|
+
}, Go = y({
|
|
3205
3008
|
name: "builder-slot",
|
|
3206
|
-
components: { Blocks:
|
|
3009
|
+
components: { Blocks: j },
|
|
3207
3010
|
props: ["builderContext", "name", "builderComponents"]
|
|
3208
3011
|
});
|
|
3209
|
-
function
|
|
3012
|
+
function Jo(e, t, n, o, r, i) {
|
|
3210
3013
|
var l, a, u;
|
|
3211
3014
|
const s = k("Blocks");
|
|
3212
|
-
return d(), h("div",
|
|
3015
|
+
return d(), h("div", I(
|
|
3213
3016
|
{ style: {
|
|
3214
3017
|
pointerEvents: "auto"
|
|
3215
3018
|
} },
|
|
@@ -3217,7 +3020,7 @@ function hr(e, t, n, o, r, i) {
|
|
|
3217
3020
|
"builder-slot": e.name
|
|
3218
3021
|
}
|
|
3219
3022
|
), [
|
|
3220
|
-
|
|
3023
|
+
$(s, {
|
|
3221
3024
|
parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
|
|
3222
3025
|
path: `symbol.data.${e.name}`,
|
|
3223
3026
|
context: e.builderContext,
|
|
@@ -3226,7 +3029,7 @@ function hr(e, t, n, o, r, i) {
|
|
|
3226
3029
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
3227
3030
|
], 16);
|
|
3228
3031
|
}
|
|
3229
|
-
const
|
|
3032
|
+
const Qo = /* @__PURE__ */ v(Go, [["render", Jo]]), Yo = {
|
|
3230
3033
|
name: "Symbol",
|
|
3231
3034
|
noWrap: !0,
|
|
3232
3035
|
static: !0,
|
|
@@ -3265,7 +3068,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
|
|
|
3265
3068
|
builderComponents: !0,
|
|
3266
3069
|
builderLinkComponent: !0
|
|
3267
3070
|
}
|
|
3268
|
-
},
|
|
3071
|
+
}, pe = {
|
|
3269
3072
|
"@type": "@builder.io/sdk:Element",
|
|
3270
3073
|
responsiveStyles: {
|
|
3271
3074
|
large: {
|
|
@@ -3287,7 +3090,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
|
|
|
3287
3090
|
text: "New tab"
|
|
3288
3091
|
}
|
|
3289
3092
|
}
|
|
3290
|
-
},
|
|
3093
|
+
}, me = {
|
|
3291
3094
|
"@type": "@builder.io/sdk:Element",
|
|
3292
3095
|
responsiveStyles: {
|
|
3293
3096
|
large: {
|
|
@@ -3303,7 +3106,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
|
|
|
3303
3106
|
text: "New tab content "
|
|
3304
3107
|
}
|
|
3305
3108
|
}
|
|
3306
|
-
},
|
|
3109
|
+
}, Xo = {
|
|
3307
3110
|
name: "Builder: Tabs",
|
|
3308
3111
|
inputs: [{
|
|
3309
3112
|
name: "tabs",
|
|
@@ -3313,16 +3116,16 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
|
|
|
3313
3116
|
name: "label",
|
|
3314
3117
|
type: "uiBlocks",
|
|
3315
3118
|
hideFromUI: !0,
|
|
3316
|
-
defaultValue: [
|
|
3119
|
+
defaultValue: [pe]
|
|
3317
3120
|
}, {
|
|
3318
3121
|
name: "content",
|
|
3319
3122
|
type: "uiBlocks",
|
|
3320
3123
|
hideFromUI: !0,
|
|
3321
|
-
defaultValue: [
|
|
3124
|
+
defaultValue: [me]
|
|
3322
3125
|
}],
|
|
3323
3126
|
defaultValue: [{
|
|
3324
3127
|
label: [{
|
|
3325
|
-
...
|
|
3128
|
+
...pe,
|
|
3326
3129
|
component: {
|
|
3327
3130
|
name: "Text",
|
|
3328
3131
|
options: {
|
|
@@ -3331,7 +3134,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
|
|
|
3331
3134
|
}
|
|
3332
3135
|
}],
|
|
3333
3136
|
content: [{
|
|
3334
|
-
...
|
|
3137
|
+
...me,
|
|
3335
3138
|
component: {
|
|
3336
3139
|
name: "Text",
|
|
3337
3140
|
options: {
|
|
@@ -3341,7 +3144,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
|
|
|
3341
3144
|
}]
|
|
3342
3145
|
}, {
|
|
3343
3146
|
label: [{
|
|
3344
|
-
...
|
|
3147
|
+
...pe,
|
|
3345
3148
|
component: {
|
|
3346
3149
|
name: "Text",
|
|
3347
3150
|
options: {
|
|
@@ -3350,7 +3153,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
|
|
|
3350
3153
|
}
|
|
3351
3154
|
}],
|
|
3352
3155
|
content: [{
|
|
3353
|
-
...
|
|
3156
|
+
...me,
|
|
3354
3157
|
component: {
|
|
3355
3158
|
name: "Text",
|
|
3356
3159
|
options: {
|
|
@@ -3406,9 +3209,9 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
|
|
|
3406
3209
|
builderComponents: !0,
|
|
3407
3210
|
builderLinkComponent: !0
|
|
3408
3211
|
}
|
|
3409
|
-
},
|
|
3212
|
+
}, Zo = y({
|
|
3410
3213
|
name: "builder-tabs",
|
|
3411
|
-
components: { Blocks:
|
|
3214
|
+
components: { Blocks: j },
|
|
3412
3215
|
props: [
|
|
3413
3216
|
"defaultActiveTab",
|
|
3414
3217
|
"tabs",
|
|
@@ -3434,8 +3237,8 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
|
|
|
3434
3237
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3435
3238
|
}
|
|
3436
3239
|
}
|
|
3437
|
-
}),
|
|
3438
|
-
function
|
|
3240
|
+
}), _o = ["onClick"], er = { key: 0 };
|
|
3241
|
+
function tr(e, t, n, o, r, i) {
|
|
3439
3242
|
const s = k("Blocks");
|
|
3440
3243
|
return d(), h("div", null, [
|
|
3441
3244
|
z("div", {
|
|
@@ -3447,13 +3250,13 @@ function kr(e, t, n, o, r, i) {
|
|
|
3447
3250
|
overflow: "auto"
|
|
3448
3251
|
})
|
|
3449
3252
|
}, [
|
|
3450
|
-
(d(!0), h(
|
|
3253
|
+
(d(!0), h(w, null, F(e.tabs, (l, a) => (d(), h("span", {
|
|
3451
3254
|
key: a,
|
|
3452
|
-
class:
|
|
3255
|
+
class: Z(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
3453
3256
|
style: M(e.getTabStyle(a)),
|
|
3454
3257
|
onClick: async (u) => e.onClick(a)
|
|
3455
3258
|
}, [
|
|
3456
|
-
|
|
3259
|
+
$(s, {
|
|
3457
3260
|
parent: e.builderBlock.id,
|
|
3458
3261
|
path: `tabs.${a}.label`,
|
|
3459
3262
|
blocks: l.label,
|
|
@@ -3461,10 +3264,10 @@ function kr(e, t, n, o, r, i) {
|
|
|
3461
3264
|
registeredComponents: e.builderComponents,
|
|
3462
3265
|
linkComponent: e.builderLinkComponent
|
|
3463
3266
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3464
|
-
], 14,
|
|
3267
|
+
], 14, _o))), 128))
|
|
3465
3268
|
], 4),
|
|
3466
|
-
e.activeTabContent(e.activeTab) ? (d(), h("div",
|
|
3467
|
-
|
|
3269
|
+
e.activeTabContent(e.activeTab) ? (d(), h("div", er, [
|
|
3270
|
+
$(s, {
|
|
3468
3271
|
parent: e.builderBlock.id,
|
|
3469
3272
|
path: `tabs.${e.activeTab}.content`,
|
|
3470
3273
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -3475,7 +3278,7 @@ function kr(e, t, n, o, r, i) {
|
|
|
3475
3278
|
])) : C("", !0)
|
|
3476
3279
|
]);
|
|
3477
3280
|
}
|
|
3478
|
-
const
|
|
3281
|
+
const nr = /* @__PURE__ */ v(Zo, [["render", tr]]), or = {
|
|
3479
3282
|
shouldReceiveBuilderProps: {},
|
|
3480
3283
|
name: "Text",
|
|
3481
3284
|
static: !0,
|
|
@@ -3493,11 +3296,11 @@ const Cr = /* @__PURE__ */ v(yr, [["render", kr]]), Tr = {
|
|
|
3493
3296
|
height: "auto",
|
|
3494
3297
|
textAlign: "center"
|
|
3495
3298
|
}
|
|
3496
|
-
},
|
|
3299
|
+
}, rr = y({
|
|
3497
3300
|
name: "builder-text",
|
|
3498
3301
|
props: ["text"]
|
|
3499
|
-
}),
|
|
3500
|
-
function
|
|
3302
|
+
}), ir = ["innerHTML"];
|
|
3303
|
+
function sr(e, t, n, o, r, i) {
|
|
3501
3304
|
var s;
|
|
3502
3305
|
return d(), h("div", {
|
|
3503
3306
|
class: "builder-text",
|
|
@@ -3505,9 +3308,9 @@ function $r(e, t, n, o, r, i) {
|
|
|
3505
3308
|
style: {
|
|
3506
3309
|
outline: "none"
|
|
3507
3310
|
}
|
|
3508
|
-
}, null, 8,
|
|
3311
|
+
}, null, 8, ir);
|
|
3509
3312
|
}
|
|
3510
|
-
const
|
|
3313
|
+
const ar = /* @__PURE__ */ v(rr, [["render", sr]]), lr = {
|
|
3511
3314
|
name: "Custom Code",
|
|
3512
3315
|
static: !0,
|
|
3513
3316
|
requiredPermissions: ["editCode"],
|
|
@@ -3529,7 +3332,7 @@ const Rr = /* @__PURE__ */ v(Ir, [["render", $r]]), Er = {
|
|
|
3529
3332
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3530
3333
|
advanced: !0
|
|
3531
3334
|
}]
|
|
3532
|
-
},
|
|
3335
|
+
}, cr = y({
|
|
3533
3336
|
name: "builder-custom-code",
|
|
3534
3337
|
props: ["code", "replaceNodes"],
|
|
3535
3338
|
data() {
|
|
@@ -3579,7 +3382,7 @@ const Rr = /* @__PURE__ */ v(Ir, [["render", $r]]), Er = {
|
|
|
3579
3382
|
try {
|
|
3580
3383
|
this.scriptsRun.push(o.innerText), new Function(o.innerText)();
|
|
3581
3384
|
} catch (r) {
|
|
3582
|
-
|
|
3385
|
+
L.warn(
|
|
3583
3386
|
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
3584
3387
|
r
|
|
3585
3388
|
);
|
|
@@ -3588,15 +3391,15 @@ const Rr = /* @__PURE__ */ v(Ir, [["render", $r]]), Er = {
|
|
|
3588
3391
|
}
|
|
3589
3392
|
}
|
|
3590
3393
|
}
|
|
3591
|
-
}),
|
|
3592
|
-
function
|
|
3394
|
+
}), dr = ["innerHTML"];
|
|
3395
|
+
function ur(e, t, n, o, r, i) {
|
|
3593
3396
|
return d(), h("div", {
|
|
3594
3397
|
ref: "elementRef",
|
|
3595
|
-
class:
|
|
3398
|
+
class: Z("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3596
3399
|
innerHTML: e.code
|
|
3597
|
-
}, null, 10,
|
|
3400
|
+
}, null, 10, dr);
|
|
3598
3401
|
}
|
|
3599
|
-
const
|
|
3402
|
+
const pr = /* @__PURE__ */ v(cr, [["render", ur]]), mr = {
|
|
3600
3403
|
name: "Embed",
|
|
3601
3404
|
static: !0,
|
|
3602
3405
|
inputs: [{
|
|
@@ -3611,7 +3414,7 @@ const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
|
|
|
3611
3414
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3612
3415
|
hideFromUI: !0
|
|
3613
3416
|
}]
|
|
3614
|
-
},
|
|
3417
|
+
}, hr = ["text/javascript", "application/javascript", "application/ecmascript"], fr = (e) => hr.includes(e.type), br = y({
|
|
3615
3418
|
name: "builder-embed",
|
|
3616
3419
|
props: ["content"],
|
|
3617
3420
|
data() {
|
|
@@ -3644,24 +3447,24 @@ const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
|
|
|
3644
3447
|
this.scriptsInserted.push(n.src);
|
|
3645
3448
|
const o = document.createElement("script");
|
|
3646
3449
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3647
|
-
} else if (
|
|
3450
|
+
} else if (fr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3648
3451
|
try {
|
|
3649
3452
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3650
3453
|
} catch (o) {
|
|
3651
|
-
|
|
3454
|
+
L.warn("[BUILDER.IO] `Embed`: Error running script:", o);
|
|
3652
3455
|
}
|
|
3653
3456
|
}
|
|
3654
3457
|
}
|
|
3655
3458
|
}
|
|
3656
|
-
}),
|
|
3657
|
-
function
|
|
3459
|
+
}), gr = ["innerHTML"];
|
|
3460
|
+
function yr(e, t, n, o, r, i) {
|
|
3658
3461
|
return d(), h("div", {
|
|
3659
3462
|
class: "builder-embed",
|
|
3660
3463
|
ref: "elem",
|
|
3661
3464
|
innerHTML: e.content
|
|
3662
|
-
}, null, 8,
|
|
3465
|
+
}, null, 8, gr);
|
|
3663
3466
|
}
|
|
3664
|
-
const
|
|
3467
|
+
const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
|
|
3665
3468
|
name: "Form:Form",
|
|
3666
3469
|
// editableTags: ['builder-form-error']
|
|
3667
3470
|
defaults: {
|
|
@@ -3898,12 +3701,12 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
|
|
|
3898
3701
|
builderComponents: !0,
|
|
3899
3702
|
builderLinkComponent: !0
|
|
3900
3703
|
}
|
|
3901
|
-
},
|
|
3704
|
+
}, kr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Cr = () => {
|
|
3902
3705
|
const e = process.env.NODE_ENV || "production";
|
|
3903
|
-
return
|
|
3904
|
-
},
|
|
3706
|
+
return kr.includes(e) ? e : "production";
|
|
3707
|
+
}, Tr = y({
|
|
3905
3708
|
name: "builder-form-component",
|
|
3906
|
-
components: { Blocks:
|
|
3709
|
+
components: { Blocks: j },
|
|
3907
3710
|
props: [
|
|
3908
3711
|
"builderContext",
|
|
3909
3712
|
"previewState",
|
|
@@ -4012,10 +3815,10 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
|
|
|
4012
3815
|
});
|
|
4013
3816
|
return;
|
|
4014
3817
|
}
|
|
4015
|
-
const p = `${
|
|
3818
|
+
const p = `${Cr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
4016
3819
|
this.sendSubmissionsToEmail || ""
|
|
4017
3820
|
)}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
4018
|
-
|
|
3821
|
+
Ke(f), fetch(f, {
|
|
4019
3822
|
body: i,
|
|
4020
3823
|
headers: r,
|
|
4021
3824
|
method: this.method || "post"
|
|
@@ -4078,20 +3881,20 @@ const Fr = /* @__PURE__ */ v(Dr, [["render", Ur]]), Lr = {
|
|
|
4078
3881
|
}
|
|
4079
3882
|
}
|
|
4080
3883
|
}
|
|
4081
|
-
}),
|
|
3884
|
+
}), wr = ["validate", "action", "method", "name"], Ir = {
|
|
4082
3885
|
key: 2,
|
|
4083
3886
|
class: "builder-form-error-text pre-2oa2wtipkzk"
|
|
4084
3887
|
};
|
|
4085
|
-
function
|
|
3888
|
+
function $r(e, t, n, o, r, i) {
|
|
4086
3889
|
const s = k("Blocks");
|
|
4087
|
-
return d(), h("form",
|
|
3890
|
+
return d(), h("form", I({
|
|
4088
3891
|
validate: e.validate,
|
|
4089
3892
|
ref: "formRef",
|
|
4090
3893
|
action: !e.sendWithJs && e.action,
|
|
4091
3894
|
method: e.method,
|
|
4092
3895
|
name: e.name,
|
|
4093
3896
|
onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
|
|
4094
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3897
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4095
3898
|
V(e.$slots, "default", {}, void 0, !0),
|
|
4096
3899
|
e.submissionState() === "error" ? (d(), S(s, {
|
|
4097
3900
|
key: 0,
|
|
@@ -4105,16 +3908,16 @@ function zr(e, t, n, o, r, i) {
|
|
|
4105
3908
|
blocks: e.sendingMessage,
|
|
4106
3909
|
context: e.builderContext
|
|
4107
3910
|
}, null, 8, ["blocks", "context"])) : C("", !0),
|
|
4108
|
-
e.submissionState() === "error" && e.responseData ? (d(), h("pre",
|
|
3911
|
+
e.submissionState() === "error" && e.responseData ? (d(), h("pre", Ir, le(e.errorResponse(e.responseData)), 1)) : C("", !0),
|
|
4109
3912
|
e.submissionState() === "success" ? (d(), S(s, {
|
|
4110
3913
|
key: 3,
|
|
4111
3914
|
path: "successMessage",
|
|
4112
3915
|
blocks: e.successMessage,
|
|
4113
3916
|
context: e.builderContext
|
|
4114
3917
|
}, null, 8, ["blocks", "context"])) : C("", !0)
|
|
4115
|
-
], 16,
|
|
3918
|
+
], 16, wr);
|
|
4116
3919
|
}
|
|
4117
|
-
const
|
|
3920
|
+
const Rr = /* @__PURE__ */ v(Tr, [["render", $r], ["__scopeId", "data-v-77c7888c"]]), Er = {
|
|
4118
3921
|
name: "Form:Input",
|
|
4119
3922
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4120
3923
|
inputs: [
|
|
@@ -4165,7 +3968,7 @@ const Gr = /* @__PURE__ */ v(jr, [["render", zr], ["__scopeId", "data-v-77c7888c
|
|
|
4165
3968
|
borderStyle: "solid",
|
|
4166
3969
|
borderColor: "#ccc"
|
|
4167
3970
|
}
|
|
4168
|
-
},
|
|
3971
|
+
}, Pr = y({
|
|
4169
3972
|
name: "builder-form-input-component",
|
|
4170
3973
|
props: [
|
|
4171
3974
|
"attributes",
|
|
@@ -4179,9 +3982,9 @@ const Gr = /* @__PURE__ */ v(jr, [["render", zr], ["__scopeId", "data-v-77c7888c
|
|
|
4179
3982
|
data() {
|
|
4180
3983
|
return { isEditing: A, filterAttrs: N };
|
|
4181
3984
|
}
|
|
4182
|
-
}),
|
|
4183
|
-
function
|
|
4184
|
-
return d(), h("input",
|
|
3985
|
+
}), Ar = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3986
|
+
function Br(e, t, n, o, r, i) {
|
|
3987
|
+
return d(), h("input", I({
|
|
4185
3988
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4186
3989
|
placeholder: e.placeholder,
|
|
4187
3990
|
type: e.type,
|
|
@@ -4189,9 +3992,9 @@ function Xr(e, t, n, o, r, i) {
|
|
|
4189
3992
|
value: e.value,
|
|
4190
3993
|
defaultValue: e.defaultValue,
|
|
4191
3994
|
required: e.required
|
|
4192
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3995
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ar);
|
|
4193
3996
|
}
|
|
4194
|
-
const
|
|
3997
|
+
const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
4195
3998
|
name: "Form:Select",
|
|
4196
3999
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4197
4000
|
defaultStyles: {
|
|
@@ -4233,28 +4036,28 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
|
|
|
4233
4036
|
}],
|
|
4234
4037
|
static: !0,
|
|
4235
4038
|
noWrap: !0
|
|
4236
|
-
},
|
|
4039
|
+
}, Wr = y({
|
|
4237
4040
|
name: "builder-select-component",
|
|
4238
4041
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4239
4042
|
data() {
|
|
4240
4043
|
return { isEditing: A, filterAttrs: N };
|
|
4241
4044
|
}
|
|
4242
|
-
}),
|
|
4243
|
-
function
|
|
4244
|
-
return d(), h("select",
|
|
4045
|
+
}), Dr = ["value", "defaultValue", "name", "required"], xr = ["value"];
|
|
4046
|
+
function Ur(e, t, n, o, r, i) {
|
|
4047
|
+
return d(), h("select", I({
|
|
4245
4048
|
value: e.value,
|
|
4246
4049
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4247
4050
|
defaultValue: e.defaultValue,
|
|
4248
4051
|
name: e.name,
|
|
4249
4052
|
required: e.required
|
|
4250
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4251
|
-
(d(!0), h(
|
|
4053
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4054
|
+
(d(!0), h(w, null, F(e.options, (s, l) => (d(), h("option", {
|
|
4252
4055
|
key: `${s.name}-${l}`,
|
|
4253
4056
|
value: s.value
|
|
4254
|
-
}, le(s.name || s.value), 9,
|
|
4255
|
-
], 16,
|
|
4057
|
+
}, le(s.name || s.value), 9, xr))), 128))
|
|
4058
|
+
], 16, Dr);
|
|
4256
4059
|
}
|
|
4257
|
-
const
|
|
4060
|
+
const Or = /* @__PURE__ */ v(Wr, [["render", Ur]]), Fr = {
|
|
4258
4061
|
name: "Form:SubmitButton",
|
|
4259
4062
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4260
4063
|
defaultStyles: {
|
|
@@ -4279,17 +4082,17 @@ const ri = /* @__PURE__ */ v(ei, [["render", oi]]), ii = {
|
|
|
4279
4082
|
// that only shows if advanced setting is flipped
|
|
4280
4083
|
// TODO: defaultChildren
|
|
4281
4084
|
// canHaveChildren: true,
|
|
4282
|
-
},
|
|
4085
|
+
}, Lr = y({
|
|
4283
4086
|
name: "builder-submit-button",
|
|
4284
4087
|
props: ["attributes", "text"],
|
|
4285
4088
|
data() {
|
|
4286
4089
|
return { filterAttrs: N };
|
|
4287
4090
|
}
|
|
4288
4091
|
});
|
|
4289
|
-
function
|
|
4290
|
-
return d(), h("button",
|
|
4092
|
+
function Hr(e, t, n, o, r, i) {
|
|
4093
|
+
return d(), h("button", I({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17);
|
|
4291
4094
|
}
|
|
4292
|
-
const
|
|
4095
|
+
const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), qr = {
|
|
4293
4096
|
name: "Form:TextArea",
|
|
4294
4097
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4295
4098
|
inputs: [{
|
|
@@ -4325,7 +4128,7 @@ const li = /* @__PURE__ */ v(si, [["render", ai]]), ci = {
|
|
|
4325
4128
|
},
|
|
4326
4129
|
static: !0,
|
|
4327
4130
|
noWrap: !0
|
|
4328
|
-
},
|
|
4131
|
+
}, jr = y({
|
|
4329
4132
|
name: "builder-textarea",
|
|
4330
4133
|
props: [
|
|
4331
4134
|
"attributes",
|
|
@@ -4338,17 +4141,17 @@ const li = /* @__PURE__ */ v(si, [["render", ai]]), ci = {
|
|
|
4338
4141
|
data() {
|
|
4339
4142
|
return { filterAttrs: N };
|
|
4340
4143
|
}
|
|
4341
|
-
}),
|
|
4342
|
-
function
|
|
4343
|
-
return d(), h("textarea",
|
|
4144
|
+
}), zr = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4145
|
+
function Kr(e, t, n, o, r, i) {
|
|
4146
|
+
return d(), h("textarea", I({
|
|
4344
4147
|
placeholder: e.placeholder,
|
|
4345
4148
|
name: e.name,
|
|
4346
4149
|
value: e.value,
|
|
4347
4150
|
defaultValue: e.defaultValue,
|
|
4348
4151
|
required: e.required
|
|
4349
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4152
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, zr);
|
|
4350
4153
|
}
|
|
4351
|
-
const
|
|
4154
|
+
const Gr = /* @__PURE__ */ v(jr, [["render", Kr]]), Jr = {
|
|
4352
4155
|
name: "Raw:Img",
|
|
4353
4156
|
hideFromInsertMenu: !0,
|
|
4354
4157
|
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",
|
|
@@ -4356,7 +4159,7 @@ const mi = /* @__PURE__ */ v(di, [["render", pi]]), hi = {
|
|
|
4356
4159
|
name: "image",
|
|
4357
4160
|
bubble: !0,
|
|
4358
4161
|
type: "file",
|
|
4359
|
-
allowedFileTypes:
|
|
4162
|
+
allowedFileTypes: $e,
|
|
4360
4163
|
required: !0
|
|
4361
4164
|
}, {
|
|
4362
4165
|
name: "backgroundSize",
|
|
@@ -4392,7 +4195,7 @@ const mi = /* @__PURE__ */ v(di, [["render", pi]]), hi = {
|
|
|
4392
4195
|
defaultValue: 0.7041
|
|
4393
4196
|
}],
|
|
4394
4197
|
noWrap: !0
|
|
4395
|
-
},
|
|
4198
|
+
}, Qr = y({
|
|
4396
4199
|
name: "builder-img-component",
|
|
4397
4200
|
props: [
|
|
4398
4201
|
"imgSrc",
|
|
@@ -4411,21 +4214,21 @@ const mi = /* @__PURE__ */ v(di, [["render", pi]]), hi = {
|
|
|
4411
4214
|
srcSetToUse() {
|
|
4412
4215
|
const e = this.imgSrc || this.image;
|
|
4413
4216
|
if (!(!e || typeof e != "string") && e.match(/builder\.io/))
|
|
4414
|
-
return
|
|
4217
|
+
return te(e);
|
|
4415
4218
|
},
|
|
4416
4219
|
imgAttrs() {
|
|
4417
4220
|
const e = {
|
|
4418
4221
|
...N(this.attributes, "v-on:", !1),
|
|
4419
4222
|
...N(this.attributes, "v-on:", !0),
|
|
4420
|
-
[
|
|
4223
|
+
[q()]: `builder-raw-img ${this.attributes[q()] || ""}`
|
|
4421
4224
|
};
|
|
4422
4225
|
return delete e.style, e;
|
|
4423
4226
|
}
|
|
4424
4227
|
}
|
|
4425
|
-
}),
|
|
4426
|
-
function
|
|
4228
|
+
}), Yr = ["alt", "title", "src"];
|
|
4229
|
+
function Xr(e, t, n, o, r, i) {
|
|
4427
4230
|
var s;
|
|
4428
|
-
return d(), h("img",
|
|
4231
|
+
return d(), h("img", I({
|
|
4429
4232
|
loading: "lazy",
|
|
4430
4233
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
4431
4234
|
alt: e.altText,
|
|
@@ -4437,9 +4240,9 @@ function gi(e, t, n, o, r, i) {
|
|
|
4437
4240
|
aspectRatio: e.aspectRatio || void 0,
|
|
4438
4241
|
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4439
4242
|
}
|
|
4440
|
-
}, e.imgAttrs), null, 16,
|
|
4243
|
+
}, e.imgAttrs), null, 16, Yr);
|
|
4441
4244
|
}
|
|
4442
|
-
const
|
|
4245
|
+
const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
|
|
4443
4246
|
name: "Video",
|
|
4444
4247
|
canHaveChildren: !0,
|
|
4445
4248
|
defaultStyles: {
|
|
@@ -4450,14 +4253,14 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
|
|
|
4450
4253
|
inputs: [{
|
|
4451
4254
|
name: "video",
|
|
4452
4255
|
type: "file",
|
|
4453
|
-
allowedFileTypes:
|
|
4256
|
+
allowedFileTypes: Fo,
|
|
4454
4257
|
bubble: !0,
|
|
4455
4258
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
4456
4259
|
required: !0
|
|
4457
4260
|
}, {
|
|
4458
4261
|
name: "posterImage",
|
|
4459
4262
|
type: "file",
|
|
4460
|
-
allowedFileTypes:
|
|
4263
|
+
allowedFileTypes: $e,
|
|
4461
4264
|
helperText: "Image to show before the video plays"
|
|
4462
4265
|
}, {
|
|
4463
4266
|
name: "autoPlay",
|
|
@@ -4523,7 +4326,7 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
|
|
|
4523
4326
|
shouldReceiveBuilderProps: {
|
|
4524
4327
|
builderBlock: !0
|
|
4525
4328
|
}
|
|
4526
|
-
},
|
|
4329
|
+
}, ei = y({
|
|
4527
4330
|
name: "builder-video",
|
|
4528
4331
|
props: [
|
|
4529
4332
|
"lazyLoad",
|
|
@@ -4596,16 +4399,16 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
|
|
|
4596
4399
|
};
|
|
4597
4400
|
}
|
|
4598
4401
|
}
|
|
4599
|
-
}),
|
|
4402
|
+
}), ti = { style: {
|
|
4600
4403
|
position: "relative"
|
|
4601
|
-
} },
|
|
4404
|
+
} }, ni = ["preload", "poster"], oi = {
|
|
4602
4405
|
key: 1,
|
|
4603
4406
|
style: {
|
|
4604
4407
|
display: "flex",
|
|
4605
4408
|
flexDirection: "column",
|
|
4606
4409
|
alignItems: "stretch"
|
|
4607
4410
|
}
|
|
4608
|
-
},
|
|
4411
|
+
}, ri = {
|
|
4609
4412
|
key: 2,
|
|
4610
4413
|
style: {
|
|
4611
4414
|
pointerEvents: "none",
|
|
@@ -4619,10 +4422,10 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
|
|
|
4619
4422
|
height: "100%"
|
|
4620
4423
|
}
|
|
4621
4424
|
};
|
|
4622
|
-
function
|
|
4425
|
+
function ii(e, t, n, o, r, i) {
|
|
4623
4426
|
var s, l, a, u, p, f, c;
|
|
4624
|
-
return d(), h("div",
|
|
4625
|
-
z("video",
|
|
4427
|
+
return d(), h("div", ti, [
|
|
4428
|
+
z("video", I({
|
|
4626
4429
|
class: "builder-video",
|
|
4627
4430
|
ref: "videoRef",
|
|
4628
4431
|
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
@@ -4641,7 +4444,7 @@ function wi(e, t, n, o, r, i) {
|
|
|
4641
4444
|
},
|
|
4642
4445
|
poster: e.posterImage
|
|
4643
4446
|
}, e.spreadProps), [
|
|
4644
|
-
z("source",
|
|
4447
|
+
z("source", I(
|
|
4645
4448
|
{ type: "video/mp4" },
|
|
4646
4449
|
e.lazyLoad ? {
|
|
4647
4450
|
"data-src": e.video
|
|
@@ -4649,7 +4452,7 @@ function wi(e, t, n, o, r, i) {
|
|
|
4649
4452
|
src: e.video
|
|
4650
4453
|
}
|
|
4651
4454
|
), null, 16)
|
|
4652
|
-
], 16,
|
|
4455
|
+
], 16, ni),
|
|
4653
4456
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
|
|
4654
4457
|
key: 0,
|
|
4655
4458
|
style: M({
|
|
@@ -4659,75 +4462,75 @@ function wi(e, t, n, o, r, i) {
|
|
|
4659
4462
|
fontSize: "0px"
|
|
4660
4463
|
})
|
|
4661
4464
|
}, null, 4)) : C("", !0),
|
|
4662
|
-
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div",
|
|
4465
|
+
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", oi, [
|
|
4663
4466
|
V(e.$slots, "default")
|
|
4664
4467
|
])) : C("", !0),
|
|
4665
|
-
(c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div",
|
|
4468
|
+
(c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div", ri, [
|
|
4666
4469
|
V(e.$slots, "default")
|
|
4667
4470
|
])) : C("", !0)
|
|
4668
4471
|
]);
|
|
4669
4472
|
}
|
|
4670
|
-
const
|
|
4473
|
+
const si = /* @__PURE__ */ v(ei, [["render", ii]]), ai = () => [{
|
|
4474
|
+
component: pr,
|
|
4475
|
+
...lr
|
|
4476
|
+
}, {
|
|
4477
|
+
component: vr,
|
|
4478
|
+
...mr
|
|
4479
|
+
}, {
|
|
4480
|
+
component: Rr,
|
|
4481
|
+
...Sr
|
|
4482
|
+
}, {
|
|
4671
4483
|
component: Vr,
|
|
4672
4484
|
...Er
|
|
4673
4485
|
}, {
|
|
4674
|
-
component:
|
|
4486
|
+
component: Mr,
|
|
4487
|
+
...Fr
|
|
4488
|
+
}, {
|
|
4489
|
+
component: Or,
|
|
4675
4490
|
...Nr
|
|
4676
4491
|
}, {
|
|
4677
4492
|
component: Gr,
|
|
4678
|
-
...
|
|
4493
|
+
...qr
|
|
4679
4494
|
}, {
|
|
4680
4495
|
component: Zr,
|
|
4681
4496
|
...Jr
|
|
4682
4497
|
}, {
|
|
4683
|
-
component:
|
|
4684
|
-
...ii
|
|
4685
|
-
}, {
|
|
4686
|
-
component: ri,
|
|
4498
|
+
component: si,
|
|
4687
4499
|
..._r
|
|
4500
|
+
}], Fe = () => [{
|
|
4501
|
+
component: Ot,
|
|
4502
|
+
...xo
|
|
4688
4503
|
}, {
|
|
4689
|
-
component:
|
|
4690
|
-
...
|
|
4504
|
+
component: ro,
|
|
4505
|
+
...Uo
|
|
4691
4506
|
}, {
|
|
4692
|
-
component:
|
|
4693
|
-
...
|
|
4507
|
+
component: ao,
|
|
4508
|
+
...Oo
|
|
4694
4509
|
}, {
|
|
4695
|
-
component:
|
|
4696
|
-
...
|
|
4697
|
-
}], He = () => [{
|
|
4698
|
-
component: jt,
|
|
4699
|
-
...nr
|
|
4510
|
+
component: bo,
|
|
4511
|
+
...Lo
|
|
4700
4512
|
}, {
|
|
4701
|
-
component:
|
|
4702
|
-
...
|
|
4703
|
-
}, {
|
|
4704
|
-
component: Eo,
|
|
4705
|
-
...rr
|
|
4706
|
-
}, {
|
|
4707
|
-
component: Do,
|
|
4708
|
-
...sr
|
|
4513
|
+
component: vo,
|
|
4514
|
+
...zo
|
|
4709
4515
|
}, {
|
|
4710
|
-
component:
|
|
4711
|
-
...
|
|
4516
|
+
component: Qo,
|
|
4517
|
+
...Ko
|
|
4712
4518
|
}, {
|
|
4713
|
-
component:
|
|
4714
|
-
...
|
|
4715
|
-
}, {
|
|
4716
|
-
component: us,
|
|
4717
|
-
...br
|
|
4519
|
+
component: zi,
|
|
4520
|
+
...Yo
|
|
4718
4521
|
}, {
|
|
4719
|
-
component:
|
|
4720
|
-
...
|
|
4721
|
-
}, ...
|
|
4722
|
-
component:
|
|
4723
|
-
...
|
|
4522
|
+
component: ar,
|
|
4523
|
+
...or
|
|
4524
|
+
}, ...ht.includes(R) ? [{
|
|
4525
|
+
component: jo,
|
|
4526
|
+
...Ho
|
|
4724
4527
|
}] : [], {
|
|
4725
|
-
component:
|
|
4726
|
-
...
|
|
4528
|
+
component: nr,
|
|
4529
|
+
...Xo
|
|
4727
4530
|
}, {
|
|
4728
|
-
component:
|
|
4729
|
-
...
|
|
4730
|
-
}, ...
|
|
4531
|
+
component: Do,
|
|
4532
|
+
...Ao
|
|
4533
|
+
}, ...ai()], li = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4731
4534
|
function getAndSetVariantId() {
|
|
4732
4535
|
function setCookie(name, value, days) {
|
|
4733
4536
|
let expires = '';
|
|
@@ -4786,7 +4589,7 @@ const $i = /* @__PURE__ */ v(Si, [["render", wi]]), Ri = () => [{
|
|
|
4786
4589
|
}).join('');
|
|
4787
4590
|
styleEl.innerHTML = newStyleStr;
|
|
4788
4591
|
}
|
|
4789
|
-
}`,
|
|
4592
|
+
}`, ci = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4790
4593
|
if (!navigator.cookieEnabled) {
|
|
4791
4594
|
return;
|
|
4792
4595
|
}
|
|
@@ -4820,29 +4623,29 @@ const $i = /* @__PURE__ */ v(Si, [["render", wi]]), Ri = () => [{
|
|
|
4820
4623
|
thisScriptEl?.remove();
|
|
4821
4624
|
}
|
|
4822
4625
|
return;
|
|
4823
|
-
}`,
|
|
4626
|
+
}`, gt = "builderIoAbTest", yt = "builderIoRenderContent", oe = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4824
4627
|
...t,
|
|
4825
4628
|
testVariationId: t.id,
|
|
4826
4629
|
id: e == null ? void 0 : e.id
|
|
4827
|
-
})),
|
|
4630
|
+
})), di = ({
|
|
4828
4631
|
canTrack: e,
|
|
4829
4632
|
content: t
|
|
4830
|
-
}) => !(!(
|
|
4831
|
-
window.${
|
|
4832
|
-
window.${
|
|
4833
|
-
`,
|
|
4834
|
-
window.${
|
|
4835
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4836
|
-
)`,
|
|
4633
|
+
}) => !(!(oe(t).length > 0) || !e), ui = (e) => e === "react" || e === "reactNative", pi = R === "angular", vt = ui(R), mi = () => `
|
|
4634
|
+
window.${gt} = ${li}
|
|
4635
|
+
window.${yt} = ${ci}
|
|
4636
|
+
`, hi = (e, t) => `
|
|
4637
|
+
window.${gt}(
|
|
4638
|
+
"${t}",${JSON.stringify(e)}, ${vt}, ${pi}
|
|
4639
|
+
)`, fi = ({
|
|
4837
4640
|
contentId: e,
|
|
4838
4641
|
variationId: t
|
|
4839
|
-
}) => `window.${
|
|
4840
|
-
"${t}", "${e}", ${
|
|
4642
|
+
}) => `window.${yt}(
|
|
4643
|
+
"${t}", "${e}", ${vt}
|
|
4841
4644
|
)`;
|
|
4842
|
-
function
|
|
4645
|
+
function Le(e) {
|
|
4843
4646
|
return Math.round(e * 1e3) / 1e3;
|
|
4844
4647
|
}
|
|
4845
|
-
const
|
|
4648
|
+
const bi = (e, t, n = !0) => {
|
|
4846
4649
|
if (!(e instanceof HTMLElement))
|
|
4847
4650
|
return null;
|
|
4848
4651
|
let o = n ? e : e.parentElement;
|
|
@@ -4853,35 +4656,35 @@ const Di = (e, t, n = !0) => {
|
|
|
4853
4656
|
return o;
|
|
4854
4657
|
} while (o = o.parentElement);
|
|
4855
4658
|
return null;
|
|
4856
|
-
},
|
|
4659
|
+
}, gi = (e) => bi(e, (t) => {
|
|
4857
4660
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4858
4661
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4859
|
-
}),
|
|
4662
|
+
}), He = ({
|
|
4860
4663
|
event: e,
|
|
4861
4664
|
target: t
|
|
4862
4665
|
}) => {
|
|
4863
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
4666
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Le(o / n.width), s = Le(r / n.height);
|
|
4864
4667
|
return {
|
|
4865
4668
|
x: i,
|
|
4866
4669
|
y: s
|
|
4867
4670
|
};
|
|
4868
|
-
},
|
|
4869
|
-
const t = e.target, n = t &&
|
|
4671
|
+
}, yi = (e) => {
|
|
4672
|
+
const t = e.target, n = t && gi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4870
4673
|
return {
|
|
4871
4674
|
targetBuilderElement: o || void 0,
|
|
4872
4675
|
metadata: {
|
|
4873
|
-
targetOffset: t ?
|
|
4676
|
+
targetOffset: t ? He({
|
|
4874
4677
|
event: e,
|
|
4875
4678
|
target: t
|
|
4876
4679
|
}) : void 0,
|
|
4877
|
-
builderTargetOffset: n ?
|
|
4680
|
+
builderTargetOffset: n ? He({
|
|
4878
4681
|
event: e,
|
|
4879
4682
|
target: n
|
|
4880
4683
|
}) : void 0,
|
|
4881
4684
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4882
4685
|
}
|
|
4883
4686
|
};
|
|
4884
|
-
},
|
|
4687
|
+
}, vi = ["svelte", "qwik", "vue"], Si = () => vi.includes(R) && (A() || ke()), ki = (e) => {
|
|
4885
4688
|
var i;
|
|
4886
4689
|
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);
|
|
4887
4690
|
let r = "";
|
|
@@ -4907,15 +4710,15 @@ font-weight: ${s};
|
|
|
4907
4710
|
`.trim());
|
|
4908
4711
|
}
|
|
4909
4712
|
return r;
|
|
4910
|
-
},
|
|
4713
|
+
}, Ci = ({
|
|
4911
4714
|
customFonts: e
|
|
4912
4715
|
}) => {
|
|
4913
4716
|
var t;
|
|
4914
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4915
|
-
},
|
|
4717
|
+
return ((t = e == null ? void 0 : e.map((n) => ki(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4718
|
+
}, Ti = ({
|
|
4916
4719
|
cssCode: e,
|
|
4917
4720
|
contentId: t
|
|
4918
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4721
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", wi = `
|
|
4919
4722
|
.builder-button {
|
|
4920
4723
|
all: unset;
|
|
4921
4724
|
}
|
|
@@ -4932,9 +4735,9 @@ font-weight: ${s};
|
|
|
4932
4735
|
text-align: inherit;
|
|
4933
4736
|
font-family: inherit;
|
|
4934
4737
|
}
|
|
4935
|
-
`,
|
|
4738
|
+
`, Ii = (e) => e ? "" : wi, $i = (e) => `variant-${e}`, Ri = y({
|
|
4936
4739
|
name: "enable-editor",
|
|
4937
|
-
components: { DynamicDiv:
|
|
4740
|
+
components: { DynamicDiv: ee },
|
|
4938
4741
|
props: [
|
|
4939
4742
|
"isNestedRender",
|
|
4940
4743
|
"builderContextSignal",
|
|
@@ -4962,15 +4765,15 @@ font-weight: ${s};
|
|
|
4962
4765
|
httpReqsData: {},
|
|
4963
4766
|
httpReqsPending: {},
|
|
4964
4767
|
clicked: !1,
|
|
4965
|
-
builderContext:
|
|
4966
|
-
needsElementRefDivForEditing:
|
|
4967
|
-
getWrapperClassName:
|
|
4768
|
+
builderContext: he,
|
|
4769
|
+
needsElementRefDivForEditing: Si,
|
|
4770
|
+
getWrapperClassName: $i
|
|
4968
4771
|
};
|
|
4969
4772
|
},
|
|
4970
4773
|
provide() {
|
|
4971
4774
|
const e = this;
|
|
4972
4775
|
return {
|
|
4973
|
-
[
|
|
4776
|
+
[he.key]: e.builderContextSignal
|
|
4974
4777
|
};
|
|
4975
4778
|
},
|
|
4976
4779
|
created() {
|
|
@@ -4978,17 +4781,17 @@ font-weight: ${s};
|
|
|
4978
4781
|
},
|
|
4979
4782
|
mounted() {
|
|
4980
4783
|
var e, t, n;
|
|
4981
|
-
if (
|
|
4784
|
+
if (E()) {
|
|
4982
4785
|
A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4983
4786
|
new CustomEvent("initeditingbldr")
|
|
4984
4787
|
);
|
|
4985
|
-
const o = this.builderContextSignal.content &&
|
|
4788
|
+
const o = this.builderContextSignal.content && K(this.canTrack), r = ve({
|
|
4986
4789
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
4987
4790
|
canTrack: !0
|
|
4988
4791
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
4989
4792
|
if (o && i === r) {
|
|
4990
4793
|
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
|
|
4991
|
-
|
|
4794
|
+
Ae({
|
|
4992
4795
|
apiHost: this.apiHost,
|
|
4993
4796
|
type: "impression",
|
|
4994
4797
|
canTrack: !0,
|
|
@@ -4997,7 +4800,7 @@ font-weight: ${s};
|
|
|
4997
4800
|
variationId: r !== s ? r : void 0
|
|
4998
4801
|
});
|
|
4999
4802
|
}
|
|
5000
|
-
|
|
4803
|
+
ke() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5001
4804
|
new CustomEvent("initpreviewingbldr")
|
|
5002
4805
|
);
|
|
5003
4806
|
}
|
|
@@ -5039,7 +4842,7 @@ font-weight: ${s};
|
|
|
5039
4842
|
}
|
|
5040
4843
|
},
|
|
5041
4844
|
unmounted() {
|
|
5042
|
-
|
|
4845
|
+
E() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
5043
4846
|
"builder:component:stateChangeListenerActivated",
|
|
5044
4847
|
this.emitStateUpdate
|
|
5045
4848
|
));
|
|
@@ -5099,7 +4902,7 @@ font-weight: ${s};
|
|
|
5099
4902
|
this.builderContextSignal.content = n;
|
|
5100
4903
|
},
|
|
5101
4904
|
processMessage(e) {
|
|
5102
|
-
return
|
|
4905
|
+
return _e({
|
|
5103
4906
|
model: this.model,
|
|
5104
4907
|
trustedHosts: this.trustedHosts,
|
|
5105
4908
|
callbacks: {
|
|
@@ -5113,7 +4916,7 @@ font-weight: ${s};
|
|
|
5113
4916
|
});
|
|
5114
4917
|
},
|
|
5115
4918
|
animation: (t) => {
|
|
5116
|
-
|
|
4919
|
+
st(t);
|
|
5117
4920
|
},
|
|
5118
4921
|
contentUpdate: (t, n) => {
|
|
5119
4922
|
this.mergeNewContent(t, n);
|
|
@@ -5128,14 +4931,14 @@ font-weight: ${s};
|
|
|
5128
4931
|
var t, n;
|
|
5129
4932
|
if (this.builderContextSignal.content) {
|
|
5130
4933
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
5131
|
-
|
|
4934
|
+
Ae({
|
|
5132
4935
|
apiHost: this.apiHost,
|
|
5133
4936
|
type: "click",
|
|
5134
|
-
canTrack:
|
|
4937
|
+
canTrack: K(this.canTrack),
|
|
5135
4938
|
contentId: r,
|
|
5136
4939
|
apiKey: this.apiKey,
|
|
5137
4940
|
variationId: o !== r ? o : void 0,
|
|
5138
|
-
...
|
|
4941
|
+
...yi(e),
|
|
5139
4942
|
unique: !this.clicked
|
|
5140
4943
|
});
|
|
5141
4944
|
}
|
|
@@ -5156,7 +4959,7 @@ font-weight: ${s};
|
|
|
5156
4959
|
const l = s.replace(
|
|
5157
4960
|
/{{([^}]+)}}/g,
|
|
5158
4961
|
(p, f) => String(
|
|
5159
|
-
|
|
4962
|
+
_({
|
|
5160
4963
|
code: f,
|
|
5161
4964
|
context: this.context || {},
|
|
5162
4965
|
localState: void 0,
|
|
@@ -5173,7 +4976,7 @@ font-weight: ${s};
|
|
|
5173
4976
|
url: l,
|
|
5174
4977
|
method: "GET"
|
|
5175
4978
|
};
|
|
5176
|
-
|
|
4979
|
+
Ke(JSON.stringify(a));
|
|
5177
4980
|
const u = {
|
|
5178
4981
|
method: a.method,
|
|
5179
4982
|
headers: a.headers,
|
|
@@ -5201,7 +5004,7 @@ font-weight: ${s};
|
|
|
5201
5004
|
"builder:component:stateChange",
|
|
5202
5005
|
{
|
|
5203
5006
|
detail: {
|
|
5204
|
-
state:
|
|
5007
|
+
state: ye(this.builderContextSignal.rootState),
|
|
5205
5008
|
ref: {
|
|
5206
5009
|
name: this.model
|
|
5207
5010
|
}
|
|
@@ -5211,7 +5014,7 @@ font-weight: ${s};
|
|
|
5211
5014
|
);
|
|
5212
5015
|
},
|
|
5213
5016
|
elementRef_onIniteditingbldr(e) {
|
|
5214
|
-
window.addEventListener("message", this.processMessage),
|
|
5017
|
+
window.addEventListener("message", this.processMessage), Ze({
|
|
5215
5018
|
...this.locale ? {
|
|
5216
5019
|
locale: this.locale
|
|
5217
5020
|
} : {},
|
|
@@ -5228,7 +5031,7 @@ font-weight: ${s};
|
|
|
5228
5031
|
).forEach((t) => {
|
|
5229
5032
|
var n, o;
|
|
5230
5033
|
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
5231
|
-
const r =
|
|
5034
|
+
const r = nn(t);
|
|
5232
5035
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
5233
5036
|
}
|
|
5234
5037
|
}), window.addEventListener(
|
|
@@ -5241,7 +5044,7 @@ font-weight: ${s};
|
|
|
5241
5044
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
5242
5045
|
`builder.overrides.${n}`
|
|
5243
5046
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
5244
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
5047
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && we({
|
|
5245
5048
|
model: this.model,
|
|
5246
5049
|
apiKey: this.apiKey,
|
|
5247
5050
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -5256,9 +5059,9 @@ font-weight: ${s};
|
|
|
5256
5059
|
}
|
|
5257
5060
|
}
|
|
5258
5061
|
});
|
|
5259
|
-
function
|
|
5062
|
+
function Ei(e, t, n, o, r, i) {
|
|
5260
5063
|
var s, l, a;
|
|
5261
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(
|
|
5064
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(Y(e.ContentWrapper), I({
|
|
5262
5065
|
key: 0,
|
|
5263
5066
|
ref: "elementRef",
|
|
5264
5067
|
onClick: (u) => e.onClick(u),
|
|
@@ -5271,32 +5074,32 @@ function Ji(e, t, n, o, r, i) {
|
|
|
5271
5074
|
onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
|
|
5272
5075
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
5273
5076
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
5274
|
-
default:
|
|
5077
|
+
default: x(() => [
|
|
5275
5078
|
V(e.$slots, "default")
|
|
5276
5079
|
]),
|
|
5277
5080
|
_: 3
|
|
5278
5081
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : C("", !0);
|
|
5279
5082
|
}
|
|
5280
|
-
const
|
|
5083
|
+
const Pi = /* @__PURE__ */ v(Ri, [["render", Ei]]), Ai = y({
|
|
5281
5084
|
name: "content-styles",
|
|
5282
|
-
components: { InlinedStyles:
|
|
5085
|
+
components: { InlinedStyles: ce },
|
|
5283
5086
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5284
5087
|
data() {
|
|
5285
5088
|
return {
|
|
5286
5089
|
injectedStyles: `
|
|
5287
|
-
${
|
|
5090
|
+
${Ti({
|
|
5288
5091
|
cssCode: this.cssCode,
|
|
5289
5092
|
contentId: this.contentId
|
|
5290
5093
|
})}
|
|
5291
|
-
${
|
|
5094
|
+
${Ci({
|
|
5292
5095
|
customFonts: this.customFonts
|
|
5293
5096
|
})}
|
|
5294
|
-
${
|
|
5097
|
+
${Ii(this.isNestedRender)}
|
|
5295
5098
|
`.trim()
|
|
5296
5099
|
};
|
|
5297
5100
|
}
|
|
5298
5101
|
});
|
|
5299
|
-
function
|
|
5102
|
+
function Bi(e, t, n, o, r, i) {
|
|
5300
5103
|
const s = k("InlinedStyles");
|
|
5301
5104
|
return d(), S(s, {
|
|
5302
5105
|
id: "builderio-content",
|
|
@@ -5304,7 +5107,7 @@ function Xi(e, t, n, o, r, i) {
|
|
|
5304
5107
|
nonce: e.nonce
|
|
5305
5108
|
}, null, 8, ["styles", "nonce"]);
|
|
5306
5109
|
}
|
|
5307
|
-
const
|
|
5110
|
+
const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
|
|
5308
5111
|
content: e,
|
|
5309
5112
|
data: t,
|
|
5310
5113
|
locale: n
|
|
@@ -5321,7 +5124,7 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
|
|
|
5321
5124
|
locale: n
|
|
5322
5125
|
} : {}
|
|
5323
5126
|
};
|
|
5324
|
-
},
|
|
5127
|
+
}, Wi = ({
|
|
5325
5128
|
content: e,
|
|
5326
5129
|
data: t
|
|
5327
5130
|
}) => e ? {
|
|
@@ -5331,14 +5134,14 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
|
|
|
5331
5134
|
...t
|
|
5332
5135
|
},
|
|
5333
5136
|
meta: e == null ? void 0 : e.meta
|
|
5334
|
-
} : void 0,
|
|
5137
|
+
} : void 0, Di = kt, xi = y({
|
|
5335
5138
|
name: "content-component",
|
|
5336
5139
|
components: {
|
|
5337
|
-
EnableEditor:
|
|
5338
|
-
InlinedScript:
|
|
5339
|
-
ContentStyles:
|
|
5340
|
-
Blocks:
|
|
5341
|
-
DynamicDiv:
|
|
5140
|
+
EnableEditor: Pi,
|
|
5141
|
+
InlinedScript: Re,
|
|
5142
|
+
ContentStyles: Vi,
|
|
5143
|
+
Blocks: j,
|
|
5144
|
+
DynamicDiv: ee
|
|
5342
5145
|
},
|
|
5343
5146
|
props: [
|
|
5344
5147
|
"content",
|
|
@@ -5366,32 +5169,32 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
|
|
|
5366
5169
|
data() {
|
|
5367
5170
|
var e, t;
|
|
5368
5171
|
return {
|
|
5369
|
-
scriptStr:
|
|
5172
|
+
scriptStr: fi({
|
|
5370
5173
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5371
5174
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5372
5175
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5373
5176
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5374
5177
|
}),
|
|
5375
5178
|
registeredComponents: [
|
|
5376
|
-
...
|
|
5179
|
+
...Fe(),
|
|
5377
5180
|
...this.customComponents || []
|
|
5378
5181
|
].reduce(
|
|
5379
5182
|
(n, { component: o, ...r }) => ({
|
|
5380
5183
|
...n,
|
|
5381
5184
|
[r.name]: {
|
|
5382
|
-
component:
|
|
5185
|
+
component: Di(o),
|
|
5383
5186
|
...se(r)
|
|
5384
5187
|
}
|
|
5385
5188
|
}),
|
|
5386
5189
|
{}
|
|
5387
5190
|
),
|
|
5388
5191
|
builderContextSignal: {
|
|
5389
|
-
content:
|
|
5192
|
+
content: Wi({
|
|
5390
5193
|
content: this.content,
|
|
5391
5194
|
data: this.data
|
|
5392
5195
|
}),
|
|
5393
5196
|
localState: void 0,
|
|
5394
|
-
rootState:
|
|
5197
|
+
rootState: Ni({
|
|
5395
5198
|
content: this.content,
|
|
5396
5199
|
data: this.data,
|
|
5397
5200
|
locale: this.locale
|
|
@@ -5402,7 +5205,7 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
|
|
|
5402
5205
|
apiKey: this.apiKey,
|
|
5403
5206
|
apiVersion: this.apiVersion,
|
|
5404
5207
|
componentInfos: [
|
|
5405
|
-
...
|
|
5208
|
+
...Fe(),
|
|
5406
5209
|
...this.customComponents || []
|
|
5407
5210
|
].reduce(
|
|
5408
5211
|
(n, { component: o, ...r }) => ({
|
|
@@ -5417,7 +5220,7 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
|
|
|
5417
5220
|
nonce: this.nonce || "",
|
|
5418
5221
|
model: this.model
|
|
5419
5222
|
},
|
|
5420
|
-
TARGET:
|
|
5223
|
+
TARGET: R
|
|
5421
5224
|
};
|
|
5422
5225
|
},
|
|
5423
5226
|
provide() {
|
|
@@ -5430,11 +5233,11 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
|
|
|
5430
5233
|
},
|
|
5431
5234
|
created() {
|
|
5432
5235
|
var t, n;
|
|
5433
|
-
this.apiKey ||
|
|
5236
|
+
this.apiKey || L.error(
|
|
5434
5237
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
5435
5238
|
);
|
|
5436
5239
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
5437
|
-
e &&
|
|
5240
|
+
e && _({
|
|
5438
5241
|
code: e,
|
|
5439
5242
|
context: this.context || {},
|
|
5440
5243
|
localState: void 0,
|
|
@@ -5467,9 +5270,9 @@ const Zi = /* @__PURE__ */ v(Yi, [["render", Xi]]), _i = ({
|
|
|
5467
5270
|
}
|
|
5468
5271
|
}
|
|
5469
5272
|
});
|
|
5470
|
-
function
|
|
5273
|
+
function Ui(e, t, n, o, r, i) {
|
|
5471
5274
|
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
5472
|
-
return d(), S(u,
|
|
5275
|
+
return d(), S(u, I({
|
|
5473
5276
|
apiHost: e.apiHost,
|
|
5474
5277
|
nonce: e.nonce,
|
|
5475
5278
|
content: e.content,
|
|
@@ -5487,7 +5290,7 @@ function os(e, t, n, o, r, i) {
|
|
|
5487
5290
|
trustedHosts: e.trustedHosts,
|
|
5488
5291
|
isNestedRender: e.isNestedRender
|
|
5489
5292
|
}, {}), {
|
|
5490
|
-
default:
|
|
5293
|
+
default: x(() => {
|
|
5491
5294
|
var p, f, c, m, b, g, P;
|
|
5492
5295
|
return [
|
|
5493
5296
|
e.isSsrAbTest ? (d(), S(s, {
|
|
@@ -5504,7 +5307,7 @@ function os(e, t, n, o, r, i) {
|
|
|
5504
5307
|
cssCode: (c = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : c.cssCode,
|
|
5505
5308
|
customFonts: (b = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
|
|
5506
5309
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : C("", !0),
|
|
5507
|
-
|
|
5310
|
+
$(a, {
|
|
5508
5311
|
blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
|
|
5509
5312
|
context: e.builderContextSignal,
|
|
5510
5313
|
registeredComponents: e.registeredComponents,
|
|
@@ -5515,12 +5318,12 @@ function os(e, t, n, o, r, i) {
|
|
|
5515
5318
|
_: 1
|
|
5516
5319
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5517
5320
|
}
|
|
5518
|
-
const
|
|
5321
|
+
const Oi = /* @__PURE__ */ v(xi, [["render", Ui]]), Fi = y({
|
|
5519
5322
|
name: "content-variants",
|
|
5520
5323
|
components: {
|
|
5521
|
-
InlinedScript:
|
|
5522
|
-
InlinedStyles:
|
|
5523
|
-
ContentComponent:
|
|
5324
|
+
InlinedScript: Re,
|
|
5325
|
+
InlinedStyles: ce,
|
|
5326
|
+
ContentComponent: Oi
|
|
5524
5327
|
},
|
|
5525
5328
|
props: [
|
|
5526
5329
|
"canTrack",
|
|
@@ -5545,15 +5348,15 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = y({
|
|
|
5545
5348
|
],
|
|
5546
5349
|
data() {
|
|
5547
5350
|
return {
|
|
5548
|
-
shouldRenderVariants:
|
|
5549
|
-
canTrack:
|
|
5351
|
+
shouldRenderVariants: di({
|
|
5352
|
+
canTrack: K(this.canTrack),
|
|
5550
5353
|
content: this.content
|
|
5551
5354
|
}),
|
|
5552
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
5553
|
-
getInitPersonalizationVariantsFnsScriptString:
|
|
5554
|
-
TARGET:
|
|
5555
|
-
getInitVariantsFnsScriptString:
|
|
5556
|
-
getVariants:
|
|
5355
|
+
SDKS_SUPPORTING_PERSONALIZATION: ht,
|
|
5356
|
+
getInitPersonalizationVariantsFnsScriptString: Ro,
|
|
5357
|
+
TARGET: R,
|
|
5358
|
+
getInitVariantsFnsScriptString: mi,
|
|
5359
|
+
getVariants: oe
|
|
5557
5360
|
};
|
|
5558
5361
|
},
|
|
5559
5362
|
mounted() {
|
|
@@ -5561,8 +5364,8 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = y({
|
|
|
5561
5364
|
computed: {
|
|
5562
5365
|
updateCookieAndStylesScriptStr() {
|
|
5563
5366
|
var e;
|
|
5564
|
-
return
|
|
5565
|
-
|
|
5367
|
+
return hi(
|
|
5368
|
+
oe(this.content).map((t) => ({
|
|
5566
5369
|
id: t.testVariationId,
|
|
5567
5370
|
testRatio: t.testRatio
|
|
5568
5371
|
})),
|
|
@@ -5570,25 +5373,25 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = y({
|
|
|
5570
5373
|
);
|
|
5571
5374
|
},
|
|
5572
5375
|
hideVariantsStyleString() {
|
|
5573
|
-
return
|
|
5376
|
+
return oe(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
5574
5377
|
},
|
|
5575
5378
|
defaultContent() {
|
|
5576
5379
|
var e;
|
|
5577
5380
|
return this.shouldRenderVariants ? {
|
|
5578
5381
|
...this.content,
|
|
5579
5382
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5580
|
-
} :
|
|
5383
|
+
} : mn({
|
|
5581
5384
|
item: this.content,
|
|
5582
|
-
canTrack:
|
|
5385
|
+
canTrack: K(this.canTrack)
|
|
5583
5386
|
});
|
|
5584
5387
|
}
|
|
5585
5388
|
}
|
|
5586
5389
|
});
|
|
5587
|
-
function
|
|
5390
|
+
function Li(e, t, n, o, r, i) {
|
|
5588
5391
|
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5589
|
-
return d(), h(
|
|
5590
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(), h(
|
|
5591
|
-
|
|
5392
|
+
return d(), h(w, null, [
|
|
5393
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(), h(w, { key: 0 }, [
|
|
5394
|
+
$(s, {
|
|
5592
5395
|
id: "builderio-init-variants-fns",
|
|
5593
5396
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
5594
5397
|
nonce: e.nonce || ""
|
|
@@ -5600,18 +5403,18 @@ function ss(e, t, n, o, r, i) {
|
|
|
5600
5403
|
scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
|
|
5601
5404
|
}, null, 8, ["nonce", "scriptStr"])) : C("", !0)
|
|
5602
5405
|
], 64)) : C("", !0),
|
|
5603
|
-
e.shouldRenderVariants ? (d(), h(
|
|
5604
|
-
|
|
5406
|
+
e.shouldRenderVariants ? (d(), h(w, { key: 1 }, [
|
|
5407
|
+
$(l, {
|
|
5605
5408
|
id: "builderio-variants",
|
|
5606
5409
|
styles: e.hideVariantsStyleString,
|
|
5607
5410
|
nonce: e.nonce || ""
|
|
5608
5411
|
}, null, 8, ["styles", "nonce"]),
|
|
5609
|
-
|
|
5412
|
+
$(s, {
|
|
5610
5413
|
id: "builderio-variants-visibility",
|
|
5611
5414
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
5612
5415
|
nonce: e.nonce || ""
|
|
5613
5416
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5614
|
-
(d(!0), h(
|
|
5417
|
+
(d(!0), h(w, null, F(e.getVariants(e.content), (u, p) => (d(), S(a, I({
|
|
5615
5418
|
key: u.testVariationId,
|
|
5616
5419
|
apiHost: e.apiHost,
|
|
5617
5420
|
isNestedRender: e.isNestedRender,
|
|
@@ -5636,7 +5439,7 @@ function ss(e, t, n, o, r, i) {
|
|
|
5636
5439
|
trustedHosts: e.trustedHosts
|
|
5637
5440
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
5638
5441
|
], 64)) : C("", !0),
|
|
5639
|
-
|
|
5442
|
+
$(a, I({
|
|
5640
5443
|
apiHost: e.apiHost,
|
|
5641
5444
|
nonce: e.nonce,
|
|
5642
5445
|
isNestedRender: e.isNestedRender,
|
|
@@ -5663,15 +5466,15 @@ function ss(e, t, n, o, r, i) {
|
|
|
5663
5466
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5664
5467
|
], 64);
|
|
5665
5468
|
}
|
|
5666
|
-
const
|
|
5469
|
+
const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = async ({
|
|
5667
5470
|
builderContextValue: e,
|
|
5668
5471
|
symbol: t
|
|
5669
5472
|
}) => {
|
|
5670
5473
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5671
5474
|
(e != null && e.apiKey))
|
|
5672
|
-
return
|
|
5475
|
+
return we({
|
|
5673
5476
|
model: t.model,
|
|
5674
|
-
apiKey: e.apiKey,
|
|
5477
|
+
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
5675
5478
|
apiVersion: e.apiVersion,
|
|
5676
5479
|
...(t == null ? void 0 : t.entry) && {
|
|
5677
5480
|
query: {
|
|
@@ -5679,11 +5482,11 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = async ({
|
|
|
5679
5482
|
}
|
|
5680
5483
|
}
|
|
5681
5484
|
}).catch((n) => {
|
|
5682
|
-
|
|
5485
|
+
L.error("Could not fetch symbol content: ", n);
|
|
5683
5486
|
});
|
|
5684
|
-
},
|
|
5487
|
+
}, qi = y({
|
|
5685
5488
|
name: "builder-symbol",
|
|
5686
|
-
components: { ContentVariants:
|
|
5489
|
+
components: { ContentVariants: Hi, DynamicDiv: ee },
|
|
5687
5490
|
props: [
|
|
5688
5491
|
"symbol",
|
|
5689
5492
|
"builderComponents",
|
|
@@ -5725,7 +5528,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = async ({
|
|
|
5725
5528
|
className() {
|
|
5726
5529
|
var e, t;
|
|
5727
5530
|
return [
|
|
5728
|
-
this.attributes[
|
|
5531
|
+
this.attributes[q()],
|
|
5729
5532
|
"builder-symbol",
|
|
5730
5533
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
5731
5534
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -5740,7 +5543,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = async ({
|
|
|
5740
5543
|
methods: {
|
|
5741
5544
|
setContent() {
|
|
5742
5545
|
var e;
|
|
5743
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
5546
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || Mi({
|
|
5744
5547
|
symbol: this.symbol,
|
|
5745
5548
|
builderContextValue: this.builderContext
|
|
5746
5549
|
}).then((t) => {
|
|
@@ -5750,27 +5553,27 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = async ({
|
|
|
5750
5553
|
}
|
|
5751
5554
|
}
|
|
5752
5555
|
});
|
|
5753
|
-
function
|
|
5754
|
-
var l, a, u, p, f;
|
|
5556
|
+
function ji(e, t, n, o, r, i) {
|
|
5557
|
+
var l, a, u, p, f, c, m;
|
|
5755
5558
|
const s = k("ContentVariants");
|
|
5756
|
-
return d(), h("div",
|
|
5757
|
-
|
|
5559
|
+
return d(), h("div", I({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, O(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5560
|
+
$(s, {
|
|
5758
5561
|
nonce: e.builderContext.nonce,
|
|
5759
5562
|
isNestedRender: !0,
|
|
5760
5563
|
apiVersion: e.builderContext.apiVersion,
|
|
5761
|
-
apiKey: e.builderContext.apiKey,
|
|
5564
|
+
apiKey: (l = e.symbol) != null && l.global && ((a = e.symbol) != null && a.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
|
|
5762
5565
|
context: {
|
|
5763
5566
|
...e.builderContext.context,
|
|
5764
|
-
symbolId: (
|
|
5567
|
+
symbolId: (u = e.builderBlock) == null ? void 0 : u.id
|
|
5765
5568
|
},
|
|
5766
5569
|
customComponents: e.customComponents,
|
|
5767
5570
|
data: {
|
|
5768
|
-
...(
|
|
5571
|
+
...(p = e.symbol) == null ? void 0 : p.data,
|
|
5769
5572
|
...e.builderContext.localState,
|
|
5770
|
-
...(
|
|
5573
|
+
...(c = (f = e.contentToUse) == null ? void 0 : f.data) == null ? void 0 : c.state
|
|
5771
5574
|
},
|
|
5772
5575
|
canTrack: e.builderContext.canTrack,
|
|
5773
|
-
model: ((
|
|
5576
|
+
model: ((m = e.symbol) == null ? void 0 : m.model) ?? "",
|
|
5774
5577
|
content: e.contentToUse,
|
|
5775
5578
|
linkComponent: e.builderLinkComponent,
|
|
5776
5579
|
blocksWrapper: e.blocksWrapper,
|
|
@@ -5778,44 +5581,43 @@ function ds(e, t, n, o, r, i) {
|
|
|
5778
5581
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5779
5582
|
], 16);
|
|
5780
5583
|
}
|
|
5781
|
-
const
|
|
5584
|
+
const zi = /* @__PURE__ */ v(qi, [["render", ji]]);
|
|
5782
5585
|
export {
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
$i as V,
|
|
5586
|
+
we as A,
|
|
5587
|
+
dt as B,
|
|
5588
|
+
ro as C,
|
|
5589
|
+
Ji as D,
|
|
5590
|
+
os as E,
|
|
5591
|
+
ao as F,
|
|
5592
|
+
bo as I,
|
|
5593
|
+
vo as S,
|
|
5594
|
+
ar as T,
|
|
5595
|
+
si as V,
|
|
5794
5596
|
v as _,
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5597
|
+
q as a,
|
|
5598
|
+
he as b,
|
|
5599
|
+
ce as c,
|
|
5600
|
+
eo as d,
|
|
5601
|
+
_ as e,
|
|
5602
|
+
ts as f,
|
|
5603
|
+
ns as g,
|
|
5604
|
+
rs as h,
|
|
5605
|
+
Ie as i,
|
|
5606
|
+
tn as j,
|
|
5607
|
+
Ot as k,
|
|
5608
|
+
zi as l,
|
|
5609
|
+
j as m,
|
|
5610
|
+
Hi as n,
|
|
5611
|
+
ke as o,
|
|
5612
|
+
nn as p,
|
|
5613
|
+
Yi as q,
|
|
5614
|
+
Qi as r,
|
|
5615
|
+
_i as s,
|
|
5616
|
+
Xi as t,
|
|
5815
5617
|
Ye as u,
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5618
|
+
Zi as v,
|
|
5619
|
+
Di as w,
|
|
5620
|
+
es as x,
|
|
5621
|
+
wn as y,
|
|
5622
|
+
In as z
|
|
5821
5623
|
};
|