@builder.io/sdk-vue 4.1.3 → 4.2.3
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-5XM6eBKO.js → awaiter-QkoC16ei.js} +1 -1
- package/lib/browser/{awaiter-DZTz3Ar3.cjs → awaiter-dVEzPIfa.cjs} +1 -1
- package/lib/browser/{block-wrapper-R-KDYbAM.cjs → block-wrapper-BOi64ZSf.cjs} +1 -1
- package/lib/browser/{block-wrapper-Bzn0Mn8q.js → block-wrapper-LGlUvVpu.js} +3 -3
- package/lib/browser/blocks/form/form/form.vue.d.ts +4 -3
- package/lib/browser/blocks/img/img.vue.d.ts +9 -2
- package/lib/browser/blocks/symbol/symbol.types.d.ts +1 -2
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/browser/blocks/tabs/tabs.vue.d.ts +1 -0
- package/lib/browser/component-ref-Jt8NZQKY.cjs +1 -0
- package/lib/browser/{component-ref-gskEENuC.js → component-ref-tMh8EWjb.js} +68 -57
- package/lib/browser/components/awaiter.types.d.ts +7 -0
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
- package/lib/browser/components/block/components/interactive-element.vue.d.ts +6 -3
- package/lib/browser/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
- package/lib/browser/components/block/components/style-wrapper.vue.d.ts +15 -0
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +6 -2
- package/lib/browser/components/live-edit.vue.d.ts +17 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/find-block-4FksmtpZ.js +30 -0
- package/lib/browser/find-block-FHyxDYzT.cjs +1 -0
- package/lib/browser/functions/register.d.ts +18 -0
- package/lib/browser/{get-block-properties-WccKVsdn.js → get-block-properties-Ahsh8p5y.js} +8 -8
- package/lib/browser/{get-block-properties-qWby6E7c.cjs → get-block-properties-NuVrGQN_.cjs} +1 -1
- package/lib/browser/helpers/find-block.d.ts +18 -0
- package/lib/browser/helpers/subscribe-to-editor.d.ts +3 -2
- package/lib/browser/{index-AM8hDJBa.js → index-EtzQVBnH.js} +682 -581
- package/lib/browser/index-jbLVGF3d.cjs +334 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +11 -10
- package/lib/browser/live-edit-h_5MH287.cjs +1 -0
- package/lib/browser/live-edit-rw2-UX9h.js +32 -0
- package/lib/browser/{repeated-block-04Z899ts.cjs → repeated-block-DP1NryZH.cjs} +1 -1
- package/lib/browser/{repeated-block-jUlJ75XZ.js → repeated-block-WP795fea.js} +2 -2
- package/lib/browser/server-index.d.ts +1 -1
- package/lib/browser/style-wrapper-OLuHp-wg.js +210 -0
- package/lib/browser/style-wrapper-_FKH2e4u.cjs +1 -0
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-GN-g8-yW.cjs → awaiter-AB81htE9.cjs} +1 -1
- package/lib/edge/{awaiter-itkvZDv7.js → awaiter-G2IZpq8y.js} +1 -1
- package/lib/{node/block-wrapper-vkf16jVz.cjs → edge/block-wrapper-3KMmt5za.cjs} +1 -1
- package/lib/{node/block-wrapper-Yxq8cADp.js → edge/block-wrapper-hc1D57Il.js} +3 -3
- package/lib/edge/blocks/form/form/form.vue.d.ts +4 -3
- package/lib/edge/blocks/img/img.vue.d.ts +9 -2
- package/lib/edge/blocks/symbol/symbol.types.d.ts +1 -2
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/edge/blocks/tabs/tabs.vue.d.ts +1 -0
- package/lib/edge/component-ref-1l1Dc15N.cjs +1 -0
- package/lib/edge/{component-ref-slGRIixC.js → component-ref-__eNmb_i.js} +68 -57
- package/lib/edge/components/awaiter.types.d.ts +7 -0
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
- package/lib/edge/components/block/components/interactive-element.vue.d.ts +6 -3
- package/lib/edge/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
- package/lib/edge/components/block/components/style-wrapper.vue.d.ts +15 -0
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +6 -2
- package/lib/edge/components/live-edit.vue.d.ts +17 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/find-block-3Ig0kVVe.js +29 -0
- package/lib/edge/find-block-FREohLcp.cjs +1 -0
- package/lib/edge/functions/register.d.ts +18 -0
- package/lib/edge/{get-block-properties-Nz3tnjcZ.js → get-block-properties-IlO7VcTG.js} +10 -10
- package/lib/edge/{get-block-properties-K9_lkqhk.cjs → get-block-properties-YofIFdQl.cjs} +1 -1
- package/lib/edge/helpers/find-block.d.ts +18 -0
- package/lib/edge/helpers/subscribe-to-editor.d.ts +3 -2
- package/lib/edge/{index-t2wm1Hgb.cjs → index-UFKf4DGh.cjs} +37 -37
- package/lib/edge/{index-0P0ciM70.js → index-pedBdruj.js} +975 -874
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +12 -11
- package/lib/edge/live-edit-bP5Bdb_I.cjs +1 -0
- package/lib/edge/live-edit-mkwzJ3KQ.js +31 -0
- package/lib/{node/repeated-block-DbM-cXD5.cjs → edge/repeated-block-eV-zFRwn.cjs} +1 -1
- package/lib/{node/repeated-block-FPm9ifh_.js → edge/repeated-block-i0HNWVX0.js} +2 -2
- package/lib/edge/server-index.d.ts +1 -1
- package/lib/edge/style-wrapper-QrUxYNMa.cjs +1 -0
- package/lib/edge/style-wrapper-mI3PSijR.js +209 -0
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-BKUR1e9L.cjs → awaiter-GsCK0Rmm.cjs} +1 -1
- package/lib/node/{awaiter-4Zchzm7Q.js → awaiter-vsM2I4ci.js} +2 -2
- package/lib/{edge/block-wrapper-e9t2aTqt.js → node/block-wrapper-HC1GKPg-.js} +3 -3
- package/lib/{edge/block-wrapper-W6MhBMeD.cjs → node/block-wrapper-VVk0Gqbc.cjs} +1 -1
- package/lib/node/blocks/form/form/form.vue.d.ts +4 -3
- package/lib/node/blocks/img/img.vue.d.ts +9 -2
- package/lib/node/blocks/symbol/symbol.types.d.ts +1 -2
- package/lib/node/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/node/blocks/tabs/tabs.vue.d.ts +1 -0
- package/lib/node/component-ref-SsJCZYlF.cjs +1 -0
- package/lib/node/{component-ref-c_8IgXLb.js → component-ref-bqN5ZiyT.js} +70 -58
- package/lib/node/components/awaiter.types.d.ts +7 -0
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
- package/lib/node/components/block/components/interactive-element.vue.d.ts +6 -3
- package/lib/node/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
- package/lib/node/components/block/components/style-wrapper.vue.d.ts +15 -0
- package/lib/node/components/content/components/enable-editor.vue.d.ts +6 -2
- package/lib/node/components/live-edit.vue.d.ts +17 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/find-block-3Ig0kVVe.js +29 -0
- package/lib/node/find-block-FREohLcp.cjs +1 -0
- package/lib/node/functions/register.d.ts +18 -0
- package/lib/node/{get-block-properties-jreznjwW.cjs → get-block-properties--0kf0kc1.cjs} +1 -1
- package/lib/node/{get-block-properties-sJTTyxpy.js → get-block-properties-4dl07r5f.js} +1 -1
- package/lib/node/helpers/find-block.d.ts +18 -0
- package/lib/node/helpers/subscribe-to-editor.d.ts +3 -2
- package/lib/node/index-9ZnpkpZ8.cjs +334 -0
- package/lib/node/{index-0s5_7Gfu.js → index-BtCfIIfO.js} +844 -743
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +10 -9
- package/lib/node/live-edit-dkMPrQFh.js +31 -0
- package/lib/node/live-edit-k5C1gkl6.cjs +1 -0
- package/lib/{edge/repeated-block-h1UA5gK0.js → node/repeated-block-FOLLYnPQ.js} +2 -2
- package/lib/{edge/repeated-block-_29LjXCq.cjs → node/repeated-block-pPsNH7xs.cjs} +1 -1
- package/lib/node/server-index.d.ts +1 -1
- package/lib/node/style-wrapper-CbrJHZiI.cjs +1 -0
- package/lib/node/style-wrapper-bEfbvdLX.js +210 -0
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/block-styles-58mkkubD.cjs +0 -1
- package/lib/browser/block-styles-biVGaluP.js +0 -84
- package/lib/browser/component-ref-V0MVxgsz.cjs +0 -1
- package/lib/browser/index-BiWOGEu2.cjs +0 -334
- package/lib/edge/block-styles-G1ClEDR3.cjs +0 -1
- package/lib/edge/block-styles-G42udXTn.js +0 -83
- package/lib/edge/component-ref-ia_8ZIAn.cjs +0 -1
- package/lib/node/block-styles-16ywDrRK.js +0 -84
- package/lib/node/block-styles-r6J38vG3.cjs +0 -1
- package/lib/node/component-ref-xUbOPInI.cjs +0 -1
- package/lib/node/index-t_oHxD-K.cjs +0 -334
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
2
|
+
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as $, toHandlers as L, withCtx as O, renderSlot as N, resolveComponent as k, createTextVNode as Vt, toDisplayString as ce, defineAsyncComponent as Y, createVNode as E, renderList as F, createCommentVNode as C, h as ze, createElementVNode as z, normalizeStyle as M, normalizeClass as Z, markRaw as Nt } from "vue";
|
|
3
|
+
const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Wt = (e) => typeof e == "string" && xt.has(e.toLowerCase());
|
|
4
|
+
function x(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
7
7
|
if (!e[r] || n && !r.startsWith(t))
|
|
@@ -11,11 +11,11 @@ function W(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const Dt = y({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: Wt };
|
|
19
19
|
}
|
|
20
20
|
}), v = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
@@ -24,24 +24,24 @@ const xt = y({
|
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
26
|
function Ot(e, t, n, o, r, i) {
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (d(), S(
|
|
28
|
-
typeof e.TagName == "string" ? (d(), S(
|
|
29
|
-
default:
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, L(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (d(), S(X(e.TagName), $({ key: 0 }, e.attributes, L(e.actionAttributes)), {
|
|
29
|
+
default: O(() => [
|
|
30
30
|
N(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (d(), S(
|
|
34
|
-
default:
|
|
33
|
+
}, 16)) : (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, L(e.actionAttributes)), {
|
|
34
|
+
default: O(() => [
|
|
35
35
|
N(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const ke = /* @__PURE__ */ v(Dt, [["render", Ot]]), vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })), R = "vue",
|
|
43
|
+
default: ke
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), R = "vue", j = () => {
|
|
45
45
|
switch (R) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
@@ -56,7 +56,7 @@ const Ce = /* @__PURE__ */ v(xt, [["render", Ot]]), vs = /* @__PURE__ */ Object.
|
|
|
56
56
|
}
|
|
57
57
|
}, Ut = y({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: ke },
|
|
60
60
|
props: [
|
|
61
61
|
"attributes",
|
|
62
62
|
"link",
|
|
@@ -65,13 +65,13 @@ const Ce = /* @__PURE__ */ v(xt, [["render", Ot]]), vs = /* @__PURE__ */ Object.
|
|
|
65
65
|
"text"
|
|
66
66
|
],
|
|
67
67
|
data() {
|
|
68
|
-
return { filterAttrs:
|
|
68
|
+
return { filterAttrs: x };
|
|
69
69
|
},
|
|
70
70
|
methods: {
|
|
71
71
|
attrs() {
|
|
72
72
|
return {
|
|
73
|
-
...
|
|
74
|
-
[
|
|
73
|
+
...x(this.attributes, "v-on:", !1),
|
|
74
|
+
[j()]: `${this.link ? "" : "builder-button"} ${this.attributes[j()] || ""}`,
|
|
75
75
|
...this.link ? {
|
|
76
76
|
href: this.link,
|
|
77
77
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -83,20 +83,20 @@ const Ce = /* @__PURE__ */ v(xt, [["render", Ot]]), vs = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
86
|
+
function Lt(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
|
-
Vt(
|
|
93
|
+
default: O(() => [
|
|
94
|
+
Vt(ce(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const Ft = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ht = Symbol(), be = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -117,11 +117,11 @@ const Lt = /* @__PURE__ */ v(Ut, [["render", Ft]]), Ht = Symbol(), ge = {
|
|
|
117
117
|
}, Mt = Symbol(), Ge = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
119
|
key: Mt
|
|
120
|
-
},
|
|
121
|
-
log: (...e) => console.log(
|
|
122
|
-
error: (...e) => console.error(
|
|
123
|
-
warn: (...e) => console.warn(
|
|
124
|
-
debug: (...e) => console.debug(
|
|
120
|
+
}, ne = "[Builder.io]: ", B = {
|
|
121
|
+
log: (...e) => console.log(ne, ...e),
|
|
122
|
+
error: (...e) => console.error(ne, ...e),
|
|
123
|
+
warn: (...e) => console.warn(ne, ...e),
|
|
124
|
+
debug: (...e) => console.debug(ne, ...e)
|
|
125
125
|
}, Je = (e, t, n) => {
|
|
126
126
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
|
|
127
127
|
return o === void 0 || o === e ? n : o;
|
|
@@ -138,7 +138,7 @@ const jt = (e) => {
|
|
|
138
138
|
function Kt() {
|
|
139
139
|
return T() && window.self !== window.top;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function A(e) {
|
|
142
142
|
return Kt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
143
143
|
Ye(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
144
144
|
}
|
|
@@ -187,7 +187,7 @@ const qt = () => {
|
|
|
187
187
|
context: t,
|
|
188
188
|
event: n
|
|
189
189
|
}), Jt = () => ({
|
|
190
|
-
isEditing:
|
|
190
|
+
isEditing: A(),
|
|
191
191
|
isBrowser: T(),
|
|
192
192
|
isServer: !T(),
|
|
193
193
|
getUserAttributes: () => Xe()
|
|
@@ -219,7 +219,7 @@ function _e({
|
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
|
-
const
|
|
222
|
+
const xe = ({
|
|
223
223
|
code: e,
|
|
224
224
|
builder: t,
|
|
225
225
|
context: n,
|
|
@@ -228,7 +228,7 @@ const We = ({
|
|
|
228
228
|
rootSetState: i,
|
|
229
229
|
rootState: s
|
|
230
230
|
}) => {
|
|
231
|
-
const
|
|
231
|
+
const l = Gt({
|
|
232
232
|
builder: t,
|
|
233
233
|
context: n,
|
|
234
234
|
event: o,
|
|
@@ -238,7 +238,7 @@ const We = ({
|
|
|
238
238
|
rootSetState: i
|
|
239
239
|
})
|
|
240
240
|
});
|
|
241
|
-
return new Function(...
|
|
241
|
+
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
242
242
|
}, K = (e) => e != null;
|
|
243
243
|
function Yt() {
|
|
244
244
|
var e;
|
|
@@ -254,11 +254,11 @@ const Xt = ({
|
|
|
254
254
|
return t && n && !o ? (e && B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
255
255
|
}, _t = (e) => (T() || Xt({
|
|
256
256
|
shouldLogWarning: !0
|
|
257
|
-
}),
|
|
257
|
+
}), xe(e)), Zt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, en = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, tn = (e) => {
|
|
258
258
|
var t, n, o, r, i, s;
|
|
259
259
|
return ((o = (n = (t = Zt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = en.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
260
260
|
};
|
|
261
|
-
function
|
|
261
|
+
function ee({
|
|
262
262
|
code: e,
|
|
263
263
|
context: t,
|
|
264
264
|
localState: n,
|
|
@@ -269,13 +269,13 @@ function te({
|
|
|
269
269
|
}) {
|
|
270
270
|
if (e.trim() === "")
|
|
271
271
|
return;
|
|
272
|
-
const
|
|
273
|
-
if (
|
|
272
|
+
const l = tn(e.trim());
|
|
273
|
+
if (l)
|
|
274
274
|
return Je({
|
|
275
275
|
...o,
|
|
276
276
|
...n
|
|
277
|
-
},
|
|
278
|
-
const
|
|
277
|
+
}, l);
|
|
278
|
+
const a = {
|
|
279
279
|
code: Qt(e, {
|
|
280
280
|
isExpression: s
|
|
281
281
|
}),
|
|
@@ -287,7 +287,7 @@ function te({
|
|
|
287
287
|
localState: n
|
|
288
288
|
};
|
|
289
289
|
try {
|
|
290
|
-
return _t(
|
|
290
|
+
return _t(a);
|
|
291
291
|
} catch (u) {
|
|
292
292
|
B.error("Failed code evaluation: " + u.message, {
|
|
293
293
|
code: e
|
|
@@ -308,7 +308,7 @@ const on = (e, t) => {
|
|
|
308
308
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
|
|
309
309
|
return {
|
|
310
310
|
...e.component.options,
|
|
311
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) =>
|
|
311
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => ee({
|
|
312
312
|
code: i,
|
|
313
313
|
context: t,
|
|
314
314
|
localState: t.localState,
|
|
@@ -323,7 +323,7 @@ function rn(e, ...t) {
|
|
|
323
323
|
delete n[o];
|
|
324
324
|
return n;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function se(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
327
327
|
if (e == null || typeof e != "object") {
|
|
328
328
|
t(e, (i) => {
|
|
329
329
|
n !== null && o !== null && (n[o] = i);
|
|
@@ -331,13 +331,13 @@ function ae(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
333
|
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
|
|
334
|
-
t(i, (
|
|
335
|
-
e[s] =
|
|
336
|
-
}),
|
|
334
|
+
t(i, (a) => {
|
|
335
|
+
e[s] = a;
|
|
336
|
+
}), se(i, t, e, s, r);
|
|
337
337
|
}) : Object.entries(e).forEach(([i, s]) => {
|
|
338
|
-
t(s, (
|
|
339
|
-
e[i] =
|
|
340
|
-
}),
|
|
338
|
+
t(s, (a) => {
|
|
339
|
+
e[i] = a;
|
|
340
|
+
}), se(s, t, e, i, r);
|
|
341
341
|
}));
|
|
342
342
|
}
|
|
343
343
|
function Ze(e) {
|
|
@@ -347,7 +347,7 @@ function sn(e) {
|
|
|
347
347
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
348
348
|
return !1;
|
|
349
349
|
let t = !1;
|
|
350
|
-
return
|
|
350
|
+
return se(e, (n) => {
|
|
351
351
|
if (Ze(n)) {
|
|
352
352
|
t = !0;
|
|
353
353
|
return;
|
|
@@ -355,7 +355,7 @@ function sn(e) {
|
|
|
355
355
|
}), t;
|
|
356
356
|
}
|
|
357
357
|
function an(e, t) {
|
|
358
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
358
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (se(e, (n, o) => {
|
|
359
359
|
Ze(n) && o(n[t] ?? void 0);
|
|
360
360
|
}), e);
|
|
361
361
|
}
|
|
@@ -363,27 +363,27 @@ function ln(e, t) {
|
|
|
363
363
|
var n, o;
|
|
364
364
|
return (n = e.component) != null && n.options && sn((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 = an(e.component.options, t ?? "Default")), e;
|
|
365
365
|
}
|
|
366
|
-
const
|
|
366
|
+
const Ce = (e) => JSON.parse(JSON.stringify(e)), et = (e, t, n) => {
|
|
367
367
|
if (Object(e) !== e)
|
|
368
368
|
return e;
|
|
369
369
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
370
370
|
return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
371
371
|
};
|
|
372
|
-
function
|
|
372
|
+
function ge(e) {
|
|
373
373
|
if (e === null || typeof e != "object")
|
|
374
374
|
return e;
|
|
375
375
|
if (Array.isArray(e))
|
|
376
|
-
return e.map((n) =>
|
|
376
|
+
return e.map((n) => ge(n));
|
|
377
377
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
378
378
|
return e;
|
|
379
379
|
const t = {};
|
|
380
380
|
for (const n in e)
|
|
381
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
381
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ge(e[n]));
|
|
382
382
|
return t;
|
|
383
383
|
}
|
|
384
384
|
const cn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), dn = (e) => {
|
|
385
385
|
if (cn) {
|
|
386
|
-
const t =
|
|
386
|
+
const t = Ce(e);
|
|
387
387
|
return {
|
|
388
388
|
...t,
|
|
389
389
|
properties: {
|
|
@@ -394,7 +394,7 @@ const cn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), dn = (e) =
|
|
|
394
394
|
}
|
|
395
395
|
};
|
|
396
396
|
} else {
|
|
397
|
-
const t =
|
|
397
|
+
const t = ge(rn(e, "children", "meta"));
|
|
398
398
|
return {
|
|
399
399
|
...t,
|
|
400
400
|
properties: {
|
|
@@ -418,14 +418,14 @@ const cn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), dn = (e) =
|
|
|
418
418
|
return e;
|
|
419
419
|
const i = dn(e);
|
|
420
420
|
for (const s in e.bindings) {
|
|
421
|
-
const
|
|
422
|
-
code:
|
|
421
|
+
const l = e.bindings[s], a = ee({
|
|
422
|
+
code: l,
|
|
423
423
|
localState: n,
|
|
424
424
|
rootState: o,
|
|
425
425
|
rootSetState: r,
|
|
426
426
|
context: t
|
|
427
427
|
});
|
|
428
|
-
et(i, s,
|
|
428
|
+
et(i, s, a);
|
|
429
429
|
}
|
|
430
430
|
return i;
|
|
431
431
|
};
|
|
@@ -445,25 +445,25 @@ function pn({
|
|
|
445
445
|
context: t
|
|
446
446
|
}), i = ln(i, o.locale), i;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Te(e) {
|
|
449
449
|
const t = e || (T() ? window.location.search : void 0);
|
|
450
450
|
return t ? Ye(t).indexOf("builder.preview=") !== -1 : !1;
|
|
451
451
|
}
|
|
452
452
|
const mn = (e) => ({
|
|
453
453
|
type: "builder.registerComponent",
|
|
454
|
-
data:
|
|
454
|
+
data: ae(e)
|
|
455
455
|
}), hn = (e) => {
|
|
456
456
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
457
457
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
458
458
|
};
|
|
459
|
-
function
|
|
459
|
+
function ae(e) {
|
|
460
460
|
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? hn(n) : n));
|
|
461
461
|
}
|
|
462
|
-
const
|
|
462
|
+
const We = {};
|
|
463
463
|
function Ss(e, t) {
|
|
464
|
-
e === "plugin" && (t =
|
|
465
|
-
let n =
|
|
466
|
-
if (n || (n =
|
|
464
|
+
e === "plugin" && (t = ae(t));
|
|
465
|
+
let n = We[e];
|
|
466
|
+
if (n || (n = We[e] = []), n.push(t), T()) {
|
|
467
467
|
const o = {
|
|
468
468
|
type: "builder.register",
|
|
469
469
|
data: {
|
|
@@ -478,13 +478,23 @@ function Ss(e, t) {
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
const xe = {};
|
|
482
481
|
function ks(e) {
|
|
482
|
+
var t;
|
|
483
|
+
if (T()) {
|
|
484
|
+
const n = JSON.parse(JSON.stringify(e));
|
|
485
|
+
e.action && (n.action = e.action.toString()), (t = window.parent) == null || t.postMessage({
|
|
486
|
+
type: "builder.registerAction",
|
|
487
|
+
data: n
|
|
488
|
+
}, "*");
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
const De = {};
|
|
492
|
+
function Cs(e) {
|
|
483
493
|
if (T()) {
|
|
484
|
-
Object.assign(
|
|
494
|
+
Object.assign(De, e);
|
|
485
495
|
const t = {
|
|
486
496
|
type: "builder.settingsChange",
|
|
487
|
-
data:
|
|
497
|
+
data: De
|
|
488
498
|
};
|
|
489
499
|
parent.postMessage(t, "*");
|
|
490
500
|
}
|
|
@@ -504,7 +514,7 @@ const Oe = "builder.", fn = "options.", tt = (e) => {
|
|
|
504
514
|
return {};
|
|
505
515
|
const e = new URLSearchParams(window.location.search);
|
|
506
516
|
return tt(e);
|
|
507
|
-
}, nt = "4.
|
|
517
|
+
}, nt = "4.2.3", ot = () => ({
|
|
508
518
|
"X-Builder-SDK": R,
|
|
509
519
|
"X-Builder-SDK-GEN": "2",
|
|
510
520
|
"X-Builder-SDK-Version": nt
|
|
@@ -513,7 +523,7 @@ const Oe = "builder.", fn = "options.", tt = (e) => {
|
|
|
513
523
|
return e;
|
|
514
524
|
const t = e.split(".");
|
|
515
525
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
516
|
-
},
|
|
526
|
+
}, de = ({
|
|
517
527
|
name: e,
|
|
518
528
|
canTrack: t
|
|
519
529
|
}) => {
|
|
@@ -524,14 +534,14 @@ const Oe = "builder.", fn = "options.", tt = (e) => {
|
|
|
524
534
|
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
525
535
|
return;
|
|
526
536
|
}
|
|
527
|
-
}, rt = async (e) =>
|
|
537
|
+
}, rt = async (e) => de(e), yn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), vn = [["secure", ""], ["SameSite", "None"]], Sn = ({
|
|
528
538
|
name: e,
|
|
529
539
|
value: t,
|
|
530
540
|
expires: n
|
|
531
541
|
}) => {
|
|
532
542
|
const r = (T() ? location.protocol === "https:" : !0) ? vn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", gn(window.location.hostname)], ...r];
|
|
533
543
|
return yn(s);
|
|
534
|
-
},
|
|
544
|
+
}, we = async ({
|
|
535
545
|
name: e,
|
|
536
546
|
value: t,
|
|
537
547
|
expires: n,
|
|
@@ -580,7 +590,7 @@ const st = "builderSessionId", Cn = async ({
|
|
|
580
590
|
}, Tn = () => it(), wn = ({
|
|
581
591
|
id: e,
|
|
582
592
|
canTrack: t
|
|
583
|
-
}) =>
|
|
593
|
+
}) => we({
|
|
584
594
|
name: st,
|
|
585
595
|
value: e,
|
|
586
596
|
canTrack: t
|
|
@@ -619,12 +629,12 @@ const st = "builderSessionId", Cn = async ({
|
|
|
619
629
|
return t;
|
|
620
630
|
{
|
|
621
631
|
const n = En();
|
|
622
|
-
return
|
|
632
|
+
return An({
|
|
623
633
|
id: n,
|
|
624
634
|
canTrack: e
|
|
625
635
|
}), n;
|
|
626
636
|
}
|
|
627
|
-
}, En = () => it(),
|
|
637
|
+
}, En = () => it(), An = ({
|
|
628
638
|
id: e,
|
|
629
639
|
canTrack: t
|
|
630
640
|
}) => $n({
|
|
@@ -632,11 +642,11 @@ const st = "builderSessionId", Cn = async ({
|
|
|
632
642
|
value: e,
|
|
633
643
|
canTrack: t
|
|
634
644
|
});
|
|
635
|
-
function
|
|
645
|
+
function Ie(e) {
|
|
636
646
|
var t;
|
|
637
647
|
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
|
|
638
648
|
}
|
|
639
|
-
const
|
|
649
|
+
const Pn = async ({
|
|
640
650
|
canTrack: e
|
|
641
651
|
}) => {
|
|
642
652
|
if (!e)
|
|
@@ -667,14 +677,14 @@ const An = async ({
|
|
|
667
677
|
url: location.href,
|
|
668
678
|
...o
|
|
669
679
|
},
|
|
670
|
-
...await
|
|
680
|
+
...await Pn({
|
|
671
681
|
canTrack: t
|
|
672
682
|
}),
|
|
673
683
|
userAttributes: Xe(),
|
|
674
684
|
ownerId: n
|
|
675
685
|
}
|
|
676
686
|
});
|
|
677
|
-
async function
|
|
687
|
+
async function ye({
|
|
678
688
|
apiHost: e,
|
|
679
689
|
...t
|
|
680
690
|
}) {
|
|
@@ -682,10 +692,10 @@ async function ve({
|
|
|
682
692
|
B.error("Missing API key for track call. Please provide your API key.");
|
|
683
693
|
return;
|
|
684
694
|
}
|
|
685
|
-
if (!t.canTrack ||
|
|
695
|
+
if (!t.canTrack || A() || !(T() || R === "reactNative"))
|
|
686
696
|
return;
|
|
687
697
|
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
688
|
-
return
|
|
698
|
+
return Ie(o), fetch(o, {
|
|
689
699
|
method: "POST",
|
|
690
700
|
body: JSON.stringify({
|
|
691
701
|
events: [await Bn(t)]
|
|
@@ -699,7 +709,7 @@ async function ve({
|
|
|
699
709
|
console.error("Failed to track: ", r);
|
|
700
710
|
});
|
|
701
711
|
}
|
|
702
|
-
const
|
|
712
|
+
const Ts = (e) => ye({
|
|
703
713
|
...e,
|
|
704
714
|
canTrack: !0
|
|
705
715
|
}), Vn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
@@ -742,10 +752,10 @@ const dt = (e) => {
|
|
|
742
752
|
if (r != null && r.type)
|
|
743
753
|
switch (r.type) {
|
|
744
754
|
case "builder.evaluate": {
|
|
745
|
-
const
|
|
755
|
+
const l = r.data.text, a = r.data.arguments || [], u = r.data.id, p = new Function(l);
|
|
746
756
|
let f, c = null;
|
|
747
757
|
try {
|
|
748
|
-
f = p.apply(null,
|
|
758
|
+
f = p.apply(null, a);
|
|
749
759
|
} catch (m) {
|
|
750
760
|
c = m;
|
|
751
761
|
}
|
|
@@ -796,17 +806,17 @@ const dt = (e) => {
|
|
|
796
806
|
break;
|
|
797
807
|
}
|
|
798
808
|
case "builder.resetState": {
|
|
799
|
-
const i = r.data, s = i.model,
|
|
800
|
-
s === e &&
|
|
809
|
+
const i = r.data, s = i.model, l = i == null ? void 0 : i.state, a = i.editType;
|
|
810
|
+
s === e && l && n.stateUpdate(l, a);
|
|
801
811
|
break;
|
|
802
812
|
}
|
|
803
813
|
case "builder.contentUpdate": {
|
|
804
|
-
const i = r.data, s = i.key || i.alias || i.entry || i.modelName, a = i.
|
|
805
|
-
s === e && n.contentUpdate(a);
|
|
814
|
+
const i = r.data, s = i.key || i.alias || i.entry || i.modelName, l = i.data, a = i.editType;
|
|
815
|
+
s === e && n.contentUpdate(l, a);
|
|
806
816
|
break;
|
|
807
817
|
}
|
|
808
818
|
}
|
|
809
|
-
},
|
|
819
|
+
}, ws = ({
|
|
810
820
|
model: e,
|
|
811
821
|
apiKey: t,
|
|
812
822
|
callback: n,
|
|
@@ -835,21 +845,21 @@ const dt = (e) => {
|
|
|
835
845
|
return window.addEventListener("message", r), () => {
|
|
836
846
|
window.removeEventListener("message", r);
|
|
837
847
|
};
|
|
838
|
-
}, Nn = "builder.tests",
|
|
848
|
+
}, Nn = "builder.tests", $e = (e) => `${Nn}.${e}`, xn = ({
|
|
839
849
|
contentId: e
|
|
840
850
|
}) => rt({
|
|
841
|
-
name:
|
|
851
|
+
name: $e(e),
|
|
842
852
|
canTrack: !0
|
|
843
|
-
}),
|
|
853
|
+
}), Wn = ({
|
|
844
854
|
contentId: e
|
|
845
|
-
}) =>
|
|
846
|
-
name:
|
|
855
|
+
}) => de({
|
|
856
|
+
name: $e(e),
|
|
847
857
|
canTrack: !0
|
|
848
|
-
}),
|
|
858
|
+
}), Dn = ({
|
|
849
859
|
contentId: e,
|
|
850
860
|
value: t
|
|
851
|
-
}) =>
|
|
852
|
-
name:
|
|
861
|
+
}) => we({
|
|
862
|
+
name: $e(e),
|
|
853
863
|
value: t,
|
|
854
864
|
canTrack: !0
|
|
855
865
|
}), pt = (e) => K(e.id) && K(e.variations) && Object.keys(e.variations).length > 0, On = ({
|
|
@@ -867,7 +877,7 @@ const dt = (e) => {
|
|
|
867
877
|
return e;
|
|
868
878
|
}, mt = (e) => {
|
|
869
879
|
const t = On(e);
|
|
870
|
-
return
|
|
880
|
+
return Dn({
|
|
871
881
|
contentId: e.id,
|
|
872
882
|
value: t
|
|
873
883
|
}).catch((n) => {
|
|
@@ -897,7 +907,7 @@ const dt = (e) => {
|
|
|
897
907
|
return;
|
|
898
908
|
if (!pt(e))
|
|
899
909
|
return e;
|
|
900
|
-
const n =
|
|
910
|
+
const n = Wn({
|
|
901
911
|
contentId: e.id
|
|
902
912
|
}) || mt({
|
|
903
913
|
variations: e.variations,
|
|
@@ -910,13 +920,13 @@ const dt = (e) => {
|
|
|
910
920
|
...e,
|
|
911
921
|
...o
|
|
912
922
|
};
|
|
913
|
-
},
|
|
923
|
+
}, Ln = async ({
|
|
914
924
|
item: e,
|
|
915
925
|
canTrack: t
|
|
916
926
|
}) => {
|
|
917
927
|
if (!t || !pt(e))
|
|
918
928
|
return e;
|
|
919
|
-
const o = await
|
|
929
|
+
const o = await xn({
|
|
920
930
|
contentId: e.id
|
|
921
931
|
}) || mt({
|
|
922
932
|
variations: e.variations,
|
|
@@ -930,8 +940,8 @@ const dt = (e) => {
|
|
|
930
940
|
...r
|
|
931
941
|
};
|
|
932
942
|
};
|
|
933
|
-
const
|
|
934
|
-
function
|
|
943
|
+
const Le = "builder.userAttributes";
|
|
944
|
+
function Fe() {
|
|
935
945
|
let e = !0;
|
|
936
946
|
const t = /* @__PURE__ */ new Set();
|
|
937
947
|
return {
|
|
@@ -942,15 +952,15 @@ function Le() {
|
|
|
942
952
|
...this.getUserAttributes(),
|
|
943
953
|
...n
|
|
944
954
|
};
|
|
945
|
-
|
|
946
|
-
name:
|
|
955
|
+
we({
|
|
956
|
+
name: Le,
|
|
947
957
|
value: JSON.stringify(o),
|
|
948
958
|
canTrack: e
|
|
949
959
|
}), t.forEach((r) => r(o));
|
|
950
960
|
},
|
|
951
961
|
getUserAttributes() {
|
|
952
|
-
return T() ? JSON.parse(
|
|
953
|
-
name:
|
|
962
|
+
return T() ? JSON.parse(de({
|
|
963
|
+
name: Le,
|
|
954
964
|
canTrack: e
|
|
955
965
|
}) || "{}") : {};
|
|
956
966
|
},
|
|
@@ -966,31 +976,31 @@ function Le() {
|
|
|
966
976
|
}
|
|
967
977
|
};
|
|
968
978
|
}
|
|
969
|
-
let
|
|
970
|
-
T() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ =
|
|
971
|
-
const
|
|
972
|
-
|
|
973
|
-
},
|
|
979
|
+
let ve;
|
|
980
|
+
T() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Fe()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = Fe();
|
|
981
|
+
const le = ve, Is = (e) => {
|
|
982
|
+
le.setUserAttributes(e);
|
|
983
|
+
}, G = (e) => {
|
|
974
984
|
const t = K(e) ? e : !0;
|
|
975
|
-
return
|
|
985
|
+
return le.setCanTrack(t), t;
|
|
976
986
|
};
|
|
977
|
-
function
|
|
987
|
+
function Fn() {
|
|
978
988
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
979
989
|
}
|
|
980
990
|
function Hn() {
|
|
981
|
-
const e =
|
|
991
|
+
const e = Fn().fetch;
|
|
982
992
|
if (typeof e > "u")
|
|
983
993
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
984
994
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
985
995
|
return e;
|
|
986
996
|
}
|
|
987
997
|
const Mn = Hn();
|
|
988
|
-
function
|
|
998
|
+
function Se(e, t = null, n = ".") {
|
|
989
999
|
return Object.keys(e).reduce((o, r) => {
|
|
990
1000
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
991
1001
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
992
1002
|
...o,
|
|
993
|
-
...
|
|
1003
|
+
...Se(i, s, n)
|
|
994
1004
|
} : {
|
|
995
1005
|
...o,
|
|
996
1006
|
[s]: i
|
|
@@ -1016,7 +1026,7 @@ function jn(e) {
|
|
|
1016
1026
|
}
|
|
1017
1027
|
return t;
|
|
1018
1028
|
}
|
|
1019
|
-
const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0,
|
|
1029
|
+
const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (e) => {
|
|
1020
1030
|
const {
|
|
1021
1031
|
limit: t = 30,
|
|
1022
1032
|
userAttributes: n,
|
|
@@ -1024,8 +1034,8 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ee = (
|
|
|
1024
1034
|
model: r,
|
|
1025
1035
|
apiKey: i,
|
|
1026
1036
|
enrich: s,
|
|
1027
|
-
locale:
|
|
1028
|
-
apiVersion:
|
|
1037
|
+
locale: l,
|
|
1038
|
+
apiVersion: a = Kn,
|
|
1029
1039
|
fields: u,
|
|
1030
1040
|
omit: p,
|
|
1031
1041
|
offset: f,
|
|
@@ -1033,43 +1043,39 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ee = (
|
|
|
1033
1043
|
staleCacheSeconds: m,
|
|
1034
1044
|
sort: b,
|
|
1035
1045
|
includeUnpublished: g,
|
|
1036
|
-
apiHost:
|
|
1046
|
+
apiHost: P
|
|
1037
1047
|
} = e;
|
|
1038
1048
|
if (!i)
|
|
1039
1049
|
throw new Error("Missing API key");
|
|
1040
|
-
if (!["v3"].includes(
|
|
1041
|
-
throw new Error(`Invalid apiVersion: expected 'v3', received '${
|
|
1042
|
-
const
|
|
1043
|
-
w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
locale: D,
|
|
1048
|
-
...H
|
|
1049
|
-
}), s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", p ?? "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && w.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && w.searchParams.set("includeUnpublished", String(g)), c && He(c) && w.searchParams.set("cacheSeconds", String(c)), m && He(m) && w.searchParams.set("staleCacheSeconds", String(m)), b) {
|
|
1050
|
-
const x = ke({
|
|
1050
|
+
if (!["v3"].includes(a))
|
|
1051
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
1052
|
+
const U = t !== 1, V = P || "https://cdn.builder.io", w = new URL(`${V}/api/${a}/content/${r}`);
|
|
1053
|
+
w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(U)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l);
|
|
1054
|
+
let W = n || {};
|
|
1055
|
+
if (s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", p ?? "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && w.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && w.searchParams.set("includeUnpublished", String(g)), c && He(c) && w.searchParams.set("cacheSeconds", String(c)), m && He(m) && w.searchParams.set("staleCacheSeconds", String(m)), b) {
|
|
1056
|
+
const D = Se({
|
|
1051
1057
|
sort: b
|
|
1052
1058
|
});
|
|
1053
|
-
for (const
|
|
1054
|
-
w.searchParams.set(
|
|
1059
|
+
for (const H in D)
|
|
1060
|
+
w.searchParams.set(H, JSON.stringify(D[H]));
|
|
1055
1061
|
}
|
|
1056
|
-
const
|
|
1062
|
+
const J = {
|
|
1057
1063
|
...bn(),
|
|
1058
1064
|
...Qe(e.options || {})
|
|
1059
1065
|
};
|
|
1060
|
-
|
|
1061
|
-
...
|
|
1062
|
-
...zn(
|
|
1066
|
+
W = {
|
|
1067
|
+
...W,
|
|
1068
|
+
...zn(J)
|
|
1063
1069
|
};
|
|
1064
|
-
const
|
|
1065
|
-
for (const
|
|
1066
|
-
w.searchParams.set(
|
|
1067
|
-
if (Object.keys(
|
|
1068
|
-
const
|
|
1070
|
+
const Q = Se(J);
|
|
1071
|
+
for (const D in Q)
|
|
1072
|
+
w.searchParams.set(D, String(Q[D]));
|
|
1073
|
+
if (Object.keys(W).length > 0 && w.searchParams.set("userAttributes", JSON.stringify(W)), o) {
|
|
1074
|
+
const D = ft({
|
|
1069
1075
|
query: o
|
|
1070
1076
|
});
|
|
1071
|
-
for (const
|
|
1072
|
-
w.searchParams.set(
|
|
1077
|
+
for (const H in D)
|
|
1078
|
+
w.searchParams.set(H, JSON.stringify(D[H]));
|
|
1073
1079
|
}
|
|
1074
1080
|
return w;
|
|
1075
1081
|
}, qn = (e) => {
|
|
@@ -1087,16 +1093,22 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ee = (
|
|
|
1087
1093
|
}
|
|
1088
1094
|
return {};
|
|
1089
1095
|
}, Gn = (e) => "results" in e;
|
|
1090
|
-
async function
|
|
1091
|
-
|
|
1096
|
+
async function Ee(e) {
|
|
1097
|
+
var o;
|
|
1098
|
+
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
1099
|
+
t && (e.locale = t, e.userAttributes = {
|
|
1100
|
+
locale: t,
|
|
1101
|
+
...e.userAttributes
|
|
1102
|
+
});
|
|
1103
|
+
const n = await Yn({
|
|
1092
1104
|
...e,
|
|
1093
1105
|
limit: 1
|
|
1094
1106
|
});
|
|
1095
|
-
return
|
|
1107
|
+
return n && n[0] || null;
|
|
1096
1108
|
}
|
|
1097
1109
|
const Jn = async (e) => {
|
|
1098
1110
|
var s;
|
|
1099
|
-
const t =
|
|
1111
|
+
const t = Re(e), n = e.fetch ?? Mn, o = {
|
|
1100
1112
|
...e.fetchOptions,
|
|
1101
1113
|
headers: {
|
|
1102
1114
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
@@ -1104,14 +1116,14 @@ const Jn = async (e) => {
|
|
|
1104
1116
|
}
|
|
1105
1117
|
};
|
|
1106
1118
|
return await (await n(t.href, o)).json();
|
|
1107
|
-
}, Qn = async (e, t, n =
|
|
1108
|
-
const o =
|
|
1119
|
+
}, Qn = async (e, t, n = Re(e)) => {
|
|
1120
|
+
const o = G(e.canTrack);
|
|
1109
1121
|
if (n.search.includes("preview="), !o || !(T() || R === "reactNative"))
|
|
1110
1122
|
return t.results;
|
|
1111
1123
|
try {
|
|
1112
1124
|
const r = [];
|
|
1113
1125
|
for (const i of t.results)
|
|
1114
|
-
r.push(await
|
|
1126
|
+
r.push(await Ln({
|
|
1115
1127
|
item: i,
|
|
1116
1128
|
canTrack: o
|
|
1117
1129
|
}));
|
|
@@ -1122,7 +1134,7 @@ const Jn = async (e) => {
|
|
|
1122
1134
|
return t.results;
|
|
1123
1135
|
};
|
|
1124
1136
|
async function Yn(e) {
|
|
1125
|
-
const t =
|
|
1137
|
+
const t = Re(e), n = await Jn(e);
|
|
1126
1138
|
if (!Gn(n))
|
|
1127
1139
|
throw B.error("Error fetching data. ", {
|
|
1128
1140
|
url: t,
|
|
@@ -1131,7 +1143,7 @@ async function Yn(e) {
|
|
|
1131
1143
|
}), n;
|
|
1132
1144
|
return Qn(e, n);
|
|
1133
1145
|
}
|
|
1134
|
-
const
|
|
1146
|
+
const $s = async (e) => {
|
|
1135
1147
|
var o, r, i;
|
|
1136
1148
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1137
1149
|
...e,
|
|
@@ -1148,22 +1160,22 @@ const Is = async (e) => {
|
|
|
1148
1160
|
return {
|
|
1149
1161
|
apiKey: n.apiKey,
|
|
1150
1162
|
model: n.model,
|
|
1151
|
-
content: await
|
|
1163
|
+
content: await Ee(n)
|
|
1152
1164
|
};
|
|
1153
1165
|
}, Ae = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1154
1166
|
function Xn(e, t, n = {}) {
|
|
1155
|
-
let o, r, i, s = null,
|
|
1156
|
-
const
|
|
1157
|
-
|
|
1167
|
+
let o, r, i, s = null, l = 0;
|
|
1168
|
+
const a = function() {
|
|
1169
|
+
l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
1158
1170
|
};
|
|
1159
1171
|
return function() {
|
|
1160
1172
|
const u = Date.now();
|
|
1161
|
-
!
|
|
1162
|
-
const p = t - (u -
|
|
1163
|
-
return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null),
|
|
1173
|
+
!l && n.leading === !1 && (l = u);
|
|
1174
|
+
const p = t - (u - l);
|
|
1175
|
+
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;
|
|
1164
1176
|
};
|
|
1165
1177
|
}
|
|
1166
|
-
function
|
|
1178
|
+
function _(e, ...t) {
|
|
1167
1179
|
const n = Object(e);
|
|
1168
1180
|
for (let o = 1; o < arguments.length; o++) {
|
|
1169
1181
|
const r = arguments[o];
|
|
@@ -1189,9 +1201,9 @@ function bt(e) {
|
|
|
1189
1201
|
}
|
|
1190
1202
|
function gt(e, t) {
|
|
1191
1203
|
const n = Zn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
1192
|
-
for (const
|
|
1193
|
-
for (const
|
|
1194
|
-
|
|
1204
|
+
for (const l of s)
|
|
1205
|
+
for (const a of n)
|
|
1206
|
+
a in l || (l[a] = o[a]);
|
|
1195
1207
|
}
|
|
1196
1208
|
function Zn(e) {
|
|
1197
1209
|
const t = [];
|
|
@@ -1207,8 +1219,8 @@ function yt(e) {
|
|
|
1207
1219
|
return;
|
|
1208
1220
|
}
|
|
1209
1221
|
Array.from(t).forEach((n) => {
|
|
1210
|
-
gt(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
1211
|
-
n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
1222
|
+
gt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", _(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1223
|
+
n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), _(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1212
1224
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1213
1225
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1214
1226
|
});
|
|
@@ -1224,22 +1236,22 @@ function eo(e) {
|
|
|
1224
1236
|
gt(e, n);
|
|
1225
1237
|
let o = !1, r = !1;
|
|
1226
1238
|
function i() {
|
|
1227
|
-
!o &&
|
|
1228
|
-
|
|
1239
|
+
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
1240
|
+
_(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
1229
1241
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
1230
1242
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1231
|
-
})) : e.repeat && o && !r && !
|
|
1243
|
+
})) : e.repeat && o && !r && !l(n) && (o = !1, _(n.style, e.steps[0].styles));
|
|
1232
1244
|
}
|
|
1233
1245
|
const s = Xn(i, 200, {
|
|
1234
1246
|
leading: !1
|
|
1235
1247
|
});
|
|
1236
|
-
function
|
|
1248
|
+
function l(p) {
|
|
1237
1249
|
const f = p.getBoundingClientRect(), c = window.innerHeight, b = (e.thresholdPercent || 0) / 100 * c;
|
|
1238
1250
|
return f.bottom > b && f.top < c - b;
|
|
1239
1251
|
}
|
|
1240
|
-
const
|
|
1252
|
+
const a = e.steps[0].styles;
|
|
1241
1253
|
function u() {
|
|
1242
|
-
|
|
1254
|
+
_(n.style, a);
|
|
1243
1255
|
}
|
|
1244
1256
|
u(), setTimeout(() => {
|
|
1245
1257
|
n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -1253,7 +1265,7 @@ const vt = (e) => Object.entries(e).map(([n, o]) => {
|
|
|
1253
1265
|
if (typeof o == "string")
|
|
1254
1266
|
return `${Ae(n)}: ${o};`;
|
|
1255
1267
|
}).filter(K), to = (e) => vt(e).join(`
|
|
1256
|
-
`),
|
|
1268
|
+
`), Rs = ({
|
|
1257
1269
|
mediaQuery: e,
|
|
1258
1270
|
className: t,
|
|
1259
1271
|
styles: n
|
|
@@ -1270,7 +1282,7 @@ function no({
|
|
|
1270
1282
|
}) {
|
|
1271
1283
|
return e;
|
|
1272
1284
|
}
|
|
1273
|
-
const
|
|
1285
|
+
const Es = ({
|
|
1274
1286
|
block: e,
|
|
1275
1287
|
context: t
|
|
1276
1288
|
}) => St(no({
|
|
@@ -1319,7 +1331,7 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1319
1331
|
} = e;
|
|
1320
1332
|
if (!(n != null && n.collection))
|
|
1321
1333
|
return;
|
|
1322
|
-
const r =
|
|
1334
|
+
const r = ee({
|
|
1323
1335
|
code: n.collection,
|
|
1324
1336
|
localState: t.localState,
|
|
1325
1337
|
rootState: t.rootState,
|
|
@@ -1329,14 +1341,14 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1329
1341
|
if (!Array.isArray(r))
|
|
1330
1342
|
return;
|
|
1331
1343
|
const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
|
|
1332
|
-
return r.map((
|
|
1344
|
+
return r.map((a, u) => ({
|
|
1333
1345
|
context: {
|
|
1334
1346
|
...t,
|
|
1335
1347
|
localState: {
|
|
1336
1348
|
...t.localState,
|
|
1337
1349
|
$index: u,
|
|
1338
|
-
$item:
|
|
1339
|
-
[s]:
|
|
1350
|
+
$item: a,
|
|
1351
|
+
[s]: a,
|
|
1340
1352
|
[`$${s}Index`]: u
|
|
1341
1353
|
}
|
|
1342
1354
|
},
|
|
@@ -1367,34 +1379,34 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1367
1379
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1368
1380
|
e
|
|
1369
1381
|
), e;
|
|
1370
|
-
}), po = () => import("./block-
|
|
1371
|
-
throw console.error(
|
|
1372
|
-
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1373
|
-
e
|
|
1374
|
-
), e;
|
|
1375
|
-
}), mo = () => import("./block-wrapper-Bzn0Mn8q.js").then((e) => e.default).catch((e) => {
|
|
1382
|
+
}), po = () => import("./block-wrapper-LGlUvVpu.js").then((e) => e.default).catch((e) => {
|
|
1376
1383
|
throw console.error(
|
|
1377
1384
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1378
1385
|
e
|
|
1379
1386
|
), e;
|
|
1380
|
-
}),
|
|
1387
|
+
}), mo = () => import("./component-ref-tMh8EWjb.js").then((e) => e.default).catch((e) => {
|
|
1381
1388
|
throw console.error(
|
|
1382
1389
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1383
1390
|
e
|
|
1384
1391
|
), e;
|
|
1385
|
-
}),
|
|
1392
|
+
}), ho = () => import("./repeated-block-WP795fea.js").then((e) => e.default).catch((e) => {
|
|
1386
1393
|
throw console.error(
|
|
1387
1394
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1388
1395
|
e
|
|
1389
1396
|
), e;
|
|
1397
|
+
}), fo = () => import("./style-wrapper-OLuHp-wg.js").then((e) => e.default).catch((e) => {
|
|
1398
|
+
throw console.error(
|
|
1399
|
+
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1400
|
+
e
|
|
1401
|
+
), e;
|
|
1390
1402
|
}), bo = y({
|
|
1391
1403
|
name: "block",
|
|
1392
1404
|
components: {
|
|
1393
|
-
|
|
1394
|
-
RepeatedBlock:
|
|
1395
|
-
ComponentRef:
|
|
1396
|
-
BlockWrapper:
|
|
1397
|
-
DynamicDiv:
|
|
1405
|
+
StyleWrapper: Y(fo),
|
|
1406
|
+
RepeatedBlock: Y(ho),
|
|
1407
|
+
ComponentRef: Y(mo),
|
|
1408
|
+
BlockWrapper: Y(po),
|
|
1409
|
+
DynamicDiv: Y(uo)
|
|
1398
1410
|
},
|
|
1399
1411
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1400
1412
|
data() {
|
|
@@ -1484,20 +1496,21 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1484
1496
|
});
|
|
1485
1497
|
function go(e, t, n, o, r, i) {
|
|
1486
1498
|
var f;
|
|
1487
|
-
const s = k("
|
|
1499
|
+
const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
|
|
1488
1500
|
return e.canShowBlock ? (d(), h(I, { key: 0 }, [
|
|
1489
1501
|
E(s, {
|
|
1490
1502
|
block: e.processedBlock,
|
|
1491
|
-
context: e.context
|
|
1492
|
-
|
|
1503
|
+
context: e.context,
|
|
1504
|
+
id: e.block.id
|
|
1505
|
+
}, null, 8, ["block", "context", "id"]),
|
|
1493
1506
|
(f = e.blockComponent) != null && f.noWrap ? (d(), h(I, { key: 1 }, [
|
|
1494
|
-
e.repeatItem ? (d(!0), h(I, { key: 1 },
|
|
1507
|
+
e.repeatItem ? (d(!0), h(I, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
|
|
1495
1508
|
key: e.generateKey(m),
|
|
1496
1509
|
repeatContext: c.context,
|
|
1497
1510
|
block: c.block,
|
|
1498
1511
|
registeredComponents: e.registeredComponents,
|
|
1499
1512
|
linkComponent: e.linkComponent
|
|
1500
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(
|
|
1513
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(l, {
|
|
1501
1514
|
key: 0,
|
|
1502
1515
|
componentRef: e.componentRefProps.componentRef,
|
|
1503
1516
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -1510,7 +1523,7 @@ function go(e, t, n, o, r, i) {
|
|
|
1510
1523
|
isInteractive: e.componentRefProps.isInteractive
|
|
1511
1524
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1512
1525
|
], 64)) : (d(), h(I, { key: 0 }, [
|
|
1513
|
-
e.repeatItem ? (d(!0), h(I, { key: 1 },
|
|
1526
|
+
e.repeatItem ? (d(!0), h(I, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
|
|
1514
1527
|
key: e.generateKey(m),
|
|
1515
1528
|
repeatContext: c.context,
|
|
1516
1529
|
block: c.block,
|
|
@@ -1522,8 +1535,8 @@ function go(e, t, n, o, r, i) {
|
|
|
1522
1535
|
block: e.processedBlock,
|
|
1523
1536
|
context: e.context
|
|
1524
1537
|
}, {
|
|
1525
|
-
default:
|
|
1526
|
-
E(
|
|
1538
|
+
default: O(() => [
|
|
1539
|
+
E(l, {
|
|
1527
1540
|
componentRef: e.componentRefProps.componentRef,
|
|
1528
1541
|
componentOptions: e.componentRefProps.componentOptions,
|
|
1529
1542
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -1534,7 +1547,7 @@ function go(e, t, n, o, r, i) {
|
|
|
1534
1547
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1535
1548
|
isInteractive: e.componentRefProps.isInteractive
|
|
1536
1549
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1537
|
-
(d(!0), h(I, null,
|
|
1550
|
+
(d(!0), h(I, null, F(e.childrenWithoutParentComponent, (c, m) => (d(), S(a, {
|
|
1538
1551
|
key: c.id,
|
|
1539
1552
|
block: c,
|
|
1540
1553
|
registeredComponents: e.registeredComponents,
|
|
@@ -1547,7 +1560,7 @@ function go(e, t, n, o, r, i) {
|
|
|
1547
1560
|
], 64))
|
|
1548
1561
|
], 64)) : C("", !0);
|
|
1549
1562
|
}
|
|
1550
|
-
const Ct = /* @__PURE__ */ v(bo, [["render", go]]),
|
|
1563
|
+
const Ct = /* @__PURE__ */ v(bo, [["render", go]]), As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1551
1564
|
__proto__: null,
|
|
1552
1565
|
default: Ct
|
|
1553
1566
|
}, Symbol.toStringTag, { value: "Module" })), yo = y({
|
|
@@ -1594,7 +1607,7 @@ const Ct = /* @__PURE__ */ v(bo, [["render", go]]), Es = /* @__PURE__ */ Object.
|
|
|
1594
1607
|
methods: {
|
|
1595
1608
|
onClick() {
|
|
1596
1609
|
var e, t;
|
|
1597
|
-
|
|
1610
|
+
A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1598
1611
|
{
|
|
1599
1612
|
type: "builder.clickEmptyBlocks",
|
|
1600
1613
|
data: {
|
|
@@ -1607,7 +1620,7 @@ const Ct = /* @__PURE__ */ v(bo, [["render", go]]), Es = /* @__PURE__ */ Object.
|
|
|
1607
1620
|
},
|
|
1608
1621
|
onMouseEnter() {
|
|
1609
1622
|
var e, t;
|
|
1610
|
-
|
|
1623
|
+
A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1611
1624
|
{
|
|
1612
1625
|
type: "builder.hoverEmptyBlocks",
|
|
1613
1626
|
data: {
|
|
@@ -1621,9 +1634,9 @@ const Ct = /* @__PURE__ */ v(bo, [["render", go]]), Es = /* @__PURE__ */ Object.
|
|
|
1621
1634
|
}
|
|
1622
1635
|
});
|
|
1623
1636
|
function vo(e, t, n, o, r, i) {
|
|
1624
|
-
return d(), S(
|
|
1637
|
+
return d(), S(X(e.BlocksWrapper), $({
|
|
1625
1638
|
ref: "blocksWrapperRef",
|
|
1626
|
-
class: e.className + " component-
|
|
1639
|
+
class: e.className + " component-5vz8uirn7sc",
|
|
1627
1640
|
"builder-path": e.dataPath,
|
|
1628
1641
|
"builder-parent-id": e.parent,
|
|
1629
1642
|
style: e.styleProp,
|
|
@@ -1631,13 +1644,13 @@ function vo(e, t, n, o, r, i) {
|
|
|
1631
1644
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
1632
1645
|
onKeyPress: (s) => e.onClick()
|
|
1633
1646
|
}, { ...e.BlocksWrapperProps }), {
|
|
1634
|
-
default:
|
|
1647
|
+
default: O(() => [
|
|
1635
1648
|
N(e.$slots, "default", {}, void 0, !0)
|
|
1636
1649
|
]),
|
|
1637
1650
|
_: 3
|
|
1638
1651
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1639
1652
|
}
|
|
1640
|
-
const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-
|
|
1653
|
+
const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-82fc93d6"]]), ko = y({
|
|
1641
1654
|
name: "builder-blocks",
|
|
1642
1655
|
components: { BlocksWrapper: So, Block: Ct },
|
|
1643
1656
|
props: [
|
|
@@ -1652,25 +1665,25 @@ const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-161c6b74
|
|
|
1652
1665
|
"registeredComponents"
|
|
1653
1666
|
],
|
|
1654
1667
|
inject: {
|
|
1655
|
-
builderContext:
|
|
1668
|
+
builderContext: be.key,
|
|
1656
1669
|
componentsContext: Ge.key
|
|
1657
1670
|
}
|
|
1658
1671
|
});
|
|
1659
1672
|
function Co(e, t, n, o, r, i) {
|
|
1660
|
-
var
|
|
1661
|
-
const s = k("Block"),
|
|
1662
|
-
return d(), S(
|
|
1673
|
+
var a, u, p, f;
|
|
1674
|
+
const s = k("Block"), l = k("BlocksWrapper");
|
|
1675
|
+
return d(), S(l, {
|
|
1663
1676
|
blocks: e.blocks,
|
|
1664
1677
|
parent: e.parent,
|
|
1665
1678
|
path: e.path,
|
|
1666
1679
|
styleProp: e.styleProp,
|
|
1667
|
-
BlocksWrapperProps: e.BlocksWrapperProps || ((
|
|
1680
|
+
BlocksWrapperProps: e.BlocksWrapperProps || ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapperProps),
|
|
1668
1681
|
classNameProp: e.className,
|
|
1669
1682
|
BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((f = e.builderContext) == null ? void 0 : f.BlocksWrapper)
|
|
1670
1683
|
}, {
|
|
1671
|
-
default:
|
|
1684
|
+
default: O(() => [
|
|
1672
1685
|
N(e.$slots, "default"),
|
|
1673
|
-
e.blocks ? (d(!0), h(I, { key: 0 },
|
|
1686
|
+
e.blocks ? (d(!0), h(I, { key: 0 }, F(e.blocks, (c, m) => {
|
|
1674
1687
|
var b;
|
|
1675
1688
|
return d(), S(s, {
|
|
1676
1689
|
key: c.id,
|
|
@@ -1693,10 +1706,10 @@ function wo(e, t, n, o, r, i) {
|
|
|
1693
1706
|
N(e.$slots, "default")
|
|
1694
1707
|
]);
|
|
1695
1708
|
}
|
|
1696
|
-
const
|
|
1709
|
+
const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1697
1710
|
__proto__: null,
|
|
1698
|
-
default:
|
|
1699
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1711
|
+
default: te
|
|
1712
|
+
}, Symbol.toStringTag, { value: "Module" })), ue = y({
|
|
1700
1713
|
render() {
|
|
1701
1714
|
return ze("style", {
|
|
1702
1715
|
innerHTML: this.styles,
|
|
@@ -1728,7 +1741,7 @@ const ne = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1728
1741
|
max: 1200
|
|
1729
1742
|
}
|
|
1730
1743
|
}, Ps = (e, t = Tt) => `@media (max-width: ${t[e].max}px)`, $o = (e) => {
|
|
1731
|
-
const t =
|
|
1744
|
+
const t = Ce(Tt);
|
|
1732
1745
|
if (!e)
|
|
1733
1746
|
return t;
|
|
1734
1747
|
const {
|
|
@@ -1737,11 +1750,11 @@ const ne = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1737
1750
|
medium: r
|
|
1738
1751
|
} = e;
|
|
1739
1752
|
if (n) {
|
|
1740
|
-
const
|
|
1753
|
+
const a = Math.floor(n / 2);
|
|
1741
1754
|
t.xsmall = {
|
|
1742
1755
|
max: n,
|
|
1743
|
-
min:
|
|
1744
|
-
default:
|
|
1756
|
+
min: a,
|
|
1757
|
+
default: a + 1
|
|
1745
1758
|
};
|
|
1746
1759
|
}
|
|
1747
1760
|
if (!o || !r)
|
|
@@ -1758,20 +1771,20 @@ const ne = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1758
1771
|
min: s,
|
|
1759
1772
|
default: s + 1
|
|
1760
1773
|
};
|
|
1761
|
-
const
|
|
1774
|
+
const l = t.medium.max + 1;
|
|
1762
1775
|
return t.large = {
|
|
1763
1776
|
max: 2e3,
|
|
1764
1777
|
// TODO: decide upper limit
|
|
1765
|
-
min:
|
|
1766
|
-
default:
|
|
1778
|
+
min: l,
|
|
1779
|
+
default: l + 1
|
|
1767
1780
|
}, t;
|
|
1768
1781
|
}, Ro = (e) => `builder-columns ${e}-breakpoints`, Eo = y({
|
|
1769
1782
|
name: "builder-columns",
|
|
1770
1783
|
components: {
|
|
1771
|
-
InlinedStyles:
|
|
1772
|
-
DynamicRenderer:
|
|
1784
|
+
InlinedStyles: ue,
|
|
1785
|
+
DynamicRenderer: ke,
|
|
1773
1786
|
Blocks: q,
|
|
1774
|
-
DynamicDiv:
|
|
1787
|
+
DynamicDiv: te
|
|
1775
1788
|
},
|
|
1776
1789
|
props: [
|
|
1777
1790
|
"space",
|
|
@@ -1900,17 +1913,17 @@ const ne = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1900
1913
|
...e.link ? {
|
|
1901
1914
|
href: e.link
|
|
1902
1915
|
} : {},
|
|
1903
|
-
[
|
|
1916
|
+
[j()]: "builder-column",
|
|
1904
1917
|
style: St(this.columnCssVars(t))
|
|
1905
1918
|
};
|
|
1906
1919
|
}
|
|
1907
1920
|
}
|
|
1908
1921
|
});
|
|
1909
|
-
function
|
|
1922
|
+
function Ao(e, t, n, o, r, i) {
|
|
1910
1923
|
var u;
|
|
1911
|
-
const s = k("InlinedStyles"),
|
|
1924
|
+
const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1912
1925
|
return d(), h("div", $({
|
|
1913
|
-
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-
|
|
1926
|
+
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-1be3j8m9ewb",
|
|
1914
1927
|
style: e.columnsCssVars()
|
|
1915
1928
|
}, {}), [
|
|
1916
1929
|
e.TARGET !== "reactNative" ? (d(), S(s, {
|
|
@@ -1919,14 +1932,14 @@ function Po(e, t, n, o, r, i) {
|
|
|
1919
1932
|
styles: e.columnsStyles(),
|
|
1920
1933
|
nonce: e.builderContext.nonce
|
|
1921
1934
|
}, null, 8, ["styles", "nonce"])) : C("", !0),
|
|
1922
|
-
(d(!0), h(I, null,
|
|
1935
|
+
(d(!0), h(I, null, F(e.columns, (p, f) => (d(), S(a, {
|
|
1923
1936
|
key: f,
|
|
1924
1937
|
TagName: e.getTagName(p),
|
|
1925
1938
|
actionAttributes: {},
|
|
1926
1939
|
attributes: e.getAttributes(p, f)
|
|
1927
1940
|
}, {
|
|
1928
|
-
default:
|
|
1929
|
-
E(
|
|
1941
|
+
default: O(() => [
|
|
1942
|
+
E(l, {
|
|
1930
1943
|
path: `columns.${f}.blocks`,
|
|
1931
1944
|
parent: e.builderBlock.id,
|
|
1932
1945
|
context: e.builderContext,
|
|
@@ -1942,7 +1955,7 @@ function Po(e, t, n, o, r, i) {
|
|
|
1942
1955
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1943
1956
|
], 16);
|
|
1944
1957
|
}
|
|
1945
|
-
const
|
|
1958
|
+
const Po = /* @__PURE__ */ v(Eo, [["render", Ao], ["__scopeId", "data-v-ab15749a"]]), Bo = y({
|
|
1946
1959
|
name: "builder-fragment-component",
|
|
1947
1960
|
props: []
|
|
1948
1961
|
});
|
|
@@ -1955,11 +1968,11 @@ const No = /* @__PURE__ */ v(Bo, [["render", Vo]]);
|
|
|
1955
1968
|
function Me(e) {
|
|
1956
1969
|
return e.replace(/http(s)?:/, "");
|
|
1957
1970
|
}
|
|
1958
|
-
function
|
|
1971
|
+
function xo(e = "", t, n) {
|
|
1959
1972
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1960
1973
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1961
1974
|
}
|
|
1962
|
-
function
|
|
1975
|
+
function Wo(e, t) {
|
|
1963
1976
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1964
1977
|
return e;
|
|
1965
1978
|
if (t === "master")
|
|
@@ -1971,18 +1984,18 @@ function Do(e, t) {
|
|
|
1971
1984
|
}
|
|
1972
1985
|
return null;
|
|
1973
1986
|
}
|
|
1974
|
-
function
|
|
1987
|
+
function oe(e) {
|
|
1975
1988
|
if (!e)
|
|
1976
1989
|
return e;
|
|
1977
1990
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1978
1991
|
if (e.match(/builder\.io/)) {
|
|
1979
1992
|
let n = e;
|
|
1980
1993
|
const o = Number(e.split("?width=")[1]);
|
|
1981
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
1994
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${xo(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1982
1995
|
}
|
|
1983
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1996
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Wo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1984
1997
|
}
|
|
1985
|
-
const
|
|
1998
|
+
const Do = y({
|
|
1986
1999
|
name: "builder-image",
|
|
1987
2000
|
props: [
|
|
1988
2001
|
"lazy",
|
|
@@ -2012,10 +2025,10 @@ const xo = y({
|
|
|
2012
2025
|
if (!this.noWebp) {
|
|
2013
2026
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
2014
2027
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
2015
|
-
return console.debug("Removed given srcset"),
|
|
2028
|
+
return console.debug("Removed given srcset"), oe(t);
|
|
2016
2029
|
} else if (this.image && !this.srcset)
|
|
2017
|
-
return
|
|
2018
|
-
return
|
|
2030
|
+
return oe(t);
|
|
2031
|
+
return oe(t);
|
|
2019
2032
|
}
|
|
2020
2033
|
},
|
|
2021
2034
|
webpSrcSet() {
|
|
@@ -2033,12 +2046,12 @@ const xo = y({
|
|
|
2033
2046
|
return this.aspectRatio ? e : void 0;
|
|
2034
2047
|
}
|
|
2035
2048
|
}
|
|
2036
|
-
}), Oo = ["srcset"], Uo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"],
|
|
2049
|
+
}), Oo = ["srcset"], Uo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Lo = {
|
|
2037
2050
|
key: 2,
|
|
2038
|
-
class: "div-
|
|
2051
|
+
class: "div-t43jfuqn6g-2"
|
|
2039
2052
|
};
|
|
2040
|
-
function
|
|
2041
|
-
var s,
|
|
2053
|
+
function Fo(e, t, n, o, r, i) {
|
|
2054
|
+
var s, l, a, u, p, f;
|
|
2042
2055
|
return d(), h(I, null, [
|
|
2043
2056
|
z("picture", null, [
|
|
2044
2057
|
e.webpSrcSet ? (d(), h("source", {
|
|
@@ -2052,37 +2065,37 @@ function Lo(e, t, n, o, r, i) {
|
|
|
2052
2065
|
alt: e.altText,
|
|
2053
2066
|
title: e.title,
|
|
2054
2067
|
role: e.altText ? void 0 : "presentation",
|
|
2055
|
-
style:
|
|
2068
|
+
style: M({
|
|
2056
2069
|
objectPosition: e.backgroundPosition || "center",
|
|
2057
2070
|
objectFit: e.backgroundSize || "cover",
|
|
2058
2071
|
...e.aspectRatioCss
|
|
2059
2072
|
}),
|
|
2060
|
-
class:
|
|
2061
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
2073
|
+
class: Z(
|
|
2074
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
|
|
2062
2075
|
),
|
|
2063
2076
|
src: e.image,
|
|
2064
2077
|
srcset: e.srcSetToUse,
|
|
2065
2078
|
sizes: e.sizes
|
|
2066
2079
|
}, null, 14, Uo)
|
|
2067
2080
|
]),
|
|
2068
|
-
e.aspectRatio && !((
|
|
2081
|
+
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
|
|
2069
2082
|
key: 0,
|
|
2070
|
-
class: "builder-image-sizer div-
|
|
2071
|
-
style:
|
|
2083
|
+
class: "builder-image-sizer div-t43jfuqn6g",
|
|
2084
|
+
style: M({
|
|
2072
2085
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
2073
2086
|
})
|
|
2074
2087
|
}, null, 4)) : C("", !0),
|
|
2075
|
-
(u = (
|
|
2076
|
-
!e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div",
|
|
2088
|
+
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? N(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
|
|
2089
|
+
!e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", Lo, [
|
|
2077
2090
|
N(e.$slots, "default", {}, void 0, !0)
|
|
2078
2091
|
])) : C("", !0)
|
|
2079
2092
|
], 64);
|
|
2080
2093
|
}
|
|
2081
|
-
const Ho = /* @__PURE__ */ v(
|
|
2094
|
+
const Ho = /* @__PURE__ */ v(Do, [["render", Fo], ["__scopeId", "data-v-741b9bbc"]]), Mo = y({
|
|
2082
2095
|
name: "builder-section-component",
|
|
2083
2096
|
props: ["attributes", "maxWidth"],
|
|
2084
2097
|
data() {
|
|
2085
|
-
return { filterAttrs:
|
|
2098
|
+
return { filterAttrs: x };
|
|
2086
2099
|
}
|
|
2087
2100
|
});
|
|
2088
2101
|
function jo(e, t, n, o, r, i) {
|
|
@@ -2099,7 +2112,7 @@ function jo(e, t, n, o, r, i) {
|
|
|
2099
2112
|
marginLeft: "auto",
|
|
2100
2113
|
marginRight: "auto"
|
|
2101
2114
|
}
|
|
2102
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
2115
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
2103
2116
|
N(e.$slots, "default")
|
|
2104
2117
|
], 16);
|
|
2105
2118
|
}
|
|
@@ -2118,14 +2131,14 @@ function qo(e, t, n, o) {
|
|
|
2118
2131
|
if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (b = p.value.slice(0, -1)), !(c && m))
|
|
2119
2132
|
return !0;
|
|
2120
2133
|
if (Array.isArray(b))
|
|
2121
|
-
return m === "isNot" ? b.every((
|
|
2134
|
+
return m === "isNot" ? b.every((P) => s(u, {
|
|
2122
2135
|
property: c,
|
|
2123
2136
|
operator: m,
|
|
2124
|
-
value:
|
|
2125
|
-
})) : !!b.find((
|
|
2137
|
+
value: P
|
|
2138
|
+
})) : !!b.find((P) => s(u, {
|
|
2126
2139
|
property: c,
|
|
2127
2140
|
operator: m,
|
|
2128
|
-
value:
|
|
2141
|
+
value: P
|
|
2129
2142
|
}));
|
|
2130
2143
|
const g = u[c];
|
|
2131
2144
|
if (Array.isArray(g))
|
|
@@ -2154,12 +2167,12 @@ function qo(e, t, n, o) {
|
|
|
2154
2167
|
}
|
|
2155
2168
|
})();
|
|
2156
2169
|
}
|
|
2157
|
-
const
|
|
2170
|
+
const l = {
|
|
2158
2171
|
query: t,
|
|
2159
2172
|
startDate: n,
|
|
2160
2173
|
endDate: o
|
|
2161
|
-
},
|
|
2162
|
-
return
|
|
2174
|
+
}, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2175
|
+
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));
|
|
2163
2176
|
}
|
|
2164
2177
|
const zo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
2165
2178
|
if (!navigator.cookieEnabled) {
|
|
@@ -2322,7 +2335,7 @@ const zo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2322
2335
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2323
2336
|
}
|
|
2324
2337
|
}
|
|
2325
|
-
}`,
|
|
2338
|
+
}`, re = "default", Qo = "filterWithCustomTargeting", wt = "builderIoPersonalization", It = "updateVisibilityStylesScript", $t = ["react", "vue", "svelte", "qwik"], Rt = ["vue", "svelte", "qwik"];
|
|
2326
2339
|
function Yo(e, t) {
|
|
2327
2340
|
return !(e && e.length > 0) || !t ? !1 : Rt.includes(R) ? !0 : !T();
|
|
2328
2341
|
}
|
|
@@ -2336,9 +2349,9 @@ function Xo({
|
|
|
2336
2349
|
const i = {
|
|
2337
2350
|
blocks: r ?? [],
|
|
2338
2351
|
path: "this.children",
|
|
2339
|
-
index:
|
|
2352
|
+
index: re
|
|
2340
2353
|
};
|
|
2341
|
-
if (n &&
|
|
2354
|
+
if (n && A()) {
|
|
2342
2355
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
2343
2356
|
const s = e == null ? void 0 : e[t];
|
|
2344
2357
|
if (s)
|
|
@@ -2353,12 +2366,12 @@ function Xo({
|
|
|
2353
2366
|
if (T()) {
|
|
2354
2367
|
const s = o == null ? void 0 : o[0];
|
|
2355
2368
|
if (s && e) {
|
|
2356
|
-
const
|
|
2357
|
-
if (
|
|
2369
|
+
const l = e.indexOf(s);
|
|
2370
|
+
if (l !== -1)
|
|
2358
2371
|
return {
|
|
2359
2372
|
blocks: s.blocks,
|
|
2360
|
-
path: `variants.${
|
|
2361
|
-
index:
|
|
2373
|
+
path: `variants.${l}.blocks`,
|
|
2374
|
+
index: l
|
|
2362
2375
|
};
|
|
2363
2376
|
}
|
|
2364
2377
|
}
|
|
@@ -2368,7 +2381,7 @@ const _o = () => `
|
|
|
2368
2381
|
window.${Qo} = ${Go}
|
|
2369
2382
|
window.${wt} = ${zo}
|
|
2370
2383
|
window.${It} = ${Jo}
|
|
2371
|
-
`, Et = R === "react", Zo = (e, t, n) => `window.${wt}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`, er = (e, t, n) => `window.${It}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`,
|
|
2384
|
+
`, Et = R === "react", Zo = (e, t, n) => `window.${wt}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`, er = (e, t, n) => `window.${It}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`, pe = {
|
|
2372
2385
|
"@type": "@builder.io/sdk:Element",
|
|
2373
2386
|
layerName: "Accordion item title",
|
|
2374
2387
|
responsiveStyles: {
|
|
@@ -2397,7 +2410,7 @@ const _o = () => `
|
|
|
2397
2410
|
}
|
|
2398
2411
|
}
|
|
2399
2412
|
}]
|
|
2400
|
-
},
|
|
2413
|
+
}, me = {
|
|
2401
2414
|
"@type": "@builder.io/sdk:Element",
|
|
2402
2415
|
layerName: "Accordion item detail",
|
|
2403
2416
|
responsiveStyles: {
|
|
@@ -2445,19 +2458,19 @@ const _o = () => `
|
|
|
2445
2458
|
name: "title",
|
|
2446
2459
|
type: "uiBlocks",
|
|
2447
2460
|
hideFromUI: !0,
|
|
2448
|
-
defaultValue: [
|
|
2461
|
+
defaultValue: [pe]
|
|
2449
2462
|
}, {
|
|
2450
2463
|
name: "detail",
|
|
2451
2464
|
type: "uiBlocks",
|
|
2452
2465
|
hideFromUI: !0,
|
|
2453
|
-
defaultValue: [
|
|
2466
|
+
defaultValue: [me]
|
|
2454
2467
|
}],
|
|
2455
2468
|
defaultValue: [{
|
|
2456
|
-
title: [
|
|
2457
|
-
detail: [
|
|
2469
|
+
title: [pe],
|
|
2470
|
+
detail: [me]
|
|
2458
2471
|
}, {
|
|
2459
|
-
title: [
|
|
2460
|
-
detail: [
|
|
2472
|
+
title: [pe],
|
|
2473
|
+
detail: [me]
|
|
2461
2474
|
}],
|
|
2462
2475
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2463
2476
|
}, {
|
|
@@ -2552,11 +2565,11 @@ const _o = () => `
|
|
|
2552
2565
|
continue;
|
|
2553
2566
|
const s = r.getBoundingClientRect();
|
|
2554
2567
|
if (s.left > i.left) {
|
|
2555
|
-
const
|
|
2568
|
+
const l = parseInt(
|
|
2556
2569
|
r.getAttribute("data-index") || "",
|
|
2557
2570
|
10
|
|
2558
2571
|
);
|
|
2559
|
-
isNaN(
|
|
2572
|
+
isNaN(l) || (i = s, e = l);
|
|
2560
2573
|
} else
|
|
2561
2574
|
break;
|
|
2562
2575
|
}
|
|
@@ -2592,38 +2605,38 @@ function ir(e, t, n, o, r, i) {
|
|
|
2592
2605
|
const s = k("Blocks");
|
|
2593
2606
|
return d(), h("div", {
|
|
2594
2607
|
class: "builder-accordion",
|
|
2595
|
-
style:
|
|
2608
|
+
style: M(e.accordionStyles)
|
|
2596
2609
|
}, [
|
|
2597
|
-
(d(!0), h(I, null,
|
|
2610
|
+
(d(!0), h(I, null, F(e.items, (l, a) => (d(), h(I, { key: a }, [
|
|
2598
2611
|
z("div", {
|
|
2599
|
-
class:
|
|
2600
|
-
style:
|
|
2612
|
+
class: Z(e.getAccordionTitleClassName(a)),
|
|
2613
|
+
style: M({
|
|
2601
2614
|
...e.accordionTitleStyles,
|
|
2602
2615
|
...e.grid && {
|
|
2603
2616
|
width: e.gridRowWidth,
|
|
2604
|
-
order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(
|
|
2617
|
+
order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
|
|
2605
2618
|
}
|
|
2606
2619
|
}),
|
|
2607
|
-
"data-index":
|
|
2608
|
-
onClick: async (u) => e.onClick(
|
|
2620
|
+
"data-index": a,
|
|
2621
|
+
onClick: async (u) => e.onClick(a)
|
|
2609
2622
|
}, [
|
|
2610
2623
|
E(s, {
|
|
2611
|
-
blocks:
|
|
2612
|
-
path: `items.${
|
|
2624
|
+
blocks: l.title,
|
|
2625
|
+
path: `items.${a}.title`,
|
|
2613
2626
|
parent: e.builderBlock.id,
|
|
2614
2627
|
context: e.builderContext,
|
|
2615
2628
|
registeredComponents: e.builderComponents,
|
|
2616
2629
|
linkComponent: e.builderLinkComponent
|
|
2617
2630
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2618
2631
|
], 14, rr),
|
|
2619
|
-
e.open.includes(
|
|
2632
|
+
e.open.includes(a) ? (d(), h("div", {
|
|
2620
2633
|
key: 0,
|
|
2621
|
-
class:
|
|
2622
|
-
style:
|
|
2634
|
+
class: Z(e.getAccordionDetailClassName(a)),
|
|
2635
|
+
style: M(e.accordionDetailStyles)
|
|
2623
2636
|
}, [
|
|
2624
2637
|
E(s, {
|
|
2625
|
-
blocks:
|
|
2626
|
-
path: `items.${
|
|
2638
|
+
blocks: l.detail,
|
|
2639
|
+
path: `items.${a}.detail`,
|
|
2627
2640
|
parent: e.builderBlock.id,
|
|
2628
2641
|
context: e.builderContext,
|
|
2629
2642
|
registeredComponents: e.builderComponents,
|
|
@@ -2848,7 +2861,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
2848
2861
|
});
|
|
2849
2862
|
}
|
|
2850
2863
|
const n = e.get("columns");
|
|
2851
|
-
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((
|
|
2864
|
+
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((l, a) => l + a.get("width"), 0) !== 100) && t();
|
|
2852
2865
|
}
|
|
2853
2866
|
}, {
|
|
2854
2867
|
name: "space",
|
|
@@ -2882,7 +2895,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
2882
2895
|
hidden: !0,
|
|
2883
2896
|
canHaveChildren: !0,
|
|
2884
2897
|
noWrap: !0
|
|
2885
|
-
},
|
|
2898
|
+
}, Pe = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], dr = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], ur = {
|
|
2886
2899
|
name: "Image",
|
|
2887
2900
|
static: !0,
|
|
2888
2901
|
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",
|
|
@@ -2897,22 +2910,22 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
2897
2910
|
name: "image",
|
|
2898
2911
|
type: "file",
|
|
2899
2912
|
bubble: !0,
|
|
2900
|
-
allowedFileTypes:
|
|
2913
|
+
allowedFileTypes: Pe,
|
|
2901
2914
|
required: !0,
|
|
2902
2915
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2903
2916
|
onChange: (e) => {
|
|
2904
2917
|
e.delete("srcset"), e.delete("noWebp");
|
|
2905
|
-
function n(s,
|
|
2906
|
-
return new Promise((
|
|
2918
|
+
function n(s, l = 6e4) {
|
|
2919
|
+
return new Promise((a, u) => {
|
|
2907
2920
|
const p = document.createElement("img");
|
|
2908
2921
|
let f = !1;
|
|
2909
2922
|
p.onload = () => {
|
|
2910
|
-
f = !0,
|
|
2923
|
+
f = !0, a(p);
|
|
2911
2924
|
}, p.addEventListener("error", (c) => {
|
|
2912
2925
|
console.warn("Image load failed", c.error), u(c.error);
|
|
2913
2926
|
}), p.src = s, setTimeout(() => {
|
|
2914
2927
|
f || u(new Error("Image load timed out"));
|
|
2915
|
-
},
|
|
2928
|
+
}, l);
|
|
2916
2929
|
});
|
|
2917
2930
|
}
|
|
2918
2931
|
function o(s) {
|
|
@@ -2923,8 +2936,8 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
2923
2936
|
s.type.includes("svg") && e.set("noWebp", !0);
|
|
2924
2937
|
}), r && (!i || i === 0.7041))
|
|
2925
2938
|
return n(r).then((s) => {
|
|
2926
|
-
const
|
|
2927
|
-
e.get("image") === r && (!
|
|
2939
|
+
const l = e.get("aspectRatio");
|
|
2940
|
+
e.get("image") === r && (!l || l === 0.7041) && s.width && s.height && (e.set("aspectRatio", o(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
|
|
2928
2941
|
});
|
|
2929
2942
|
}
|
|
2930
2943
|
}, {
|
|
@@ -3030,7 +3043,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3030
3043
|
defaultValue: []
|
|
3031
3044
|
}]
|
|
3032
3045
|
}]
|
|
3033
|
-
},
|
|
3046
|
+
}, Be = y({
|
|
3034
3047
|
render() {
|
|
3035
3048
|
return ze("script", {
|
|
3036
3049
|
innerHTML: this.scriptStr,
|
|
@@ -3044,8 +3057,8 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3044
3057
|
name: "builder-personalization-container",
|
|
3045
3058
|
components: {
|
|
3046
3059
|
Blocks: q,
|
|
3047
|
-
InlinedStyles:
|
|
3048
|
-
InlinedScript:
|
|
3060
|
+
InlinedStyles: ue,
|
|
3061
|
+
InlinedScript: Be
|
|
3049
3062
|
},
|
|
3050
3063
|
props: [
|
|
3051
3064
|
"builderContext",
|
|
@@ -3058,7 +3071,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3058
3071
|
data() {
|
|
3059
3072
|
var e, t, n, o, r, i, s;
|
|
3060
3073
|
return {
|
|
3061
|
-
userAttributes:
|
|
3074
|
+
userAttributes: le.getUserAttributes(),
|
|
3062
3075
|
scriptStr: Zo(
|
|
3063
3076
|
this.variants,
|
|
3064
3077
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
@@ -3072,18 +3085,18 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3072
3085
|
unsubscribers: [],
|
|
3073
3086
|
shouldRenderVariants: Yo(
|
|
3074
3087
|
this.variants,
|
|
3075
|
-
|
|
3088
|
+
G((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
3076
3089
|
),
|
|
3077
3090
|
shouldResetVariants: !1,
|
|
3078
3091
|
TARGET: R,
|
|
3079
|
-
DEFAULT_INDEX:
|
|
3092
|
+
DEFAULT_INDEX: re,
|
|
3080
3093
|
SDKS_REQUIRING_RESET_APPROACH: Rt
|
|
3081
3094
|
};
|
|
3082
3095
|
},
|
|
3083
3096
|
mounted() {
|
|
3084
3097
|
var t;
|
|
3085
3098
|
this.shouldResetVariants = !0;
|
|
3086
|
-
const e =
|
|
3099
|
+
const e = le.subscribeOnUserAttributesChange(
|
|
3087
3100
|
(n) => {
|
|
3088
3101
|
this.userAttributes = n;
|
|
3089
3102
|
},
|
|
@@ -3091,12 +3104,12 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3091
3104
|
fireImmediately: R === "qwik"
|
|
3092
3105
|
}
|
|
3093
3106
|
);
|
|
3094
|
-
if (!(
|
|
3107
|
+
if (!(A() || Te())) {
|
|
3095
3108
|
const n = this.filteredVariants[0];
|
|
3096
3109
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
3097
3110
|
new CustomEvent("builder.variantLoaded", {
|
|
3098
3111
|
detail: {
|
|
3099
|
-
variant: n ||
|
|
3112
|
+
variant: n || re,
|
|
3100
3113
|
content: (t = this.builderContext) == null ? void 0 : t.content
|
|
3101
3114
|
},
|
|
3102
3115
|
bubbles: !0
|
|
@@ -3107,7 +3120,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3107
3120
|
i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
|
|
3108
3121
|
new CustomEvent("builder.variantDisplayed", {
|
|
3109
3122
|
detail: {
|
|
3110
|
-
variant: n ||
|
|
3123
|
+
variant: n || re,
|
|
3111
3124
|
content: (s = this.builderContext) == null ? void 0 : s.content
|
|
3112
3125
|
},
|
|
3113
3126
|
bubbles: !0
|
|
@@ -3124,9 +3137,9 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3124
3137
|
computed: {
|
|
3125
3138
|
attrs() {
|
|
3126
3139
|
return {
|
|
3127
|
-
...
|
|
3128
|
-
...
|
|
3129
|
-
[
|
|
3140
|
+
...x(this.attributes, "v-on:", !1),
|
|
3141
|
+
...x(this.attributes, "v-on:", !0),
|
|
3142
|
+
[j()]: `builder-personalization-container ${this.attributes[j()] || ""}`
|
|
3130
3143
|
};
|
|
3131
3144
|
},
|
|
3132
3145
|
filteredVariants() {
|
|
@@ -3166,8 +3179,8 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3166
3179
|
}
|
|
3167
3180
|
});
|
|
3168
3181
|
function hr(e, t, n, o, r, i) {
|
|
3169
|
-
var u, p, f, c, m, b, g,
|
|
3170
|
-
const s = k("Blocks"),
|
|
3182
|
+
var u, p, f, c, m, b, g, P, U, V;
|
|
3183
|
+
const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
|
|
3171
3184
|
return d(), h("div", $({ ref: "rootRef" }, e.attrs), [
|
|
3172
3185
|
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
|
|
3173
3186
|
key: 0,
|
|
@@ -3183,39 +3196,39 @@ function hr(e, t, n, o, r, i) {
|
|
|
3183
3196
|
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : C("", !0),
|
|
3184
3197
|
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(I, { key: 1 }, [
|
|
3185
3198
|
e.shouldRenderVariants ? (d(), h(I, { key: 0 }, [
|
|
3186
|
-
E(
|
|
3199
|
+
E(l, {
|
|
3187
3200
|
nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
|
|
3188
3201
|
styles: e.hideVariantsStyleString,
|
|
3189
3202
|
id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
|
|
3190
3203
|
}, null, 8, ["nonce", "styles", "id"]),
|
|
3191
|
-
E(
|
|
3204
|
+
E(a, {
|
|
3192
3205
|
nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
|
|
3193
3206
|
scriptStr: e.updateVisibilityStylesScript,
|
|
3194
3207
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
3195
3208
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
3196
|
-
(d(!0), h(I, null,
|
|
3197
|
-
var
|
|
3209
|
+
(d(!0), h(I, null, F(e.variants, (w, W) => {
|
|
3210
|
+
var J, Q, D, H;
|
|
3198
3211
|
return d(), S(s, {
|
|
3199
|
-
key: `${(
|
|
3212
|
+
key: `${(J = e.builderBlock) == null ? void 0 : J.id}-${W}`,
|
|
3200
3213
|
BlocksWrapperProps: {
|
|
3201
3214
|
...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
|
|
3202
3215
|
"aria-hidden": !0,
|
|
3203
3216
|
hidden: !0,
|
|
3204
|
-
"data-variant-id": `${(
|
|
3217
|
+
"data-variant-id": `${(D = e.builderBlock) == null ? void 0 : D.id}-${W}`
|
|
3205
3218
|
},
|
|
3206
3219
|
blocks: w.blocks,
|
|
3207
|
-
parent: (
|
|
3208
|
-
path: `component.options.variants.${
|
|
3220
|
+
parent: (H = e.builderBlock) == null ? void 0 : H.id,
|
|
3221
|
+
path: `component.options.variants.${W}.blocks`,
|
|
3209
3222
|
context: e.builderContext,
|
|
3210
3223
|
registeredComponents: e.builderComponents
|
|
3211
3224
|
}, {
|
|
3212
|
-
default:
|
|
3213
|
-
var
|
|
3225
|
+
default: O(() => {
|
|
3226
|
+
var Ve, Ne;
|
|
3214
3227
|
return [
|
|
3215
|
-
E(
|
|
3216
|
-
nonce: ((
|
|
3228
|
+
E(a, {
|
|
3229
|
+
nonce: ((Ve = e.builderContext) == null ? void 0 : Ve.nonce) || "",
|
|
3217
3230
|
scriptStr: e.scriptStr,
|
|
3218
|
-
id: `variants-script-${(Ne = e.builderBlock) == null ? void 0 : Ne.id}-${
|
|
3231
|
+
id: `variants-script-${(Ne = e.builderBlock) == null ? void 0 : Ne.id}-${W}`
|
|
3219
3232
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
3220
3233
|
];
|
|
3221
3234
|
}),
|
|
@@ -3225,23 +3238,23 @@ function hr(e, t, n, o, r, i) {
|
|
|
3225
3238
|
], 64)) : C("", !0),
|
|
3226
3239
|
E(s, {
|
|
3227
3240
|
blocks: e.blocksToRender.blocks,
|
|
3228
|
-
parent: (
|
|
3241
|
+
parent: (P = e.builderBlock) == null ? void 0 : P.id,
|
|
3229
3242
|
path: e.blocksToRender.path,
|
|
3230
3243
|
context: e.builderContext,
|
|
3231
3244
|
registeredComponents: e.builderComponents,
|
|
3232
3245
|
BlocksWrapperProps: {
|
|
3233
|
-
...(
|
|
3246
|
+
...(U = e.builderContext) == null ? void 0 : U.BlocksWrapperProps,
|
|
3234
3247
|
"data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${e.blocksToRender.index}`
|
|
3235
3248
|
}
|
|
3236
3249
|
}, {
|
|
3237
|
-
default:
|
|
3238
|
-
var w,
|
|
3250
|
+
default: O(() => {
|
|
3251
|
+
var w, W;
|
|
3239
3252
|
return [
|
|
3240
|
-
e.shouldRenderVariants ? (d(), S(
|
|
3253
|
+
e.shouldRenderVariants ? (d(), S(a, {
|
|
3241
3254
|
key: 0,
|
|
3242
3255
|
nonce: ((w = e.builderContext) == null ? void 0 : w.nonce) || "",
|
|
3243
3256
|
scriptStr: e.scriptStr,
|
|
3244
|
-
id: `variants-script-${(
|
|
3257
|
+
id: `variants-script-${(W = e.builderBlock) == null ? void 0 : W.id}-${e.DEFAULT_INDEX}`
|
|
3245
3258
|
}, null, 8, ["nonce", "scriptStr", "id"])) : C("", !0)
|
|
3246
3259
|
];
|
|
3247
3260
|
}),
|
|
@@ -3312,18 +3325,18 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
|
|
|
3312
3325
|
props: ["builderContext", "name", "builderComponents"]
|
|
3313
3326
|
});
|
|
3314
3327
|
function vr(e, t, n, o, r, i) {
|
|
3315
|
-
var
|
|
3328
|
+
var l, a, u;
|
|
3316
3329
|
const s = k("Blocks");
|
|
3317
3330
|
return d(), h("div", $(
|
|
3318
3331
|
{ style: {
|
|
3319
3332
|
pointerEvents: "auto"
|
|
3320
3333
|
} },
|
|
3321
|
-
!((
|
|
3334
|
+
!((l = e.builderContext.context) != null && l.symbolId) && {
|
|
3322
3335
|
"builder-slot": e.name
|
|
3323
3336
|
}
|
|
3324
3337
|
), [
|
|
3325
3338
|
E(s, {
|
|
3326
|
-
parent: (
|
|
3339
|
+
parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
|
|
3327
3340
|
path: `symbol.data.${e.name}`,
|
|
3328
3341
|
context: e.builderContext,
|
|
3329
3342
|
registeredComponents: e.builderComponents,
|
|
@@ -3370,7 +3383,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3370
3383
|
builderComponents: !0,
|
|
3371
3384
|
builderLinkComponent: !0
|
|
3372
3385
|
}
|
|
3373
|
-
},
|
|
3386
|
+
}, he = {
|
|
3374
3387
|
"@type": "@builder.io/sdk:Element",
|
|
3375
3388
|
responsiveStyles: {
|
|
3376
3389
|
large: {
|
|
@@ -3392,7 +3405,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3392
3405
|
text: "New tab"
|
|
3393
3406
|
}
|
|
3394
3407
|
}
|
|
3395
|
-
},
|
|
3408
|
+
}, fe = {
|
|
3396
3409
|
"@type": "@builder.io/sdk:Element",
|
|
3397
3410
|
responsiveStyles: {
|
|
3398
3411
|
large: {
|
|
@@ -3418,16 +3431,16 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3418
3431
|
name: "label",
|
|
3419
3432
|
type: "uiBlocks",
|
|
3420
3433
|
hideFromUI: !0,
|
|
3421
|
-
defaultValue: [
|
|
3434
|
+
defaultValue: [he]
|
|
3422
3435
|
}, {
|
|
3423
3436
|
name: "content",
|
|
3424
3437
|
type: "uiBlocks",
|
|
3425
3438
|
hideFromUI: !0,
|
|
3426
|
-
defaultValue: [
|
|
3439
|
+
defaultValue: [fe]
|
|
3427
3440
|
}],
|
|
3428
3441
|
defaultValue: [{
|
|
3429
3442
|
label: [{
|
|
3430
|
-
...
|
|
3443
|
+
...he,
|
|
3431
3444
|
component: {
|
|
3432
3445
|
name: "Text",
|
|
3433
3446
|
options: {
|
|
@@ -3436,7 +3449,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3436
3449
|
}
|
|
3437
3450
|
}],
|
|
3438
3451
|
content: [{
|
|
3439
|
-
...
|
|
3452
|
+
...fe,
|
|
3440
3453
|
component: {
|
|
3441
3454
|
name: "Text",
|
|
3442
3455
|
options: {
|
|
@@ -3446,7 +3459,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3446
3459
|
}]
|
|
3447
3460
|
}, {
|
|
3448
3461
|
label: [{
|
|
3449
|
-
...
|
|
3462
|
+
...he,
|
|
3450
3463
|
component: {
|
|
3451
3464
|
name: "Text",
|
|
3452
3465
|
options: {
|
|
@@ -3455,7 +3468,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3455
3468
|
}
|
|
3456
3469
|
}],
|
|
3457
3470
|
content: [{
|
|
3458
|
-
...
|
|
3471
|
+
...fe,
|
|
3459
3472
|
component: {
|
|
3460
3473
|
name: "Text",
|
|
3461
3474
|
options: {
|
|
@@ -3517,9 +3530,9 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3517
3530
|
props: [
|
|
3518
3531
|
"defaultActiveTab",
|
|
3519
3532
|
"tabs",
|
|
3533
|
+
"activeTabStyle",
|
|
3520
3534
|
"collapsible",
|
|
3521
3535
|
"tabHeaderLayout",
|
|
3522
|
-
"activeTabStyle",
|
|
3523
3536
|
"builderBlock",
|
|
3524
3537
|
"builderContext",
|
|
3525
3538
|
"builderComponents",
|
|
@@ -3532,6 +3545,9 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3532
3545
|
activeTabContent(e) {
|
|
3533
3546
|
return this.tabs && this.tabs[e].content;
|
|
3534
3547
|
},
|
|
3548
|
+
getTabStyle(e) {
|
|
3549
|
+
return e === this.activeTab ? this.activeTabStyle : {};
|
|
3550
|
+
},
|
|
3535
3551
|
onClick(e) {
|
|
3536
3552
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3537
3553
|
}
|
|
@@ -3542,25 +3558,23 @@ function $r(e, t, n, o, r, i) {
|
|
|
3542
3558
|
return d(), h("div", null, [
|
|
3543
3559
|
z("div", {
|
|
3544
3560
|
class: "builder-tabs-wrap",
|
|
3545
|
-
style:
|
|
3561
|
+
style: M({
|
|
3546
3562
|
display: "flex",
|
|
3547
3563
|
flexDirection: "row",
|
|
3548
3564
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
3549
3565
|
overflow: "auto"
|
|
3550
3566
|
})
|
|
3551
3567
|
}, [
|
|
3552
|
-
(d(!0), h(I, null,
|
|
3553
|
-
key:
|
|
3554
|
-
class:
|
|
3555
|
-
style:
|
|
3556
|
-
|
|
3557
|
-
}),
|
|
3558
|
-
onClick: async (u) => e.onClick(l)
|
|
3568
|
+
(d(!0), h(I, null, F(e.tabs, (l, a) => (d(), h("span", {
|
|
3569
|
+
key: a,
|
|
3570
|
+
class: Z(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
3571
|
+
style: M(e.getTabStyle(a)),
|
|
3572
|
+
onClick: async (u) => e.onClick(a)
|
|
3559
3573
|
}, [
|
|
3560
3574
|
E(s, {
|
|
3561
3575
|
parent: e.builderBlock.id,
|
|
3562
|
-
path: `tabs.${
|
|
3563
|
-
blocks:
|
|
3576
|
+
path: `tabs.${a}.label`,
|
|
3577
|
+
blocks: l.label,
|
|
3564
3578
|
context: e.builderContext,
|
|
3565
3579
|
registeredComponents: e.builderComponents,
|
|
3566
3580
|
linkComponent: e.builderLinkComponent
|
|
@@ -3583,7 +3597,6 @@ const Rr = /* @__PURE__ */ v(Tr, [["render", $r]]), Er = {
|
|
|
3583
3597
|
shouldReceiveBuilderProps: {},
|
|
3584
3598
|
name: "Text",
|
|
3585
3599
|
static: !0,
|
|
3586
|
-
isRSC: !0,
|
|
3587
3600
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
3588
3601
|
inputs: [{
|
|
3589
3602
|
name: "text",
|
|
@@ -3598,10 +3611,10 @@ const Rr = /* @__PURE__ */ v(Tr, [["render", $r]]), Er = {
|
|
|
3598
3611
|
height: "auto",
|
|
3599
3612
|
textAlign: "center"
|
|
3600
3613
|
}
|
|
3601
|
-
},
|
|
3614
|
+
}, Ar = y({
|
|
3602
3615
|
name: "builder-text",
|
|
3603
3616
|
props: ["text"]
|
|
3604
|
-
}),
|
|
3617
|
+
}), Pr = ["innerHTML"];
|
|
3605
3618
|
function Br(e, t, n, o, r, i) {
|
|
3606
3619
|
var s;
|
|
3607
3620
|
return d(), h("div", {
|
|
@@ -3610,9 +3623,9 @@ function Br(e, t, n, o, r, i) {
|
|
|
3610
3623
|
style: {
|
|
3611
3624
|
outline: "none"
|
|
3612
3625
|
}
|
|
3613
|
-
}, null, 8,
|
|
3626
|
+
}, null, 8, Pr);
|
|
3614
3627
|
}
|
|
3615
|
-
const Vr = /* @__PURE__ */ v(
|
|
3628
|
+
const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
|
|
3616
3629
|
name: "Custom Code",
|
|
3617
3630
|
static: !0,
|
|
3618
3631
|
requiredPermissions: ["editCode"],
|
|
@@ -3634,7 +3647,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3634
3647
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3635
3648
|
advanced: !0
|
|
3636
3649
|
}]
|
|
3637
|
-
},
|
|
3650
|
+
}, xr = y({
|
|
3638
3651
|
name: "builder-custom-code",
|
|
3639
3652
|
props: ["code", "replaceNodes"],
|
|
3640
3653
|
data() {
|
|
@@ -3646,7 +3659,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3646
3659
|
watch: {
|
|
3647
3660
|
onUpdateHook0: {
|
|
3648
3661
|
handler() {
|
|
3649
|
-
|
|
3662
|
+
A() && setTimeout(() => {
|
|
3650
3663
|
this.runScripts();
|
|
3651
3664
|
}, 0);
|
|
3652
3665
|
},
|
|
@@ -3693,15 +3706,15 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3693
3706
|
}
|
|
3694
3707
|
}
|
|
3695
3708
|
}
|
|
3696
|
-
}),
|
|
3697
|
-
function
|
|
3709
|
+
}), Wr = ["innerHTML"];
|
|
3710
|
+
function Dr(e, t, n, o, r, i) {
|
|
3698
3711
|
return d(), h("div", {
|
|
3699
3712
|
ref: "elementRef",
|
|
3700
|
-
class:
|
|
3713
|
+
class: Z("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3701
3714
|
innerHTML: e.code
|
|
3702
|
-
}, null, 10,
|
|
3715
|
+
}, null, 10, Wr);
|
|
3703
3716
|
}
|
|
3704
|
-
const Or = /* @__PURE__ */ v(
|
|
3717
|
+
const Or = /* @__PURE__ */ v(xr, [["render", Dr]]), Ur = {
|
|
3705
3718
|
name: "Embed",
|
|
3706
3719
|
static: !0,
|
|
3707
3720
|
inputs: [{
|
|
@@ -3716,7 +3729,7 @@ const Or = /* @__PURE__ */ v(Wr, [["render", xr]]), Ur = {
|
|
|
3716
3729
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3717
3730
|
hideFromUI: !0
|
|
3718
3731
|
}]
|
|
3719
|
-
},
|
|
3732
|
+
}, Lr = ["text/javascript", "application/javascript", "application/ecmascript"], Fr = (e) => Lr.includes(e.type), Hr = y({
|
|
3720
3733
|
name: "builder-embed",
|
|
3721
3734
|
props: ["content"],
|
|
3722
3735
|
data() {
|
|
@@ -3749,7 +3762,7 @@ const Or = /* @__PURE__ */ v(Wr, [["render", xr]]), Ur = {
|
|
|
3749
3762
|
this.scriptsInserted.push(n.src);
|
|
3750
3763
|
const o = document.createElement("script");
|
|
3751
3764
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3752
|
-
} else if (
|
|
3765
|
+
} else if (Fr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3753
3766
|
try {
|
|
3754
3767
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3755
3768
|
} catch (o) {
|
|
@@ -4034,7 +4047,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4034
4047
|
formState: "unsubmitted",
|
|
4035
4048
|
responseData: null,
|
|
4036
4049
|
formErrorMessage: "",
|
|
4037
|
-
filterAttrs:
|
|
4050
|
+
filterAttrs: x
|
|
4038
4051
|
};
|
|
4039
4052
|
},
|
|
4040
4053
|
methods: {
|
|
@@ -4047,7 +4060,10 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4047
4060
|
this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
|
|
4048
4061
|
},
|
|
4049
4062
|
submissionState() {
|
|
4050
|
-
return
|
|
4063
|
+
return A() && this.previewState || this.formState;
|
|
4064
|
+
},
|
|
4065
|
+
errorResponse(e) {
|
|
4066
|
+
return JSON.stringify(e, null, 2);
|
|
4051
4067
|
},
|
|
4052
4068
|
onSubmit(e) {
|
|
4053
4069
|
var n;
|
|
@@ -4062,13 +4078,15 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4062
4078
|
e.preventDefault();
|
|
4063
4079
|
const o = e.currentTarget || e.target, r = this.customHeaders || {};
|
|
4064
4080
|
let i;
|
|
4065
|
-
const s = new FormData(o),
|
|
4081
|
+
const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).filter(
|
|
4082
|
+
(c) => !!c.name && (c.type !== "radio" || c.checked)
|
|
4083
|
+
).map((c) => {
|
|
4066
4084
|
let m;
|
|
4067
4085
|
const b = c.name;
|
|
4068
4086
|
if (c instanceof HTMLInputElement)
|
|
4069
4087
|
if (c.type === "radio") {
|
|
4070
4088
|
if (c.checked)
|
|
4071
|
-
return m = c.
|
|
4089
|
+
return m = c.value, {
|
|
4072
4090
|
key: b,
|
|
4073
4091
|
value: m
|
|
4074
4092
|
};
|
|
@@ -4086,18 +4104,18 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4086
4104
|
value: m
|
|
4087
4105
|
};
|
|
4088
4106
|
});
|
|
4089
|
-
let
|
|
4090
|
-
if (this.sendSubmissionsTo === "email" && (
|
|
4091
|
-
(c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (
|
|
4092
|
-
}),
|
|
4107
|
+
let a = this.contentType;
|
|
4108
|
+
if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
|
|
4109
|
+
(c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
|
|
4110
|
+
}), a !== "application/json")
|
|
4093
4111
|
i = s;
|
|
4094
4112
|
else {
|
|
4095
4113
|
const c = {};
|
|
4096
|
-
Array.from(
|
|
4114
|
+
Array.from(l).forEach(({ value: m, key: b }) => {
|
|
4097
4115
|
et(c, b, m);
|
|
4098
4116
|
}), i = JSON.stringify(c);
|
|
4099
4117
|
}
|
|
4100
|
-
|
|
4118
|
+
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
4101
4119
|
const u = new CustomEvent("presubmit", {
|
|
4102
4120
|
detail: {
|
|
4103
4121
|
body: i
|
|
@@ -4115,25 +4133,25 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4115
4133
|
const p = `${Gr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
4116
4134
|
this.sendSubmissionsToEmail || ""
|
|
4117
4135
|
)}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
4118
|
-
|
|
4136
|
+
Ie(f), fetch(f, {
|
|
4119
4137
|
body: i,
|
|
4120
4138
|
headers: r,
|
|
4121
4139
|
method: this.method || "post"
|
|
4122
4140
|
}).then(
|
|
4123
4141
|
async (c) => {
|
|
4124
|
-
var g,
|
|
4142
|
+
var g, P;
|
|
4125
4143
|
let m;
|
|
4126
4144
|
const b = c.headers.get("content-type");
|
|
4127
4145
|
if (b && b.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
|
|
4128
|
-
const
|
|
4146
|
+
const U = new CustomEvent("submit:error", {
|
|
4129
4147
|
detail: {
|
|
4130
4148
|
error: m,
|
|
4131
4149
|
status: c.status
|
|
4132
4150
|
}
|
|
4133
4151
|
});
|
|
4134
|
-
if ((g = this.$refs.formRef) != null && g.nativeElement && ((
|
|
4135
|
-
|
|
4136
|
-
),
|
|
4152
|
+
if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
|
|
4153
|
+
U
|
|
4154
|
+
), U.defaultPrevented))
|
|
4137
4155
|
return;
|
|
4138
4156
|
this.responseData = m, this.formState = "error";
|
|
4139
4157
|
let V = this.errorMessagePath ? Je(m, this.errorMessagePath) : m.message || m.error || m;
|
|
@@ -4143,14 +4161,14 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4143
4161
|
return;
|
|
4144
4162
|
}
|
|
4145
4163
|
if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
|
|
4146
|
-
const
|
|
4164
|
+
const U = new CustomEvent("submit:success", {
|
|
4147
4165
|
detail: {
|
|
4148
4166
|
res: c,
|
|
4149
4167
|
body: m
|
|
4150
4168
|
}
|
|
4151
4169
|
});
|
|
4152
4170
|
if (this.$refs.formRef) {
|
|
4153
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
4171
|
+
if (this.$refs.formRef.dispatchEvent(U), U.defaultPrevented)
|
|
4154
4172
|
return;
|
|
4155
4173
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
4156
4174
|
}
|
|
@@ -4180,7 +4198,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4180
4198
|
}
|
|
4181
4199
|
}), Qr = ["validate", "action", "method", "name"], Yr = {
|
|
4182
4200
|
key: 2,
|
|
4183
|
-
class: "builder-form-error-text pre-
|
|
4201
|
+
class: "builder-form-error-text pre-2oa2wtipkzk"
|
|
4184
4202
|
};
|
|
4185
4203
|
function Xr(e, t, n, o, r, i) {
|
|
4186
4204
|
const s = k("Blocks");
|
|
@@ -4190,8 +4208,8 @@ function Xr(e, t, n, o, r, i) {
|
|
|
4190
4208
|
action: !e.sendWithJs && e.action,
|
|
4191
4209
|
method: e.method,
|
|
4192
4210
|
name: e.name,
|
|
4193
|
-
onSubmit: t[0] || (t[0] = async (
|
|
4194
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
4211
|
+
onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
|
|
4212
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4195
4213
|
N(e.$slots, "default", {}, void 0, !0),
|
|
4196
4214
|
e.submissionState() === "error" ? (d(), S(s, {
|
|
4197
4215
|
key: 0,
|
|
@@ -4205,7 +4223,7 @@ function Xr(e, t, n, o, r, i) {
|
|
|
4205
4223
|
blocks: e.sendingMessage,
|
|
4206
4224
|
context: e.builderContext
|
|
4207
4225
|
}, null, 8, ["blocks", "context"])) : C("", !0),
|
|
4208
|
-
e.submissionState() === "error" && e.responseData ? (d(), h("pre", Yr,
|
|
4226
|
+
e.submissionState() === "error" && e.responseData ? (d(), h("pre", Yr, ce(e.errorResponse(e.responseData)), 1)) : C("", !0),
|
|
4209
4227
|
e.submissionState() === "success" ? (d(), S(s, {
|
|
4210
4228
|
key: 3,
|
|
4211
4229
|
path: "successMessage",
|
|
@@ -4214,7 +4232,7 @@ function Xr(e, t, n, o, r, i) {
|
|
|
4214
4232
|
}, null, 8, ["blocks", "context"])) : C("", !0)
|
|
4215
4233
|
], 16, Qr);
|
|
4216
4234
|
}
|
|
4217
|
-
const _r = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-
|
|
4235
|
+
const _r = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-77c7888c"]]), Zr = {
|
|
4218
4236
|
name: "Form:Input",
|
|
4219
4237
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4220
4238
|
inputs: [
|
|
@@ -4277,7 +4295,7 @@ const _r = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-89aa89a6
|
|
|
4277
4295
|
"required"
|
|
4278
4296
|
],
|
|
4279
4297
|
data() {
|
|
4280
|
-
return { isEditing:
|
|
4298
|
+
return { isEditing: A, filterAttrs: x };
|
|
4281
4299
|
}
|
|
4282
4300
|
}), ti = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4283
4301
|
function ni(e, t, n, o, r, i) {
|
|
@@ -4289,7 +4307,7 @@ function ni(e, t, n, o, r, i) {
|
|
|
4289
4307
|
value: e.value,
|
|
4290
4308
|
defaultValue: e.defaultValue,
|
|
4291
4309
|
required: e.required
|
|
4292
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4310
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ti);
|
|
4293
4311
|
}
|
|
4294
4312
|
const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
|
|
4295
4313
|
name: "Form:Select",
|
|
@@ -4337,7 +4355,7 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
|
|
|
4337
4355
|
name: "builder-select-component",
|
|
4338
4356
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4339
4357
|
data() {
|
|
4340
|
-
return { isEditing:
|
|
4358
|
+
return { isEditing: A, filterAttrs: x };
|
|
4341
4359
|
}
|
|
4342
4360
|
}), si = ["value", "defaultValue", "name", "required"], ai = ["value"];
|
|
4343
4361
|
function li(e, t, n, o, r, i) {
|
|
@@ -4347,11 +4365,11 @@ function li(e, t, n, o, r, i) {
|
|
|
4347
4365
|
defaultValue: e.defaultValue,
|
|
4348
4366
|
name: e.name,
|
|
4349
4367
|
required: e.required
|
|
4350
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4351
|
-
(d(!0), h(I, null,
|
|
4352
|
-
key: `${s.name}-${
|
|
4368
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4369
|
+
(d(!0), h(I, null, F(e.options, (s, l) => (d(), h("option", {
|
|
4370
|
+
key: `${s.name}-${l}`,
|
|
4353
4371
|
value: s.value
|
|
4354
|
-
},
|
|
4372
|
+
}, ce(s.name || s.value), 9, ai))), 128))
|
|
4355
4373
|
], 16, si);
|
|
4356
4374
|
}
|
|
4357
4375
|
const ci = /* @__PURE__ */ v(ii, [["render", li]]), di = {
|
|
@@ -4383,11 +4401,11 @@ const ci = /* @__PURE__ */ v(ii, [["render", li]]), di = {
|
|
|
4383
4401
|
name: "builder-submit-button",
|
|
4384
4402
|
props: ["attributes", "text"],
|
|
4385
4403
|
data() {
|
|
4386
|
-
return { filterAttrs:
|
|
4404
|
+
return { filterAttrs: x };
|
|
4387
4405
|
}
|
|
4388
4406
|
});
|
|
4389
4407
|
function pi(e, t, n, o, r, i) {
|
|
4390
|
-
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4408
|
+
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ce(e.text), 17);
|
|
4391
4409
|
}
|
|
4392
4410
|
const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
|
|
4393
4411
|
name: "Form:TextArea",
|
|
@@ -4436,7 +4454,7 @@ const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
|
|
|
4436
4454
|
"required"
|
|
4437
4455
|
],
|
|
4438
4456
|
data() {
|
|
4439
|
-
return { filterAttrs:
|
|
4457
|
+
return { filterAttrs: x };
|
|
4440
4458
|
}
|
|
4441
4459
|
}), bi = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4442
4460
|
function gi(e, t, n, o, r, i) {
|
|
@@ -4446,10 +4464,9 @@ function gi(e, t, n, o, r, i) {
|
|
|
4446
4464
|
value: e.value,
|
|
4447
4465
|
defaultValue: e.defaultValue,
|
|
4448
4466
|
required: e.required
|
|
4449
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4467
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, bi);
|
|
4450
4468
|
}
|
|
4451
4469
|
const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
|
|
4452
|
-
// friendlyName?
|
|
4453
4470
|
name: "Raw:Img",
|
|
4454
4471
|
hideFromInsertMenu: !0,
|
|
4455
4472
|
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",
|
|
@@ -4457,44 +4474,88 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
|
|
|
4457
4474
|
name: "image",
|
|
4458
4475
|
bubble: !0,
|
|
4459
4476
|
type: "file",
|
|
4460
|
-
allowedFileTypes:
|
|
4477
|
+
allowedFileTypes: Pe,
|
|
4461
4478
|
required: !0
|
|
4479
|
+
}, {
|
|
4480
|
+
name: "backgroundSize",
|
|
4481
|
+
type: "text",
|
|
4482
|
+
defaultValue: "cover",
|
|
4483
|
+
enum: [{
|
|
4484
|
+
label: "contain",
|
|
4485
|
+
value: "contain",
|
|
4486
|
+
helperText: "The image should never get cropped"
|
|
4487
|
+
}, {
|
|
4488
|
+
label: "cover",
|
|
4489
|
+
value: "cover",
|
|
4490
|
+
helperText: "The image should fill it's box, cropping when needed"
|
|
4491
|
+
}]
|
|
4492
|
+
}, {
|
|
4493
|
+
name: "backgroundPosition",
|
|
4494
|
+
type: "text",
|
|
4495
|
+
defaultValue: "center",
|
|
4496
|
+
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
4497
|
+
}, {
|
|
4498
|
+
name: "altText",
|
|
4499
|
+
type: "string",
|
|
4500
|
+
helperText: "Text to display when the user has images off"
|
|
4501
|
+
}, {
|
|
4502
|
+
name: "title",
|
|
4503
|
+
type: "string",
|
|
4504
|
+
helperText: "Text to display when hovering over the asset"
|
|
4505
|
+
}, {
|
|
4506
|
+
name: "aspectRatio",
|
|
4507
|
+
type: "number",
|
|
4508
|
+
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
4509
|
+
advanced: !0,
|
|
4510
|
+
defaultValue: 0.7041
|
|
4462
4511
|
}],
|
|
4463
|
-
noWrap: !0
|
|
4464
|
-
static: !0
|
|
4512
|
+
noWrap: !0
|
|
4465
4513
|
}, Si = y({
|
|
4466
4514
|
name: "builder-img-component",
|
|
4467
4515
|
props: [
|
|
4468
4516
|
"imgSrc",
|
|
4469
4517
|
"image",
|
|
4518
|
+
"attributes",
|
|
4519
|
+
"altText",
|
|
4520
|
+
"title",
|
|
4470
4521
|
"backgroundSize",
|
|
4471
4522
|
"backgroundPosition",
|
|
4472
|
-
"
|
|
4473
|
-
"attributes"
|
|
4523
|
+
"aspectRatio"
|
|
4474
4524
|
],
|
|
4475
4525
|
data() {
|
|
4476
|
-
return { isEditing:
|
|
4526
|
+
return { isEditing: A };
|
|
4477
4527
|
},
|
|
4478
4528
|
computed: {
|
|
4479
4529
|
srcSetToUse() {
|
|
4480
4530
|
const e = this.imgSrc || this.image;
|
|
4481
4531
|
if (!(!e || typeof e != "string") && e.match(/builder\.io/))
|
|
4482
|
-
return
|
|
4532
|
+
return oe(e);
|
|
4533
|
+
},
|
|
4534
|
+
imgAttrs() {
|
|
4535
|
+
const e = {
|
|
4536
|
+
...x(this.attributes, "v-on:", !1),
|
|
4537
|
+
...x(this.attributes, "v-on:", !0),
|
|
4538
|
+
[j()]: `builder-raw-img ${this.attributes[j()] || ""}`
|
|
4539
|
+
};
|
|
4540
|
+
return delete e.style, e;
|
|
4483
4541
|
}
|
|
4484
4542
|
}
|
|
4485
|
-
}), ki = ["alt", "
|
|
4543
|
+
}), ki = ["alt", "title", "src"];
|
|
4486
4544
|
function Ci(e, t, n, o, r, i) {
|
|
4545
|
+
var s;
|
|
4487
4546
|
return d(), h("img", $({
|
|
4488
4547
|
loading: "lazy",
|
|
4489
|
-
style: {
|
|
4490
|
-
objectFit: e.backgroundSize || "cover",
|
|
4491
|
-
objectPosition: e.backgroundPosition || "center"
|
|
4492
|
-
},
|
|
4493
4548
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
4494
4549
|
alt: e.altText,
|
|
4550
|
+
title: e.title,
|
|
4495
4551
|
src: e.imgSrc || e.image,
|
|
4496
|
-
|
|
4497
|
-
|
|
4552
|
+
style: {
|
|
4553
|
+
objectFit: e.backgroundSize || "cover",
|
|
4554
|
+
objectPosition: e.backgroundPosition || "center",
|
|
4555
|
+
aspectRatio: e.aspectRatio || void 0,
|
|
4556
|
+
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4557
|
+
}
|
|
4558
|
+
}, e.imgAttrs), null, 16, ki);
|
|
4498
4559
|
}
|
|
4499
4560
|
const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
4500
4561
|
name: "Video",
|
|
@@ -4514,7 +4575,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
|
4514
4575
|
}, {
|
|
4515
4576
|
name: "posterImage",
|
|
4516
4577
|
type: "file",
|
|
4517
|
-
allowedFileTypes:
|
|
4578
|
+
allowedFileTypes: Pe,
|
|
4518
4579
|
helperText: "Image to show before the video plays"
|
|
4519
4580
|
}, {
|
|
4520
4581
|
name: "autoPlay",
|
|
@@ -4662,7 +4723,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
|
4662
4723
|
flexDirection: "column",
|
|
4663
4724
|
alignItems: "stretch"
|
|
4664
4725
|
}
|
|
4665
|
-
},
|
|
4726
|
+
}, Ai = {
|
|
4666
4727
|
key: 2,
|
|
4667
4728
|
style: {
|
|
4668
4729
|
pointerEvents: "none",
|
|
@@ -4676,8 +4737,8 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
|
4676
4737
|
height: "100%"
|
|
4677
4738
|
}
|
|
4678
4739
|
};
|
|
4679
|
-
function
|
|
4680
|
-
var s,
|
|
4740
|
+
function Pi(e, t, n, o, r, i) {
|
|
4741
|
+
var s, l, a, u, p, f, c;
|
|
4681
4742
|
return d(), h("div", $i, [
|
|
4682
4743
|
z("video", $({
|
|
4683
4744
|
class: "builder-video",
|
|
@@ -4707,9 +4768,9 @@ function Ai(e, t, n, o, r, i) {
|
|
|
4707
4768
|
}
|
|
4708
4769
|
), null, 16)
|
|
4709
4770
|
], 16, Ri),
|
|
4710
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
4771
|
+
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
|
|
4711
4772
|
key: 0,
|
|
4712
|
-
style:
|
|
4773
|
+
style: M({
|
|
4713
4774
|
width: "100%",
|
|
4714
4775
|
paddingTop: e.aspectRatio * 100 + "%",
|
|
4715
4776
|
pointerEvents: "none",
|
|
@@ -4719,12 +4780,12 @@ function Ai(e, t, n, o, r, i) {
|
|
|
4719
4780
|
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", Ei, [
|
|
4720
4781
|
N(e.$slots, "default")
|
|
4721
4782
|
])) : C("", !0),
|
|
4722
|
-
(c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div",
|
|
4783
|
+
(c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div", Ai, [
|
|
4723
4784
|
N(e.$slots, "default")
|
|
4724
4785
|
])) : C("", !0)
|
|
4725
4786
|
]);
|
|
4726
4787
|
}
|
|
4727
|
-
const Bi = /* @__PURE__ */ v(Ii, [["render",
|
|
4788
|
+
const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
4728
4789
|
component: Or,
|
|
4729
4790
|
...Nr
|
|
4730
4791
|
}, {
|
|
@@ -4752,10 +4813,10 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Ai]]), Vi = () => [{
|
|
|
4752
4813
|
component: Bi,
|
|
4753
4814
|
...wi
|
|
4754
4815
|
}], je = () => [{
|
|
4755
|
-
component:
|
|
4816
|
+
component: Ft,
|
|
4756
4817
|
...ar
|
|
4757
4818
|
}, {
|
|
4758
|
-
component:
|
|
4819
|
+
component: Po,
|
|
4759
4820
|
...lr
|
|
4760
4821
|
}, {
|
|
4761
4822
|
component: No,
|
|
@@ -4843,7 +4904,7 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Ai]]), Vi = () => [{
|
|
|
4843
4904
|
}).join('');
|
|
4844
4905
|
styleEl.innerHTML = newStyleStr;
|
|
4845
4906
|
}
|
|
4846
|
-
}`,
|
|
4907
|
+
}`, xi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4847
4908
|
if (!navigator.cookieEnabled) {
|
|
4848
4909
|
return;
|
|
4849
4910
|
}
|
|
@@ -4877,23 +4938,23 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Ai]]), Vi = () => [{
|
|
|
4877
4938
|
thisScriptEl?.remove();
|
|
4878
4939
|
}
|
|
4879
4940
|
return;
|
|
4880
|
-
}`,
|
|
4941
|
+
}`, At = "builderIoAbTest", Pt = "builderIoRenderContent", ie = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4881
4942
|
...t,
|
|
4882
4943
|
testVariationId: t.id,
|
|
4883
4944
|
id: e == null ? void 0 : e.id
|
|
4884
|
-
})),
|
|
4945
|
+
})), Wi = ({
|
|
4885
4946
|
canTrack: e,
|
|
4886
4947
|
content: t
|
|
4887
|
-
}) => !(!(
|
|
4888
|
-
window.${
|
|
4889
|
-
window.${
|
|
4890
|
-
`,
|
|
4891
|
-
window.${
|
|
4948
|
+
}) => !(!(ie(t).length > 0) || !e), Di = (e) => e === "react" || e === "reactNative", Oi = R === "angular", Bt = Di(R), Ui = () => `
|
|
4949
|
+
window.${At} = ${Ni}
|
|
4950
|
+
window.${Pt} = ${xi}
|
|
4951
|
+
`, Li = (e, t) => `
|
|
4952
|
+
window.${At}(
|
|
4892
4953
|
"${t}",${JSON.stringify(e)}, ${Bt}, ${Oi}
|
|
4893
|
-
)`,
|
|
4954
|
+
)`, Fi = ({
|
|
4894
4955
|
contentId: e,
|
|
4895
4956
|
variationId: t
|
|
4896
|
-
}) => `window.${
|
|
4957
|
+
}) => `window.${Pt}(
|
|
4897
4958
|
"${t}", "${e}", ${Bt}
|
|
4898
4959
|
)`;
|
|
4899
4960
|
function Ke(e) {
|
|
@@ -4938,7 +4999,7 @@ const Hi = (e, t, n = !0) => {
|
|
|
4938
4999
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4939
5000
|
}
|
|
4940
5001
|
};
|
|
4941
|
-
}, Ki = ["svelte", "qwik", "vue"], qi = () => Ki.includes(R) && (
|
|
5002
|
+
}, Ki = ["svelte", "qwik", "vue"], qi = () => Ki.includes(R) && (A() || Te()), zi = (e) => {
|
|
4942
5003
|
var i;
|
|
4943
5004
|
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);
|
|
4944
5005
|
let r = "";
|
|
@@ -4953,11 +5014,11 @@ font-weight: 400;
|
|
|
4953
5014
|
for (const s in e.files) {
|
|
4954
5015
|
if (!(String(Number(s)) === s))
|
|
4955
5016
|
continue;
|
|
4956
|
-
const
|
|
4957
|
-
|
|
5017
|
+
const a = e.files[s];
|
|
5018
|
+
a && a !== o && (r += `
|
|
4958
5019
|
@font-face {
|
|
4959
5020
|
font-family: "${t}";
|
|
4960
|
-
src: url('${
|
|
5021
|
+
src: url('${a}') format('woff2');
|
|
4961
5022
|
font-display: fallback;
|
|
4962
5023
|
font-weight: ${s};
|
|
4963
5024
|
}
|
|
@@ -4991,7 +5052,7 @@ font-weight: ${s};
|
|
|
4991
5052
|
}
|
|
4992
5053
|
`, Yi = (e) => e ? "" : Qi, Xi = (e) => `variant-${e}`, _i = y({
|
|
4993
5054
|
name: "enable-editor",
|
|
4994
|
-
components: { DynamicDiv:
|
|
5055
|
+
components: { DynamicDiv: te },
|
|
4995
5056
|
props: [
|
|
4996
5057
|
"isNestedRender",
|
|
4997
5058
|
"builderContextSignal",
|
|
@@ -5012,11 +5073,14 @@ font-weight: ${s};
|
|
|
5012
5073
|
data() {
|
|
5013
5074
|
return {
|
|
5014
5075
|
hasExecuted: !1,
|
|
5076
|
+
contextValue: this.builderContextSignal,
|
|
5077
|
+
prevData: null,
|
|
5078
|
+
prevLocale: "",
|
|
5015
5079
|
ContentWrapper: this.contentWrapper || "div",
|
|
5016
5080
|
httpReqsData: {},
|
|
5017
5081
|
httpReqsPending: {},
|
|
5018
5082
|
clicked: !1,
|
|
5019
|
-
builderContext:
|
|
5083
|
+
builderContext: be,
|
|
5020
5084
|
needsElementRefDivForEditing: qi,
|
|
5021
5085
|
getWrapperClassName: Xi
|
|
5022
5086
|
};
|
|
@@ -5024,7 +5088,7 @@ font-weight: ${s};
|
|
|
5024
5088
|
provide() {
|
|
5025
5089
|
const e = this;
|
|
5026
5090
|
return {
|
|
5027
|
-
[
|
|
5091
|
+
[be.key]: e.builderContextSignal
|
|
5028
5092
|
};
|
|
5029
5093
|
},
|
|
5030
5094
|
created() {
|
|
@@ -5033,25 +5097,25 @@ font-weight: ${s};
|
|
|
5033
5097
|
mounted() {
|
|
5034
5098
|
var e, t, n;
|
|
5035
5099
|
if (T()) {
|
|
5036
|
-
|
|
5100
|
+
A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5037
5101
|
new CustomEvent("initeditingbldr")
|
|
5038
5102
|
);
|
|
5039
|
-
const o = this.builderContextSignal.content &&
|
|
5103
|
+
const o = this.builderContextSignal.content && G(this.canTrack), r = de({
|
|
5040
5104
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
5041
5105
|
canTrack: !0
|
|
5042
5106
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
5043
5107
|
if (o && i === r) {
|
|
5044
|
-
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id,
|
|
5045
|
-
|
|
5108
|
+
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
|
|
5109
|
+
ye({
|
|
5046
5110
|
apiHost: this.apiHost,
|
|
5047
5111
|
type: "impression",
|
|
5048
5112
|
canTrack: !0,
|
|
5049
5113
|
contentId: s,
|
|
5050
|
-
apiKey:
|
|
5114
|
+
apiKey: l,
|
|
5051
5115
|
variationId: r !== s ? r : void 0
|
|
5052
5116
|
});
|
|
5053
5117
|
}
|
|
5054
|
-
|
|
5118
|
+
Te() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5055
5119
|
new CustomEvent("initpreviewingbldr")
|
|
5056
5120
|
);
|
|
5057
5121
|
}
|
|
@@ -5071,15 +5135,23 @@ font-weight: ${s};
|
|
|
5071
5135
|
},
|
|
5072
5136
|
onUpdateHook2: {
|
|
5073
5137
|
handler() {
|
|
5074
|
-
|
|
5138
|
+
if (this.data) {
|
|
5139
|
+
if (this.prevData === this.data)
|
|
5140
|
+
return;
|
|
5141
|
+
this.mergeNewRootState(this.data), this.prevData = this.data;
|
|
5142
|
+
}
|
|
5075
5143
|
},
|
|
5076
5144
|
immediate: !0
|
|
5077
5145
|
},
|
|
5078
5146
|
onUpdateHook3: {
|
|
5079
5147
|
handler() {
|
|
5080
|
-
this.locale
|
|
5081
|
-
|
|
5082
|
-
|
|
5148
|
+
if (this.locale) {
|
|
5149
|
+
if (this.prevLocale === this.locale)
|
|
5150
|
+
return;
|
|
5151
|
+
this.mergeNewRootState({
|
|
5152
|
+
locale: this.locale
|
|
5153
|
+
}), this.prevLocale = this.locale;
|
|
5154
|
+
}
|
|
5083
5155
|
},
|
|
5084
5156
|
immediate: !0
|
|
5085
5157
|
}
|
|
@@ -5119,30 +5191,30 @@ font-weight: ${s};
|
|
|
5119
5191
|
}
|
|
5120
5192
|
},
|
|
5121
5193
|
methods: {
|
|
5122
|
-
mergeNewRootState(e) {
|
|
5123
|
-
var
|
|
5124
|
-
const
|
|
5194
|
+
mergeNewRootState(e, t) {
|
|
5195
|
+
var o, r;
|
|
5196
|
+
const n = {
|
|
5125
5197
|
...this.builderContextSignal.rootState,
|
|
5126
5198
|
...e
|
|
5127
5199
|
};
|
|
5128
|
-
this.builderContextSignal.rootSetState ? (
|
|
5200
|
+
this.builderContextSignal.rootSetState ? (r = (o = this.builderContextSignal).rootSetState) == null || r.call(o, n) : this.builderContextSignal.rootState = n, this.builderContextSignal.rootSetState ? this.builderContextSignal.rootSetState(n) : this.builderContextSignal.rootState = n;
|
|
5129
5201
|
},
|
|
5130
|
-
mergeNewContent(e) {
|
|
5131
|
-
var
|
|
5132
|
-
const
|
|
5202
|
+
mergeNewContent(e, t) {
|
|
5203
|
+
var o, r, i, s, l;
|
|
5204
|
+
const n = {
|
|
5133
5205
|
...this.builderContextSignal.content,
|
|
5134
5206
|
...e,
|
|
5135
5207
|
data: {
|
|
5136
|
-
...(
|
|
5208
|
+
...(o = this.builderContextSignal.content) == null ? void 0 : o.data,
|
|
5137
5209
|
...e == null ? void 0 : e.data
|
|
5138
5210
|
},
|
|
5139
5211
|
meta: {
|
|
5140
|
-
...(
|
|
5212
|
+
...(r = this.builderContextSignal.content) == null ? void 0 : r.meta,
|
|
5141
5213
|
...e == null ? void 0 : e.meta,
|
|
5142
|
-
breakpoints: ((
|
|
5214
|
+
breakpoints: ((i = e == null ? void 0 : e.meta) == null ? void 0 : i.breakpoints) || ((l = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : l.breakpoints)
|
|
5143
5215
|
}
|
|
5144
5216
|
};
|
|
5145
|
-
this.builderContextSignal.content =
|
|
5217
|
+
this.builderContextSignal.content = n;
|
|
5146
5218
|
},
|
|
5147
5219
|
processMessage(e) {
|
|
5148
5220
|
return ut({
|
|
@@ -5161,11 +5233,11 @@ font-weight: ${s};
|
|
|
5161
5233
|
animation: (t) => {
|
|
5162
5234
|
yt(t);
|
|
5163
5235
|
},
|
|
5164
|
-
contentUpdate: (t) => {
|
|
5165
|
-
this.mergeNewContent(t);
|
|
5236
|
+
contentUpdate: (t, n) => {
|
|
5237
|
+
this.mergeNewContent(t, n);
|
|
5166
5238
|
},
|
|
5167
|
-
stateUpdate: (t) => {
|
|
5168
|
-
this.mergeNewRootState(t);
|
|
5239
|
+
stateUpdate: (t, n) => {
|
|
5240
|
+
this.mergeNewRootState(t, n);
|
|
5169
5241
|
}
|
|
5170
5242
|
}
|
|
5171
5243
|
})(e);
|
|
@@ -5174,10 +5246,10 @@ font-weight: ${s};
|
|
|
5174
5246
|
var t, n;
|
|
5175
5247
|
if (this.builderContextSignal.content) {
|
|
5176
5248
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
5177
|
-
|
|
5249
|
+
ye({
|
|
5178
5250
|
apiHost: this.apiHost,
|
|
5179
5251
|
type: "click",
|
|
5180
|
-
canTrack:
|
|
5252
|
+
canTrack: G(this.canTrack),
|
|
5181
5253
|
contentId: r,
|
|
5182
5254
|
apiKey: this.apiKey,
|
|
5183
5255
|
variationId: o !== r ? o : void 0,
|
|
@@ -5190,40 +5262,64 @@ font-weight: ${s};
|
|
|
5190
5262
|
runHttpRequests() {
|
|
5191
5263
|
var t, n;
|
|
5192
5264
|
const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
|
|
5193
|
-
Object.entries(e).forEach(
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5265
|
+
Object.entries(e).forEach(
|
|
5266
|
+
([o, r]) => {
|
|
5267
|
+
if (!r)
|
|
5268
|
+
return;
|
|
5269
|
+
const i = typeof r == "object" && r["@type"] === "@builder.io/core:Request";
|
|
5270
|
+
if (this.httpReqsPending[o] || this.httpReqsData[o] && !A())
|
|
5271
|
+
return;
|
|
5272
|
+
const s = i ? r.request.url : r;
|
|
5273
|
+
this.httpReqsPending[o] = !0;
|
|
5274
|
+
const l = s.replace(
|
|
5275
|
+
/{{([^}]+)}}/g,
|
|
5276
|
+
(p, f) => String(
|
|
5277
|
+
ee({
|
|
5278
|
+
code: f,
|
|
5279
|
+
context: this.context || {},
|
|
5280
|
+
localState: void 0,
|
|
5281
|
+
rootState: this.builderContextSignal.rootState,
|
|
5282
|
+
rootSetState: this.builderContextSignal.rootSetState
|
|
5283
|
+
})
|
|
5284
|
+
)
|
|
5285
|
+
), a = i ? {
|
|
5286
|
+
url: l,
|
|
5287
|
+
method: r.request.method,
|
|
5288
|
+
headers: r.request.headers,
|
|
5289
|
+
body: r.request.body
|
|
5290
|
+
} : {
|
|
5291
|
+
url: l,
|
|
5292
|
+
method: "GET"
|
|
5293
|
+
};
|
|
5294
|
+
Ie(JSON.stringify(a));
|
|
5295
|
+
const u = {
|
|
5296
|
+
method: a.method,
|
|
5297
|
+
headers: a.headers,
|
|
5298
|
+
body: a.body
|
|
5299
|
+
};
|
|
5300
|
+
a.method === "GET" && delete u.body, fetch(a.url, u).then((p) => p.json()).then((p) => {
|
|
5301
|
+
this.mergeNewRootState({
|
|
5302
|
+
[o]: p
|
|
5303
|
+
}), this.httpReqsData[o] = !0;
|
|
5304
|
+
}).catch((p) => {
|
|
5305
|
+
console.error(
|
|
5306
|
+
"error fetching dynamic data",
|
|
5307
|
+
JSON.stringify(r),
|
|
5308
|
+
p
|
|
5309
|
+
);
|
|
5310
|
+
}).finally(() => {
|
|
5311
|
+
this.httpReqsPending[o] = !1;
|
|
5312
|
+
});
|
|
5313
|
+
}
|
|
5314
|
+
);
|
|
5219
5315
|
},
|
|
5220
5316
|
emitStateUpdate() {
|
|
5221
|
-
|
|
5317
|
+
A() && window.dispatchEvent(
|
|
5222
5318
|
new CustomEvent(
|
|
5223
5319
|
"builder:component:stateChange",
|
|
5224
5320
|
{
|
|
5225
5321
|
detail: {
|
|
5226
|
-
state:
|
|
5322
|
+
state: Ce(this.builderContextSignal.rootState),
|
|
5227
5323
|
ref: {
|
|
5228
5324
|
name: this.model
|
|
5229
5325
|
}
|
|
@@ -5263,7 +5359,7 @@ font-weight: ${s};
|
|
|
5263
5359
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
5264
5360
|
`builder.overrides.${n}`
|
|
5265
5361
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
5266
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
5362
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Ee({
|
|
5267
5363
|
model: this.model,
|
|
5268
5364
|
apiKey: this.apiKey,
|
|
5269
5365
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -5279,21 +5375,21 @@ font-weight: ${s};
|
|
|
5279
5375
|
}
|
|
5280
5376
|
});
|
|
5281
5377
|
function Zi(e, t, n, o, r, i) {
|
|
5282
|
-
var s,
|
|
5283
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(
|
|
5378
|
+
var s, l, a;
|
|
5379
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper), $({
|
|
5284
5380
|
key: 0,
|
|
5285
5381
|
ref: "elementRef",
|
|
5286
5382
|
onClick: (u) => e.onClick(u),
|
|
5287
5383
|
"builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
|
|
5288
5384
|
"builder-model": e.model,
|
|
5289
|
-
className: e.getWrapperClassName(((
|
|
5385
|
+
className: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
|
|
5290
5386
|
style: {
|
|
5291
5387
|
display: !e.builderContextSignal.content && e.needsElementRefDivForEditing() ? "none" : void 0
|
|
5292
5388
|
},
|
|
5293
5389
|
onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
|
|
5294
5390
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
5295
5391
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
5296
|
-
default:
|
|
5392
|
+
default: O(() => [
|
|
5297
5393
|
N(e.$slots, "default")
|
|
5298
5394
|
]),
|
|
5299
5395
|
_: 3
|
|
@@ -5301,7 +5397,7 @@ function Zi(e, t, n, o, r, i) {
|
|
|
5301
5397
|
}
|
|
5302
5398
|
const es = /* @__PURE__ */ v(_i, [["render", Zi]]), ts = y({
|
|
5303
5399
|
name: "content-styles",
|
|
5304
|
-
components: { InlinedStyles:
|
|
5400
|
+
components: { InlinedStyles: ue },
|
|
5305
5401
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5306
5402
|
data() {
|
|
5307
5403
|
return {
|
|
@@ -5331,10 +5427,10 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5331
5427
|
data: t,
|
|
5332
5428
|
locale: n
|
|
5333
5429
|
}) => {
|
|
5334
|
-
var i, s,
|
|
5430
|
+
var i, s, l;
|
|
5335
5431
|
const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
|
|
5336
|
-
return (
|
|
5337
|
-
|
|
5432
|
+
return (l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || l.forEach((a) => {
|
|
5433
|
+
a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
|
|
5338
5434
|
}), {
|
|
5339
5435
|
...o,
|
|
5340
5436
|
...r,
|
|
@@ -5357,10 +5453,10 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5357
5453
|
name: "content-component",
|
|
5358
5454
|
components: {
|
|
5359
5455
|
EnableEditor: es,
|
|
5360
|
-
InlinedScript:
|
|
5456
|
+
InlinedScript: Be,
|
|
5361
5457
|
ContentStyles: os,
|
|
5362
5458
|
Blocks: q,
|
|
5363
|
-
DynamicDiv:
|
|
5459
|
+
DynamicDiv: te
|
|
5364
5460
|
},
|
|
5365
5461
|
props: [
|
|
5366
5462
|
"apiKey",
|
|
@@ -5388,7 +5484,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5388
5484
|
data() {
|
|
5389
5485
|
var e, t;
|
|
5390
5486
|
return {
|
|
5391
|
-
scriptStr:
|
|
5487
|
+
scriptStr: Fi({
|
|
5392
5488
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5393
5489
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5394
5490
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -5402,7 +5498,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5402
5498
|
...n,
|
|
5403
5499
|
[r.name]: {
|
|
5404
5500
|
component: ss(o),
|
|
5405
|
-
...
|
|
5501
|
+
...ae(r)
|
|
5406
5502
|
}
|
|
5407
5503
|
}),
|
|
5408
5504
|
{}
|
|
@@ -5429,7 +5525,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5429
5525
|
].reduce(
|
|
5430
5526
|
(n, { component: o, ...r }) => ({
|
|
5431
5527
|
...n,
|
|
5432
|
-
[r.name]:
|
|
5528
|
+
[r.name]: ae(r)
|
|
5433
5529
|
}),
|
|
5434
5530
|
{}
|
|
5435
5531
|
),
|
|
@@ -5456,7 +5552,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5456
5552
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
5457
5553
|
);
|
|
5458
5554
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
5459
|
-
e &&
|
|
5555
|
+
e && ee({
|
|
5460
5556
|
code: e,
|
|
5461
5557
|
context: this.context || {},
|
|
5462
5558
|
localState: void 0,
|
|
@@ -5474,7 +5570,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5474
5570
|
}
|
|
5475
5571
|
});
|
|
5476
5572
|
function ls(e, t, n, o, r, i) {
|
|
5477
|
-
const s = k("InlinedScript"),
|
|
5573
|
+
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
5478
5574
|
return d(), S(u, $({
|
|
5479
5575
|
apiHost: e.apiHost,
|
|
5480
5576
|
nonce: e.nonce,
|
|
@@ -5493,8 +5589,8 @@ function ls(e, t, n, o, r, i) {
|
|
|
5493
5589
|
trustedHosts: e.trustedHosts,
|
|
5494
5590
|
isNestedRender: e.isNestedRender
|
|
5495
5591
|
}, {}), {
|
|
5496
|
-
default:
|
|
5497
|
-
var p, f, c, m, b, g,
|
|
5592
|
+
default: O(() => {
|
|
5593
|
+
var p, f, c, m, b, g, P;
|
|
5498
5594
|
return [
|
|
5499
5595
|
e.isSsrAbTest ? (d(), S(s, {
|
|
5500
5596
|
key: 0,
|
|
@@ -5502,7 +5598,7 @@ function ls(e, t, n, o, r, i) {
|
|
|
5502
5598
|
scriptStr: e.scriptStr,
|
|
5503
5599
|
nonce: e.nonce || ""
|
|
5504
5600
|
}, null, 8, ["scriptStr", "nonce"])) : C("", !0),
|
|
5505
|
-
e.TARGET !== "reactNative" ? (d(), S(
|
|
5601
|
+
e.TARGET !== "reactNative" ? (d(), S(l, {
|
|
5506
5602
|
key: 1,
|
|
5507
5603
|
nonce: e.nonce || "",
|
|
5508
5604
|
isNestedRender: e.isNestedRender,
|
|
@@ -5510,8 +5606,8 @@ function ls(e, t, n, o, r, i) {
|
|
|
5510
5606
|
cssCode: (c = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : c.cssCode,
|
|
5511
5607
|
customFonts: (b = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
|
|
5512
5608
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : C("", !0),
|
|
5513
|
-
E(
|
|
5514
|
-
blocks: (
|
|
5609
|
+
E(a, {
|
|
5610
|
+
blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
|
|
5515
5611
|
context: e.builderContextSignal,
|
|
5516
5612
|
registeredComponents: e.registeredComponents,
|
|
5517
5613
|
linkComponent: e.linkComponent
|
|
@@ -5524,8 +5620,8 @@ function ls(e, t, n, o, r, i) {
|
|
|
5524
5620
|
const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
5525
5621
|
name: "content-variants",
|
|
5526
5622
|
components: {
|
|
5527
|
-
InlinedScript:
|
|
5528
|
-
InlinedStyles:
|
|
5623
|
+
InlinedScript: Be,
|
|
5624
|
+
InlinedStyles: ue,
|
|
5529
5625
|
ContentComponent: cs
|
|
5530
5626
|
},
|
|
5531
5627
|
props: [
|
|
@@ -5551,15 +5647,15 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
|
5551
5647
|
],
|
|
5552
5648
|
data() {
|
|
5553
5649
|
return {
|
|
5554
|
-
shouldRenderVariants:
|
|
5555
|
-
canTrack:
|
|
5650
|
+
shouldRenderVariants: Wi({
|
|
5651
|
+
canTrack: G(this.canTrack),
|
|
5556
5652
|
content: this.content
|
|
5557
5653
|
}),
|
|
5558
5654
|
SDKS_SUPPORTING_PERSONALIZATION: $t,
|
|
5559
5655
|
getInitPersonalizationVariantsFnsScriptString: _o,
|
|
5560
5656
|
TARGET: R,
|
|
5561
5657
|
getInitVariantsFnsScriptString: Ui,
|
|
5562
|
-
getVariants:
|
|
5658
|
+
getVariants: ie
|
|
5563
5659
|
};
|
|
5564
5660
|
},
|
|
5565
5661
|
mounted() {
|
|
@@ -5567,8 +5663,8 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
|
5567
5663
|
computed: {
|
|
5568
5664
|
updateCookieAndStylesScriptStr() {
|
|
5569
5665
|
var e;
|
|
5570
|
-
return
|
|
5571
|
-
|
|
5666
|
+
return Li(
|
|
5667
|
+
ie(this.content).map((t) => ({
|
|
5572
5668
|
id: t.testVariationId,
|
|
5573
5669
|
testRatio: t.testRatio
|
|
5574
5670
|
})),
|
|
@@ -5576,7 +5672,7 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
|
5576
5672
|
);
|
|
5577
5673
|
},
|
|
5578
5674
|
hideVariantsStyleString() {
|
|
5579
|
-
return
|
|
5675
|
+
return ie(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
5580
5676
|
},
|
|
5581
5677
|
defaultContent() {
|
|
5582
5678
|
var e;
|
|
@@ -5585,13 +5681,13 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
|
5585
5681
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5586
5682
|
} : Un({
|
|
5587
5683
|
item: this.content,
|
|
5588
|
-
canTrack:
|
|
5684
|
+
canTrack: G(this.canTrack)
|
|
5589
5685
|
});
|
|
5590
5686
|
}
|
|
5591
5687
|
}
|
|
5592
5688
|
});
|
|
5593
5689
|
function us(e, t, n, o, r, i) {
|
|
5594
|
-
const s = k("InlinedScript"),
|
|
5690
|
+
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5595
5691
|
return d(), h(I, null, [
|
|
5596
5692
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(), h(I, { key: 0 }, [
|
|
5597
5693
|
E(s, {
|
|
@@ -5607,7 +5703,7 @@ function us(e, t, n, o, r, i) {
|
|
|
5607
5703
|
}, null, 8, ["nonce", "scriptStr"])) : C("", !0)
|
|
5608
5704
|
], 64)) : C("", !0),
|
|
5609
5705
|
e.shouldRenderVariants ? (d(), h(I, { key: 1 }, [
|
|
5610
|
-
E(
|
|
5706
|
+
E(l, {
|
|
5611
5707
|
id: "builderio-variants",
|
|
5612
5708
|
styles: e.hideVariantsStyleString,
|
|
5613
5709
|
nonce: e.nonce || ""
|
|
@@ -5617,7 +5713,7 @@ function us(e, t, n, o, r, i) {
|
|
|
5617
5713
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
5618
5714
|
nonce: e.nonce || ""
|
|
5619
5715
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5620
|
-
(d(!0), h(I, null,
|
|
5716
|
+
(d(!0), h(I, null, F(e.getVariants(e.content), (u, p) => (d(), S(a, $({
|
|
5621
5717
|
key: u.testVariationId,
|
|
5622
5718
|
apiHost: e.apiHost,
|
|
5623
5719
|
isNestedRender: e.isNestedRender,
|
|
@@ -5642,7 +5738,7 @@ function us(e, t, n, o, r, i) {
|
|
|
5642
5738
|
trustedHosts: e.trustedHosts
|
|
5643
5739
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
5644
5740
|
], 64)) : C("", !0),
|
|
5645
|
-
E(
|
|
5741
|
+
E(a, $({
|
|
5646
5742
|
apiHost: e.apiHost,
|
|
5647
5743
|
nonce: e.nonce,
|
|
5648
5744
|
isNestedRender: e.isNestedRender,
|
|
@@ -5675,7 +5771,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5675
5771
|
}) => {
|
|
5676
5772
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5677
5773
|
(e != null && e.apiKey))
|
|
5678
|
-
return
|
|
5774
|
+
return Ee({
|
|
5679
5775
|
model: t.model,
|
|
5680
5776
|
apiKey: e.apiKey,
|
|
5681
5777
|
apiVersion: e.apiVersion,
|
|
@@ -5689,14 +5785,14 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5689
5785
|
});
|
|
5690
5786
|
}, hs = y({
|
|
5691
5787
|
name: "builder-symbol",
|
|
5692
|
-
components: { ContentVariants: ps, DynamicDiv:
|
|
5788
|
+
components: { ContentVariants: ps, DynamicDiv: te },
|
|
5693
5789
|
props: [
|
|
5694
5790
|
"symbol",
|
|
5791
|
+
"builderComponents",
|
|
5695
5792
|
"attributes",
|
|
5696
5793
|
"dynamic",
|
|
5697
5794
|
"builderContext",
|
|
5698
5795
|
"builderBlock",
|
|
5699
|
-
"builderComponents",
|
|
5700
5796
|
"builderLinkComponent"
|
|
5701
5797
|
],
|
|
5702
5798
|
data() {
|
|
@@ -5704,7 +5800,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5704
5800
|
return {
|
|
5705
5801
|
contentToUse: (e = this.symbol) == null ? void 0 : e.content,
|
|
5706
5802
|
symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
|
|
5707
|
-
filterAttrs:
|
|
5803
|
+
filterAttrs: x
|
|
5708
5804
|
};
|
|
5709
5805
|
},
|
|
5710
5806
|
mounted() {
|
|
@@ -5725,10 +5821,13 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5725
5821
|
contentWrapper() {
|
|
5726
5822
|
return "div";
|
|
5727
5823
|
},
|
|
5824
|
+
customComponents() {
|
|
5825
|
+
return Object.values(this.builderComponents);
|
|
5826
|
+
},
|
|
5728
5827
|
className() {
|
|
5729
5828
|
var e, t;
|
|
5730
5829
|
return [
|
|
5731
|
-
this.attributes[
|
|
5830
|
+
this.attributes[j()],
|
|
5732
5831
|
"builder-symbol",
|
|
5733
5832
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
5734
5833
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -5754,9 +5853,9 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5754
5853
|
}
|
|
5755
5854
|
});
|
|
5756
5855
|
function fs(e, t, n, o, r, i) {
|
|
5757
|
-
var
|
|
5856
|
+
var l, a, u, p, f;
|
|
5758
5857
|
const s = k("ContentVariants");
|
|
5759
|
-
return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
5858
|
+
return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5760
5859
|
E(s, {
|
|
5761
5860
|
nonce: e.builderContext.nonce,
|
|
5762
5861
|
isNestedRender: !0,
|
|
@@ -5764,11 +5863,11 @@ function fs(e, t, n, o, r, i) {
|
|
|
5764
5863
|
apiKey: e.builderContext.apiKey,
|
|
5765
5864
|
context: {
|
|
5766
5865
|
...e.builderContext.context,
|
|
5767
|
-
symbolId: (
|
|
5866
|
+
symbolId: (l = e.builderBlock) == null ? void 0 : l.id
|
|
5768
5867
|
},
|
|
5769
|
-
customComponents:
|
|
5868
|
+
customComponents: e.customComponents,
|
|
5770
5869
|
data: {
|
|
5771
|
-
...(
|
|
5870
|
+
...(a = e.symbol) == null ? void 0 : a.data,
|
|
5772
5871
|
...e.builderContext.localState,
|
|
5773
5872
|
...(p = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : p.state
|
|
5774
5873
|
},
|
|
@@ -5783,43 +5882,45 @@ function fs(e, t, n, o, r, i) {
|
|
|
5783
5882
|
}
|
|
5784
5883
|
const bs = /* @__PURE__ */ v(hs, [["render", fs]]);
|
|
5785
5884
|
export {
|
|
5786
|
-
|
|
5885
|
+
ws as A,
|
|
5787
5886
|
Ct as B,
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5887
|
+
Po as C,
|
|
5888
|
+
$s as D,
|
|
5889
|
+
Qn as E,
|
|
5791
5890
|
No as F,
|
|
5792
|
-
|
|
5793
|
-
|
|
5891
|
+
Yn as G,
|
|
5892
|
+
Ee as H,
|
|
5794
5893
|
Ho as I,
|
|
5894
|
+
vs as J,
|
|
5895
|
+
As as K,
|
|
5795
5896
|
Ko as S,
|
|
5796
5897
|
R as T,
|
|
5797
5898
|
Bi as V,
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5899
|
+
v as _,
|
|
5900
|
+
j as a,
|
|
5901
|
+
be as b,
|
|
5902
|
+
ue as c,
|
|
5903
|
+
K as d,
|
|
5904
|
+
ee as e,
|
|
5905
|
+
$o as f,
|
|
5906
|
+
Es as g,
|
|
5806
5907
|
Rs as h,
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5908
|
+
A as i,
|
|
5909
|
+
Ps as j,
|
|
5910
|
+
Ae as k,
|
|
5911
|
+
pn as l,
|
|
5912
|
+
Ft as m,
|
|
5913
|
+
bs as n,
|
|
5914
|
+
Vr as o,
|
|
5915
|
+
q as p,
|
|
5916
|
+
ps as q,
|
|
5917
|
+
Te as r,
|
|
5918
|
+
Is as s,
|
|
5919
|
+
mn as t,
|
|
5920
|
+
Ss as u,
|
|
5921
|
+
ks as v,
|
|
5821
5922
|
ss as w,
|
|
5822
5923
|
Cs as x,
|
|
5823
|
-
|
|
5824
|
-
|
|
5924
|
+
tt as y,
|
|
5925
|
+
Ts as z
|
|
5825
5926
|
};
|