@builder.io/sdk-vue 2.0.8 → 2.0.14-1
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/block-styles-nWGppwAf.js +77 -0
- package/lib/browser/block-styles-rt4v7rBl.cjs +1 -0
- package/lib/browser/{block-wrapper-H_K5XgNp.js → block-wrapper-hPYvxseU.js} +3 -3
- package/lib/browser/{block-wrapper-vI9rE_qz.cjs → block-wrapper-l_mdj42t.cjs} +1 -1
- package/lib/browser/blocks/accordion/accordion.vue.d.ts +6 -6
- package/lib/browser/blocks/button/button.vue.d.ts +3 -3
- package/lib/browser/blocks/columns/columns.vue.d.ts +9 -9
- package/lib/browser/blocks/form/form/form.vue.d.ts +9 -9
- package/lib/browser/blocks/form/input/input.vue.d.ts +3 -3
- package/lib/browser/blocks/form/select/select.vue.d.ts +3 -3
- package/lib/browser/blocks/image/image.vue.d.ts +3 -3
- package/lib/browser/blocks/img/img.vue.d.ts +3 -3
- package/lib/browser/blocks/section/section.vue.d.ts +3 -3
- package/lib/browser/blocks/slot/slot.vue.d.ts +5 -2
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +9 -9
- package/lib/browser/blocks/tabs/tabs.vue.d.ts +3 -3
- package/lib/browser/blocks/video/video.vue.d.ts +6 -6
- package/lib/browser/{component-ref-ULmI7Z-4.js → component-ref-JlpkOrad.js} +2 -2
- package/lib/browser/{component-ref-k4s0KRD5.cjs → component-ref-dPnPtrON.cjs} +1 -1
- package/lib/browser/components/block/block.helpers.d.ts +1 -2
- package/lib/browser/components/block/block.vue.d.ts +10 -5
- package/lib/browser/components/block/components/block-styles.vue.d.ts +1 -1
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +6 -6
- package/lib/browser/components/block/components/repeated-block.vue.d.ts +3 -3
- package/lib/browser/components/blocks/blocks.vue.d.ts +3 -3
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +12 -12
- package/lib/browser/components/content/content.vue.d.ts +18 -18
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +12 -12
- package/lib/browser/components/inlined-styles.vue.d.ts +3 -3
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/evaluate/node-runtime/init.d.ts +1 -0
- package/lib/browser/functions/get-processed-block.d.ts +1 -0
- package/lib/browser/functions/register-component.d.ts +1 -1
- package/lib/{node/get-block-properties-ctA1IgxF.js → browser/get-block-properties-HzVZCpxa.js} +20 -18
- package/lib/browser/get-block-properties-sInACBRh.cjs +1 -0
- package/lib/browser/index-MDNnQzZB.cjs +166 -0
- package/lib/browser/{index-wQ1FWMHJ.js → index-ZL8QUFiN.js} +1416 -1371
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/browser/init.cjs +8 -0
- package/lib/browser/init.mjs +65 -0
- package/lib/browser/logger-0-1mARBa.cjs +1 -0
- package/lib/browser/logger-Hm2e1Xk_.js +12 -0
- package/lib/browser/{repeated-block-Aa1yIQkp.js → repeated-block-8EN4xN25.js} +2 -2
- package/lib/browser/{repeated-block-UKWYkgKG.cjs → repeated-block-uV-zuqkw.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/block-styles-Ta3OQAmE.cjs +1 -0
- package/lib/edge/block-styles-zRPUnWLf.js +76 -0
- package/lib/{node/block-wrapper-QqrLFWp0.cjs → edge/block-wrapper-9IWz2vxg.cjs} +1 -1
- package/lib/{node/block-wrapper-4h3CaVrk.js → edge/block-wrapper-x7ERONr-.js} +5 -5
- package/lib/edge/blocks/accordion/accordion.vue.d.ts +6 -6
- package/lib/edge/blocks/button/button.vue.d.ts +3 -3
- package/lib/edge/blocks/columns/columns.vue.d.ts +9 -9
- package/lib/edge/blocks/form/form/form.vue.d.ts +9 -9
- package/lib/edge/blocks/form/input/input.vue.d.ts +3 -3
- package/lib/edge/blocks/form/select/select.vue.d.ts +3 -3
- package/lib/edge/blocks/image/image.vue.d.ts +3 -3
- package/lib/edge/blocks/img/img.vue.d.ts +3 -3
- package/lib/edge/blocks/section/section.vue.d.ts +3 -3
- package/lib/edge/blocks/slot/slot.vue.d.ts +5 -2
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +9 -9
- package/lib/edge/blocks/tabs/tabs.vue.d.ts +3 -3
- package/lib/edge/blocks/video/video.vue.d.ts +6 -6
- package/lib/{node/component-ref-hI62zIZA.js → edge/component-ref-JRfa9Vwo.js} +2 -2
- package/lib/{node/component-ref-NW-UB2pJ.cjs → edge/component-ref-eV0RBAzs.cjs} +1 -1
- package/lib/edge/components/block/block.helpers.d.ts +1 -2
- package/lib/edge/components/block/block.vue.d.ts +10 -5
- package/lib/edge/components/block/components/block-styles.vue.d.ts +1 -1
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +6 -6
- package/lib/edge/components/block/components/repeated-block.vue.d.ts +3 -3
- package/lib/edge/components/blocks/blocks.vue.d.ts +3 -3
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +12 -12
- package/lib/edge/components/content/content.vue.d.ts +18 -18
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +12 -12
- package/lib/edge/components/inlined-styles.vue.d.ts +3 -3
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/evaluate/node-runtime/init.d.ts +1 -0
- package/lib/edge/functions/get-processed-block.d.ts +1 -0
- package/lib/edge/functions/register-component.d.ts +1 -1
- package/lib/edge/get-block-properties-Dy3XF05J.cjs +1 -0
- package/lib/{browser/get-block-properties-IjhCV9z_.js → edge/get-block-properties-PLBPSz3W.js} +15 -15
- package/lib/edge/index-5-C3UhJz.cjs +186 -0
- package/lib/edge/{index-yARC0VI1.js → index-TGe9_80q.js} +1696 -1651
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +4 -4
- package/lib/edge/init.cjs +8 -0
- package/lib/edge/init.mjs +64 -0
- package/lib/edge/logger-I8FmJD_1.js +11 -0
- package/lib/edge/logger-U9-0vDJK.cjs +1 -0
- package/lib/edge/{repeated-block-q6gyu9cH.cjs → repeated-block-FB2jF4o_.cjs} +1 -1
- package/lib/edge/{repeated-block-IdOOvFG5.js → repeated-block-_9Gs2AOY.js} +13 -13
- package/lib/edge/style.css +1 -1
- package/lib/node/block-styles-gLB-jSXN.js +76 -0
- package/lib/node/block-styles-u7KGnyuc.cjs +1 -0
- package/lib/{edge/block-wrapper-P5w2jQ_u.cjs → node/block-wrapper-cCYzfiv5.cjs} +1 -1
- package/lib/{edge/block-wrapper-M3goYBkP.js → node/block-wrapper-frfIIST_.js} +3 -3
- package/lib/node/blocks/accordion/accordion.vue.d.ts +6 -6
- package/lib/node/blocks/button/button.vue.d.ts +3 -3
- package/lib/node/blocks/columns/columns.vue.d.ts +9 -9
- package/lib/node/blocks/form/form/form.vue.d.ts +9 -9
- package/lib/node/blocks/form/input/input.vue.d.ts +3 -3
- package/lib/node/blocks/form/select/select.vue.d.ts +3 -3
- package/lib/node/blocks/image/image.vue.d.ts +3 -3
- package/lib/node/blocks/img/img.vue.d.ts +3 -3
- package/lib/node/blocks/section/section.vue.d.ts +3 -3
- package/lib/node/blocks/slot/slot.vue.d.ts +5 -2
- package/lib/node/blocks/symbol/symbol.vue.d.ts +9 -9
- package/lib/node/blocks/tabs/tabs.vue.d.ts +3 -3
- package/lib/node/blocks/video/video.vue.d.ts +6 -6
- package/lib/{edge/component-ref-ZtKc8UMX.js → node/component-ref-IbarjSnq.js} +2 -2
- package/lib/{edge/component-ref-EPsyn_2c.cjs → node/component-ref-ZlBAzimq.cjs} +1 -1
- package/lib/node/components/block/block.helpers.d.ts +1 -2
- package/lib/node/components/block/block.vue.d.ts +10 -5
- package/lib/node/components/block/components/block-styles.vue.d.ts +1 -1
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +6 -6
- package/lib/node/components/block/components/repeated-block.vue.d.ts +3 -3
- package/lib/node/components/blocks/blocks.vue.d.ts +3 -3
- package/lib/node/components/content/components/enable-editor.vue.d.ts +12 -12
- package/lib/node/components/content/content.vue.d.ts +18 -18
- package/lib/node/components/content-variants/content-variants.vue.d.ts +12 -12
- package/lib/node/components/inlined-styles.vue.d.ts +3 -3
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/evaluate/node-runtime/init.d.ts +1 -0
- package/lib/node/functions/get-processed-block.d.ts +1 -0
- package/lib/node/functions/register-component.d.ts +1 -1
- package/lib/node/get-block-properties-2Q2lr9bu.cjs +1 -0
- package/lib/{edge/get-block-properties-zzQ9xBK7.js → node/get-block-properties-QIsIgfnu.js} +17 -16
- package/lib/node/{index-xdY2kzl8.js → index-BugETl2c.js} +1537 -1702
- package/lib/node/index-s5vEnK-M.cjs +166 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +17 -16
- package/lib/node/init.cjs +1 -0
- package/lib/node/init.mjs +11 -0
- package/lib/node/node-runtime-0rF8vJwU.js +233 -0
- package/lib/node/node-runtime-Bqb5TnyM.cjs +48 -0
- package/lib/node/{repeated-block-ndxvinZD.js → repeated-block-Z-_chLeZ.js} +13 -13
- package/lib/node/{repeated-block-T2ld1sa9.cjs → repeated-block-ZpVu-xdw.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +7 -3
- package/lib/browser/block-styles-UWiLqSPk.js +0 -90
- package/lib/browser/block-styles-mtiWQW_J.cjs +0 -1
- package/lib/browser/get-block-properties-JqBN5X7_.cjs +0 -1
- package/lib/browser/index-TIoYRvmr.cjs +0 -166
- package/lib/edge/block-styles-4MJqQlwZ.cjs +0 -1
- package/lib/edge/block-styles-P44kj2Ws.js +0 -89
- package/lib/edge/get-block-properties-N40WxPwN.cjs +0 -1
- package/lib/edge/index-hw9mu6mD.cjs +0 -186
- package/lib/node/block-styles-HZaZpVMf.cjs +0 -1
- package/lib/node/block-styles-brJAybxf.js +0 -89
- package/lib/node/get-block-properties-W3cxXL5S.cjs +0 -1
- package/lib/node/index-HPinODNY.cjs +0 -213
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ne = (e, t, n) => (
|
|
1
|
+
var ut = Object.defineProperty;
|
|
2
|
+
var pt = (e, t, n) => t in e ? ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var ne = (e, t, n) => (pt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import "./style.css";
|
|
5
|
-
import { defineComponent as f, openBlock as
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import { defineComponent as f, openBlock as c, createElementBlock as m, Fragment as w, createBlock as g, resolveDynamicComponent as K, mergeProps as C, toHandlers as P, withCtx as N, renderSlot as x, resolveComponent as y, createTextVNode as mt, toDisplayString as te, defineAsyncComponent as j, createVNode as $, renderList as A, createCommentVNode as S, h as xe, createElementVNode as z, normalizeStyle as D, normalizeClass as J, markRaw as ht } from "vue";
|
|
6
|
+
import { T as E, l as B } from "./logger-Hm2e1Xk_.js";
|
|
7
|
+
const ft = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), bt = (e) => typeof e == "string" && ft.has(e.toLowerCase());
|
|
8
|
+
function V(e = {}, t, n) {
|
|
8
9
|
const o = {};
|
|
9
10
|
for (const r in e) {
|
|
10
11
|
if (!e[r] || n && !r.startsWith(t))
|
|
@@ -14,11 +15,11 @@ function A(e = {}, t, n) {
|
|
|
14
15
|
}
|
|
15
16
|
return o;
|
|
16
17
|
}
|
|
17
|
-
const
|
|
18
|
+
const gt = f({
|
|
18
19
|
name: "dynamic-renderer",
|
|
19
20
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
20
21
|
data() {
|
|
21
|
-
return { isEmptyElement:
|
|
22
|
+
return { isEmptyElement: bt };
|
|
22
23
|
}
|
|
23
24
|
}), b = (e, t) => {
|
|
24
25
|
const n = e.__vccOpts || e;
|
|
@@ -26,26 +27,26 @@ const yt = f({
|
|
|
26
27
|
n[o] = r;
|
|
27
28
|
return n;
|
|
28
29
|
};
|
|
29
|
-
function
|
|
30
|
-
return e.isEmptyElement(e.TagName) ? (
|
|
31
|
-
typeof e.TagName == "string" ? (
|
|
32
|
-
default:
|
|
33
|
-
|
|
30
|
+
function yt(e, t, n, o, r, i) {
|
|
31
|
+
return e.isEmptyElement(e.TagName) ? (c(), g(K(e.TagName), C({ key: 1 }, e.attributes, P(e.actionAttributes)), null, 16)) : (c(), m(w, { key: 0 }, [
|
|
32
|
+
typeof e.TagName == "string" ? (c(), g(K(e.TagName), C({ key: 0 }, e.attributes, P(e.actionAttributes)), {
|
|
33
|
+
default: N(() => [
|
|
34
|
+
x(e.$slots, "default")
|
|
34
35
|
]),
|
|
35
36
|
_: 3
|
|
36
|
-
}, 16)) : (
|
|
37
|
-
default:
|
|
38
|
-
|
|
37
|
+
}, 16)) : (c(), g(K(e.TagName), C({ key: 1 }, e.attributes, P(e.actionAttributes)), {
|
|
38
|
+
default: N(() => [
|
|
39
|
+
x(e.$slots, "default")
|
|
39
40
|
]),
|
|
40
41
|
_: 3
|
|
41
42
|
}, 16))
|
|
42
43
|
], 64));
|
|
43
44
|
}
|
|
44
|
-
const pe = /* @__PURE__ */ b(
|
|
45
|
+
const pe = /* @__PURE__ */ b(gt, [["render", yt]]), Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
45
46
|
__proto__: null,
|
|
46
47
|
default: pe
|
|
47
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
48
|
-
switch (
|
|
48
|
+
}, Symbol.toStringTag, { value: "Module" })), _ = () => {
|
|
49
|
+
switch (E) {
|
|
49
50
|
case "react":
|
|
50
51
|
case "reactNative":
|
|
51
52
|
case "rsc":
|
|
@@ -57,7 +58,7 @@ const pe = /* @__PURE__ */ b(yt, [["render", kt]]), Bi = /* @__PURE__ */ Object.
|
|
|
57
58
|
case "angular":
|
|
58
59
|
return "class";
|
|
59
60
|
}
|
|
60
|
-
},
|
|
61
|
+
}, kt = f({
|
|
61
62
|
name: "builder-button",
|
|
62
63
|
components: { DynamicRenderer: pe },
|
|
63
64
|
props: [
|
|
@@ -68,13 +69,13 @@ const pe = /* @__PURE__ */ b(yt, [["render", kt]]), Bi = /* @__PURE__ */ Object.
|
|
|
68
69
|
"text"
|
|
69
70
|
],
|
|
70
71
|
data() {
|
|
71
|
-
return { filterAttrs:
|
|
72
|
+
return { filterAttrs: V };
|
|
72
73
|
},
|
|
73
74
|
methods: {
|
|
74
75
|
attrs() {
|
|
75
76
|
return {
|
|
76
|
-
...
|
|
77
|
-
[
|
|
77
|
+
...V(this.attributes, "v-on:", !1),
|
|
78
|
+
[_()]: `${this.link ? "" : "builder-button"} ${this.attributes[_()] || ""}`,
|
|
78
79
|
...this.link ? {
|
|
79
80
|
href: this.link,
|
|
80
81
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -86,20 +87,20 @@ const pe = /* @__PURE__ */ b(yt, [["render", kt]]), Bi = /* @__PURE__ */ Object.
|
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
});
|
|
89
|
-
function
|
|
90
|
-
const s =
|
|
91
|
-
return
|
|
90
|
+
function vt(e, t, n, o, r, i) {
|
|
91
|
+
const s = y("DynamicRenderer");
|
|
92
|
+
return c(), g(s, {
|
|
92
93
|
attributes: e.attrs(),
|
|
93
94
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
94
95
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
95
96
|
}, {
|
|
96
|
-
default:
|
|
97
|
-
|
|
97
|
+
default: N(() => [
|
|
98
|
+
mt(te(e.text), 1)
|
|
98
99
|
]),
|
|
99
100
|
_: 1
|
|
100
101
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
101
102
|
}
|
|
102
|
-
const
|
|
103
|
+
const St = /* @__PURE__ */ b(kt, [["render", vt]]), Ct = Symbol(), le = {
|
|
103
104
|
Builder: {
|
|
104
105
|
content: null,
|
|
105
106
|
context: {},
|
|
@@ -115,25 +116,25 @@ const Ct = /* @__PURE__ */ b(vt, [["render", St]]), wt = Symbol(), le = {
|
|
|
115
116
|
BlocksWrapperProps: {},
|
|
116
117
|
nonce: ""
|
|
117
118
|
},
|
|
118
|
-
key:
|
|
119
|
-
},
|
|
119
|
+
key: Ct
|
|
120
|
+
}, wt = Symbol(), Ae = {
|
|
120
121
|
Components: { registeredComponents: {} },
|
|
121
|
-
key:
|
|
122
|
+
key: wt
|
|
122
123
|
};
|
|
123
|
-
function
|
|
124
|
+
function Tt(e) {
|
|
124
125
|
var t;
|
|
125
126
|
return {
|
|
126
127
|
...(t = e.component) == null ? void 0 : t.options,
|
|
127
128
|
...e.options
|
|
128
129
|
};
|
|
129
130
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
function
|
|
131
|
+
function It(e, ...t) {
|
|
132
|
+
const n = Object.assign({}, e);
|
|
133
|
+
for (const o of t)
|
|
134
|
+
delete n[o];
|
|
135
|
+
return n;
|
|
136
|
+
}
|
|
137
|
+
function I() {
|
|
137
138
|
return typeof window < "u" && typeof document < "u";
|
|
138
139
|
}
|
|
139
140
|
const $t = (e) => {
|
|
@@ -143,20 +144,20 @@ const $t = (e) => {
|
|
|
143
144
|
}), t;
|
|
144
145
|
}, Ve = (e) => e instanceof URLSearchParams ? $t(e) : e, We = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
145
146
|
function Rt() {
|
|
146
|
-
return
|
|
147
|
+
return I() && window.self !== window.top;
|
|
147
148
|
}
|
|
148
149
|
function R(e) {
|
|
149
150
|
return Rt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
150
151
|
We(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
151
152
|
}
|
|
152
153
|
const Bt = () => {
|
|
153
|
-
if (
|
|
154
|
+
if (I()) {
|
|
154
155
|
const e = new URL(location.href);
|
|
155
156
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
156
157
|
} else
|
|
157
158
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
158
|
-
},
|
|
159
|
-
const e =
|
|
159
|
+
}, Et = () => typeof navigator == "object" && navigator.userAgent || "", Ne = () => {
|
|
160
|
+
const e = Et(), t = {
|
|
160
161
|
Android() {
|
|
161
162
|
return e.match(/Android/i);
|
|
162
163
|
},
|
|
@@ -173,7 +174,7 @@ const Bt = () => {
|
|
|
173
174
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
174
175
|
},
|
|
175
176
|
any() {
|
|
176
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
177
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || E === "reactNative";
|
|
177
178
|
}
|
|
178
179
|
}, n = e.match(/Tablet|iPad/i), o = Bt();
|
|
179
180
|
return {
|
|
@@ -181,7 +182,7 @@ const Bt = () => {
|
|
|
181
182
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
182
183
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
183
184
|
};
|
|
184
|
-
},
|
|
185
|
+
}, Pt = ({
|
|
185
186
|
builder: e,
|
|
186
187
|
context: t,
|
|
187
188
|
event: n,
|
|
@@ -195,8 +196,8 @@ const Bt = () => {
|
|
|
195
196
|
event: n
|
|
196
197
|
}), xt = () => ({
|
|
197
198
|
isEditing: R(),
|
|
198
|
-
isBrowser:
|
|
199
|
-
isServer: !
|
|
199
|
+
isBrowser: I(),
|
|
200
|
+
isServer: !I(),
|
|
200
201
|
getUserAttributes: () => Ne()
|
|
201
202
|
}), At = (e, {
|
|
202
203
|
isExpression: t = !0
|
|
@@ -209,11 +210,11 @@ const Bt = () => {
|
|
|
209
210
|
rootSetState: i,
|
|
210
211
|
rootState: s
|
|
211
212
|
}) => {
|
|
212
|
-
const l =
|
|
213
|
+
const l = Pt({
|
|
213
214
|
builder: t,
|
|
214
215
|
context: n,
|
|
215
216
|
event: o,
|
|
216
|
-
state:
|
|
217
|
+
state: Oe({
|
|
217
218
|
rootState: s,
|
|
218
219
|
localState: r,
|
|
219
220
|
rootSetState: i
|
|
@@ -221,7 +222,7 @@ const Bt = () => {
|
|
|
221
222
|
});
|
|
222
223
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
223
224
|
};
|
|
224
|
-
function
|
|
225
|
+
function Oe({
|
|
225
226
|
rootState: e,
|
|
226
227
|
localState: t,
|
|
227
228
|
rootSetState: n
|
|
@@ -231,7 +232,7 @@ function Fe({
|
|
|
231
232
|
if (t && r in t)
|
|
232
233
|
return t[r];
|
|
233
234
|
const i = o[r];
|
|
234
|
-
return typeof i == "object" && i !== null ?
|
|
235
|
+
return typeof i == "object" && i !== null ? Oe({
|
|
235
236
|
rootState: i,
|
|
236
237
|
localState: void 0,
|
|
237
238
|
rootSetState: n ? (s) => {
|
|
@@ -257,7 +258,7 @@ const Wt = () => {
|
|
|
257
258
|
return !1;
|
|
258
259
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
259
260
|
return e && t && !n ? (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;
|
|
260
|
-
}, Nt = (e) => (
|
|
261
|
+
}, Nt = (e) => (I() || Wt(), Se(e)), Ot = !0, W = class W {
|
|
261
262
|
static getCacheKey(t) {
|
|
262
263
|
return JSON.stringify({
|
|
263
264
|
...t,
|
|
@@ -267,16 +268,16 @@ const Wt = () => {
|
|
|
267
268
|
});
|
|
268
269
|
}
|
|
269
270
|
static getCachedValue(t) {
|
|
270
|
-
return
|
|
271
|
+
return W.cache.get(t);
|
|
271
272
|
}
|
|
272
273
|
static setCachedValue(t, n) {
|
|
273
|
-
|
|
274
|
+
W.cache.size > 20 && W.cache.delete(W.cache.keys().next().value), W.cache.set(t, {
|
|
274
275
|
value: n
|
|
275
276
|
});
|
|
276
277
|
}
|
|
277
278
|
};
|
|
278
|
-
ne(
|
|
279
|
-
let U =
|
|
279
|
+
ne(W, "cacheLimit", 20), ne(W, "cache", /* @__PURE__ */ new Map());
|
|
280
|
+
let U = W;
|
|
280
281
|
function G({
|
|
281
282
|
code: e,
|
|
282
283
|
context: t,
|
|
@@ -300,81 +301,718 @@ function G({
|
|
|
300
301
|
rootState: o,
|
|
301
302
|
localState: n
|
|
302
303
|
};
|
|
303
|
-
if (l) {
|
|
304
|
+
if (l && !Ot) {
|
|
304
305
|
const u = U.getCacheKey(a), h = U.getCachedValue(u);
|
|
305
306
|
if (h)
|
|
306
307
|
return h.value;
|
|
307
308
|
}
|
|
308
309
|
try {
|
|
309
|
-
const u = Nt(a);
|
|
310
|
-
if (l) {
|
|
311
|
-
const h = U.getCacheKey(a);
|
|
312
|
-
U.setCachedValue(h, u);
|
|
313
|
-
}
|
|
314
|
-
return u;
|
|
315
|
-
} catch (u) {
|
|
316
|
-
B.error("Failed code evaluation: " + u.message, {
|
|
317
|
-
code: e
|
|
318
|
-
});
|
|
319
|
-
return;
|
|
310
|
+
const u = Nt(a);
|
|
311
|
+
if (l) {
|
|
312
|
+
const h = U.getCacheKey(a);
|
|
313
|
+
U.setCachedValue(h, u);
|
|
314
|
+
}
|
|
315
|
+
return u;
|
|
316
|
+
} catch (u) {
|
|
317
|
+
B.error("Failed code evaluation: " + u.message, {
|
|
318
|
+
code: e
|
|
319
|
+
});
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
const me = (e) => JSON.parse(JSON.stringify(e)), Fe = (e, t, n) => {
|
|
324
|
+
if (Object(e) !== e)
|
|
325
|
+
return e;
|
|
326
|
+
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
327
|
+
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;
|
|
328
|
+
};
|
|
329
|
+
function ce(e) {
|
|
330
|
+
if (e === null || typeof e != "object")
|
|
331
|
+
return e;
|
|
332
|
+
if (Array.isArray(e))
|
|
333
|
+
return e.map((n) => ce(n));
|
|
334
|
+
if (e["@type"] === "@builder.io/sdk:Element")
|
|
335
|
+
return e;
|
|
336
|
+
const t = {};
|
|
337
|
+
for (const n in e)
|
|
338
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
|
|
339
|
+
return t;
|
|
340
|
+
}
|
|
341
|
+
const Ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Dt = (e) => {
|
|
342
|
+
if (Ft) {
|
|
343
|
+
const t = me(e);
|
|
344
|
+
return {
|
|
345
|
+
...t,
|
|
346
|
+
properties: {
|
|
347
|
+
...t.properties
|
|
348
|
+
},
|
|
349
|
+
actions: {
|
|
350
|
+
...t.actions
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
} else {
|
|
354
|
+
const t = ce(It(e, "children", "meta"));
|
|
355
|
+
return {
|
|
356
|
+
...t,
|
|
357
|
+
properties: {
|
|
358
|
+
...t.properties
|
|
359
|
+
},
|
|
360
|
+
actions: {
|
|
361
|
+
...t.actions
|
|
362
|
+
},
|
|
363
|
+
children: e.children,
|
|
364
|
+
meta: e.meta
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
}, Lt = ({
|
|
368
|
+
block: e,
|
|
369
|
+
context: t,
|
|
370
|
+
localState: n,
|
|
371
|
+
rootState: o,
|
|
372
|
+
rootSetState: r
|
|
373
|
+
}) => {
|
|
374
|
+
if (!e.bindings)
|
|
375
|
+
return e;
|
|
376
|
+
const i = Dt(e);
|
|
377
|
+
for (const s in e.bindings) {
|
|
378
|
+
const l = e.bindings[s], a = G({
|
|
379
|
+
code: l,
|
|
380
|
+
localState: n,
|
|
381
|
+
rootState: o,
|
|
382
|
+
rootSetState: r,
|
|
383
|
+
context: t,
|
|
384
|
+
enableCache: !0
|
|
385
|
+
});
|
|
386
|
+
Fe(i, s, a);
|
|
387
|
+
}
|
|
388
|
+
return i;
|
|
389
|
+
};
|
|
390
|
+
function Ut({
|
|
391
|
+
block: e,
|
|
392
|
+
context: t,
|
|
393
|
+
shouldEvaluateBindings: n,
|
|
394
|
+
localState: o,
|
|
395
|
+
rootState: r,
|
|
396
|
+
rootSetState: i
|
|
397
|
+
}) {
|
|
398
|
+
const s = e;
|
|
399
|
+
return n ? Lt({
|
|
400
|
+
block: s,
|
|
401
|
+
localState: o,
|
|
402
|
+
rootState: r,
|
|
403
|
+
rootSetState: i,
|
|
404
|
+
context: t
|
|
405
|
+
}) : s;
|
|
406
|
+
}
|
|
407
|
+
function Mt(e) {
|
|
408
|
+
const t = e || (I() ? window.location.search : void 0);
|
|
409
|
+
return t ? We(t).indexOf("builder.preview=") !== -1 : !1;
|
|
410
|
+
}
|
|
411
|
+
const Ht = (e) => ({
|
|
412
|
+
type: "builder.registerComponent",
|
|
413
|
+
data: ee(e)
|
|
414
|
+
}), jt = (e) => {
|
|
415
|
+
const t = e.toString().trim();
|
|
416
|
+
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
417
|
+
};
|
|
418
|
+
function ee(e) {
|
|
419
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? jt(n) : n));
|
|
420
|
+
}
|
|
421
|
+
const Ce = {};
|
|
422
|
+
function Kt(e, t) {
|
|
423
|
+
e === "plugin" && (t = ee(t));
|
|
424
|
+
let n = Ce[e];
|
|
425
|
+
if (n || (n = Ce[e] = []), n.push(t), I()) {
|
|
426
|
+
const o = {
|
|
427
|
+
type: "builder.register",
|
|
428
|
+
data: {
|
|
429
|
+
type: e,
|
|
430
|
+
info: t
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
try {
|
|
434
|
+
parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
|
|
435
|
+
} catch (r) {
|
|
436
|
+
console.debug("Could not postmessage", r);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
const we = {};
|
|
441
|
+
function Wi(e) {
|
|
442
|
+
if (I()) {
|
|
443
|
+
Object.assign(we, e);
|
|
444
|
+
const t = {
|
|
445
|
+
type: "builder.settingsChange",
|
|
446
|
+
data: we
|
|
447
|
+
};
|
|
448
|
+
parent.postMessage(t, "*");
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
const Te = "builder.", qt = "options.", De = (e) => {
|
|
452
|
+
if (!e)
|
|
453
|
+
return {};
|
|
454
|
+
const t = Ve(e), n = {};
|
|
455
|
+
return Object.keys(t).forEach((o) => {
|
|
456
|
+
if (o.startsWith(Te)) {
|
|
457
|
+
const r = o.replace(Te, "").replace(qt, "");
|
|
458
|
+
n[r] = t[o];
|
|
459
|
+
}
|
|
460
|
+
}), n;
|
|
461
|
+
}, zt = () => {
|
|
462
|
+
if (!I())
|
|
463
|
+
return {};
|
|
464
|
+
const e = new URLSearchParams(window.location.search);
|
|
465
|
+
return De(e);
|
|
466
|
+
}, Jt = (e) => {
|
|
467
|
+
if (e === "localhost" || e === "127.0.0.1")
|
|
468
|
+
return e;
|
|
469
|
+
const t = e.split(".");
|
|
470
|
+
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
471
|
+
}, Le = ({
|
|
472
|
+
name: e,
|
|
473
|
+
canTrack: t
|
|
474
|
+
}) => {
|
|
475
|
+
var n;
|
|
476
|
+
try {
|
|
477
|
+
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
478
|
+
} catch (o) {
|
|
479
|
+
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
480
|
+
return;
|
|
481
|
+
}
|
|
482
|
+
}, Ue = async (e) => Le(e), Gt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(L).join("; "), Yt = [["secure", ""], ["SameSite", "None"]], Qt = ({
|
|
483
|
+
name: e,
|
|
484
|
+
value: t,
|
|
485
|
+
expires: n
|
|
486
|
+
}) => {
|
|
487
|
+
const r = (I() ? location.protocol === "https:" : !0) ? Yt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Jt(window.location.hostname)], ...r];
|
|
488
|
+
return Gt(s);
|
|
489
|
+
}, Me = async ({
|
|
490
|
+
name: e,
|
|
491
|
+
value: t,
|
|
492
|
+
expires: n,
|
|
493
|
+
canTrack: o
|
|
494
|
+
}) => {
|
|
495
|
+
try {
|
|
496
|
+
if (!o)
|
|
497
|
+
return;
|
|
498
|
+
const r = Qt({
|
|
499
|
+
name: e,
|
|
500
|
+
value: t,
|
|
501
|
+
expires: n
|
|
502
|
+
});
|
|
503
|
+
document.cookie = r;
|
|
504
|
+
} catch (r) {
|
|
505
|
+
B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
506
|
+
}
|
|
507
|
+
};
|
|
508
|
+
function Xt() {
|
|
509
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
510
|
+
const t = Math.random() * 16 | 0;
|
|
511
|
+
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
function He() {
|
|
515
|
+
return Xt().replace(/-/g, "");
|
|
516
|
+
}
|
|
517
|
+
const je = "builderSessionId", Zt = async ({
|
|
518
|
+
canTrack: e
|
|
519
|
+
}) => {
|
|
520
|
+
if (!e)
|
|
521
|
+
return;
|
|
522
|
+
const t = await Ue({
|
|
523
|
+
name: je,
|
|
524
|
+
canTrack: e
|
|
525
|
+
});
|
|
526
|
+
if (L(t))
|
|
527
|
+
return t;
|
|
528
|
+
{
|
|
529
|
+
const n = _t();
|
|
530
|
+
return en({
|
|
531
|
+
id: n,
|
|
532
|
+
canTrack: e
|
|
533
|
+
}), n;
|
|
534
|
+
}
|
|
535
|
+
}, _t = () => He(), en = ({
|
|
536
|
+
id: e,
|
|
537
|
+
canTrack: t
|
|
538
|
+
}) => Me({
|
|
539
|
+
name: je,
|
|
540
|
+
value: e,
|
|
541
|
+
canTrack: t
|
|
542
|
+
}), Ke = () => I() && typeof localStorage < "u" ? localStorage : void 0, tn = ({
|
|
543
|
+
key: e,
|
|
544
|
+
canTrack: t
|
|
545
|
+
}) => {
|
|
546
|
+
var n;
|
|
547
|
+
try {
|
|
548
|
+
return t ? (n = Ke()) == null ? void 0 : n.getItem(e) : void 0;
|
|
549
|
+
} catch (o) {
|
|
550
|
+
console.debug("[LocalStorage] GET error: ", o);
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
553
|
+
}, nn = ({
|
|
554
|
+
key: e,
|
|
555
|
+
canTrack: t,
|
|
556
|
+
value: n
|
|
557
|
+
}) => {
|
|
558
|
+
var o;
|
|
559
|
+
try {
|
|
560
|
+
t && ((o = Ke()) == null || o.setItem(e, n));
|
|
561
|
+
} catch (r) {
|
|
562
|
+
console.debug("[LocalStorage] SET error: ", r);
|
|
563
|
+
}
|
|
564
|
+
}, qe = "builderVisitorId", on = ({
|
|
565
|
+
canTrack: e
|
|
566
|
+
}) => {
|
|
567
|
+
if (!e)
|
|
568
|
+
return;
|
|
569
|
+
const t = tn({
|
|
570
|
+
key: qe,
|
|
571
|
+
canTrack: e
|
|
572
|
+
});
|
|
573
|
+
if (L(t))
|
|
574
|
+
return t;
|
|
575
|
+
{
|
|
576
|
+
const n = rn();
|
|
577
|
+
return sn({
|
|
578
|
+
id: n,
|
|
579
|
+
canTrack: e
|
|
580
|
+
}), n;
|
|
581
|
+
}
|
|
582
|
+
}, rn = () => He(), sn = ({
|
|
583
|
+
id: e,
|
|
584
|
+
canTrack: t
|
|
585
|
+
}) => nn({
|
|
586
|
+
key: qe,
|
|
587
|
+
value: e,
|
|
588
|
+
canTrack: t
|
|
589
|
+
}), an = async ({
|
|
590
|
+
canTrack: e
|
|
591
|
+
}) => {
|
|
592
|
+
if (!e)
|
|
593
|
+
return {
|
|
594
|
+
visitorId: void 0,
|
|
595
|
+
sessionId: void 0
|
|
596
|
+
};
|
|
597
|
+
const t = await Zt({
|
|
598
|
+
canTrack: e
|
|
599
|
+
}), n = on({
|
|
600
|
+
canTrack: e
|
|
601
|
+
});
|
|
602
|
+
return {
|
|
603
|
+
sessionId: t,
|
|
604
|
+
visitorId: n
|
|
605
|
+
};
|
|
606
|
+
}, ln = async ({
|
|
607
|
+
type: e,
|
|
608
|
+
canTrack: t,
|
|
609
|
+
apiKey: n,
|
|
610
|
+
metadata: o,
|
|
611
|
+
...r
|
|
612
|
+
}) => ({
|
|
613
|
+
type: e,
|
|
614
|
+
data: {
|
|
615
|
+
...r,
|
|
616
|
+
metadata: {
|
|
617
|
+
url: location.href,
|
|
618
|
+
...o
|
|
619
|
+
},
|
|
620
|
+
...await an({
|
|
621
|
+
canTrack: t
|
|
622
|
+
}),
|
|
623
|
+
userAttributes: Ne(),
|
|
624
|
+
ownerId: n
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
async function de(e) {
|
|
628
|
+
if (!e.apiKey) {
|
|
629
|
+
B.error("Missing API key for track call. Please provide your API key.");
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
if (e.canTrack && !R() && (I() || E === "reactNative"))
|
|
633
|
+
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
634
|
+
method: "POST",
|
|
635
|
+
body: JSON.stringify({
|
|
636
|
+
events: [await ln(e)]
|
|
637
|
+
}),
|
|
638
|
+
headers: {
|
|
639
|
+
"content-type": "application/json"
|
|
640
|
+
},
|
|
641
|
+
mode: "cors"
|
|
642
|
+
}).catch((t) => {
|
|
643
|
+
console.error("Failed to track: ", t);
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
const Ni = (e) => de({
|
|
647
|
+
...e,
|
|
648
|
+
canTrack: !0
|
|
649
|
+
}), cn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
650
|
+
function ze(e, t) {
|
|
651
|
+
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
652
|
+
return !1;
|
|
653
|
+
const n = new URL(t.origin), o = n.hostname;
|
|
654
|
+
return (e || cn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
655
|
+
}
|
|
656
|
+
const dn = "2.0.13", un = () => {
|
|
657
|
+
Kt("insertMenu", {
|
|
658
|
+
name: "_default",
|
|
659
|
+
default: !0,
|
|
660
|
+
items: [{
|
|
661
|
+
name: "Box"
|
|
662
|
+
}, {
|
|
663
|
+
name: "Text"
|
|
664
|
+
}, {
|
|
665
|
+
name: "Image"
|
|
666
|
+
}, {
|
|
667
|
+
name: "Columns"
|
|
668
|
+
}, {
|
|
669
|
+
name: "Core:Section"
|
|
670
|
+
}, {
|
|
671
|
+
name: "Core:Button"
|
|
672
|
+
}, {
|
|
673
|
+
name: "Embed"
|
|
674
|
+
}, {
|
|
675
|
+
name: "Custom Code"
|
|
676
|
+
}]
|
|
677
|
+
});
|
|
678
|
+
};
|
|
679
|
+
let Ie = !1;
|
|
680
|
+
const Je = (e = {}) => {
|
|
681
|
+
var t, n;
|
|
682
|
+
Ie || (Ie = !0, I() && ((t = window.parent) == null || t.postMessage({
|
|
683
|
+
type: "builder.sdkInfo",
|
|
684
|
+
data: {
|
|
685
|
+
target: E,
|
|
686
|
+
version: dn,
|
|
687
|
+
supportsPatchUpdates: !1,
|
|
688
|
+
// Supports builder-model="..." attribute which is needed to
|
|
689
|
+
// scope our '+ add block' button styling
|
|
690
|
+
supportsAddBlockScoping: !0,
|
|
691
|
+
supportsCustomBreakpoints: !0
|
|
692
|
+
}
|
|
693
|
+
}, "*"), (n = window.parent) == null || n.postMessage({
|
|
694
|
+
type: "builder.updateContent",
|
|
695
|
+
data: {
|
|
696
|
+
options: e
|
|
697
|
+
}
|
|
698
|
+
}, "*"), window.addEventListener("message", (o) => {
|
|
699
|
+
var i, s;
|
|
700
|
+
if (!ze(e.trustedHosts, o))
|
|
701
|
+
return;
|
|
702
|
+
const {
|
|
703
|
+
data: r
|
|
704
|
+
} = o;
|
|
705
|
+
if (r != null && r.type)
|
|
706
|
+
switch (r.type) {
|
|
707
|
+
case "builder.evaluate": {
|
|
708
|
+
const l = r.data.text, a = r.data.arguments || [], u = r.data.id, h = new Function(l);
|
|
709
|
+
let d, p = null;
|
|
710
|
+
try {
|
|
711
|
+
d = h.apply(null, a);
|
|
712
|
+
} catch (k) {
|
|
713
|
+
p = k;
|
|
714
|
+
}
|
|
715
|
+
p ? (i = window.parent) == null || i.postMessage({
|
|
716
|
+
type: "builder.evaluateError",
|
|
717
|
+
data: {
|
|
718
|
+
id: u,
|
|
719
|
+
error: p.message
|
|
720
|
+
}
|
|
721
|
+
}, "*") : d && typeof d.then == "function" ? d.then((k) => {
|
|
722
|
+
var v;
|
|
723
|
+
(v = window.parent) == null || v.postMessage({
|
|
724
|
+
type: "builder.evaluateResult",
|
|
725
|
+
data: {
|
|
726
|
+
id: u,
|
|
727
|
+
result: k
|
|
728
|
+
}
|
|
729
|
+
}, "*");
|
|
730
|
+
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
731
|
+
type: "builder.evaluateResult",
|
|
732
|
+
data: {
|
|
733
|
+
result: d,
|
|
734
|
+
id: u
|
|
735
|
+
}
|
|
736
|
+
}, "*");
|
|
737
|
+
break;
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
})));
|
|
741
|
+
}, Ge = ({
|
|
742
|
+
model: e,
|
|
743
|
+
trustedHosts: t,
|
|
744
|
+
callbacks: n
|
|
745
|
+
}) => (o) => {
|
|
746
|
+
if (!ze(t, o))
|
|
747
|
+
return;
|
|
748
|
+
const {
|
|
749
|
+
data: r
|
|
750
|
+
} = o;
|
|
751
|
+
if (r)
|
|
752
|
+
switch (r.type) {
|
|
753
|
+
case "builder.configureSdk": {
|
|
754
|
+
n.configureSdk(r.data);
|
|
755
|
+
break;
|
|
756
|
+
}
|
|
757
|
+
case "builder.triggerAnimation": {
|
|
758
|
+
n.animation(r.data);
|
|
759
|
+
break;
|
|
760
|
+
}
|
|
761
|
+
case "builder.contentUpdate": {
|
|
762
|
+
const i = r.data, s = i.key || i.alias || i.entry || i.modelName, l = i.data;
|
|
763
|
+
s === e && n.contentUpdate(l);
|
|
764
|
+
break;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}, Oi = (e, t, n) => {
|
|
768
|
+
if (!I)
|
|
769
|
+
return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
770
|
+
};
|
|
771
|
+
Je();
|
|
772
|
+
const o = Ge({
|
|
773
|
+
callbacks: {
|
|
774
|
+
contentUpdate: t,
|
|
775
|
+
animation: () => {
|
|
776
|
+
},
|
|
777
|
+
configureSdk: () => {
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
model: e,
|
|
781
|
+
trustedHosts: n == null ? void 0 : n.trustedHosts
|
|
782
|
+
});
|
|
783
|
+
return window.addEventListener("message", o), () => {
|
|
784
|
+
window.removeEventListener("message", o);
|
|
785
|
+
};
|
|
786
|
+
}, pn = "builder.tests", he = (e) => `${pn}.${e}`, mn = ({
|
|
787
|
+
contentId: e
|
|
788
|
+
}) => Ue({
|
|
789
|
+
name: he(e),
|
|
790
|
+
canTrack: !0
|
|
791
|
+
}), hn = ({
|
|
792
|
+
contentId: e
|
|
793
|
+
}) => Le({
|
|
794
|
+
name: he(e),
|
|
795
|
+
canTrack: !0
|
|
796
|
+
}), fn = ({
|
|
797
|
+
contentId: e,
|
|
798
|
+
value: t
|
|
799
|
+
}) => Me({
|
|
800
|
+
name: he(e),
|
|
801
|
+
value: t,
|
|
802
|
+
canTrack: !0
|
|
803
|
+
}), Ye = (e) => L(e.id) && L(e.variations) && Object.keys(e.variations).length > 0, bn = ({
|
|
804
|
+
id: e,
|
|
805
|
+
variations: t
|
|
806
|
+
}) => {
|
|
807
|
+
var r;
|
|
808
|
+
let n = 0;
|
|
809
|
+
const o = Math.random();
|
|
810
|
+
for (const i in t) {
|
|
811
|
+
const s = (r = t[i]) == null ? void 0 : r.testRatio;
|
|
812
|
+
if (n += s, o < n)
|
|
813
|
+
return i;
|
|
814
|
+
}
|
|
815
|
+
return e;
|
|
816
|
+
}, Qe = (e) => {
|
|
817
|
+
const t = bn(e);
|
|
818
|
+
return fn({
|
|
819
|
+
contentId: e.id,
|
|
820
|
+
value: t
|
|
821
|
+
}).catch((n) => {
|
|
822
|
+
B.error("could not store A/B test variation: ", n);
|
|
823
|
+
}), t;
|
|
824
|
+
}, Xe = ({
|
|
825
|
+
item: e,
|
|
826
|
+
testGroupId: t
|
|
827
|
+
}) => {
|
|
828
|
+
const n = e.variations[t];
|
|
829
|
+
return t === e.id || // handle edge-case where `testGroupId` points to non-existing variation
|
|
830
|
+
!n ? {
|
|
831
|
+
testVariationId: e.id,
|
|
832
|
+
testVariationName: "Default"
|
|
833
|
+
} : {
|
|
834
|
+
data: n.data,
|
|
835
|
+
testVariationId: n.id,
|
|
836
|
+
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
837
|
+
};
|
|
838
|
+
}, gn = ({
|
|
839
|
+
item: e,
|
|
840
|
+
canTrack: t
|
|
841
|
+
}) => {
|
|
842
|
+
if (!t)
|
|
843
|
+
return e;
|
|
844
|
+
if (!e)
|
|
845
|
+
return;
|
|
846
|
+
if (!Ye(e))
|
|
847
|
+
return e;
|
|
848
|
+
const n = hn({
|
|
849
|
+
contentId: e.id
|
|
850
|
+
}) || Qe({
|
|
851
|
+
variations: e.variations,
|
|
852
|
+
id: e.id
|
|
853
|
+
}), o = Xe({
|
|
854
|
+
item: e,
|
|
855
|
+
testGroupId: n
|
|
856
|
+
});
|
|
857
|
+
return {
|
|
858
|
+
...e,
|
|
859
|
+
...o
|
|
860
|
+
};
|
|
861
|
+
}, yn = async ({
|
|
862
|
+
item: e,
|
|
863
|
+
canTrack: t
|
|
864
|
+
}) => {
|
|
865
|
+
if (!t || !Ye(e))
|
|
866
|
+
return e;
|
|
867
|
+
const o = await mn({
|
|
868
|
+
contentId: e.id
|
|
869
|
+
}) || Qe({
|
|
870
|
+
variations: e.variations,
|
|
871
|
+
id: e.id
|
|
872
|
+
}), r = Xe({
|
|
873
|
+
item: e,
|
|
874
|
+
testGroupId: o
|
|
875
|
+
});
|
|
876
|
+
return {
|
|
877
|
+
...e,
|
|
878
|
+
...r
|
|
879
|
+
};
|
|
880
|
+
}, Y = (e) => L(e) ? e : !0;
|
|
881
|
+
function kn() {
|
|
882
|
+
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
883
|
+
}
|
|
884
|
+
function vn() {
|
|
885
|
+
const e = kn().fetch;
|
|
886
|
+
if (typeof e > "u")
|
|
887
|
+
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
888
|
+
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
889
|
+
return e;
|
|
890
|
+
}
|
|
891
|
+
const Ze = vn();
|
|
892
|
+
function ue(e, t = null, n = ".") {
|
|
893
|
+
return Object.keys(e).reduce((o, r) => {
|
|
894
|
+
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
895
|
+
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
896
|
+
...o,
|
|
897
|
+
...ue(i, s, n)
|
|
898
|
+
} : {
|
|
899
|
+
...o,
|
|
900
|
+
[s]: i
|
|
901
|
+
};
|
|
902
|
+
}, {});
|
|
903
|
+
}
|
|
904
|
+
function _e(e, t, n = {}) {
|
|
905
|
+
for (const o in e) {
|
|
906
|
+
const r = e[o], i = t ? t + "." + o : o;
|
|
907
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? _e(r, i, n) : n[i] = r;
|
|
908
|
+
}
|
|
909
|
+
return n;
|
|
910
|
+
}
|
|
911
|
+
const Sn = "v3", $e = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fe = (e) => {
|
|
912
|
+
const {
|
|
913
|
+
limit: t = 30,
|
|
914
|
+
userAttributes: n,
|
|
915
|
+
query: o,
|
|
916
|
+
model: r,
|
|
917
|
+
apiKey: i,
|
|
918
|
+
enrich: s,
|
|
919
|
+
locale: l,
|
|
920
|
+
apiVersion: a = Sn,
|
|
921
|
+
fields: u,
|
|
922
|
+
omit: h,
|
|
923
|
+
offset: d,
|
|
924
|
+
cacheSeconds: p,
|
|
925
|
+
staleCacheSeconds: k,
|
|
926
|
+
sort: v,
|
|
927
|
+
includeUnpublished: O
|
|
928
|
+
} = e;
|
|
929
|
+
if (!i)
|
|
930
|
+
throw new Error("Missing API key");
|
|
931
|
+
if (!["v3"].includes(a))
|
|
932
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
933
|
+
const X = t !== 1, T = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
|
|
934
|
+
if (T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(X)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l), s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", h || "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(d) && d > -1 && T.searchParams.set("offset", String(Math.floor(d))), typeof O == "boolean" && T.searchParams.set("includeUnpublished", String(O)), p && $e(p) && T.searchParams.set("cacheSeconds", String(p)), k && $e(k) && T.searchParams.set("staleCacheSeconds", String(k)), v) {
|
|
935
|
+
const F = ue({
|
|
936
|
+
sort: v
|
|
937
|
+
});
|
|
938
|
+
for (const H in F)
|
|
939
|
+
T.searchParams.set(H, JSON.stringify(F[H]));
|
|
940
|
+
}
|
|
941
|
+
const dt = {
|
|
942
|
+
...zt(),
|
|
943
|
+
...Ve(e.options || {})
|
|
944
|
+
}, ve = ue(dt);
|
|
945
|
+
for (const F in ve)
|
|
946
|
+
T.searchParams.set(F, String(ve[F]));
|
|
947
|
+
if (n && T.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
948
|
+
const F = _e({
|
|
949
|
+
query: o
|
|
950
|
+
});
|
|
951
|
+
for (const H in F)
|
|
952
|
+
T.searchParams.set(H, JSON.stringify(F[H]));
|
|
953
|
+
}
|
|
954
|
+
return T;
|
|
955
|
+
}, Cn = (e) => "results" in e;
|
|
956
|
+
async function be(e) {
|
|
957
|
+
const t = await In({
|
|
958
|
+
...e,
|
|
959
|
+
limit: 1
|
|
960
|
+
});
|
|
961
|
+
return t && t[0] || null;
|
|
962
|
+
}
|
|
963
|
+
const wn = async (e) => {
|
|
964
|
+
const t = fe(e);
|
|
965
|
+
return await (await (e.fetch ?? Ze)(t.href, e.fetchOptions)).json();
|
|
966
|
+
}, Tn = async (e, t, n = fe(e)) => {
|
|
967
|
+
const o = Y(e.canTrack);
|
|
968
|
+
if (n.search.includes("preview="), !o || !(I() || E === "reactNative"))
|
|
969
|
+
return t.results;
|
|
970
|
+
try {
|
|
971
|
+
const r = [];
|
|
972
|
+
for (const i of t.results)
|
|
973
|
+
r.push(await yn({
|
|
974
|
+
item: i,
|
|
975
|
+
canTrack: o
|
|
976
|
+
}));
|
|
977
|
+
t.results = r;
|
|
978
|
+
} catch (r) {
|
|
979
|
+
B.error("Could not process A/B tests. ", r);
|
|
980
|
+
}
|
|
981
|
+
return t.results;
|
|
982
|
+
};
|
|
983
|
+
async function In(e) {
|
|
984
|
+
try {
|
|
985
|
+
const t = fe(e), n = await wn(e);
|
|
986
|
+
return Cn(n) ? Tn(e, n) : (B.error("Error fetching data. ", {
|
|
987
|
+
url: t,
|
|
988
|
+
content: n,
|
|
989
|
+
options: e
|
|
990
|
+
}), null);
|
|
991
|
+
} catch (t) {
|
|
992
|
+
return B.error("Error fetching data. ", t), null;
|
|
320
993
|
}
|
|
321
994
|
}
|
|
322
|
-
const
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
rootSetState: r
|
|
334
|
-
}) => {
|
|
335
|
-
if (!e.bindings)
|
|
336
|
-
return e;
|
|
337
|
-
const i = me(e), s = {
|
|
338
|
-
...i,
|
|
339
|
-
properties: {
|
|
340
|
-
...i.properties
|
|
995
|
+
const Fi = async (e) => {
|
|
996
|
+
var o, r, i;
|
|
997
|
+
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
998
|
+
...e,
|
|
999
|
+
apiKey: e.apiKey,
|
|
1000
|
+
model: e.model || "page",
|
|
1001
|
+
userAttributes: {
|
|
1002
|
+
...e.userAttributes,
|
|
1003
|
+
...t ? {
|
|
1004
|
+
urlPath: t
|
|
1005
|
+
} : {}
|
|
341
1006
|
},
|
|
342
|
-
|
|
343
|
-
...i.actions
|
|
344
|
-
}
|
|
1007
|
+
options: De(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
345
1008
|
};
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
enableCache: !0
|
|
354
|
-
});
|
|
355
|
-
Oe(s, l, u);
|
|
356
|
-
}
|
|
357
|
-
return s;
|
|
358
|
-
};
|
|
359
|
-
function De({
|
|
360
|
-
block: e,
|
|
361
|
-
context: t,
|
|
362
|
-
shouldEvaluateBindings: n,
|
|
363
|
-
localState: o,
|
|
364
|
-
rootState: r,
|
|
365
|
-
rootSetState: i
|
|
366
|
-
}) {
|
|
367
|
-
const s = e;
|
|
368
|
-
return n ? Ft({
|
|
369
|
-
block: s,
|
|
370
|
-
localState: o,
|
|
371
|
-
rootState: r,
|
|
372
|
-
rootSetState: i,
|
|
373
|
-
context: t
|
|
374
|
-
}) : s;
|
|
375
|
-
}
|
|
376
|
-
const he = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
377
|
-
function Ot(e, t, n = {}) {
|
|
1009
|
+
return {
|
|
1010
|
+
apiKey: n.apiKey,
|
|
1011
|
+
model: n.model,
|
|
1012
|
+
content: await be(n)
|
|
1013
|
+
};
|
|
1014
|
+
}, ge = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1015
|
+
function $n(e, t, n = {}) {
|
|
378
1016
|
let o, r, i, s = null, l = 0;
|
|
379
1017
|
const a = function() {
|
|
380
1018
|
l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
@@ -396,55 +1034,55 @@ function q(e, ...t) {
|
|
|
396
1034
|
}
|
|
397
1035
|
return n;
|
|
398
1036
|
}
|
|
399
|
-
function
|
|
1037
|
+
function Rn(e) {
|
|
400
1038
|
for (const t of e)
|
|
401
1039
|
switch (t.trigger) {
|
|
402
1040
|
case "pageLoad":
|
|
403
|
-
|
|
1041
|
+
nt(t);
|
|
404
1042
|
break;
|
|
405
1043
|
case "scrollInView":
|
|
406
|
-
|
|
1044
|
+
En(t);
|
|
407
1045
|
break;
|
|
408
1046
|
}
|
|
409
1047
|
}
|
|
410
|
-
function
|
|
1048
|
+
function et(e) {
|
|
411
1049
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
412
1050
|
}
|
|
413
|
-
function
|
|
414
|
-
const n =
|
|
1051
|
+
function tt(e, t) {
|
|
1052
|
+
const n = Bn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
415
1053
|
for (const l of s)
|
|
416
1054
|
for (const a of n)
|
|
417
1055
|
a in l || (l[a] = o[a]);
|
|
418
1056
|
}
|
|
419
|
-
function
|
|
1057
|
+
function Bn(e) {
|
|
420
1058
|
const t = [];
|
|
421
1059
|
for (const n of e.steps)
|
|
422
1060
|
for (const o in n.styles)
|
|
423
1061
|
t.indexOf(o) === -1 && t.push(o);
|
|
424
1062
|
return t;
|
|
425
1063
|
}
|
|
426
|
-
function
|
|
1064
|
+
function nt(e) {
|
|
427
1065
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
428
1066
|
if (!t.length) {
|
|
429
|
-
|
|
1067
|
+
et(e.elementId || e.id || "");
|
|
430
1068
|
return;
|
|
431
1069
|
}
|
|
432
1070
|
Array.from(t).forEach((n) => {
|
|
433
|
-
|
|
434
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1071
|
+
tt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1072
|
+
n.style.transition = `all ${e.duration}s ${ge(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
|
|
435
1073
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
436
1074
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
437
1075
|
});
|
|
438
1076
|
});
|
|
439
1077
|
}
|
|
440
|
-
function
|
|
1078
|
+
function En(e) {
|
|
441
1079
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
442
1080
|
if (!t.length) {
|
|
443
|
-
|
|
1081
|
+
et(e.elementId || e.id || "");
|
|
444
1082
|
return;
|
|
445
1083
|
}
|
|
446
1084
|
Array.from(t).forEach((n) => {
|
|
447
|
-
|
|
1085
|
+
tt(e, n);
|
|
448
1086
|
let o = !1, r = !1;
|
|
449
1087
|
function i() {
|
|
450
1088
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
@@ -453,61 +1091,61 @@ function Ut(e) {
|
|
|
453
1091
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
454
1092
|
})) : e.repeat && o && !r && !l(n) && (o = !1, q(n.style, e.steps[0].styles));
|
|
455
1093
|
}
|
|
456
|
-
const s =
|
|
1094
|
+
const s = $n(i, 200, {
|
|
457
1095
|
leading: !1
|
|
458
1096
|
});
|
|
459
1097
|
function l(h) {
|
|
460
|
-
const
|
|
461
|
-
return
|
|
1098
|
+
const d = h.getBoundingClientRect(), p = window.innerHeight, v = (e.thresholdPercent || 0) / 100 * p;
|
|
1099
|
+
return d.bottom > v && d.top < p - v;
|
|
462
1100
|
}
|
|
463
1101
|
const a = e.steps[0].styles;
|
|
464
1102
|
function u() {
|
|
465
1103
|
q(n.style, a);
|
|
466
1104
|
}
|
|
467
1105
|
u(), setTimeout(() => {
|
|
468
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1106
|
+
n.style.transition = `all ${e.duration}s ${ge(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
469
1107
|
}), document.addEventListener("scroll", s, {
|
|
470
1108
|
capture: !0,
|
|
471
1109
|
passive: !0
|
|
472
1110
|
}), i();
|
|
473
1111
|
});
|
|
474
1112
|
}
|
|
475
|
-
const
|
|
1113
|
+
const ot = (e) => Object.entries(e).map(([n, o]) => {
|
|
476
1114
|
if (typeof o == "string")
|
|
477
|
-
return `${
|
|
478
|
-
}).filter(L),
|
|
479
|
-
`),
|
|
1115
|
+
return `${ge(n)}: ${o};`;
|
|
1116
|
+
}).filter(L), Pn = (e) => ot(e).join(`
|
|
1117
|
+
`), Di = ({
|
|
480
1118
|
mediaQuery: e,
|
|
481
1119
|
className: t,
|
|
482
1120
|
styles: n
|
|
483
1121
|
}) => {
|
|
484
1122
|
const o = `.${t} {
|
|
485
|
-
${
|
|
1123
|
+
${Pn(n)}
|
|
486
1124
|
}`;
|
|
487
1125
|
return e ? `${e} {
|
|
488
1126
|
${o}
|
|
489
1127
|
}` : o;
|
|
490
1128
|
};
|
|
491
|
-
function
|
|
1129
|
+
function xn({
|
|
492
1130
|
style: e
|
|
493
1131
|
}) {
|
|
494
1132
|
return e;
|
|
495
1133
|
}
|
|
496
|
-
const
|
|
1134
|
+
const Li = ({
|
|
497
1135
|
block: e,
|
|
498
1136
|
context: t
|
|
499
|
-
}) =>
|
|
1137
|
+
}) => rt(xn({
|
|
500
1138
|
style: e.style || {},
|
|
501
1139
|
context: t,
|
|
502
1140
|
block: e
|
|
503
1141
|
}));
|
|
504
|
-
function
|
|
505
|
-
switch (
|
|
1142
|
+
function rt(e) {
|
|
1143
|
+
switch (E) {
|
|
506
1144
|
case "svelte":
|
|
507
1145
|
case "vue":
|
|
508
1146
|
case "solid":
|
|
509
1147
|
case "angular":
|
|
510
|
-
return
|
|
1148
|
+
return ot(e).join(" ");
|
|
511
1149
|
case "qwik":
|
|
512
1150
|
case "reactNative":
|
|
513
1151
|
case "react":
|
|
@@ -515,29 +1153,21 @@ function He(e) {
|
|
|
515
1153
|
return e;
|
|
516
1154
|
}
|
|
517
1155
|
}
|
|
518
|
-
const
|
|
1156
|
+
const An = ({
|
|
519
1157
|
block: e,
|
|
520
|
-
|
|
521
|
-
registeredComponents: n
|
|
1158
|
+
registeredComponents: t
|
|
522
1159
|
}) => {
|
|
523
|
-
var
|
|
524
|
-
const
|
|
525
|
-
|
|
526
|
-
localState: t.localState,
|
|
527
|
-
rootState: t.rootState,
|
|
528
|
-
rootSetState: t.rootSetState,
|
|
529
|
-
context: t.context,
|
|
530
|
-
shouldEvaluateBindings: !1
|
|
531
|
-
}).component) == null ? void 0 : i.name;
|
|
532
|
-
if (!o)
|
|
1160
|
+
var r;
|
|
1161
|
+
const n = (r = e.component) == null ? void 0 : r.name;
|
|
1162
|
+
if (!n)
|
|
533
1163
|
return null;
|
|
534
|
-
const
|
|
535
|
-
if (
|
|
536
|
-
return
|
|
1164
|
+
const o = t[n];
|
|
1165
|
+
if (o)
|
|
1166
|
+
return o;
|
|
537
1167
|
console.warn(`
|
|
538
|
-
Could not find a registered component named "${
|
|
1168
|
+
Could not find a registered component named "${n}".
|
|
539
1169
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
540
|
-
},
|
|
1170
|
+
}, Vn = ({
|
|
541
1171
|
block: e,
|
|
542
1172
|
context: t
|
|
543
1173
|
}) => {
|
|
@@ -571,87 +1201,90 @@ const Ht = ({
|
|
|
571
1201
|
},
|
|
572
1202
|
block: o
|
|
573
1203
|
}));
|
|
574
|
-
},
|
|
1204
|
+
}, Wn = (e, t) => {
|
|
575
1205
|
var n;
|
|
576
1206
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
577
1207
|
builderLinkComponent: t
|
|
578
1208
|
} : {};
|
|
579
|
-
},
|
|
1209
|
+
}, Nn = (e, t) => {
|
|
580
1210
|
var n;
|
|
581
1211
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
582
1212
|
builderComponents: t
|
|
583
1213
|
} : {};
|
|
584
|
-
},
|
|
1214
|
+
}, On = (e, t) => {
|
|
585
1215
|
var n;
|
|
586
1216
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
587
1217
|
builderBlock: t
|
|
588
1218
|
} : {};
|
|
589
|
-
},
|
|
1219
|
+
}, Fn = (e, t) => {
|
|
590
1220
|
var n;
|
|
591
1221
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
592
1222
|
builderContext: t
|
|
593
1223
|
} : {};
|
|
594
|
-
},
|
|
1224
|
+
}, Dn = () => Promise.resolve().then(() => Zn).then((e) => e.default).catch((e) => {
|
|
595
1225
|
throw console.error(
|
|
596
1226
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
597
1227
|
e
|
|
598
1228
|
), e;
|
|
599
|
-
}),
|
|
1229
|
+
}), Ln = () => import("./block-styles-nWGppwAf.js").then((e) => e.default).catch((e) => {
|
|
600
1230
|
throw console.error(
|
|
601
1231
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
602
1232
|
e
|
|
603
1233
|
), e;
|
|
604
|
-
}),
|
|
1234
|
+
}), Un = () => import("./block-wrapper-hPYvxseU.js").then((e) => e.default).catch((e) => {
|
|
605
1235
|
throw console.error(
|
|
606
1236
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
607
1237
|
e
|
|
608
1238
|
), e;
|
|
609
|
-
}),
|
|
1239
|
+
}), Mn = () => import("./component-ref-JlpkOrad.js").then((e) => e.default).catch((e) => {
|
|
610
1240
|
throw console.error(
|
|
611
1241
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
612
1242
|
e
|
|
613
1243
|
), e;
|
|
614
|
-
}),
|
|
1244
|
+
}), Hn = () => import("./repeated-block-8EN4xN25.js").then((e) => e.default).catch((e) => {
|
|
615
1245
|
throw console.error(
|
|
616
1246
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
617
1247
|
e
|
|
618
1248
|
), e;
|
|
619
|
-
}),
|
|
1249
|
+
}), jn = f({
|
|
620
1250
|
name: "block",
|
|
621
1251
|
components: {
|
|
622
|
-
BlockStyles:
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
BlockWrapper:
|
|
626
|
-
DynamicDiv:
|
|
1252
|
+
BlockStyles: j(Ln),
|
|
1253
|
+
RepeatedBlock: j(Hn),
|
|
1254
|
+
ComponentRef: j(Mn),
|
|
1255
|
+
BlockWrapper: j(Un),
|
|
1256
|
+
DynamicDiv: j(Dn)
|
|
627
1257
|
},
|
|
628
1258
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1259
|
+
data() {
|
|
1260
|
+
return {
|
|
1261
|
+
_processedBlock: {
|
|
1262
|
+
value: null,
|
|
1263
|
+
update: !1
|
|
1264
|
+
}
|
|
1265
|
+
};
|
|
1266
|
+
},
|
|
629
1267
|
mounted() {
|
|
630
1268
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
631
|
-
t && e &&
|
|
1269
|
+
t && e && Rn(
|
|
632
1270
|
t.map((n) => ({
|
|
633
1271
|
...n,
|
|
634
1272
|
elementId: e
|
|
635
1273
|
}))
|
|
636
1274
|
);
|
|
637
1275
|
},
|
|
1276
|
+
updated() {
|
|
1277
|
+
},
|
|
638
1278
|
computed: {
|
|
639
|
-
blockComponent() {
|
|
640
|
-
return Ht({
|
|
641
|
-
block: this.block,
|
|
642
|
-
context: this.context,
|
|
643
|
-
registeredComponents: this.registeredComponents
|
|
644
|
-
});
|
|
645
|
-
},
|
|
646
1279
|
repeatItem() {
|
|
647
|
-
return
|
|
1280
|
+
return Vn({
|
|
648
1281
|
block: this.block,
|
|
649
1282
|
context: this.context
|
|
650
1283
|
});
|
|
651
1284
|
},
|
|
652
1285
|
processedBlock() {
|
|
653
|
-
var
|
|
654
|
-
return (
|
|
1286
|
+
var t;
|
|
1287
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : Ut({
|
|
655
1288
|
block: this.block,
|
|
656
1289
|
localState: this.context.localState,
|
|
657
1290
|
rootState: this.context.rootState,
|
|
@@ -660,6 +1293,12 @@ const Ht = ({
|
|
|
660
1293
|
shouldEvaluateBindings: !0
|
|
661
1294
|
});
|
|
662
1295
|
},
|
|
1296
|
+
blockComponent() {
|
|
1297
|
+
return An({
|
|
1298
|
+
block: this.processedBlock,
|
|
1299
|
+
registeredComponents: this.registeredComponents
|
|
1300
|
+
});
|
|
1301
|
+
},
|
|
663
1302
|
Tag() {
|
|
664
1303
|
var t;
|
|
665
1304
|
return this.block.tagName === "a" || ((t = this.processedBlock.properties) == null ? void 0 : t.href) || this.processedBlock.href ? this.linkComponent || "a" : this.block.tagName || "div";
|
|
@@ -681,11 +1320,11 @@ const Ht = ({
|
|
|
681
1320
|
blockChildren: this.processedBlock.children ?? [],
|
|
682
1321
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
683
1322
|
componentOptions: {
|
|
684
|
-
...
|
|
685
|
-
...
|
|
686
|
-
...
|
|
687
|
-
...
|
|
688
|
-
...
|
|
1323
|
+
...Tt(this.processedBlock),
|
|
1324
|
+
...On(this.blockComponent, this.processedBlock),
|
|
1325
|
+
...Fn(this.blockComponent, this.context),
|
|
1326
|
+
...Wn(this.blockComponent, this.linkComponent),
|
|
1327
|
+
...Nn(
|
|
689
1328
|
this.blockComponent,
|
|
690
1329
|
this.registeredComponents
|
|
691
1330
|
)
|
|
@@ -695,44 +1334,52 @@ const Ht = ({
|
|
|
695
1334
|
registeredComponents: this.registeredComponents,
|
|
696
1335
|
builderBlock: this.processedBlock,
|
|
697
1336
|
includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
|
|
698
|
-
isInteractive: !((n = this.blockComponent) != null && n.isRSC &&
|
|
1337
|
+
isInteractive: !((n = this.blockComponent) != null && n.isRSC && E === "rsc")
|
|
699
1338
|
};
|
|
700
1339
|
}
|
|
701
1340
|
}
|
|
702
1341
|
});
|
|
703
|
-
function
|
|
704
|
-
var
|
|
705
|
-
const s =
|
|
706
|
-
return e.canShowBlock ? (
|
|
1342
|
+
function Kn(e, t, n, o, r, i) {
|
|
1343
|
+
var d;
|
|
1344
|
+
const s = y("BlockStyles"), l = y("ComponentRef"), a = y("Block", !0), u = y("BlockWrapper"), h = y("RepeatedBlock");
|
|
1345
|
+
return e.canShowBlock ? (c(), m(w, { key: 0 }, [
|
|
707
1346
|
$(s, {
|
|
708
|
-
block: e.
|
|
1347
|
+
block: e.processedBlock,
|
|
709
1348
|
context: e.context
|
|
710
1349
|
}, null, 8, ["block", "context"]),
|
|
711
|
-
(
|
|
712
|
-
key: 1,
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
context: e.componentRefProps.context,
|
|
717
|
-
registeredComponents: e.componentRefProps.registeredComponents,
|
|
718
|
-
linkComponent: e.componentRefProps.linkComponent,
|
|
719
|
-
builderBlock: e.componentRefProps.builderBlock,
|
|
720
|
-
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
721
|
-
isInteractive: e.componentRefProps.isInteractive
|
|
722
|
-
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (d(), p(I, { key: 0 }, [
|
|
723
|
-
e.repeatItem ? (d(!0), p(I, { key: 1 }, N(e.repeatItem, (m, S) => (d(), k(h, {
|
|
724
|
-
key: S,
|
|
725
|
-
repeatContext: m.context,
|
|
726
|
-
block: m.block,
|
|
1350
|
+
(d = e.blockComponent) != null && d.noWrap ? (c(), m(w, { key: 1 }, [
|
|
1351
|
+
e.repeatItem ? (c(!0), m(w, { key: 1 }, A(e.repeatItem, (p, k) => (c(), g(h, {
|
|
1352
|
+
key: k,
|
|
1353
|
+
repeatContext: p.context,
|
|
1354
|
+
block: p.block,
|
|
727
1355
|
registeredComponents: e.registeredComponents,
|
|
728
1356
|
linkComponent: e.linkComponent
|
|
729
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (
|
|
1357
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), g(l, {
|
|
1358
|
+
key: 0,
|
|
1359
|
+
componentRef: e.componentRefProps.componentRef,
|
|
1360
|
+
componentOptions: e.componentRefProps.componentOptions,
|
|
1361
|
+
blockChildren: e.componentRefProps.blockChildren,
|
|
1362
|
+
context: e.componentRefProps.context,
|
|
1363
|
+
registeredComponents: e.componentRefProps.registeredComponents,
|
|
1364
|
+
linkComponent: e.componentRefProps.linkComponent,
|
|
1365
|
+
builderBlock: e.componentRefProps.builderBlock,
|
|
1366
|
+
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1367
|
+
isInteractive: e.componentRefProps.isInteractive
|
|
1368
|
+
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1369
|
+
], 64)) : (c(), m(w, { key: 0 }, [
|
|
1370
|
+
e.repeatItem ? (c(!0), m(w, { key: 1 }, A(e.repeatItem, (p, k) => (c(), g(h, {
|
|
1371
|
+
key: k,
|
|
1372
|
+
repeatContext: p.context,
|
|
1373
|
+
block: p.block,
|
|
1374
|
+
registeredComponents: e.registeredComponents,
|
|
1375
|
+
linkComponent: e.linkComponent
|
|
1376
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), g(u, {
|
|
730
1377
|
key: 0,
|
|
731
1378
|
Wrapper: e.Tag,
|
|
732
1379
|
block: e.processedBlock,
|
|
733
1380
|
context: e.context
|
|
734
1381
|
}, {
|
|
735
|
-
default:
|
|
1382
|
+
default: N(() => [
|
|
736
1383
|
$(l, {
|
|
737
1384
|
componentRef: e.componentRefProps.componentRef,
|
|
738
1385
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -744,9 +1391,9 @@ function tn(e, t, n, o, r, i) {
|
|
|
744
1391
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
745
1392
|
isInteractive: e.componentRefProps.isInteractive
|
|
746
1393
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
747
|
-
(
|
|
748
|
-
key:
|
|
749
|
-
block:
|
|
1394
|
+
(c(!0), m(w, null, A(e.childrenWithoutParentComponent, (p, k) => (c(), g(a, {
|
|
1395
|
+
key: p.id,
|
|
1396
|
+
block: p,
|
|
750
1397
|
registeredComponents: e.registeredComponents,
|
|
751
1398
|
linkComponent: e.linkComponent,
|
|
752
1399
|
context: e.context
|
|
@@ -755,12 +1402,12 @@ function tn(e, t, n, o, r, i) {
|
|
|
755
1402
|
_: 1
|
|
756
1403
|
}, 8, ["Wrapper", "block", "context"]))
|
|
757
1404
|
], 64))
|
|
758
|
-
], 64)) :
|
|
1405
|
+
], 64)) : S("", !0);
|
|
759
1406
|
}
|
|
760
|
-
const
|
|
1407
|
+
const ye = /* @__PURE__ */ b(jn, [["render", Kn]]), Ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
761
1408
|
__proto__: null,
|
|
762
|
-
default:
|
|
763
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1409
|
+
default: ye
|
|
1410
|
+
}, Symbol.toStringTag, { value: "Module" })), qn = f({
|
|
764
1411
|
name: "builder-blocks-wrapper",
|
|
765
1412
|
props: [
|
|
766
1413
|
"blocks",
|
|
@@ -770,6 +1417,8 @@ const fe = /* @__PURE__ */ b(en, [["render", tn]]), xi = /* @__PURE__ */ Object.
|
|
|
770
1417
|
"BlocksWrapperProps",
|
|
771
1418
|
"BlocksWrapper"
|
|
772
1419
|
],
|
|
1420
|
+
mounted() {
|
|
1421
|
+
},
|
|
773
1422
|
computed: {
|
|
774
1423
|
className() {
|
|
775
1424
|
var e;
|
|
@@ -805,8 +1454,9 @@ const fe = /* @__PURE__ */ b(en, [["render", tn]]), xi = /* @__PURE__ */ Object.
|
|
|
805
1454
|
}
|
|
806
1455
|
}
|
|
807
1456
|
});
|
|
808
|
-
function
|
|
809
|
-
return
|
|
1457
|
+
function zn(e, t, n, o, r, i) {
|
|
1458
|
+
return c(), g(K(e.BlocksWrapper), C({
|
|
1459
|
+
ref: "blocksWrapperRef",
|
|
810
1460
|
class: e.className + " component-178o76acnws",
|
|
811
1461
|
"builder-path": e.path,
|
|
812
1462
|
"builder-parent-id": e.parent,
|
|
@@ -815,15 +1465,15 @@ function on(e, t, n, o, r, i) {
|
|
|
815
1465
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
816
1466
|
onKeyPress: (s) => e.onClick()
|
|
817
1467
|
}, { ...e.BlocksWrapperProps }), {
|
|
818
|
-
default:
|
|
819
|
-
|
|
1468
|
+
default: N(() => [
|
|
1469
|
+
x(e.$slots, "default", {}, void 0, !0)
|
|
820
1470
|
]),
|
|
821
1471
|
_: 3
|
|
822
1472
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
823
1473
|
}
|
|
824
|
-
const
|
|
1474
|
+
const Jn = /* @__PURE__ */ b(qn, [["render", zn], ["__scopeId", "data-v-824f09a8"]]), Gn = f({
|
|
825
1475
|
name: "builder-blocks",
|
|
826
|
-
components: { BlocksWrapper:
|
|
1476
|
+
components: { BlocksWrapper: Jn, Block: ye },
|
|
827
1477
|
props: [
|
|
828
1478
|
"blocks",
|
|
829
1479
|
"parent",
|
|
@@ -838,10 +1488,10 @@ const rn = /* @__PURE__ */ b(nn, [["render", on], ["__scopeId", "data-v-a5b13ef9
|
|
|
838
1488
|
componentsContext: Ae.key
|
|
839
1489
|
}
|
|
840
1490
|
});
|
|
841
|
-
function
|
|
1491
|
+
function Yn(e, t, n, o, r, i) {
|
|
842
1492
|
var a, u;
|
|
843
|
-
const s =
|
|
844
|
-
return
|
|
1493
|
+
const s = y("Block"), l = y("BlocksWrapper");
|
|
1494
|
+
return c(), g(l, {
|
|
845
1495
|
blocks: e.blocks,
|
|
846
1496
|
parent: e.parent,
|
|
847
1497
|
path: e.path,
|
|
@@ -849,31 +1499,31 @@ function an(e, t, n, o, r, i) {
|
|
|
849
1499
|
BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || e.builderContext.BlocksWrapper,
|
|
850
1500
|
BlocksWrapperProps: ((u = e.context) == null ? void 0 : u.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
|
|
851
1501
|
}, {
|
|
852
|
-
default:
|
|
853
|
-
e.blocks ? (
|
|
1502
|
+
default: N(() => [
|
|
1503
|
+
e.blocks ? (c(!0), m(w, { key: 0 }, A(e.blocks, (h, d) => (c(), g(s, {
|
|
854
1504
|
key: h.id,
|
|
855
1505
|
block: h,
|
|
856
1506
|
linkComponent: e.linkComponent,
|
|
857
1507
|
context: e.context || e.builderContext,
|
|
858
1508
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
859
|
-
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) :
|
|
1509
|
+
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) : S("", !0)
|
|
860
1510
|
]),
|
|
861
1511
|
_: 1
|
|
862
1512
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
863
1513
|
}
|
|
864
|
-
const M = /* @__PURE__ */ b(
|
|
1514
|
+
const M = /* @__PURE__ */ b(Gn, [["render", Yn]]), Qn = f({
|
|
865
1515
|
name: "dynamic-div",
|
|
866
1516
|
props: []
|
|
867
1517
|
});
|
|
868
|
-
function
|
|
869
|
-
return
|
|
870
|
-
|
|
1518
|
+
function Xn(e, t, n, o, r, i) {
|
|
1519
|
+
return c(), m("div", null, [
|
|
1520
|
+
x(e.$slots, "default")
|
|
871
1521
|
]);
|
|
872
1522
|
}
|
|
873
|
-
const Q = /* @__PURE__ */ b(
|
|
1523
|
+
const Q = /* @__PURE__ */ b(Qn, [["render", Xn]]), Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
874
1524
|
__proto__: null,
|
|
875
1525
|
default: Q
|
|
876
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1526
|
+
}, Symbol.toStringTag, { value: "Module" })), ke = f({
|
|
877
1527
|
render() {
|
|
878
1528
|
return xe("style", {
|
|
879
1529
|
innerHTML: this.styles,
|
|
@@ -883,7 +1533,7 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
|
|
|
883
1533
|
},
|
|
884
1534
|
name: "inlined-styles",
|
|
885
1535
|
props: ["styles", "id", "nonce"]
|
|
886
|
-
}),
|
|
1536
|
+
}), it = {
|
|
887
1537
|
small: {
|
|
888
1538
|
min: 320,
|
|
889
1539
|
default: 321,
|
|
@@ -899,11 +1549,11 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
|
|
|
899
1549
|
default: 991,
|
|
900
1550
|
max: 1200
|
|
901
1551
|
}
|
|
902
|
-
},
|
|
1552
|
+
}, Mi = (e, t = it) => `@media (max-width: ${t[e].max}px)`, _n = ({
|
|
903
1553
|
small: e,
|
|
904
1554
|
medium: t
|
|
905
1555
|
}) => {
|
|
906
|
-
const n = me(
|
|
1556
|
+
const n = me(it);
|
|
907
1557
|
if (!e || !t)
|
|
908
1558
|
return n;
|
|
909
1559
|
const o = Math.floor(e / 2);
|
|
@@ -925,10 +1575,10 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
|
|
|
925
1575
|
min: i,
|
|
926
1576
|
default: i + 1
|
|
927
1577
|
}, n;
|
|
928
|
-
},
|
|
1578
|
+
}, eo = (e) => `builder-columns ${e}-breakpoints`, to = f({
|
|
929
1579
|
name: "builder-columns",
|
|
930
1580
|
components: {
|
|
931
|
-
InlinedStyles:
|
|
1581
|
+
InlinedStyles: ke,
|
|
932
1582
|
DynamicRenderer: pe,
|
|
933
1583
|
Blocks: M,
|
|
934
1584
|
DynamicDiv: Q
|
|
@@ -949,8 +1599,8 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
|
|
|
949
1599
|
cols: this.columns || [],
|
|
950
1600
|
stackAt: this.stackColumnsAt || "tablet",
|
|
951
1601
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
952
|
-
TARGET:
|
|
953
|
-
getColumnsClass:
|
|
1602
|
+
TARGET: E,
|
|
1603
|
+
getColumnsClass: eo
|
|
954
1604
|
};
|
|
955
1605
|
},
|
|
956
1606
|
methods: {
|
|
@@ -1016,7 +1666,7 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
|
|
|
1016
1666
|
},
|
|
1017
1667
|
getWidthForBreakpointSize(e) {
|
|
1018
1668
|
var n, o;
|
|
1019
|
-
return
|
|
1669
|
+
return _n(
|
|
1020
1670
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1021
1671
|
)[e].max;
|
|
1022
1672
|
},
|
|
@@ -1053,34 +1703,34 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
|
|
|
1053
1703
|
...e.link ? {
|
|
1054
1704
|
href: e.link
|
|
1055
1705
|
} : {},
|
|
1056
|
-
[
|
|
1057
|
-
style:
|
|
1706
|
+
[_()]: "builder-column",
|
|
1707
|
+
style: rt(this.columnCssVars(t))
|
|
1058
1708
|
};
|
|
1059
1709
|
}
|
|
1060
1710
|
}
|
|
1061
1711
|
});
|
|
1062
|
-
function
|
|
1712
|
+
function no(e, t, n, o, r, i) {
|
|
1063
1713
|
var u;
|
|
1064
|
-
const s =
|
|
1065
|
-
return
|
|
1714
|
+
const s = y("InlinedStyles"), l = y("Blocks"), a = y("DynamicRenderer");
|
|
1715
|
+
return c(), m("div", C({
|
|
1066
1716
|
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-2brhoa1k8gd",
|
|
1067
1717
|
style: e.columnsCssVars()
|
|
1068
1718
|
}, {}), [
|
|
1069
|
-
e.TARGET !== "reactNative" ? (
|
|
1719
|
+
e.TARGET !== "reactNative" ? (c(), g(s, {
|
|
1070
1720
|
key: 0,
|
|
1071
1721
|
id: "builderio-columns",
|
|
1072
1722
|
styles: e.columnsStyles(),
|
|
1073
1723
|
nonce: e.builderContext.nonce
|
|
1074
|
-
}, null, 8, ["styles", "nonce"])) :
|
|
1075
|
-
(
|
|
1076
|
-
key:
|
|
1724
|
+
}, null, 8, ["styles", "nonce"])) : S("", !0),
|
|
1725
|
+
(c(!0), m(w, null, A(e.columns, (h, d) => (c(), g(a, {
|
|
1726
|
+
key: d,
|
|
1077
1727
|
TagName: e.getTagName(h),
|
|
1078
1728
|
actionAttributes: {},
|
|
1079
|
-
attributes: e.getAttributes(h,
|
|
1729
|
+
attributes: e.getAttributes(h, d)
|
|
1080
1730
|
}, {
|
|
1081
|
-
default:
|
|
1731
|
+
default: N(() => [
|
|
1082
1732
|
$(l, {
|
|
1083
|
-
path: `component.options.columns.${
|
|
1733
|
+
path: `component.options.columns.${d}.blocks`,
|
|
1084
1734
|
parent: e.builderBlock.id,
|
|
1085
1735
|
styleProp: {
|
|
1086
1736
|
flexGrow: "1"
|
|
@@ -1095,32 +1745,32 @@ function hn(e, t, n, o, r, i) {
|
|
|
1095
1745
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1096
1746
|
], 16);
|
|
1097
1747
|
}
|
|
1098
|
-
const
|
|
1748
|
+
const oo = /* @__PURE__ */ b(to, [["render", no], ["__scopeId", "data-v-52366f16"]]), ro = f({
|
|
1099
1749
|
name: "builder-fragment-component",
|
|
1100
1750
|
props: []
|
|
1101
1751
|
});
|
|
1102
|
-
function
|
|
1103
|
-
return
|
|
1104
|
-
|
|
1752
|
+
function io(e, t, n, o, r, i) {
|
|
1753
|
+
return c(), m("span", null, [
|
|
1754
|
+
x(e.$slots, "default")
|
|
1105
1755
|
]);
|
|
1106
1756
|
}
|
|
1107
|
-
const
|
|
1108
|
-
function
|
|
1757
|
+
const so = /* @__PURE__ */ b(ro, [["render", io]]);
|
|
1758
|
+
function Re(e) {
|
|
1109
1759
|
return e.replace(/http(s)?:/, "");
|
|
1110
1760
|
}
|
|
1111
|
-
function
|
|
1761
|
+
function ao(e = "", t, n) {
|
|
1112
1762
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1113
1763
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1114
1764
|
}
|
|
1115
|
-
function
|
|
1765
|
+
function lo(e, t) {
|
|
1116
1766
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1117
1767
|
return e;
|
|
1118
1768
|
if (t === "master")
|
|
1119
|
-
return
|
|
1769
|
+
return Re(e);
|
|
1120
1770
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1121
1771
|
if (n) {
|
|
1122
1772
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
1123
|
-
return
|
|
1773
|
+
return Re(`${o[0]}_${i}${r}`);
|
|
1124
1774
|
}
|
|
1125
1775
|
return null;
|
|
1126
1776
|
}
|
|
@@ -1131,11 +1781,11 @@ function oe(e) {
|
|
|
1131
1781
|
if (e.match(/builder\.io/)) {
|
|
1132
1782
|
let n = e;
|
|
1133
1783
|
const o = Number(e.split("?width=")[1]);
|
|
1134
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
1784
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${ao(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1135
1785
|
}
|
|
1136
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1786
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [lo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1137
1787
|
}
|
|
1138
|
-
const
|
|
1788
|
+
const co = f({
|
|
1139
1789
|
name: "builder-image",
|
|
1140
1790
|
props: [
|
|
1141
1791
|
"image",
|
|
@@ -1186,211 +1836,76 @@ const Sn = f({
|
|
|
1186
1836
|
return this.aspectRatio ? e : void 0;
|
|
1187
1837
|
}
|
|
1188
1838
|
}
|
|
1189
|
-
}),
|
|
1190
|
-
key: 2,
|
|
1191
|
-
class: "div-1pl23ac79ld-2"
|
|
1192
|
-
};
|
|
1193
|
-
function
|
|
1194
|
-
var s, l, a, u, h,
|
|
1195
|
-
return
|
|
1196
|
-
z("picture", null, [
|
|
1197
|
-
e.webpSrcSet ? (
|
|
1198
|
-
key: 0,
|
|
1199
|
-
type: "image/webp",
|
|
1200
|
-
srcset: e.webpSrcSet
|
|
1201
|
-
}, null, 8,
|
|
1202
|
-
z("img", {
|
|
1203
|
-
loading: e.highPriority ? "eager" : "lazy",
|
|
1204
|
-
fetchpriority: e.highPriority ? "high" : "auto",
|
|
1205
|
-
alt: e.altText,
|
|
1206
|
-
role: e.altText ? void 0 : "presentation",
|
|
1207
|
-
style: D({
|
|
1208
|
-
objectPosition: e.backgroundPosition || "center",
|
|
1209
|
-
objectFit: e.backgroundSize || "cover",
|
|
1210
|
-
...e.aspectRatioCss
|
|
1211
|
-
}),
|
|
1212
|
-
class: J(
|
|
1213
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-1pl23ac79ld"
|
|
1214
|
-
),
|
|
1215
|
-
src: e.image,
|
|
1216
|
-
srcset: e.srcSetToUse,
|
|
1217
|
-
sizes: e.sizes
|
|
1218
|
-
}, null, 14,
|
|
1219
|
-
]),
|
|
1220
|
-
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (
|
|
1221
|
-
key: 0,
|
|
1222
|
-
class: "builder-image-sizer div-1pl23ac79ld",
|
|
1223
|
-
style: D({
|
|
1224
|
-
paddingTop: e.aspectRatio * 100 + "%"
|
|
1225
|
-
})
|
|
1226
|
-
}, null, 4)) :
|
|
1227
|
-
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ?
|
|
1228
|
-
!e.fitContent && ((
|
|
1229
|
-
|
|
1230
|
-
])) :
|
|
1231
|
-
], 64);
|
|
1232
|
-
}
|
|
1233
|
-
const
|
|
1234
|
-
name: "builder-section-component",
|
|
1235
|
-
props: ["attributes", "maxWidth"],
|
|
1236
|
-
data() {
|
|
1237
|
-
return { filterAttrs:
|
|
1238
|
-
}
|
|
1239
|
-
});
|
|
1240
|
-
function
|
|
1241
|
-
return
|
|
1242
|
-
style: {
|
|
1243
|
-
width: "100%",
|
|
1244
|
-
alignSelf: "stretch",
|
|
1245
|
-
flexGrow: 1,
|
|
1246
|
-
boxSizing: "border-box",
|
|
1247
|
-
maxWidth: e.maxWidth || 1200,
|
|
1248
|
-
display: "flex",
|
|
1249
|
-
flexDirection: "column",
|
|
1250
|
-
alignItems: "stretch",
|
|
1251
|
-
marginLeft: "auto",
|
|
1252
|
-
marginRight: "auto"
|
|
1253
|
-
}
|
|
1254
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1255
|
-
|
|
1256
|
-
], 16);
|
|
1257
|
-
}
|
|
1258
|
-
const
|
|
1259
|
-
if (e === "localhost" || e === "127.0.0.1")
|
|
1260
|
-
return e;
|
|
1261
|
-
const t = e.split(".");
|
|
1262
|
-
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
1263
|
-
}, qe = ({
|
|
1264
|
-
name: e,
|
|
1265
|
-
canTrack: t
|
|
1266
|
-
}) => {
|
|
1267
|
-
var n;
|
|
1268
|
-
try {
|
|
1269
|
-
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
1270
|
-
} catch (o) {
|
|
1271
|
-
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
1272
|
-
return;
|
|
1273
|
-
}
|
|
1274
|
-
}, ze = async (e) => qe(e), xn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(L).join("; "), An = [["secure", ""], ["SameSite", "None"]], Vn = ({
|
|
1275
|
-
name: e,
|
|
1276
|
-
value: t,
|
|
1277
|
-
expires: n
|
|
1278
|
-
}) => {
|
|
1279
|
-
const r = (T() ? location.protocol === "https:" : !0) ? An : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", En(window.location.hostname)], ...r];
|
|
1280
|
-
return xn(s);
|
|
1281
|
-
}, Je = async ({
|
|
1282
|
-
name: e,
|
|
1283
|
-
value: t,
|
|
1284
|
-
expires: n,
|
|
1285
|
-
canTrack: o
|
|
1286
|
-
}) => {
|
|
1287
|
-
try {
|
|
1288
|
-
if (!o)
|
|
1289
|
-
return;
|
|
1290
|
-
const r = Vn({
|
|
1291
|
-
name: e,
|
|
1292
|
-
value: t,
|
|
1293
|
-
expires: n
|
|
1294
|
-
});
|
|
1295
|
-
document.cookie = r;
|
|
1296
|
-
} catch (r) {
|
|
1297
|
-
B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
1298
|
-
}
|
|
1299
|
-
}, Wn = "builder.tests", ge = (e) => `${Wn}.${e}`, Nn = ({
|
|
1300
|
-
contentId: e
|
|
1301
|
-
}) => ze({
|
|
1302
|
-
name: ge(e),
|
|
1303
|
-
canTrack: !0
|
|
1304
|
-
}), Fn = ({
|
|
1305
|
-
contentId: e
|
|
1306
|
-
}) => qe({
|
|
1307
|
-
name: ge(e),
|
|
1308
|
-
canTrack: !0
|
|
1309
|
-
}), On = ({
|
|
1310
|
-
contentId: e,
|
|
1311
|
-
value: t
|
|
1312
|
-
}) => Je({
|
|
1313
|
-
name: ge(e),
|
|
1314
|
-
value: t,
|
|
1315
|
-
canTrack: !0
|
|
1316
|
-
}), Ge = (e) => L(e.id) && L(e.variations) && Object.keys(e.variations).length > 0, Dn = ({
|
|
1317
|
-
id: e,
|
|
1318
|
-
variations: t
|
|
1319
|
-
}) => {
|
|
1320
|
-
var r;
|
|
1321
|
-
let n = 0;
|
|
1322
|
-
const o = Math.random();
|
|
1323
|
-
for (const i in t) {
|
|
1324
|
-
const s = (r = t[i]) == null ? void 0 : r.testRatio;
|
|
1325
|
-
if (n += s, o < n)
|
|
1326
|
-
return i;
|
|
1327
|
-
}
|
|
1328
|
-
return e;
|
|
1329
|
-
}, Ye = (e) => {
|
|
1330
|
-
const t = Dn(e);
|
|
1331
|
-
return On({
|
|
1332
|
-
contentId: e.id,
|
|
1333
|
-
value: t
|
|
1334
|
-
}).catch((n) => {
|
|
1335
|
-
B.error("could not store A/B test variation: ", n);
|
|
1336
|
-
}), t;
|
|
1337
|
-
}, Qe = ({
|
|
1338
|
-
item: e,
|
|
1339
|
-
testGroupId: t
|
|
1340
|
-
}) => {
|
|
1341
|
-
const n = e.variations[t];
|
|
1342
|
-
return t === e.id || // handle edge-case where `testGroupId` points to non-existing variation
|
|
1343
|
-
!n ? {
|
|
1344
|
-
testVariationId: e.id,
|
|
1345
|
-
testVariationName: "Default"
|
|
1346
|
-
} : {
|
|
1347
|
-
data: n.data,
|
|
1348
|
-
testVariationId: n.id,
|
|
1349
|
-
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
1350
|
-
};
|
|
1351
|
-
}, Ln = ({
|
|
1352
|
-
item: e,
|
|
1353
|
-
canTrack: t
|
|
1354
|
-
}) => {
|
|
1355
|
-
if (!t)
|
|
1356
|
-
return e;
|
|
1357
|
-
if (!e)
|
|
1358
|
-
return;
|
|
1359
|
-
if (!Ge(e))
|
|
1360
|
-
return e;
|
|
1361
|
-
const n = Fn({
|
|
1362
|
-
contentId: e.id
|
|
1363
|
-
}) || Ye({
|
|
1364
|
-
variations: e.variations,
|
|
1365
|
-
id: e.id
|
|
1366
|
-
}), o = Qe({
|
|
1367
|
-
item: e,
|
|
1368
|
-
testGroupId: n
|
|
1369
|
-
});
|
|
1370
|
-
return {
|
|
1371
|
-
...e,
|
|
1372
|
-
...o
|
|
1373
|
-
};
|
|
1374
|
-
}, Un = async ({
|
|
1375
|
-
item: e,
|
|
1376
|
-
canTrack: t
|
|
1377
|
-
}) => {
|
|
1378
|
-
if (!t || !Ge(e))
|
|
1379
|
-
return e;
|
|
1380
|
-
const o = await Nn({
|
|
1381
|
-
contentId: e.id
|
|
1382
|
-
}) || Ye({
|
|
1383
|
-
variations: e.variations,
|
|
1384
|
-
id: e.id
|
|
1385
|
-
}), r = Qe({
|
|
1386
|
-
item: e,
|
|
1387
|
-
testGroupId: o
|
|
1388
|
-
});
|
|
1389
|
-
return {
|
|
1390
|
-
...e,
|
|
1391
|
-
...r
|
|
1392
|
-
};
|
|
1393
|
-
}, Y = (e) => L(e) ? e : !0, re = {
|
|
1839
|
+
}), uo = ["srcset"], po = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], mo = {
|
|
1840
|
+
key: 2,
|
|
1841
|
+
class: "div-1pl23ac79ld-2"
|
|
1842
|
+
};
|
|
1843
|
+
function ho(e, t, n, o, r, i) {
|
|
1844
|
+
var s, l, a, u, h, d;
|
|
1845
|
+
return c(), m(w, null, [
|
|
1846
|
+
z("picture", null, [
|
|
1847
|
+
e.webpSrcSet ? (c(), m("source", {
|
|
1848
|
+
key: 0,
|
|
1849
|
+
type: "image/webp",
|
|
1850
|
+
srcset: e.webpSrcSet
|
|
1851
|
+
}, null, 8, uo)) : S("", !0),
|
|
1852
|
+
z("img", {
|
|
1853
|
+
loading: e.highPriority ? "eager" : "lazy",
|
|
1854
|
+
fetchpriority: e.highPriority ? "high" : "auto",
|
|
1855
|
+
alt: e.altText,
|
|
1856
|
+
role: e.altText ? void 0 : "presentation",
|
|
1857
|
+
style: D({
|
|
1858
|
+
objectPosition: e.backgroundPosition || "center",
|
|
1859
|
+
objectFit: e.backgroundSize || "cover",
|
|
1860
|
+
...e.aspectRatioCss
|
|
1861
|
+
}),
|
|
1862
|
+
class: J(
|
|
1863
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-1pl23ac79ld"
|
|
1864
|
+
),
|
|
1865
|
+
src: e.image,
|
|
1866
|
+
srcset: e.srcSetToUse,
|
|
1867
|
+
sizes: e.sizes
|
|
1868
|
+
}, null, 14, po)
|
|
1869
|
+
]),
|
|
1870
|
+
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (c(), m("div", {
|
|
1871
|
+
key: 0,
|
|
1872
|
+
class: "builder-image-sizer div-1pl23ac79ld",
|
|
1873
|
+
style: D({
|
|
1874
|
+
paddingTop: e.aspectRatio * 100 + "%"
|
|
1875
|
+
})
|
|
1876
|
+
}, null, 4)) : S("", !0),
|
|
1877
|
+
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? x(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
|
|
1878
|
+
!e.fitContent && ((d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length) ? (c(), m("div", mo, [
|
|
1879
|
+
x(e.$slots, "default", {}, void 0, !0)
|
|
1880
|
+
])) : S("", !0)
|
|
1881
|
+
], 64);
|
|
1882
|
+
}
|
|
1883
|
+
const fo = /* @__PURE__ */ b(co, [["render", ho], ["__scopeId", "data-v-b1147753"]]), bo = f({
|
|
1884
|
+
name: "builder-section-component",
|
|
1885
|
+
props: ["attributes", "maxWidth"],
|
|
1886
|
+
data() {
|
|
1887
|
+
return { filterAttrs: V };
|
|
1888
|
+
}
|
|
1889
|
+
});
|
|
1890
|
+
function go(e, t, n, o, r, i) {
|
|
1891
|
+
return c(), m("section", C({
|
|
1892
|
+
style: {
|
|
1893
|
+
width: "100%",
|
|
1894
|
+
alignSelf: "stretch",
|
|
1895
|
+
flexGrow: 1,
|
|
1896
|
+
boxSizing: "border-box",
|
|
1897
|
+
maxWidth: e.maxWidth || 1200,
|
|
1898
|
+
display: "flex",
|
|
1899
|
+
flexDirection: "column",
|
|
1900
|
+
alignItems: "stretch",
|
|
1901
|
+
marginLeft: "auto",
|
|
1902
|
+
marginRight: "auto"
|
|
1903
|
+
}
|
|
1904
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1905
|
+
x(e.$slots, "default")
|
|
1906
|
+
], 16);
|
|
1907
|
+
}
|
|
1908
|
+
const yo = /* @__PURE__ */ b(bo, [["render", go]]), re = {
|
|
1394
1909
|
"@type": "@builder.io/sdk:Element",
|
|
1395
1910
|
layerName: "Accordion item title",
|
|
1396
1911
|
responsiveStyles: {
|
|
@@ -1450,7 +1965,7 @@ const Pn = /* @__PURE__ */ b(Rn, [["render", Bn]]), En = (e) => {
|
|
|
1450
1965
|
}
|
|
1451
1966
|
}
|
|
1452
1967
|
}]
|
|
1453
|
-
},
|
|
1968
|
+
}, ko = {
|
|
1454
1969
|
name: "Builder:Accordion",
|
|
1455
1970
|
canHaveChildren: !0,
|
|
1456
1971
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1514,7 +2029,7 @@ const Pn = /* @__PURE__ */ b(Rn, [["render", Bn]]), En = (e) => {
|
|
|
1514
2029
|
builderComponents: !0,
|
|
1515
2030
|
builderLinkComponent: !0
|
|
1516
2031
|
}
|
|
1517
|
-
},
|
|
2032
|
+
}, vo = (e) => e.toString(), So = f({
|
|
1518
2033
|
name: "builder-accordion",
|
|
1519
2034
|
components: { Blocks: M },
|
|
1520
2035
|
props: [
|
|
@@ -1528,7 +2043,7 @@ const Pn = /* @__PURE__ */ b(Rn, [["render", Bn]]), En = (e) => {
|
|
|
1528
2043
|
"builderLinkComponent"
|
|
1529
2044
|
],
|
|
1530
2045
|
data() {
|
|
1531
|
-
return { open: [], convertOrderNumberToString:
|
|
2046
|
+
return { open: [], convertOrderNumberToString: vo };
|
|
1532
2047
|
},
|
|
1533
2048
|
computed: {
|
|
1534
2049
|
onlyOneAtATime() {
|
|
@@ -1609,14 +2124,14 @@ const Pn = /* @__PURE__ */ b(Rn, [["render", Bn]]), En = (e) => {
|
|
|
1609
2124
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
1610
2125
|
}
|
|
1611
2126
|
}
|
|
1612
|
-
}),
|
|
1613
|
-
function
|
|
1614
|
-
const s =
|
|
1615
|
-
return
|
|
2127
|
+
}), Co = ["data-index", "onClick"];
|
|
2128
|
+
function wo(e, t, n, o, r, i) {
|
|
2129
|
+
const s = y("Blocks");
|
|
2130
|
+
return c(), m("div", {
|
|
1616
2131
|
class: "builder-accordion",
|
|
1617
2132
|
style: D(e.accordionStyles)
|
|
1618
2133
|
}, [
|
|
1619
|
-
(
|
|
2134
|
+
(c(!0), m(w, null, A(e.items, (l, a) => (c(), m(w, { key: a }, [
|
|
1620
2135
|
z("div", {
|
|
1621
2136
|
class: J(e.getAccordionTitleClassName(a)),
|
|
1622
2137
|
style: D({
|
|
@@ -1635,8 +2150,8 @@ function qn(e, t, n, o, r, i) {
|
|
|
1635
2150
|
registeredComponents: e.builderComponents,
|
|
1636
2151
|
linkComponent: e.builderLinkComponent
|
|
1637
2152
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
1638
|
-
], 14,
|
|
1639
|
-
e.open.includes(a) ? (
|
|
2153
|
+
], 14, Co),
|
|
2154
|
+
e.open.includes(a) ? (c(), m("div", {
|
|
1640
2155
|
key: 0,
|
|
1641
2156
|
class: J(e.getAccordionDetailClassName(a)),
|
|
1642
2157
|
style: D(e.accordionDetailStyles)
|
|
@@ -1649,11 +2164,11 @@ function qn(e, t, n, o, r, i) {
|
|
|
1649
2164
|
registeredComponents: e.builderComponents,
|
|
1650
2165
|
linkComponent: e.builderLinkComponent
|
|
1651
2166
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
1652
|
-
], 6)) :
|
|
2167
|
+
], 6)) : S("", !0)
|
|
1653
2168
|
], 64))), 128))
|
|
1654
2169
|
], 4);
|
|
1655
2170
|
}
|
|
1656
|
-
const
|
|
2171
|
+
const To = /* @__PURE__ */ b(So, [["render", wo]]), Io = {
|
|
1657
2172
|
name: "Core:Button",
|
|
1658
2173
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1659
2174
|
defaultStyles: {
|
|
@@ -1689,7 +2204,7 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
|
|
|
1689
2204
|
shouldReceiveBuilderProps: {
|
|
1690
2205
|
builderLinkComponent: !0
|
|
1691
2206
|
}
|
|
1692
|
-
},
|
|
2207
|
+
}, $o = {
|
|
1693
2208
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1694
2209
|
name: "Columns",
|
|
1695
2210
|
isRSC: !0,
|
|
@@ -1896,13 +2411,13 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
|
|
|
1896
2411
|
builderComponents: !0,
|
|
1897
2412
|
builderLinkComponent: !0
|
|
1898
2413
|
}
|
|
1899
|
-
},
|
|
2414
|
+
}, Ro = {
|
|
1900
2415
|
name: "Fragment",
|
|
1901
2416
|
static: !0,
|
|
1902
2417
|
hidden: !0,
|
|
1903
2418
|
canHaveChildren: !0,
|
|
1904
2419
|
noWrap: !0
|
|
1905
|
-
},
|
|
2420
|
+
}, Bo = {
|
|
1906
2421
|
name: "Image",
|
|
1907
2422
|
static: !0,
|
|
1908
2423
|
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",
|
|
@@ -1925,13 +2440,13 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
|
|
|
1925
2440
|
function n(s, l = 6e4) {
|
|
1926
2441
|
return new Promise((a, u) => {
|
|
1927
2442
|
const h = document.createElement("img");
|
|
1928
|
-
let
|
|
2443
|
+
let d = !1;
|
|
1929
2444
|
h.onload = () => {
|
|
1930
|
-
|
|
1931
|
-
}, h.addEventListener("error", (
|
|
1932
|
-
console.warn("Image load failed",
|
|
2445
|
+
d = !0, a(h);
|
|
2446
|
+
}, h.addEventListener("error", (p) => {
|
|
2447
|
+
console.warn("Image load failed", p.error), u(p.error);
|
|
1933
2448
|
}), h.src = s, setTimeout(() => {
|
|
1934
|
-
|
|
2449
|
+
d || u(new Error("Image load timed out"));
|
|
1935
2450
|
}, l);
|
|
1936
2451
|
});
|
|
1937
2452
|
}
|
|
@@ -2010,7 +2525,7 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
|
|
|
2010
2525
|
shouldReceiveBuilderProps: {
|
|
2011
2526
|
builderBlock: !0
|
|
2012
2527
|
}
|
|
2013
|
-
},
|
|
2528
|
+
}, Eo = {
|
|
2014
2529
|
name: "Core:Section",
|
|
2015
2530
|
static: !0,
|
|
2016
2531
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2049,7 +2564,7 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
|
|
|
2049
2564
|
}
|
|
2050
2565
|
}
|
|
2051
2566
|
}]
|
|
2052
|
-
},
|
|
2567
|
+
}, Po = {
|
|
2053
2568
|
name: "Slot",
|
|
2054
2569
|
isRSC: !0,
|
|
2055
2570
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2063,17 +2578,18 @@ const zn = /* @__PURE__ */ b(Hn, [["render", qn]]), Jn = {
|
|
|
2063
2578
|
defaultValue: "children"
|
|
2064
2579
|
}],
|
|
2065
2580
|
shouldReceiveBuilderProps: {
|
|
2066
|
-
builderContext: !0
|
|
2581
|
+
builderContext: !0,
|
|
2582
|
+
builderComponents: !0
|
|
2067
2583
|
}
|
|
2068
|
-
},
|
|
2584
|
+
}, xo = f({
|
|
2069
2585
|
name: "builder-slot",
|
|
2070
2586
|
components: { Blocks: M },
|
|
2071
|
-
props: ["builderContext", "name"]
|
|
2587
|
+
props: ["builderContext", "name", "builderComponents"]
|
|
2072
2588
|
});
|
|
2073
|
-
function
|
|
2589
|
+
function Ao(e, t, n, o, r, i) {
|
|
2074
2590
|
var l, a, u;
|
|
2075
|
-
const s =
|
|
2076
|
-
return
|
|
2591
|
+
const s = y("Blocks");
|
|
2592
|
+
return c(), m("div", C(
|
|
2077
2593
|
{ style: {
|
|
2078
2594
|
pointerEvents: "auto"
|
|
2079
2595
|
} },
|
|
@@ -2085,11 +2601,12 @@ function eo(e, t, n, o, r, i) {
|
|
|
2085
2601
|
parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
|
|
2086
2602
|
path: `symbol.data.${e.name}`,
|
|
2087
2603
|
context: e.builderContext,
|
|
2604
|
+
registeredComponents: e.builderComponents,
|
|
2088
2605
|
blocks: (u = e.builderContext.rootState) == null ? void 0 : u[e.name]
|
|
2089
|
-
}, null, 8, ["parent", "path", "context", "blocks"])
|
|
2606
|
+
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
2090
2607
|
], 16);
|
|
2091
2608
|
}
|
|
2092
|
-
const
|
|
2609
|
+
const Vo = /* @__PURE__ */ b(xo, [["render", Ao]]), Wo = {
|
|
2093
2610
|
name: "Symbol",
|
|
2094
2611
|
noWrap: !0,
|
|
2095
2612
|
static: !0,
|
|
@@ -2166,7 +2683,7 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
|
|
|
2166
2683
|
text: "New tab content "
|
|
2167
2684
|
}
|
|
2168
2685
|
}
|
|
2169
|
-
},
|
|
2686
|
+
}, No = {
|
|
2170
2687
|
name: "Builder: Tabs",
|
|
2171
2688
|
inputs: [{
|
|
2172
2689
|
name: "tabs",
|
|
@@ -2269,7 +2786,7 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
|
|
|
2269
2786
|
builderComponents: !0,
|
|
2270
2787
|
builderLinkComponent: !0
|
|
2271
2788
|
}
|
|
2272
|
-
},
|
|
2789
|
+
}, Oo = f({
|
|
2273
2790
|
name: "builder-tabs",
|
|
2274
2791
|
components: { Blocks: M },
|
|
2275
2792
|
props: [
|
|
@@ -2294,10 +2811,10 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
|
|
|
2294
2811
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
2295
2812
|
}
|
|
2296
2813
|
}
|
|
2297
|
-
}),
|
|
2298
|
-
function
|
|
2299
|
-
const s =
|
|
2300
|
-
return
|
|
2814
|
+
}), Fo = ["onClick"], Do = { key: 0 };
|
|
2815
|
+
function Lo(e, t, n, o, r, i) {
|
|
2816
|
+
const s = y("Blocks");
|
|
2817
|
+
return c(), m("div", null, [
|
|
2301
2818
|
z("div", {
|
|
2302
2819
|
class: "builder-tabs-wrap",
|
|
2303
2820
|
style: D({
|
|
@@ -2307,7 +2824,7 @@ function ao(e, t, n, o, r, i) {
|
|
|
2307
2824
|
overflow: "auto"
|
|
2308
2825
|
})
|
|
2309
2826
|
}, [
|
|
2310
|
-
(
|
|
2827
|
+
(c(!0), m(w, null, A(e.tabs, (l, a) => (c(), m("span", {
|
|
2311
2828
|
key: a,
|
|
2312
2829
|
class: J(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
2313
2830
|
style: D({
|
|
@@ -2323,9 +2840,9 @@ function ao(e, t, n, o, r, i) {
|
|
|
2323
2840
|
registeredComponents: e.builderComponents,
|
|
2324
2841
|
linkComponent: e.builderLinkComponent
|
|
2325
2842
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2326
|
-
], 14,
|
|
2843
|
+
], 14, Fo))), 128))
|
|
2327
2844
|
], 4),
|
|
2328
|
-
e.activeTabContent(e.activeTab) ? (
|
|
2845
|
+
e.activeTabContent(e.activeTab) ? (c(), m("div", Do, [
|
|
2329
2846
|
$(s, {
|
|
2330
2847
|
parent: e.builderBlock.id,
|
|
2331
2848
|
path: `component.options.tabs.${e.activeTab}.content`,
|
|
@@ -2334,10 +2851,10 @@ function ao(e, t, n, o, r, i) {
|
|
|
2334
2851
|
registeredComponents: e.builderComponents,
|
|
2335
2852
|
linkComponent: e.builderLinkComponent
|
|
2336
2853
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2337
|
-
])) :
|
|
2854
|
+
])) : S("", !0)
|
|
2338
2855
|
]);
|
|
2339
2856
|
}
|
|
2340
|
-
const
|
|
2857
|
+
const Uo = /* @__PURE__ */ b(Oo, [["render", Lo]]), Mo = {
|
|
2341
2858
|
shouldReceiveBuilderProps: {
|
|
2342
2859
|
builderBlock: !1,
|
|
2343
2860
|
builderContext: !0
|
|
@@ -2359,7 +2876,7 @@ const lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
|
|
|
2359
2876
|
height: "auto",
|
|
2360
2877
|
textAlign: "center"
|
|
2361
2878
|
}
|
|
2362
|
-
},
|
|
2879
|
+
}, Ho = f({
|
|
2363
2880
|
name: "builder-text",
|
|
2364
2881
|
props: ["builderContext", "text"],
|
|
2365
2882
|
computed: {
|
|
@@ -2384,17 +2901,17 @@ const lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
|
|
|
2384
2901
|
);
|
|
2385
2902
|
}
|
|
2386
2903
|
}
|
|
2387
|
-
}),
|
|
2388
|
-
function
|
|
2389
|
-
return
|
|
2904
|
+
}), jo = ["innerHTML"];
|
|
2905
|
+
function Ko(e, t, n, o, r, i) {
|
|
2906
|
+
return c(), m("div", {
|
|
2390
2907
|
class: "builder-text",
|
|
2391
2908
|
innerHTML: e.processedText,
|
|
2392
2909
|
style: {
|
|
2393
2910
|
outline: "none"
|
|
2394
2911
|
}
|
|
2395
|
-
}, null, 8,
|
|
2912
|
+
}, null, 8, jo);
|
|
2396
2913
|
}
|
|
2397
|
-
const
|
|
2914
|
+
const qo = /* @__PURE__ */ b(Ho, [["render", Ko]]), zo = {
|
|
2398
2915
|
name: "Custom Code",
|
|
2399
2916
|
static: !0,
|
|
2400
2917
|
requiredPermissions: ["editCode"],
|
|
@@ -2416,7 +2933,7 @@ const ho = /* @__PURE__ */ b(uo, [["render", mo]]), fo = {
|
|
|
2416
2933
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
2417
2934
|
advanced: !0
|
|
2418
2935
|
}]
|
|
2419
|
-
},
|
|
2936
|
+
}, Jo = f({
|
|
2420
2937
|
name: "builder-custom-code",
|
|
2421
2938
|
props: ["replaceNodes", "code"],
|
|
2422
2939
|
data() {
|
|
@@ -2450,15 +2967,15 @@ const ho = /* @__PURE__ */ b(uo, [["render", mo]]), fo = {
|
|
|
2450
2967
|
}
|
|
2451
2968
|
}
|
|
2452
2969
|
}
|
|
2453
|
-
}),
|
|
2454
|
-
function
|
|
2455
|
-
return
|
|
2970
|
+
}), Go = ["innerHTML"];
|
|
2971
|
+
function Yo(e, t, n, o, r, i) {
|
|
2972
|
+
return c(), m("div", {
|
|
2456
2973
|
ref: "elementRef",
|
|
2457
2974
|
class: J("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
2458
2975
|
innerHTML: e.code
|
|
2459
|
-
}, null, 10,
|
|
2976
|
+
}, null, 10, Go);
|
|
2460
2977
|
}
|
|
2461
|
-
const
|
|
2978
|
+
const Qo = /* @__PURE__ */ b(Jo, [["render", Yo]]), Xo = {
|
|
2462
2979
|
name: "Embed",
|
|
2463
2980
|
static: !0,
|
|
2464
2981
|
inputs: [{
|
|
@@ -2473,7 +2990,7 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), vo = {
|
|
|
2473
2990
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2474
2991
|
hideFromUI: !0
|
|
2475
2992
|
}]
|
|
2476
|
-
},
|
|
2993
|
+
}, Zo = ["text/javascript", "application/javascript", "application/ecmascript"], _o = (e) => Zo.includes(e.type), er = f({
|
|
2477
2994
|
name: "builder-embed",
|
|
2478
2995
|
props: ["content"],
|
|
2479
2996
|
data() {
|
|
@@ -2506,7 +3023,7 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), vo = {
|
|
|
2506
3023
|
this.scriptsInserted.push(n.src);
|
|
2507
3024
|
const o = document.createElement("script");
|
|
2508
3025
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
2509
|
-
} else if (
|
|
3026
|
+
} else if (_o(n) && !this.scriptsRun.includes(n.innerText))
|
|
2510
3027
|
try {
|
|
2511
3028
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
2512
3029
|
} catch (o) {
|
|
@@ -2515,15 +3032,15 @@ const ko = /* @__PURE__ */ b(bo, [["render", yo]]), vo = {
|
|
|
2515
3032
|
}
|
|
2516
3033
|
}
|
|
2517
3034
|
}
|
|
2518
|
-
}),
|
|
2519
|
-
function
|
|
2520
|
-
return
|
|
3035
|
+
}), tr = ["innerHTML"];
|
|
3036
|
+
function nr(e, t, n, o, r, i) {
|
|
3037
|
+
return c(), m("div", {
|
|
2521
3038
|
class: "builder-embed",
|
|
2522
3039
|
ref: "elem",
|
|
2523
3040
|
innerHTML: e.content
|
|
2524
|
-
}, null, 8,
|
|
3041
|
+
}, null, 8, tr);
|
|
2525
3042
|
}
|
|
2526
|
-
const
|
|
3043
|
+
const or = /* @__PURE__ */ b(er, [["render", nr]]), rr = {
|
|
2527
3044
|
name: "Form:Form",
|
|
2528
3045
|
// editableTags: ['builder-form-error']
|
|
2529
3046
|
defaults: {
|
|
@@ -2760,15 +3277,15 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2760
3277
|
builderComponents: !0,
|
|
2761
3278
|
builderLinkComponent: !0
|
|
2762
3279
|
}
|
|
2763
|
-
},
|
|
3280
|
+
}, ir = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], sr = () => {
|
|
2764
3281
|
const e = process.env.NODE_ENV || "production";
|
|
2765
|
-
return
|
|
2766
|
-
},
|
|
3282
|
+
return ir.includes(e) ? e : "production";
|
|
3283
|
+
}, ar = (e, t, n) => {
|
|
2767
3284
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
|
|
2768
3285
|
return o === void 0 || o === e ? n : o;
|
|
2769
|
-
},
|
|
3286
|
+
}, lr = f({
|
|
2770
3287
|
name: "builder-form-component",
|
|
2771
|
-
components: { Block:
|
|
3288
|
+
components: { Block: ye, Blocks: M },
|
|
2772
3289
|
props: [
|
|
2773
3290
|
"builderContext",
|
|
2774
3291
|
"previewState",
|
|
@@ -2797,7 +3314,7 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2797
3314
|
formState: "unsubmitted",
|
|
2798
3315
|
responseData: null,
|
|
2799
3316
|
formErrorMessage: "",
|
|
2800
|
-
filterAttrs:
|
|
3317
|
+
filterAttrs: V
|
|
2801
3318
|
};
|
|
2802
3319
|
},
|
|
2803
3320
|
methods: {
|
|
@@ -2825,40 +3342,40 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2825
3342
|
e.preventDefault();
|
|
2826
3343
|
const o = e.currentTarget || e.target, r = this.customHeaders || {};
|
|
2827
3344
|
let i;
|
|
2828
|
-
const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((
|
|
2829
|
-
let
|
|
2830
|
-
const
|
|
2831
|
-
if (
|
|
2832
|
-
if (
|
|
2833
|
-
if (
|
|
2834
|
-
return
|
|
2835
|
-
key:
|
|
2836
|
-
value:
|
|
3345
|
+
const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((d) => !!d.name).map((d) => {
|
|
3346
|
+
let p;
|
|
3347
|
+
const k = d.name;
|
|
3348
|
+
if (d instanceof HTMLInputElement)
|
|
3349
|
+
if (d.type === "radio") {
|
|
3350
|
+
if (d.checked)
|
|
3351
|
+
return p = d.name, {
|
|
3352
|
+
key: k,
|
|
3353
|
+
value: p
|
|
2837
3354
|
};
|
|
2838
|
-
} else if (
|
|
2839
|
-
|
|
2840
|
-
else if (
|
|
2841
|
-
const
|
|
2842
|
-
isNaN(
|
|
3355
|
+
} else if (d.type === "checkbox")
|
|
3356
|
+
p = d.checked;
|
|
3357
|
+
else if (d.type === "number" || d.type === "range") {
|
|
3358
|
+
const v = d.valueAsNumber;
|
|
3359
|
+
isNaN(v) || (p = v);
|
|
2843
3360
|
} else
|
|
2844
|
-
|
|
3361
|
+
d.type === "file" ? p = d.files : p = d.value;
|
|
2845
3362
|
else
|
|
2846
|
-
|
|
3363
|
+
p = d.value;
|
|
2847
3364
|
return {
|
|
2848
|
-
key:
|
|
2849
|
-
value:
|
|
3365
|
+
key: k,
|
|
3366
|
+
value: p
|
|
2850
3367
|
};
|
|
2851
3368
|
});
|
|
2852
3369
|
let a = this.contentType;
|
|
2853
|
-
if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value:
|
|
2854
|
-
(
|
|
3370
|
+
if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: d }) => {
|
|
3371
|
+
(d instanceof File || Array.isArray(d) && d[0] instanceof File || d instanceof FileList) && (a = "multipart/form-data");
|
|
2855
3372
|
}), a !== "application/json")
|
|
2856
3373
|
i = s;
|
|
2857
3374
|
else {
|
|
2858
|
-
const
|
|
2859
|
-
Array.from(l).forEach(({ value:
|
|
2860
|
-
|
|
2861
|
-
}), i = JSON.stringify(
|
|
3375
|
+
const d = {};
|
|
3376
|
+
Array.from(l).forEach(({ value: p, key: k }) => {
|
|
3377
|
+
Fe(d, k, p);
|
|
3378
|
+
}), i = JSON.stringify(d);
|
|
2862
3379
|
}
|
|
2863
3380
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
2864
3381
|
const u = new CustomEvent("presubmit", {
|
|
@@ -2869,7 +3386,7 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2869
3386
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
|
|
2870
3387
|
return;
|
|
2871
3388
|
this.formState = "sending";
|
|
2872
|
-
const h = `${
|
|
3389
|
+
const h = `${sr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
2873
3390
|
this.sendSubmissionsToEmail || ""
|
|
2874
3391
|
)}&name=${encodeURIComponent(this.name || "")}`;
|
|
2875
3392
|
fetch(
|
|
@@ -2880,59 +3397,59 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2880
3397
|
method: this.method || "post"
|
|
2881
3398
|
}
|
|
2882
3399
|
).then(
|
|
2883
|
-
async (
|
|
2884
|
-
let
|
|
2885
|
-
const
|
|
2886
|
-
if (
|
|
2887
|
-
let
|
|
2888
|
-
|
|
2889
|
-
formErrorMessage:
|
|
3400
|
+
async (d) => {
|
|
3401
|
+
let p;
|
|
3402
|
+
const k = d.headers.get("content-type");
|
|
3403
|
+
if (k && k.indexOf("application/json") !== -1 ? p = await d.json() : p = await d.text(), !d.ok && this.errorMessagePath) {
|
|
3404
|
+
let v = ar(p, this.errorMessagePath);
|
|
3405
|
+
v && (typeof v != "string" && (v = JSON.stringify(v)), this.formErrorMessage = v, this.mergeNewRootState({
|
|
3406
|
+
formErrorMessage: v
|
|
2890
3407
|
}));
|
|
2891
3408
|
}
|
|
2892
|
-
if (this.responseData =
|
|
2893
|
-
const
|
|
3409
|
+
if (this.responseData = p, this.formState = d.ok ? "success" : "error", d.ok) {
|
|
3410
|
+
const v = new CustomEvent("submit:success", {
|
|
2894
3411
|
detail: {
|
|
2895
|
-
res:
|
|
2896
|
-
body:
|
|
3412
|
+
res: d,
|
|
3413
|
+
body: p
|
|
2897
3414
|
}
|
|
2898
3415
|
});
|
|
2899
3416
|
if (this.$refs.formRef) {
|
|
2900
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
3417
|
+
if (this.$refs.formRef.dispatchEvent(v), v.defaultPrevented)
|
|
2901
3418
|
return;
|
|
2902
3419
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
2903
3420
|
}
|
|
2904
3421
|
if (this.successUrl)
|
|
2905
3422
|
if (this.$refs.formRef) {
|
|
2906
|
-
const
|
|
3423
|
+
const O = new CustomEvent("route", {
|
|
2907
3424
|
detail: {
|
|
2908
3425
|
url: this.successUrl
|
|
2909
3426
|
}
|
|
2910
3427
|
});
|
|
2911
|
-
this.$refs.formRef.dispatchEvent(
|
|
3428
|
+
this.$refs.formRef.dispatchEvent(O), O.defaultPrevented || (location.href = this.successUrl);
|
|
2912
3429
|
} else
|
|
2913
3430
|
location.href = this.successUrl;
|
|
2914
3431
|
}
|
|
2915
3432
|
},
|
|
2916
|
-
(
|
|
2917
|
-
const
|
|
3433
|
+
(d) => {
|
|
3434
|
+
const p = new CustomEvent("submit:error", {
|
|
2918
3435
|
detail: {
|
|
2919
|
-
error:
|
|
3436
|
+
error: d
|
|
2920
3437
|
}
|
|
2921
3438
|
});
|
|
2922
|
-
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(
|
|
3439
|
+
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(p), p.defaultPrevented) || (this.responseData = d, this.formState = "error");
|
|
2923
3440
|
}
|
|
2924
3441
|
);
|
|
2925
3442
|
}
|
|
2926
3443
|
}
|
|
2927
3444
|
}
|
|
2928
|
-
}),
|
|
3445
|
+
}), cr = ["validate", "action", "method", "name"], dr = {
|
|
2929
3446
|
key: 3,
|
|
2930
3447
|
class: "builder-form-error-text pre-3i4ezorcfhi"
|
|
2931
3448
|
};
|
|
2932
|
-
function
|
|
3449
|
+
function ur(e, t, n, o, r, i) {
|
|
2933
3450
|
var a;
|
|
2934
|
-
const s =
|
|
2935
|
-
return
|
|
3451
|
+
const s = y("Block"), l = y("Blocks");
|
|
3452
|
+
return c(), m("form", C({
|
|
2936
3453
|
validate: e.validate,
|
|
2937
3454
|
ref: "formRef",
|
|
2938
3455
|
action: !e.sendWithJs && e.action,
|
|
@@ -2940,35 +3457,35 @@ function Wo(e, t, n, o, r, i) {
|
|
|
2940
3457
|
name: e.name,
|
|
2941
3458
|
onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
|
|
2942
3459
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
2943
|
-
e.builderBlock && e.builderBlock.children ? (
|
|
3460
|
+
e.builderBlock && e.builderBlock.children ? (c(!0), m(w, { key: 0 }, A((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (c(), g(s, {
|
|
2944
3461
|
key: `form-block-${e.idx}`,
|
|
2945
3462
|
block: u,
|
|
2946
3463
|
context: e.builderContext,
|
|
2947
3464
|
registeredComponents: e.builderComponents,
|
|
2948
3465
|
linkComponent: e.builderLinkComponent
|
|
2949
|
-
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) :
|
|
2950
|
-
e.submissionState() === "error" ? (
|
|
3466
|
+
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : S("", !0),
|
|
3467
|
+
e.submissionState() === "error" ? (c(), g(l, {
|
|
2951
3468
|
key: 1,
|
|
2952
3469
|
path: "errorMessage",
|
|
2953
3470
|
blocks: e.errorMessage,
|
|
2954
3471
|
context: e.builderContext
|
|
2955
|
-
}, null, 8, ["blocks", "context"])) :
|
|
2956
|
-
e.submissionState() === "sending" ? (
|
|
3472
|
+
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
3473
|
+
e.submissionState() === "sending" ? (c(), g(l, {
|
|
2957
3474
|
key: 2,
|
|
2958
3475
|
path: "sendingMessage",
|
|
2959
3476
|
blocks: e.sendingMessage,
|
|
2960
3477
|
context: e.builderContext
|
|
2961
|
-
}, null, 8, ["blocks", "context"])) :
|
|
2962
|
-
e.submissionState() === "error" && e.responseData ? (
|
|
2963
|
-
e.submissionState() === "success" ? (
|
|
3478
|
+
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
3479
|
+
e.submissionState() === "error" && e.responseData ? (c(), m("pre", dr, te(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
|
|
3480
|
+
e.submissionState() === "success" ? (c(), g(l, {
|
|
2964
3481
|
key: 4,
|
|
2965
3482
|
path: "successMessage",
|
|
2966
3483
|
blocks: e.successMessage,
|
|
2967
3484
|
context: e.builderContext
|
|
2968
|
-
}, null, 8, ["blocks", "context"])) :
|
|
2969
|
-
], 16,
|
|
3485
|
+
}, null, 8, ["blocks", "context"])) : S("", !0)
|
|
3486
|
+
], 16, cr);
|
|
2970
3487
|
}
|
|
2971
|
-
const
|
|
3488
|
+
const pr = /* @__PURE__ */ b(lr, [["render", ur], ["__scopeId", "data-v-489330f7"]]), mr = {
|
|
2972
3489
|
name: "Form:Input",
|
|
2973
3490
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2974
3491
|
inputs: [
|
|
@@ -3019,7 +3536,7 @@ const No = /* @__PURE__ */ b(xo, [["render", Wo], ["__scopeId", "data-v-489330f7
|
|
|
3019
3536
|
borderStyle: "solid",
|
|
3020
3537
|
borderColor: "#ccc"
|
|
3021
3538
|
}
|
|
3022
|
-
},
|
|
3539
|
+
}, hr = f({
|
|
3023
3540
|
name: "builder-form-input-component",
|
|
3024
3541
|
props: [
|
|
3025
3542
|
"attributes",
|
|
@@ -3031,11 +3548,11 @@ const No = /* @__PURE__ */ b(xo, [["render", Wo], ["__scopeId", "data-v-489330f7
|
|
|
3031
3548
|
"required"
|
|
3032
3549
|
],
|
|
3033
3550
|
data() {
|
|
3034
|
-
return { isEditing: R, filterAttrs:
|
|
3551
|
+
return { isEditing: R, filterAttrs: V };
|
|
3035
3552
|
}
|
|
3036
|
-
}),
|
|
3037
|
-
function
|
|
3038
|
-
return
|
|
3553
|
+
}), fr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3554
|
+
function br(e, t, n, o, r, i) {
|
|
3555
|
+
return c(), m("input", C({
|
|
3039
3556
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3040
3557
|
placeholder: e.placeholder,
|
|
3041
3558
|
type: e.type,
|
|
@@ -3043,9 +3560,9 @@ function Lo(e, t, n, o, r, i) {
|
|
|
3043
3560
|
value: e.value,
|
|
3044
3561
|
defaultValue: e.defaultValue,
|
|
3045
3562
|
required: e.required
|
|
3046
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
3563
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, fr);
|
|
3047
3564
|
}
|
|
3048
|
-
const
|
|
3565
|
+
const gr = /* @__PURE__ */ b(hr, [["render", br]]), yr = {
|
|
3049
3566
|
name: "Form:Select",
|
|
3050
3567
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3051
3568
|
defaultStyles: {
|
|
@@ -3087,28 +3604,28 @@ const Uo = /* @__PURE__ */ b(Oo, [["render", Lo]]), Mo = {
|
|
|
3087
3604
|
}],
|
|
3088
3605
|
static: !0,
|
|
3089
3606
|
noWrap: !0
|
|
3090
|
-
},
|
|
3607
|
+
}, kr = f({
|
|
3091
3608
|
name: "builder-select-component",
|
|
3092
3609
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
3093
3610
|
data() {
|
|
3094
|
-
return { isEditing: R, filterAttrs:
|
|
3611
|
+
return { isEditing: R, filterAttrs: V };
|
|
3095
3612
|
}
|
|
3096
|
-
}),
|
|
3097
|
-
function
|
|
3098
|
-
return
|
|
3613
|
+
}), vr = ["value", "defaultValue", "name", "required"], Sr = ["value"];
|
|
3614
|
+
function Cr(e, t, n, o, r, i) {
|
|
3615
|
+
return c(), m("select", C({
|
|
3099
3616
|
value: e.value,
|
|
3100
3617
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3101
3618
|
defaultValue: e.defaultValue,
|
|
3102
3619
|
name: e.name,
|
|
3103
3620
|
required: e.required
|
|
3104
3621
|
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3105
|
-
(
|
|
3622
|
+
(c(!0), m(w, null, A(e.options, (s, l) => (c(), m("option", {
|
|
3106
3623
|
key: `${s.name}-${l}`,
|
|
3107
3624
|
value: s.value
|
|
3108
|
-
}, te(s.name || s.value), 9,
|
|
3109
|
-
], 16,
|
|
3625
|
+
}, te(s.name || s.value), 9, Sr))), 128))
|
|
3626
|
+
], 16, vr);
|
|
3110
3627
|
}
|
|
3111
|
-
const
|
|
3628
|
+
const wr = /* @__PURE__ */ b(kr, [["render", Cr]]), Tr = {
|
|
3112
3629
|
name: "Form:SubmitButton",
|
|
3113
3630
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3114
3631
|
defaultStyles: {
|
|
@@ -3133,17 +3650,17 @@ const zo = /* @__PURE__ */ b(jo, [["render", qo]]), Jo = {
|
|
|
3133
3650
|
// that only shows if advanced setting is flipped
|
|
3134
3651
|
// TODO: defaultChildren
|
|
3135
3652
|
// canHaveChildren: true,
|
|
3136
|
-
},
|
|
3653
|
+
}, Ir = f({
|
|
3137
3654
|
name: "builder-submit-button",
|
|
3138
3655
|
props: ["attributes", "text"],
|
|
3139
3656
|
data() {
|
|
3140
|
-
return { filterAttrs:
|
|
3657
|
+
return { filterAttrs: V };
|
|
3141
3658
|
}
|
|
3142
3659
|
});
|
|
3143
|
-
function
|
|
3144
|
-
return
|
|
3660
|
+
function $r(e, t, n, o, r, i) {
|
|
3661
|
+
return c(), m("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), te(e.text), 17);
|
|
3145
3662
|
}
|
|
3146
|
-
const
|
|
3663
|
+
const Rr = /* @__PURE__ */ b(Ir, [["render", $r]]), Br = {
|
|
3147
3664
|
name: "Form:TextArea",
|
|
3148
3665
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3149
3666
|
inputs: [{
|
|
@@ -3179,7 +3696,7 @@ const Qo = /* @__PURE__ */ b(Go, [["render", Yo]]), Xo = {
|
|
|
3179
3696
|
},
|
|
3180
3697
|
static: !0,
|
|
3181
3698
|
noWrap: !0
|
|
3182
|
-
},
|
|
3699
|
+
}, Er = f({
|
|
3183
3700
|
name: "builder-textarea",
|
|
3184
3701
|
props: [
|
|
3185
3702
|
"attributes",
|
|
@@ -3190,19 +3707,19 @@ const Qo = /* @__PURE__ */ b(Go, [["render", Yo]]), Xo = {
|
|
|
3190
3707
|
"required"
|
|
3191
3708
|
],
|
|
3192
3709
|
data() {
|
|
3193
|
-
return { filterAttrs:
|
|
3710
|
+
return { filterAttrs: V };
|
|
3194
3711
|
}
|
|
3195
|
-
}),
|
|
3196
|
-
function
|
|
3197
|
-
return
|
|
3712
|
+
}), Pr = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
3713
|
+
function xr(e, t, n, o, r, i) {
|
|
3714
|
+
return c(), m("textarea", C({
|
|
3198
3715
|
placeholder: e.placeholder,
|
|
3199
3716
|
name: e.name,
|
|
3200
3717
|
value: e.value,
|
|
3201
3718
|
defaultValue: e.defaultValue,
|
|
3202
3719
|
required: e.required
|
|
3203
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
3720
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Pr);
|
|
3204
3721
|
}
|
|
3205
|
-
const
|
|
3722
|
+
const Ar = /* @__PURE__ */ b(Er, [["render", xr]]), Vr = {
|
|
3206
3723
|
// friendlyName?
|
|
3207
3724
|
name: "Raw:Img",
|
|
3208
3725
|
hideFromInsertMenu: !0,
|
|
@@ -3216,7 +3733,7 @@ const tr = /* @__PURE__ */ b(Zo, [["render", er]]), nr = {
|
|
|
3216
3733
|
}],
|
|
3217
3734
|
noWrap: !0,
|
|
3218
3735
|
static: !0
|
|
3219
|
-
},
|
|
3736
|
+
}, Wr = f({
|
|
3220
3737
|
name: "builder-img-component",
|
|
3221
3738
|
props: [
|
|
3222
3739
|
"backgroundSize",
|
|
@@ -3227,11 +3744,11 @@ const tr = /* @__PURE__ */ b(Zo, [["render", er]]), nr = {
|
|
|
3227
3744
|
"attributes"
|
|
3228
3745
|
],
|
|
3229
3746
|
data() {
|
|
3230
|
-
return { isEditing: R, filterAttrs:
|
|
3747
|
+
return { isEditing: R, filterAttrs: V };
|
|
3231
3748
|
}
|
|
3232
|
-
}),
|
|
3233
|
-
function
|
|
3234
|
-
return
|
|
3749
|
+
}), Nr = ["alt", "src"];
|
|
3750
|
+
function Or(e, t, n, o, r, i) {
|
|
3751
|
+
return c(), m("img", C({
|
|
3235
3752
|
style: {
|
|
3236
3753
|
objectFit: e.backgroundSize || "cover",
|
|
3237
3754
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -3239,9 +3756,9 @@ function ir(e, t, n, o, r, i) {
|
|
|
3239
3756
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
3240
3757
|
alt: e.altText,
|
|
3241
3758
|
src: e.imgSrc || e.image
|
|
3242
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
3759
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Nr);
|
|
3243
3760
|
}
|
|
3244
|
-
const
|
|
3761
|
+
const Fr = /* @__PURE__ */ b(Wr, [["render", Or]]), Dr = {
|
|
3245
3762
|
name: "Video",
|
|
3246
3763
|
canHaveChildren: !0,
|
|
3247
3764
|
defaultStyles: {
|
|
@@ -3325,7 +3842,7 @@ const sr = /* @__PURE__ */ b(or, [["render", ir]]), ar = {
|
|
|
3325
3842
|
shouldReceiveBuilderProps: {
|
|
3326
3843
|
builderBlock: !0
|
|
3327
3844
|
}
|
|
3328
|
-
},
|
|
3845
|
+
}, Lr = f({
|
|
3329
3846
|
name: "builder-video",
|
|
3330
3847
|
props: [
|
|
3331
3848
|
"autoPlay",
|
|
@@ -3370,16 +3887,16 @@ const sr = /* @__PURE__ */ b(or, [["render", ir]]), ar = {
|
|
|
3370
3887
|
};
|
|
3371
3888
|
}
|
|
3372
3889
|
}
|
|
3373
|
-
}),
|
|
3890
|
+
}), Ur = { style: {
|
|
3374
3891
|
position: "relative"
|
|
3375
|
-
} },
|
|
3892
|
+
} }, Mr = ["preload", "src", "poster"], Hr = ["src"], jr = {
|
|
3376
3893
|
key: 1,
|
|
3377
3894
|
style: {
|
|
3378
3895
|
display: "flex",
|
|
3379
3896
|
flexDirection: "column",
|
|
3380
3897
|
alignItems: "stretch"
|
|
3381
3898
|
}
|
|
3382
|
-
},
|
|
3899
|
+
}, Kr = {
|
|
3383
3900
|
key: 2,
|
|
3384
3901
|
style: {
|
|
3385
3902
|
pointerEvents: "none",
|
|
@@ -3393,9 +3910,9 @@ const sr = /* @__PURE__ */ b(or, [["render", ir]]), ar = {
|
|
|
3393
3910
|
height: "100%"
|
|
3394
3911
|
}
|
|
3395
3912
|
};
|
|
3396
|
-
function
|
|
3397
|
-
var s, l, a, u, h,
|
|
3398
|
-
return
|
|
3913
|
+
function qr(e, t, n, o, r, i) {
|
|
3914
|
+
var s, l, a, u, h, d, p;
|
|
3915
|
+
return c(), m("div", Ur, [
|
|
3399
3916
|
z("video", C({
|
|
3400
3917
|
class: "builder-video",
|
|
3401
3918
|
preload: e.preload || "metadata",
|
|
@@ -3416,13 +3933,13 @@ function hr(e, t, n, o, r, i) {
|
|
|
3416
3933
|
src: e.video || "no-src",
|
|
3417
3934
|
poster: e.posterImage
|
|
3418
3935
|
}, e.spreadProps), [
|
|
3419
|
-
e.lazyLoad ?
|
|
3936
|
+
e.lazyLoad ? S("", !0) : (c(), m("source", {
|
|
3420
3937
|
key: 0,
|
|
3421
3938
|
type: "video/mp4",
|
|
3422
3939
|
src: e.video
|
|
3423
|
-
}, null, 8,
|
|
3424
|
-
], 16,
|
|
3425
|
-
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (
|
|
3940
|
+
}, null, 8, Hr))
|
|
3941
|
+
], 16, Mr),
|
|
3942
|
+
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (c(), m("div", {
|
|
3426
3943
|
key: 0,
|
|
3427
3944
|
style: D({
|
|
3428
3945
|
width: "100%",
|
|
@@ -3430,83 +3947,73 @@ function hr(e, t, n, o, r, i) {
|
|
|
3430
3947
|
pointerEvents: "none",
|
|
3431
3948
|
fontSize: "0px"
|
|
3432
3949
|
})
|
|
3433
|
-
}, null, 4)) :
|
|
3434
|
-
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (
|
|
3435
|
-
|
|
3436
|
-
])) :
|
|
3437
|
-
(
|
|
3438
|
-
|
|
3439
|
-
])) :
|
|
3950
|
+
}, null, 4)) : S("", !0),
|
|
3951
|
+
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), m("div", jr, [
|
|
3952
|
+
x(e.$slots, "default")
|
|
3953
|
+
])) : S("", !0),
|
|
3954
|
+
(p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && !e.fitContent ? (c(), m("div", Kr, [
|
|
3955
|
+
x(e.$slots, "default")
|
|
3956
|
+
])) : S("", !0)
|
|
3440
3957
|
]);
|
|
3441
3958
|
}
|
|
3442
|
-
const
|
|
3443
|
-
component:
|
|
3444
|
-
...
|
|
3959
|
+
const zr = /* @__PURE__ */ b(Lr, [["render", qr]]), Jr = () => [{
|
|
3960
|
+
component: Qo,
|
|
3961
|
+
...zo
|
|
3445
3962
|
}, {
|
|
3446
|
-
component:
|
|
3447
|
-
...
|
|
3963
|
+
component: or,
|
|
3964
|
+
...Xo
|
|
3448
3965
|
}, {
|
|
3449
|
-
component:
|
|
3450
|
-
...
|
|
3966
|
+
component: pr,
|
|
3967
|
+
...rr
|
|
3451
3968
|
}, {
|
|
3452
|
-
component:
|
|
3453
|
-
...
|
|
3969
|
+
component: gr,
|
|
3970
|
+
...mr
|
|
3454
3971
|
}, {
|
|
3455
|
-
component:
|
|
3456
|
-
...
|
|
3972
|
+
component: Rr,
|
|
3973
|
+
...Tr
|
|
3457
3974
|
}, {
|
|
3458
|
-
component:
|
|
3459
|
-
...
|
|
3975
|
+
component: wr,
|
|
3976
|
+
...yr
|
|
3460
3977
|
}, {
|
|
3461
|
-
component:
|
|
3462
|
-
...
|
|
3978
|
+
component: Ar,
|
|
3979
|
+
...Br
|
|
3463
3980
|
}, {
|
|
3464
|
-
component:
|
|
3465
|
-
...
|
|
3981
|
+
component: Fr,
|
|
3982
|
+
...Vr
|
|
3466
3983
|
}, {
|
|
3467
|
-
component:
|
|
3468
|
-
...
|
|
3469
|
-
}],
|
|
3470
|
-
component:
|
|
3471
|
-
...
|
|
3984
|
+
component: zr,
|
|
3985
|
+
...Dr
|
|
3986
|
+
}], Be = () => [{
|
|
3987
|
+
component: St,
|
|
3988
|
+
...Io
|
|
3472
3989
|
}, {
|
|
3473
|
-
component:
|
|
3474
|
-
|
|
3990
|
+
component: oo,
|
|
3991
|
+
...$o
|
|
3475
3992
|
}, {
|
|
3476
|
-
component:
|
|
3477
|
-
...
|
|
3993
|
+
component: so,
|
|
3994
|
+
...Ro
|
|
3478
3995
|
}, {
|
|
3479
|
-
component:
|
|
3480
|
-
...
|
|
3996
|
+
component: fo,
|
|
3997
|
+
...Bo
|
|
3481
3998
|
}, {
|
|
3482
|
-
component:
|
|
3483
|
-
...
|
|
3999
|
+
component: yo,
|
|
4000
|
+
...Eo
|
|
3484
4001
|
}, {
|
|
3485
|
-
component:
|
|
3486
|
-
...
|
|
4002
|
+
component: Vo,
|
|
4003
|
+
...Po
|
|
3487
4004
|
}, {
|
|
3488
|
-
component:
|
|
3489
|
-
...
|
|
4005
|
+
component: Bi,
|
|
4006
|
+
...Wo
|
|
3490
4007
|
}, {
|
|
3491
|
-
component:
|
|
3492
|
-
...
|
|
4008
|
+
component: qo,
|
|
4009
|
+
...Mo
|
|
3493
4010
|
}, {
|
|
3494
|
-
component:
|
|
3495
|
-
...
|
|
4011
|
+
component: Uo,
|
|
4012
|
+
...No
|
|
3496
4013
|
}, {
|
|
3497
|
-
component:
|
|
3498
|
-
...
|
|
3499
|
-
}, ...
|
|
3500
|
-
type: "builder.registerComponent",
|
|
3501
|
-
data: ce(e)
|
|
3502
|
-
}), yr = (e) => {
|
|
3503
|
-
const t = e.toString().trim();
|
|
3504
|
-
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
3505
|
-
};
|
|
3506
|
-
function ce(e) {
|
|
3507
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? yr(n) : n));
|
|
3508
|
-
}
|
|
3509
|
-
const kr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4014
|
+
component: To,
|
|
4015
|
+
...ko
|
|
4016
|
+
}, ...Jr()], Gr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3510
4017
|
function getAndSetVariantId() {
|
|
3511
4018
|
function setCookie(name, value, days) {
|
|
3512
4019
|
let expires = '';
|
|
@@ -3562,348 +4069,73 @@ const kr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarg
|
|
|
3562
4069
|
}).join('');
|
|
3563
4070
|
styleEl.innerHTML = newStyleStr;
|
|
3564
4071
|
}
|
|
3565
|
-
}`,
|
|
3566
|
-
if (!navigator.cookieEnabled) {
|
|
3567
|
-
return;
|
|
3568
|
-
}
|
|
3569
|
-
function getCookie(name) {
|
|
3570
|
-
const nameEQ = name + '=';
|
|
3571
|
-
const ca = document.cookie.split(';');
|
|
3572
|
-
for (let i = 0; i < ca.length; i++) {
|
|
3573
|
-
let c = ca[i];
|
|
3574
|
-
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
|
|
3575
|
-
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
|
|
3576
|
-
}
|
|
3577
|
-
return null;
|
|
3578
|
-
}
|
|
3579
|
-
const cookieName = \`builder.tests.\${defaultContentId}\`;
|
|
3580
|
-
const winningVariant = getCookie(cookieName);
|
|
3581
|
-
const parentDiv = document.currentScript?.parentElement;
|
|
3582
|
-
const isDefaultContent = variantContentId === defaultContentId;
|
|
3583
|
-
const isWinningVariant = winningVariant === variantContentId;
|
|
3584
|
-
if (isWinningVariant && !isDefaultContent) {
|
|
3585
|
-
parentDiv?.removeAttribute('hidden');
|
|
3586
|
-
parentDiv?.removeAttribute('aria-hidden');
|
|
3587
|
-
} else if (!isWinningVariant && isDefaultContent) {
|
|
3588
|
-
parentDiv?.setAttribute('hidden', 'true');
|
|
3589
|
-
parentDiv?.setAttribute('aria-hidden', 'true');
|
|
3590
|
-
}
|
|
3591
|
-
if (isHydrationTarget) {
|
|
3592
|
-
if (!isWinningVariant) {
|
|
3593
|
-
parentDiv?.remove();
|
|
3594
|
-
}
|
|
3595
|
-
const thisScriptEl = document.currentScript;
|
|
3596
|
-
thisScriptEl?.remove();
|
|
3597
|
-
}
|
|
3598
|
-
return;
|
|
3599
|
-
}`, Xe = "builderIoAbTest", Ze = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3600
|
-
...t,
|
|
3601
|
-
testVariationId: t.id,
|
|
3602
|
-
id: e == null ? void 0 : e.id
|
|
3603
|
-
})), Sr = ({
|
|
3604
|
-
canTrack: e,
|
|
3605
|
-
content: t
|
|
3606
|
-
}) => !(!(_(t).length > 0) || !e), Cr = (e) => e === "react" || e === "reactNative", _e = Cr(x), wr = () => `
|
|
3607
|
-
window.${Xe} = ${kr}
|
|
3608
|
-
window.${Ze} = ${vr}
|
|
3609
|
-
`, Tr = (e, t) => `
|
|
3610
|
-
window.${Xe}(
|
|
3611
|
-
"${t}",${JSON.stringify(e)}, ${_e}
|
|
3612
|
-
)`, Ir = ({
|
|
3613
|
-
contentId: e,
|
|
3614
|
-
variationId: t
|
|
3615
|
-
}) => `window.${Ze}(
|
|
3616
|
-
"${t}", "${e}", ${_e}
|
|
3617
|
-
)`, et = f({
|
|
3618
|
-
render() {
|
|
3619
|
-
return xe("script", {
|
|
3620
|
-
innerHTML: this.scriptStr,
|
|
3621
|
-
"data-id": this.id,
|
|
3622
|
-
nonce: this.nonce
|
|
3623
|
-
});
|
|
3624
|
-
},
|
|
3625
|
-
name: "inlined-script",
|
|
3626
|
-
props: ["scriptStr", "id", "nonce"]
|
|
3627
|
-
});
|
|
3628
|
-
function $r() {
|
|
3629
|
-
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
3630
|
-
}
|
|
3631
|
-
function Rr() {
|
|
3632
|
-
const e = $r().fetch;
|
|
3633
|
-
if (typeof e > "u")
|
|
3634
|
-
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
3635
|
-
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
3636
|
-
return e;
|
|
3637
|
-
}
|
|
3638
|
-
const tt = Rr();
|
|
3639
|
-
function de(e, t = null, n = ".") {
|
|
3640
|
-
return Object.keys(e).reduce((o, r) => {
|
|
3641
|
-
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
3642
|
-
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
3643
|
-
...o,
|
|
3644
|
-
...de(i, s, n)
|
|
3645
|
-
} : {
|
|
3646
|
-
...o,
|
|
3647
|
-
[s]: i
|
|
3648
|
-
};
|
|
3649
|
-
}, {});
|
|
3650
|
-
}
|
|
3651
|
-
function nt(e, t, n = {}) {
|
|
3652
|
-
for (const o in e) {
|
|
3653
|
-
const r = e[o], i = t ? t + "." + o : o;
|
|
3654
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? nt(r, i, n) : n[i] = r;
|
|
3655
|
-
}
|
|
3656
|
-
return n;
|
|
3657
|
-
}
|
|
3658
|
-
const Br = "v3", Te = "builder.", Pr = "options.", ot = (e) => {
|
|
3659
|
-
if (!e)
|
|
3660
|
-
return {};
|
|
3661
|
-
const t = Ve(e), n = {};
|
|
3662
|
-
return Object.keys(t).forEach((o) => {
|
|
3663
|
-
if (o.startsWith(Te)) {
|
|
3664
|
-
const r = o.replace(Te, "").replace(Pr, "");
|
|
3665
|
-
n[r] = t[o];
|
|
3666
|
-
}
|
|
3667
|
-
}), n;
|
|
3668
|
-
}, Er = () => {
|
|
3669
|
-
if (!T())
|
|
3670
|
-
return {};
|
|
3671
|
-
const e = new URLSearchParams(window.location.search);
|
|
3672
|
-
return ot(e);
|
|
3673
|
-
}, Ie = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ye = (e) => {
|
|
3674
|
-
const {
|
|
3675
|
-
limit: t = 30,
|
|
3676
|
-
userAttributes: n,
|
|
3677
|
-
query: o,
|
|
3678
|
-
model: r,
|
|
3679
|
-
apiKey: i,
|
|
3680
|
-
enrich: s,
|
|
3681
|
-
locale: l,
|
|
3682
|
-
apiVersion: a = Br,
|
|
3683
|
-
fields: u,
|
|
3684
|
-
omit: h,
|
|
3685
|
-
offset: c,
|
|
3686
|
-
cacheSeconds: m,
|
|
3687
|
-
staleCacheSeconds: S,
|
|
3688
|
-
sort: y,
|
|
3689
|
-
includeUnpublished: F
|
|
3690
|
-
} = e;
|
|
3691
|
-
if (!i)
|
|
3692
|
-
throw new Error("Missing API key");
|
|
3693
|
-
if (!["v3"].includes(a))
|
|
3694
|
-
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
3695
|
-
const X = t !== 1, w = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
|
|
3696
|
-
if (w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(X)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l), s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(c) && c > -1 && w.searchParams.set("offset", String(Math.floor(c))), typeof F == "boolean" && w.searchParams.set("includeUnpublished", String(F)), m && Ie(m) && w.searchParams.set("cacheSeconds", String(m)), S && Ie(S) && w.searchParams.set("staleCacheSeconds", String(S)), y) {
|
|
3697
|
-
const O = de({
|
|
3698
|
-
sort: y
|
|
3699
|
-
});
|
|
3700
|
-
for (const j in O)
|
|
3701
|
-
w.searchParams.set(j, JSON.stringify(O[j]));
|
|
3702
|
-
}
|
|
3703
|
-
const ut = {
|
|
3704
|
-
...Er(),
|
|
3705
|
-
...Ve(e.options || {})
|
|
3706
|
-
}, ve = de(ut);
|
|
3707
|
-
for (const O in ve)
|
|
3708
|
-
w.searchParams.set(O, String(ve[O]));
|
|
3709
|
-
if (n && w.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
3710
|
-
const O = nt({
|
|
3711
|
-
query: o
|
|
3712
|
-
});
|
|
3713
|
-
for (const j in O)
|
|
3714
|
-
w.searchParams.set(j, JSON.stringify(O[j]));
|
|
3715
|
-
}
|
|
3716
|
-
return w;
|
|
3717
|
-
}, xr = (e) => "results" in e;
|
|
3718
|
-
async function ke(e) {
|
|
3719
|
-
const t = await Wr({
|
|
3720
|
-
...e,
|
|
3721
|
-
limit: 1
|
|
3722
|
-
});
|
|
3723
|
-
return t && t[0] || null;
|
|
3724
|
-
}
|
|
3725
|
-
const Ar = async (e) => {
|
|
3726
|
-
const t = ye(e);
|
|
3727
|
-
return await (await (e.fetch ?? tt)(t.href, e.fetchOptions)).json();
|
|
3728
|
-
}, Vr = async (e, t, n = ye(e)) => {
|
|
3729
|
-
const o = Y(e.canTrack);
|
|
3730
|
-
if (n.search.includes("preview="), !o || !(T() || x === "reactNative"))
|
|
3731
|
-
return t.results;
|
|
3732
|
-
try {
|
|
3733
|
-
const r = [];
|
|
3734
|
-
for (const i of t.results)
|
|
3735
|
-
r.push(await Un({
|
|
3736
|
-
item: i,
|
|
3737
|
-
canTrack: o
|
|
3738
|
-
}));
|
|
3739
|
-
t.results = r;
|
|
3740
|
-
} catch (r) {
|
|
3741
|
-
B.error("Could not process A/B tests. ", r);
|
|
3742
|
-
}
|
|
3743
|
-
return t.results;
|
|
3744
|
-
};
|
|
3745
|
-
async function Wr(e) {
|
|
3746
|
-
try {
|
|
3747
|
-
const t = ye(e), n = await Ar(e);
|
|
3748
|
-
return xr(n) ? Vr(e, n) : (B.error("Error fetching data. ", {
|
|
3749
|
-
url: t,
|
|
3750
|
-
content: n,
|
|
3751
|
-
options: e
|
|
3752
|
-
}), null);
|
|
3753
|
-
} catch (t) {
|
|
3754
|
-
return B.error("Error fetching data. ", t), null;
|
|
3755
|
-
}
|
|
3756
|
-
}
|
|
3757
|
-
function Nr(e) {
|
|
3758
|
-
const t = e || (T() ? window.location.search : void 0);
|
|
3759
|
-
return t ? We(t).indexOf("builder.preview=") !== -1 : !1;
|
|
3760
|
-
}
|
|
3761
|
-
function Fr() {
|
|
3762
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
3763
|
-
const t = Math.random() * 16 | 0;
|
|
3764
|
-
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
3765
|
-
});
|
|
3766
|
-
}
|
|
3767
|
-
function rt() {
|
|
3768
|
-
return Fr().replace(/-/g, "");
|
|
3769
|
-
}
|
|
3770
|
-
const it = "builderSessionId", Or = async ({
|
|
3771
|
-
canTrack: e
|
|
3772
|
-
}) => {
|
|
3773
|
-
if (!e)
|
|
3774
|
-
return;
|
|
3775
|
-
const t = await ze({
|
|
3776
|
-
name: it,
|
|
3777
|
-
canTrack: e
|
|
3778
|
-
});
|
|
3779
|
-
if (L(t))
|
|
3780
|
-
return t;
|
|
3781
|
-
{
|
|
3782
|
-
const n = Dr();
|
|
3783
|
-
return Lr({
|
|
3784
|
-
id: n,
|
|
3785
|
-
canTrack: e
|
|
3786
|
-
}), n;
|
|
3787
|
-
}
|
|
3788
|
-
}, Dr = () => rt(), Lr = ({
|
|
3789
|
-
id: e,
|
|
3790
|
-
canTrack: t
|
|
3791
|
-
}) => Je({
|
|
3792
|
-
name: it,
|
|
3793
|
-
value: e,
|
|
3794
|
-
canTrack: t
|
|
3795
|
-
}), st = () => T() && typeof localStorage < "u" ? localStorage : void 0, Ur = ({
|
|
3796
|
-
key: e,
|
|
3797
|
-
canTrack: t
|
|
3798
|
-
}) => {
|
|
3799
|
-
var n;
|
|
3800
|
-
try {
|
|
3801
|
-
return t ? (n = st()) == null ? void 0 : n.getItem(e) : void 0;
|
|
3802
|
-
} catch (o) {
|
|
3803
|
-
console.debug("[LocalStorage] GET error: ", o);
|
|
3804
|
-
return;
|
|
3805
|
-
}
|
|
3806
|
-
}, Mr = ({
|
|
3807
|
-
key: e,
|
|
3808
|
-
canTrack: t,
|
|
3809
|
-
value: n
|
|
3810
|
-
}) => {
|
|
3811
|
-
var o;
|
|
3812
|
-
try {
|
|
3813
|
-
t && ((o = st()) == null || o.setItem(e, n));
|
|
3814
|
-
} catch (r) {
|
|
3815
|
-
console.debug("[LocalStorage] SET error: ", r);
|
|
3816
|
-
}
|
|
3817
|
-
}, at = "builderVisitorId", jr = ({
|
|
3818
|
-
canTrack: e
|
|
3819
|
-
}) => {
|
|
3820
|
-
if (!e)
|
|
4072
|
+
}`, Yr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4073
|
+
if (!navigator.cookieEnabled) {
|
|
3821
4074
|
return;
|
|
3822
|
-
const t = Ur({
|
|
3823
|
-
key: at,
|
|
3824
|
-
canTrack: e
|
|
3825
|
-
});
|
|
3826
|
-
if (L(t))
|
|
3827
|
-
return t;
|
|
3828
|
-
{
|
|
3829
|
-
const n = Hr();
|
|
3830
|
-
return Kr({
|
|
3831
|
-
id: n,
|
|
3832
|
-
canTrack: e
|
|
3833
|
-
}), n;
|
|
3834
4075
|
}
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
}
|
|
3843
|
-
|
|
3844
|
-
}) => {
|
|
3845
|
-
if (!e)
|
|
3846
|
-
return {
|
|
3847
|
-
visitorId: void 0,
|
|
3848
|
-
sessionId: void 0
|
|
3849
|
-
};
|
|
3850
|
-
const t = await Or({
|
|
3851
|
-
canTrack: e
|
|
3852
|
-
}), n = jr({
|
|
3853
|
-
canTrack: e
|
|
3854
|
-
});
|
|
3855
|
-
return {
|
|
3856
|
-
sessionId: t,
|
|
3857
|
-
visitorId: n
|
|
3858
|
-
};
|
|
3859
|
-
}, zr = async ({
|
|
3860
|
-
type: e,
|
|
3861
|
-
canTrack: t,
|
|
3862
|
-
apiKey: n,
|
|
3863
|
-
metadata: o,
|
|
3864
|
-
...r
|
|
3865
|
-
}) => ({
|
|
3866
|
-
type: e,
|
|
3867
|
-
data: {
|
|
3868
|
-
...r,
|
|
3869
|
-
metadata: {
|
|
3870
|
-
url: location.href,
|
|
3871
|
-
...o
|
|
3872
|
-
},
|
|
3873
|
-
...await qr({
|
|
3874
|
-
canTrack: t
|
|
3875
|
-
}),
|
|
3876
|
-
userAttributes: Ne(),
|
|
3877
|
-
ownerId: n
|
|
4076
|
+
function getCookie(name) {
|
|
4077
|
+
const nameEQ = name + '=';
|
|
4078
|
+
const ca = document.cookie.split(';');
|
|
4079
|
+
for (let i = 0; i < ca.length; i++) {
|
|
4080
|
+
let c = ca[i];
|
|
4081
|
+
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
|
|
4082
|
+
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
|
|
4083
|
+
}
|
|
4084
|
+
return null;
|
|
3878
4085
|
}
|
|
3879
|
-
}
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
4086
|
+
const cookieName = \`builder.tests.\${defaultContentId}\`;
|
|
4087
|
+
const winningVariant = getCookie(cookieName);
|
|
4088
|
+
const parentDiv = document.currentScript?.parentElement;
|
|
4089
|
+
const isDefaultContent = variantContentId === defaultContentId;
|
|
4090
|
+
const isWinningVariant = winningVariant === variantContentId;
|
|
4091
|
+
if (isWinningVariant && !isDefaultContent) {
|
|
4092
|
+
parentDiv?.removeAttribute('hidden');
|
|
4093
|
+
parentDiv?.removeAttribute('aria-hidden');
|
|
4094
|
+
} else if (!isWinningVariant && isDefaultContent) {
|
|
4095
|
+
parentDiv?.setAttribute('hidden', 'true');
|
|
4096
|
+
parentDiv?.setAttribute('aria-hidden', 'true');
|
|
3884
4097
|
}
|
|
3885
|
-
if (
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
4098
|
+
if (isHydrationTarget) {
|
|
4099
|
+
if (!isWinningVariant) {
|
|
4100
|
+
parentDiv?.remove();
|
|
4101
|
+
}
|
|
4102
|
+
const thisScriptEl = document.currentScript;
|
|
4103
|
+
thisScriptEl?.remove();
|
|
4104
|
+
}
|
|
4105
|
+
return;
|
|
4106
|
+
}`, st = "builderIoAbTest", at = "builderIoRenderContent", Z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4107
|
+
...t,
|
|
4108
|
+
testVariationId: t.id,
|
|
4109
|
+
id: e == null ? void 0 : e.id
|
|
4110
|
+
})), Qr = ({
|
|
4111
|
+
canTrack: e,
|
|
4112
|
+
content: t
|
|
4113
|
+
}) => !(!(Z(t).length > 0) || !e), Xr = (e) => e === "react" || e === "reactNative", lt = Xr(E), Zr = () => `
|
|
4114
|
+
window.${st} = ${Gr}
|
|
4115
|
+
window.${at} = ${Yr}
|
|
4116
|
+
`, _r = (e, t) => `
|
|
4117
|
+
window.${st}(
|
|
4118
|
+
"${t}",${JSON.stringify(e)}, ${lt}
|
|
4119
|
+
)`, ei = ({
|
|
4120
|
+
contentId: e,
|
|
4121
|
+
variationId: t
|
|
4122
|
+
}) => `window.${at}(
|
|
4123
|
+
"${t}", "${e}", ${lt}
|
|
4124
|
+
)`, ct = f({
|
|
4125
|
+
render() {
|
|
4126
|
+
return xe("script", {
|
|
4127
|
+
innerHTML: this.scriptStr,
|
|
4128
|
+
"data-id": this.id,
|
|
4129
|
+
nonce: this.nonce
|
|
3897
4130
|
});
|
|
3898
|
-
}
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
canTrack: !0
|
|
4131
|
+
},
|
|
4132
|
+
name: "inlined-script",
|
|
4133
|
+
props: ["scriptStr", "id", "nonce"]
|
|
3902
4134
|
});
|
|
3903
|
-
function
|
|
4135
|
+
function Ee(e) {
|
|
3904
4136
|
return Math.round(e * 1e3) / 1e3;
|
|
3905
4137
|
}
|
|
3906
|
-
const
|
|
4138
|
+
const ti = (e, t, n = !0) => {
|
|
3907
4139
|
if (!(e instanceof HTMLElement))
|
|
3908
4140
|
return null;
|
|
3909
4141
|
let o = n ? e : e.parentElement;
|
|
@@ -3914,190 +4146,35 @@ const Jr = (e, t, n = !0) => {
|
|
|
3914
4146
|
return o;
|
|
3915
4147
|
} while (o = o.parentElement);
|
|
3916
4148
|
return null;
|
|
3917
|
-
},
|
|
4149
|
+
}, ni = (e) => ti(e, (t) => {
|
|
3918
4150
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3919
4151
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3920
|
-
}),
|
|
4152
|
+
}), Pe = ({
|
|
3921
4153
|
event: e,
|
|
3922
4154
|
target: t
|
|
3923
4155
|
}) => {
|
|
3924
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
4156
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Ee(o / n.width), s = Ee(r / n.height);
|
|
3925
4157
|
return {
|
|
3926
4158
|
x: i,
|
|
3927
4159
|
y: s
|
|
3928
4160
|
};
|
|
3929
|
-
},
|
|
3930
|
-
const t = e.target, n = t &&
|
|
4161
|
+
}, oi = (e) => {
|
|
4162
|
+
const t = e.target, n = t && ni(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3931
4163
|
return {
|
|
3932
4164
|
targetBuilderElement: o || void 0,
|
|
3933
4165
|
metadata: {
|
|
3934
|
-
targetOffset: t ?
|
|
4166
|
+
targetOffset: t ? Pe({
|
|
3935
4167
|
event: e,
|
|
3936
4168
|
target: t
|
|
3937
4169
|
}) : void 0,
|
|
3938
|
-
builderTargetOffset: n ?
|
|
4170
|
+
builderTargetOffset: n ? Pe({
|
|
3939
4171
|
event: e,
|
|
3940
4172
|
target: n
|
|
3941
4173
|
}) : void 0,
|
|
3942
4174
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
3943
4175
|
}
|
|
3944
4176
|
};
|
|
3945
|
-
},
|
|
3946
|
-
function lt(e, t) {
|
|
3947
|
-
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
3948
|
-
return !1;
|
|
3949
|
-
const n = new URL(t.origin), o = n.hostname;
|
|
3950
|
-
return (e || Qr).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
3951
|
-
}
|
|
3952
|
-
const Xr = "2.0.8", Be = {};
|
|
3953
|
-
function Zr(e, t) {
|
|
3954
|
-
let n = Be[e];
|
|
3955
|
-
if (n || (n = Be[e] = []), n.push(t), T()) {
|
|
3956
|
-
const o = {
|
|
3957
|
-
type: "builder.register",
|
|
3958
|
-
data: {
|
|
3959
|
-
type: e,
|
|
3960
|
-
info: t
|
|
3961
|
-
}
|
|
3962
|
-
};
|
|
3963
|
-
try {
|
|
3964
|
-
parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
|
|
3965
|
-
} catch (r) {
|
|
3966
|
-
console.debug("Could not postmessage", r);
|
|
3967
|
-
}
|
|
3968
|
-
}
|
|
3969
|
-
}
|
|
3970
|
-
const _r = () => {
|
|
3971
|
-
Zr("insertMenu", {
|
|
3972
|
-
name: "_default",
|
|
3973
|
-
default: !0,
|
|
3974
|
-
items: [{
|
|
3975
|
-
name: "Box"
|
|
3976
|
-
}, {
|
|
3977
|
-
name: "Text"
|
|
3978
|
-
}, {
|
|
3979
|
-
name: "Image"
|
|
3980
|
-
}, {
|
|
3981
|
-
name: "Columns"
|
|
3982
|
-
}, {
|
|
3983
|
-
name: "Core:Section"
|
|
3984
|
-
}, {
|
|
3985
|
-
name: "Core:Button"
|
|
3986
|
-
}, {
|
|
3987
|
-
name: "Embed"
|
|
3988
|
-
}, {
|
|
3989
|
-
name: "Custom Code"
|
|
3990
|
-
}]
|
|
3991
|
-
});
|
|
3992
|
-
};
|
|
3993
|
-
let Pe = !1;
|
|
3994
|
-
const ct = (e = {}) => {
|
|
3995
|
-
var t, n;
|
|
3996
|
-
Pe || (Pe = !0, T() && ((t = window.parent) == null || t.postMessage({
|
|
3997
|
-
type: "builder.sdkInfo",
|
|
3998
|
-
data: {
|
|
3999
|
-
target: x,
|
|
4000
|
-
version: Xr,
|
|
4001
|
-
supportsPatchUpdates: !1,
|
|
4002
|
-
// Supports builder-model="..." attribute which is needed to
|
|
4003
|
-
// scope our '+ add block' button styling
|
|
4004
|
-
supportsAddBlockScoping: !0,
|
|
4005
|
-
supportsCustomBreakpoints: !0
|
|
4006
|
-
}
|
|
4007
|
-
}, "*"), (n = window.parent) == null || n.postMessage({
|
|
4008
|
-
type: "builder.updateContent",
|
|
4009
|
-
data: {
|
|
4010
|
-
options: e
|
|
4011
|
-
}
|
|
4012
|
-
}, "*"), window.addEventListener("message", (o) => {
|
|
4013
|
-
var i, s;
|
|
4014
|
-
if (!lt(e.trustedHosts, o))
|
|
4015
|
-
return;
|
|
4016
|
-
const {
|
|
4017
|
-
data: r
|
|
4018
|
-
} = o;
|
|
4019
|
-
if (r != null && r.type)
|
|
4020
|
-
switch (r.type) {
|
|
4021
|
-
case "builder.evaluate": {
|
|
4022
|
-
const l = r.data.text, a = r.data.arguments || [], u = r.data.id, h = new Function(l);
|
|
4023
|
-
let c, m = null;
|
|
4024
|
-
try {
|
|
4025
|
-
c = h.apply(null, a);
|
|
4026
|
-
} catch (S) {
|
|
4027
|
-
m = S;
|
|
4028
|
-
}
|
|
4029
|
-
m ? (i = window.parent) == null || i.postMessage({
|
|
4030
|
-
type: "builder.evaluateError",
|
|
4031
|
-
data: {
|
|
4032
|
-
id: u,
|
|
4033
|
-
error: m.message
|
|
4034
|
-
}
|
|
4035
|
-
}, "*") : c && typeof c.then == "function" ? c.then((S) => {
|
|
4036
|
-
var y;
|
|
4037
|
-
(y = window.parent) == null || y.postMessage({
|
|
4038
|
-
type: "builder.evaluateResult",
|
|
4039
|
-
data: {
|
|
4040
|
-
id: u,
|
|
4041
|
-
result: S
|
|
4042
|
-
}
|
|
4043
|
-
}, "*");
|
|
4044
|
-
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
4045
|
-
type: "builder.evaluateResult",
|
|
4046
|
-
data: {
|
|
4047
|
-
result: c,
|
|
4048
|
-
id: u
|
|
4049
|
-
}
|
|
4050
|
-
}, "*");
|
|
4051
|
-
break;
|
|
4052
|
-
}
|
|
4053
|
-
}
|
|
4054
|
-
})));
|
|
4055
|
-
}, dt = ({
|
|
4056
|
-
model: e,
|
|
4057
|
-
trustedHosts: t,
|
|
4058
|
-
callbacks: n
|
|
4059
|
-
}) => (o) => {
|
|
4060
|
-
if (!lt(t, o))
|
|
4061
|
-
return;
|
|
4062
|
-
const {
|
|
4063
|
-
data: r
|
|
4064
|
-
} = o;
|
|
4065
|
-
if (r)
|
|
4066
|
-
switch (r.type) {
|
|
4067
|
-
case "builder.configureSdk": {
|
|
4068
|
-
n.configureSdk(r.data);
|
|
4069
|
-
break;
|
|
4070
|
-
}
|
|
4071
|
-
case "builder.triggerAnimation": {
|
|
4072
|
-
n.animation(r.data);
|
|
4073
|
-
break;
|
|
4074
|
-
}
|
|
4075
|
-
case "builder.contentUpdate": {
|
|
4076
|
-
const i = r.data, s = i.key || i.alias || i.entry || i.modelName, l = i.data;
|
|
4077
|
-
s === e && n.contentUpdate(l);
|
|
4078
|
-
break;
|
|
4079
|
-
}
|
|
4080
|
-
}
|
|
4081
|
-
}, Wi = (e, t, n) => {
|
|
4082
|
-
if (!T)
|
|
4083
|
-
return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
4084
|
-
};
|
|
4085
|
-
ct();
|
|
4086
|
-
const o = dt({
|
|
4087
|
-
callbacks: {
|
|
4088
|
-
contentUpdate: t,
|
|
4089
|
-
animation: () => {
|
|
4090
|
-
},
|
|
4091
|
-
configureSdk: () => {
|
|
4092
|
-
}
|
|
4093
|
-
},
|
|
4094
|
-
model: e,
|
|
4095
|
-
trustedHosts: n == null ? void 0 : n.trustedHosts
|
|
4096
|
-
});
|
|
4097
|
-
return window.addEventListener("message", o), () => {
|
|
4098
|
-
window.removeEventListener("message", o);
|
|
4099
|
-
};
|
|
4100
|
-
}, ei = (e) => {
|
|
4177
|
+
}, ri = (e) => {
|
|
4101
4178
|
var i;
|
|
4102
4179
|
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);
|
|
4103
4180
|
let r = "";
|
|
@@ -4123,15 +4200,15 @@ font-weight: ${s};
|
|
|
4123
4200
|
`.trim());
|
|
4124
4201
|
}
|
|
4125
4202
|
return r;
|
|
4126
|
-
},
|
|
4203
|
+
}, ii = ({
|
|
4127
4204
|
customFonts: e
|
|
4128
4205
|
}) => {
|
|
4129
4206
|
var t;
|
|
4130
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4131
|
-
},
|
|
4207
|
+
return ((t = e == null ? void 0 : e.map((n) => ri(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4208
|
+
}, si = ({
|
|
4132
4209
|
cssCode: e,
|
|
4133
4210
|
contentId: t
|
|
4134
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4211
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ai = `
|
|
4135
4212
|
.builder-button {
|
|
4136
4213
|
all: unset;
|
|
4137
4214
|
}
|
|
@@ -4148,7 +4225,7 @@ font-weight: ${s};
|
|
|
4148
4225
|
text-align: inherit;
|
|
4149
4226
|
font-family: inherit;
|
|
4150
4227
|
}
|
|
4151
|
-
`,
|
|
4228
|
+
`, li = (e) => e ? "" : ai, ci = (e) => `variant-${e}`, di = f({
|
|
4152
4229
|
name: "enable-editor",
|
|
4153
4230
|
components: { DynamicDiv: Q },
|
|
4154
4231
|
props: [
|
|
@@ -4173,7 +4250,7 @@ font-weight: ${s};
|
|
|
4173
4250
|
httpReqsPending: {},
|
|
4174
4251
|
clicked: !1,
|
|
4175
4252
|
builderContext: le,
|
|
4176
|
-
getWrapperClassName:
|
|
4253
|
+
getWrapperClassName: ci
|
|
4177
4254
|
};
|
|
4178
4255
|
},
|
|
4179
4256
|
provide() {
|
|
@@ -4185,12 +4262,12 @@ font-weight: ${s};
|
|
|
4185
4262
|
mounted() {
|
|
4186
4263
|
(() => {
|
|
4187
4264
|
var n, o;
|
|
4188
|
-
if (
|
|
4265
|
+
if (I()) {
|
|
4189
4266
|
if (R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4190
4267
|
new CustomEvent("initeditingbldr")
|
|
4191
4268
|
), this.builderContextSignal.content && Y(this.canTrack)) {
|
|
4192
4269
|
const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, s = (o = this.builderContextSignal.content) == null ? void 0 : o.id, l = this.apiKey;
|
|
4193
|
-
|
|
4270
|
+
de({
|
|
4194
4271
|
type: "impression",
|
|
4195
4272
|
canTrack: !0,
|
|
4196
4273
|
contentId: s,
|
|
@@ -4198,7 +4275,7 @@ font-weight: ${s};
|
|
|
4198
4275
|
variationId: i !== s ? i : void 0
|
|
4199
4276
|
});
|
|
4200
4277
|
}
|
|
4201
|
-
|
|
4278
|
+
Mt() && !R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4202
4279
|
new CustomEvent("initpreviewingbldr")
|
|
4203
4280
|
);
|
|
4204
4281
|
}
|
|
@@ -4249,7 +4326,7 @@ font-weight: ${s};
|
|
|
4249
4326
|
}
|
|
4250
4327
|
},
|
|
4251
4328
|
unmounted() {
|
|
4252
|
-
|
|
4329
|
+
I() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
4253
4330
|
"builder:component:stateChangeListenerActivated",
|
|
4254
4331
|
this.emitStateUpdate
|
|
4255
4332
|
));
|
|
@@ -4321,7 +4398,7 @@ font-weight: ${s};
|
|
|
4321
4398
|
this.builderContextSignal.content = t;
|
|
4322
4399
|
},
|
|
4323
4400
|
processMessage(e) {
|
|
4324
|
-
return
|
|
4401
|
+
return Ge({
|
|
4325
4402
|
model: this.model,
|
|
4326
4403
|
trustedHosts: this.trustedHosts,
|
|
4327
4404
|
callbacks: {
|
|
@@ -4335,7 +4412,7 @@ font-weight: ${s};
|
|
|
4335
4412
|
});
|
|
4336
4413
|
},
|
|
4337
4414
|
animation: (t) => {
|
|
4338
|
-
|
|
4415
|
+
nt(t);
|
|
4339
4416
|
},
|
|
4340
4417
|
contentUpdate: (t) => {
|
|
4341
4418
|
this.mergeNewContent(t);
|
|
@@ -4362,13 +4439,13 @@ font-weight: ${s};
|
|
|
4362
4439
|
var t, n;
|
|
4363
4440
|
if (this.builderContextSignal.content) {
|
|
4364
4441
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
4365
|
-
|
|
4442
|
+
de({
|
|
4366
4443
|
type: "click",
|
|
4367
4444
|
canTrack: Y(this.canTrack),
|
|
4368
4445
|
contentId: r,
|
|
4369
4446
|
apiKey: this.apiKey,
|
|
4370
4447
|
variationId: o !== r ? o : void 0,
|
|
4371
|
-
...
|
|
4448
|
+
...oi(e),
|
|
4372
4449
|
unique: !this.clicked
|
|
4373
4450
|
});
|
|
4374
4451
|
}
|
|
@@ -4394,7 +4471,7 @@ font-weight: ${s};
|
|
|
4394
4471
|
})
|
|
4395
4472
|
)
|
|
4396
4473
|
);
|
|
4397
|
-
|
|
4474
|
+
Ze(i).then((s) => s.json()).then((s) => {
|
|
4398
4475
|
this.mergeNewRootState({
|
|
4399
4476
|
[o]: s
|
|
4400
4477
|
}), this.httpReqsData[o] = !0;
|
|
@@ -4421,7 +4498,7 @@ font-weight: ${s};
|
|
|
4421
4498
|
);
|
|
4422
4499
|
},
|
|
4423
4500
|
elementRef_onIniteditingbldr(e) {
|
|
4424
|
-
window.addEventListener("message", this.processMessage),
|
|
4501
|
+
window.addEventListener("message", this.processMessage), un(), Je({
|
|
4425
4502
|
...this.locale ? {
|
|
4426
4503
|
locale: this.locale
|
|
4427
4504
|
} : {},
|
|
@@ -4435,7 +4512,7 @@ font-weight: ${s};
|
|
|
4435
4512
|
this.builderContextSignal.componentInfos
|
|
4436
4513
|
).forEach((t) => {
|
|
4437
4514
|
var o;
|
|
4438
|
-
const n =
|
|
4515
|
+
const n = Ht(t);
|
|
4439
4516
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
4440
4517
|
}), window.addEventListener(
|
|
4441
4518
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -4446,7 +4523,7 @@ font-weight: ${s};
|
|
|
4446
4523
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
4447
4524
|
`builder.overrides.${n}`
|
|
4448
4525
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
4449
|
-
n === this.model && r === this.apiKey && (!this.content || o === this.content.id) &&
|
|
4526
|
+
n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && be({
|
|
4450
4527
|
model: this.model,
|
|
4451
4528
|
apiKey: this.apiKey,
|
|
4452
4529
|
apiVersion: this.builderContextSignal.apiVersion
|
|
@@ -4456,9 +4533,9 @@ font-weight: ${s};
|
|
|
4456
4533
|
}
|
|
4457
4534
|
}
|
|
4458
4535
|
});
|
|
4459
|
-
function
|
|
4536
|
+
function ui(e, t, n, o, r, i) {
|
|
4460
4537
|
var s, l, a;
|
|
4461
|
-
return e.builderContextSignal.content ? (
|
|
4538
|
+
return e.builderContextSignal.content ? (c(), g(K(e.ContentWrapper), C({
|
|
4462
4539
|
key: 0,
|
|
4463
4540
|
ref: "elementRef",
|
|
4464
4541
|
onClick: (u) => e.onClick(u),
|
|
@@ -4468,40 +4545,40 @@ function ai(e, t, n, o, r, i) {
|
|
|
4468
4545
|
onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
|
|
4469
4546
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
4470
4547
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
4471
|
-
default:
|
|
4472
|
-
|
|
4548
|
+
default: N(() => [
|
|
4549
|
+
x(e.$slots, "default")
|
|
4473
4550
|
]),
|
|
4474
4551
|
_: 3
|
|
4475
|
-
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) :
|
|
4552
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
|
|
4476
4553
|
}
|
|
4477
|
-
const
|
|
4554
|
+
const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = f({
|
|
4478
4555
|
name: "content-styles",
|
|
4479
|
-
components: { InlinedStyles:
|
|
4556
|
+
components: { InlinedStyles: ke },
|
|
4480
4557
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
4481
4558
|
data() {
|
|
4482
4559
|
return {
|
|
4483
4560
|
injectedStyles: `
|
|
4484
|
-
${
|
|
4561
|
+
${si({
|
|
4485
4562
|
cssCode: this.cssCode,
|
|
4486
4563
|
contentId: this.contentId
|
|
4487
4564
|
})}
|
|
4488
|
-
${
|
|
4565
|
+
${ii({
|
|
4489
4566
|
customFonts: this.customFonts
|
|
4490
4567
|
})}
|
|
4491
|
-
${
|
|
4568
|
+
${li(this.isNestedRender)}
|
|
4492
4569
|
`.trim()
|
|
4493
4570
|
};
|
|
4494
4571
|
}
|
|
4495
4572
|
});
|
|
4496
|
-
function
|
|
4497
|
-
const s =
|
|
4498
|
-
return
|
|
4573
|
+
function hi(e, t, n, o, r, i) {
|
|
4574
|
+
const s = y("InlinedStyles");
|
|
4575
|
+
return c(), g(s, {
|
|
4499
4576
|
id: "builderio-content",
|
|
4500
4577
|
styles: e.injectedStyles,
|
|
4501
4578
|
nonce: e.nonce
|
|
4502
4579
|
}, null, 8, ["styles", "nonce"]);
|
|
4503
4580
|
}
|
|
4504
|
-
const
|
|
4581
|
+
const fi = /* @__PURE__ */ b(mi, [["render", hi]]), bi = ({
|
|
4505
4582
|
content: e,
|
|
4506
4583
|
data: t,
|
|
4507
4584
|
locale: n
|
|
@@ -4518,7 +4595,7 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
|
|
|
4518
4595
|
locale: n
|
|
4519
4596
|
} : {}
|
|
4520
4597
|
};
|
|
4521
|
-
},
|
|
4598
|
+
}, gi = ({
|
|
4522
4599
|
content: e,
|
|
4523
4600
|
data: t
|
|
4524
4601
|
}) => e ? {
|
|
@@ -4528,12 +4605,12 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
|
|
|
4528
4605
|
...t
|
|
4529
4606
|
},
|
|
4530
4607
|
meta: e == null ? void 0 : e.meta
|
|
4531
|
-
} : void 0,
|
|
4608
|
+
} : void 0, yi = ht, ki = f({
|
|
4532
4609
|
name: "content-component",
|
|
4533
4610
|
components: {
|
|
4534
|
-
EnableEditor:
|
|
4535
|
-
InlinedScript:
|
|
4536
|
-
ContentStyles:
|
|
4611
|
+
EnableEditor: pi,
|
|
4612
|
+
InlinedScript: ct,
|
|
4613
|
+
ContentStyles: fi,
|
|
4537
4614
|
Blocks: M,
|
|
4538
4615
|
DynamicDiv: Q
|
|
4539
4616
|
},
|
|
@@ -4562,32 +4639,32 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
|
|
|
4562
4639
|
data() {
|
|
4563
4640
|
var e, t, n, o;
|
|
4564
4641
|
return {
|
|
4565
|
-
scriptStr:
|
|
4642
|
+
scriptStr: ei({
|
|
4566
4643
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4567
4644
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
4568
4645
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4569
4646
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
4570
4647
|
}),
|
|
4571
4648
|
registeredComponents: [
|
|
4572
|
-
...
|
|
4649
|
+
...Be(),
|
|
4573
4650
|
...((n = this.customComponents) == null ? void 0 : n.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
|
|
4574
4651
|
].reduce(
|
|
4575
4652
|
(r, { component: i, ...s }) => ({
|
|
4576
4653
|
...r,
|
|
4577
4654
|
[s.name]: {
|
|
4578
|
-
component:
|
|
4579
|
-
...
|
|
4655
|
+
component: yi(i),
|
|
4656
|
+
...ee(s)
|
|
4580
4657
|
}
|
|
4581
4658
|
}),
|
|
4582
4659
|
{}
|
|
4583
4660
|
),
|
|
4584
4661
|
builderContextSignal: {
|
|
4585
|
-
content:
|
|
4662
|
+
content: gi({
|
|
4586
4663
|
content: this.content,
|
|
4587
4664
|
data: this.data
|
|
4588
4665
|
}),
|
|
4589
4666
|
localState: void 0,
|
|
4590
|
-
rootState:
|
|
4667
|
+
rootState: bi({
|
|
4591
4668
|
content: this.content,
|
|
4592
4669
|
data: this.data,
|
|
4593
4670
|
locale: this.locale
|
|
@@ -4598,12 +4675,12 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
|
|
|
4598
4675
|
apiKey: this.apiKey,
|
|
4599
4676
|
apiVersion: this.apiVersion,
|
|
4600
4677
|
componentInfos: [
|
|
4601
|
-
...
|
|
4678
|
+
...Be(),
|
|
4602
4679
|
...((o = this.customComponents) == null ? void 0 : o.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
|
|
4603
4680
|
].reduce(
|
|
4604
4681
|
(r, { component: i, ...s }) => ({
|
|
4605
4682
|
...r,
|
|
4606
|
-
[s.name]:
|
|
4683
|
+
[s.name]: ee(s)
|
|
4607
4684
|
}),
|
|
4608
4685
|
{}
|
|
4609
4686
|
),
|
|
@@ -4612,7 +4689,7 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
|
|
|
4612
4689
|
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
4613
4690
|
nonce: this.nonce || ""
|
|
4614
4691
|
},
|
|
4615
|
-
TARGET:
|
|
4692
|
+
TARGET: E
|
|
4616
4693
|
};
|
|
4617
4694
|
},
|
|
4618
4695
|
provide() {
|
|
@@ -4629,9 +4706,9 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
|
|
|
4629
4706
|
}
|
|
4630
4707
|
}
|
|
4631
4708
|
});
|
|
4632
|
-
function
|
|
4633
|
-
const s =
|
|
4634
|
-
return
|
|
4709
|
+
function vi(e, t, n, o, r, i) {
|
|
4710
|
+
const s = y("InlinedScript"), l = y("ContentStyles"), a = y("Blocks"), u = y("EnableEditor");
|
|
4711
|
+
return c(), g(u, C({
|
|
4635
4712
|
nonce: e.nonce,
|
|
4636
4713
|
content: e.content,
|
|
4637
4714
|
data: e.data,
|
|
@@ -4647,25 +4724,25 @@ function bi(e, t, n, o, r, i) {
|
|
|
4647
4724
|
contentWrapperProps: e.contentWrapperProps,
|
|
4648
4725
|
trustedHosts: e.trustedHosts
|
|
4649
4726
|
}, {}), {
|
|
4650
|
-
default:
|
|
4651
|
-
var h,
|
|
4727
|
+
default: N(() => {
|
|
4728
|
+
var h, d, p, k, v, O, X;
|
|
4652
4729
|
return [
|
|
4653
|
-
e.isSsrAbTest ? (
|
|
4730
|
+
e.isSsrAbTest ? (c(), g(s, {
|
|
4654
4731
|
key: 0,
|
|
4655
4732
|
id: "builderio-variant-visibility",
|
|
4656
4733
|
scriptStr: e.scriptStr,
|
|
4657
4734
|
nonce: e.nonce || ""
|
|
4658
|
-
}, null, 8, ["scriptStr", "nonce"])) :
|
|
4659
|
-
e.TARGET !== "reactNative" ? (
|
|
4735
|
+
}, null, 8, ["scriptStr", "nonce"])) : S("", !0),
|
|
4736
|
+
e.TARGET !== "reactNative" ? (c(), g(l, {
|
|
4660
4737
|
key: 1,
|
|
4661
4738
|
nonce: e.nonce || "",
|
|
4662
4739
|
isNestedRender: e.isNestedRender,
|
|
4663
4740
|
contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
|
|
4664
|
-
cssCode: (
|
|
4665
|
-
customFonts: (
|
|
4666
|
-
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) :
|
|
4741
|
+
cssCode: (p = (d = e.builderContextSignal.content) == null ? void 0 : d.data) == null ? void 0 : p.cssCode,
|
|
4742
|
+
customFonts: (v = (k = e.builderContextSignal.content) == null ? void 0 : k.data) == null ? void 0 : v.customFonts
|
|
4743
|
+
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
|
|
4667
4744
|
$(a, {
|
|
4668
|
-
blocks: (X = (
|
|
4745
|
+
blocks: (X = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : X.blocks,
|
|
4669
4746
|
context: e.builderContextSignal,
|
|
4670
4747
|
registeredComponents: e.registeredComponents,
|
|
4671
4748
|
linkComponent: e.linkComponent
|
|
@@ -4675,12 +4752,12 @@ function bi(e, t, n, o, r, i) {
|
|
|
4675
4752
|
_: 1
|
|
4676
4753
|
}, 16, ["nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
|
|
4677
4754
|
}
|
|
4678
|
-
const
|
|
4755
|
+
const Si = /* @__PURE__ */ b(ki, [["render", vi]]), Ci = f({
|
|
4679
4756
|
name: "content-variants",
|
|
4680
4757
|
components: {
|
|
4681
|
-
InlinedScript:
|
|
4682
|
-
InlinedStyles:
|
|
4683
|
-
ContentComponent:
|
|
4758
|
+
InlinedScript: ct,
|
|
4759
|
+
InlinedStyles: ke,
|
|
4760
|
+
ContentComponent: Si
|
|
4684
4761
|
},
|
|
4685
4762
|
props: [
|
|
4686
4763
|
"canTrack",
|
|
@@ -4704,13 +4781,13 @@ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
|
|
|
4704
4781
|
],
|
|
4705
4782
|
data() {
|
|
4706
4783
|
return {
|
|
4707
|
-
shouldRenderVariants:
|
|
4784
|
+
shouldRenderVariants: Qr({
|
|
4708
4785
|
canTrack: Y(this.canTrack),
|
|
4709
4786
|
content: this.content
|
|
4710
4787
|
}),
|
|
4711
|
-
TARGET:
|
|
4712
|
-
getInitVariantsFnsScriptString:
|
|
4713
|
-
getVariants:
|
|
4788
|
+
TARGET: E,
|
|
4789
|
+
getInitVariantsFnsScriptString: Zr,
|
|
4790
|
+
getVariants: Z
|
|
4714
4791
|
};
|
|
4715
4792
|
},
|
|
4716
4793
|
mounted() {
|
|
@@ -4718,8 +4795,8 @@ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
|
|
|
4718
4795
|
computed: {
|
|
4719
4796
|
updateCookieAndStylesScriptStr() {
|
|
4720
4797
|
var e;
|
|
4721
|
-
return
|
|
4722
|
-
|
|
4798
|
+
return _r(
|
|
4799
|
+
Z(this.content).map((t) => ({
|
|
4723
4800
|
id: t.testVariationId,
|
|
4724
4801
|
testRatio: t.testRatio
|
|
4725
4802
|
})),
|
|
@@ -4727,30 +4804,30 @@ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
|
|
|
4727
4804
|
);
|
|
4728
4805
|
},
|
|
4729
4806
|
hideVariantsStyleString() {
|
|
4730
|
-
return
|
|
4807
|
+
return Z(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
4731
4808
|
},
|
|
4732
4809
|
defaultContent() {
|
|
4733
4810
|
var e;
|
|
4734
4811
|
return this.shouldRenderVariants ? {
|
|
4735
4812
|
...this.content,
|
|
4736
4813
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
4737
|
-
} :
|
|
4814
|
+
} : gn({
|
|
4738
4815
|
item: this.content,
|
|
4739
4816
|
canTrack: Y(this.canTrack)
|
|
4740
4817
|
});
|
|
4741
4818
|
}
|
|
4742
4819
|
}
|
|
4743
4820
|
});
|
|
4744
|
-
function
|
|
4745
|
-
const s =
|
|
4746
|
-
return
|
|
4747
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (
|
|
4821
|
+
function wi(e, t, n, o, r, i) {
|
|
4822
|
+
const s = y("InlinedScript"), l = y("InlinedStyles"), a = y("ContentComponent");
|
|
4823
|
+
return c(), m(w, null, [
|
|
4824
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (c(), g(s, {
|
|
4748
4825
|
key: 0,
|
|
4749
4826
|
id: "builderio-init-variants-fns",
|
|
4750
4827
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
4751
4828
|
nonce: e.nonce || ""
|
|
4752
|
-
}, null, 8, ["scriptStr", "nonce"])) :
|
|
4753
|
-
e.shouldRenderVariants ? (
|
|
4829
|
+
}, null, 8, ["scriptStr", "nonce"])) : S("", !0),
|
|
4830
|
+
e.shouldRenderVariants ? (c(), m(w, { key: 1 }, [
|
|
4754
4831
|
$(l, {
|
|
4755
4832
|
id: "builderio-variants",
|
|
4756
4833
|
styles: e.hideVariantsStyleString,
|
|
@@ -4761,7 +4838,7 @@ function ki(e, t, n, o, r, i) {
|
|
|
4761
4838
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
4762
4839
|
nonce: e.nonce || ""
|
|
4763
4840
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
4764
|
-
(
|
|
4841
|
+
(c(!0), m(w, null, A(e.getVariants(e.content), (u, h) => (c(), g(a, C({
|
|
4765
4842
|
key: u.testVariationId,
|
|
4766
4843
|
isNestedRender: e.isNestedRender,
|
|
4767
4844
|
nonce: e.nonce,
|
|
@@ -4784,7 +4861,7 @@ function ki(e, t, n, o, r, i) {
|
|
|
4784
4861
|
contentWrapperProps: e.contentWrapperProps,
|
|
4785
4862
|
trustedHosts: e.trustedHosts
|
|
4786
4863
|
}, {}), null, 16, ["isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
4787
|
-
], 64)) :
|
|
4864
|
+
], 64)) : S("", !0),
|
|
4788
4865
|
$(a, C({
|
|
4789
4866
|
nonce: e.nonce,
|
|
4790
4867
|
isNestedRender: e.isNestedRender,
|
|
@@ -4811,13 +4888,13 @@ function ki(e, t, n, o, r, i) {
|
|
|
4811
4888
|
}), null, 16, ["nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4812
4889
|
], 64);
|
|
4813
4890
|
}
|
|
4814
|
-
const
|
|
4891
|
+
const Ti = /* @__PURE__ */ b(Ci, [["render", wi]]), Ii = async ({
|
|
4815
4892
|
builderContextValue: e,
|
|
4816
4893
|
symbol: t
|
|
4817
4894
|
}) => {
|
|
4818
4895
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4819
4896
|
(e != null && e.apiKey))
|
|
4820
|
-
return
|
|
4897
|
+
return be({
|
|
4821
4898
|
model: t.model,
|
|
4822
4899
|
apiKey: e.apiKey,
|
|
4823
4900
|
apiVersion: e.apiVersion,
|
|
@@ -4829,9 +4906,9 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
|
|
|
4829
4906
|
}).catch((n) => {
|
|
4830
4907
|
B.error("Could not fetch symbol content: ", n);
|
|
4831
4908
|
});
|
|
4832
|
-
},
|
|
4909
|
+
}, $i = f({
|
|
4833
4910
|
name: "builder-symbol",
|
|
4834
|
-
components: { ContentVariants:
|
|
4911
|
+
components: { ContentVariants: Ti, DynamicDiv: Q },
|
|
4835
4912
|
props: [
|
|
4836
4913
|
"symbol",
|
|
4837
4914
|
"attributes",
|
|
@@ -4843,7 +4920,7 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
|
|
|
4843
4920
|
],
|
|
4844
4921
|
data() {
|
|
4845
4922
|
var e;
|
|
4846
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs:
|
|
4923
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: V };
|
|
4847
4924
|
},
|
|
4848
4925
|
mounted() {
|
|
4849
4926
|
this.setContent();
|
|
@@ -4866,7 +4943,7 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
|
|
|
4866
4943
|
className() {
|
|
4867
4944
|
var e, t;
|
|
4868
4945
|
return [
|
|
4869
|
-
this.attributes[
|
|
4946
|
+
this.attributes[_()],
|
|
4870
4947
|
"builder-symbol",
|
|
4871
4948
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
4872
4949
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -4880,7 +4957,7 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
|
|
|
4880
4957
|
},
|
|
4881
4958
|
methods: {
|
|
4882
4959
|
setContent() {
|
|
4883
|
-
this.contentToUse ||
|
|
4960
|
+
this.contentToUse || Ii({
|
|
4884
4961
|
symbol: this.symbol,
|
|
4885
4962
|
builderContextValue: this.builderContext
|
|
4886
4963
|
}).then((e) => {
|
|
@@ -4889,10 +4966,10 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
|
|
|
4889
4966
|
}
|
|
4890
4967
|
}
|
|
4891
4968
|
});
|
|
4892
|
-
function
|
|
4893
|
-
var l, a, u, h,
|
|
4894
|
-
const s =
|
|
4895
|
-
return
|
|
4969
|
+
function Ri(e, t, n, o, r, i) {
|
|
4970
|
+
var l, a, u, h, d;
|
|
4971
|
+
const s = y("ContentVariants");
|
|
4972
|
+
return c(), m("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4896
4973
|
$(s, {
|
|
4897
4974
|
nonce: e.builderContext.nonce,
|
|
4898
4975
|
isNestedRender: !0,
|
|
@@ -4909,7 +4986,7 @@ function wi(e, t, n, o, r, i) {
|
|
|
4909
4986
|
...(h = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : h.state
|
|
4910
4987
|
},
|
|
4911
4988
|
canTrack: e.builderContext.canTrack,
|
|
4912
|
-
model: (
|
|
4989
|
+
model: (d = e.symbol) == null ? void 0 : d.model,
|
|
4913
4990
|
content: e.contentToUse,
|
|
4914
4991
|
linkComponent: e.builderLinkComponent,
|
|
4915
4992
|
blocksWrapper: e.blocksWrapper,
|
|
@@ -4917,75 +4994,43 @@ function wi(e, t, n, o, r, i) {
|
|
|
4917
4994
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
4918
4995
|
], 16);
|
|
4919
4996
|
}
|
|
4920
|
-
const
|
|
4921
|
-
function Ni(e) {
|
|
4922
|
-
if (T()) {
|
|
4923
|
-
Object.assign(Ee, e);
|
|
4924
|
-
const t = {
|
|
4925
|
-
type: "builder.settingsChange",
|
|
4926
|
-
data: Ee
|
|
4927
|
-
};
|
|
4928
|
-
parent.postMessage(t, "*");
|
|
4929
|
-
}
|
|
4930
|
-
}
|
|
4931
|
-
const Fi = async (e) => {
|
|
4932
|
-
var o, r, i;
|
|
4933
|
-
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
4934
|
-
...e,
|
|
4935
|
-
apiKey: e.apiKey,
|
|
4936
|
-
model: e.model || "page",
|
|
4937
|
-
userAttributes: {
|
|
4938
|
-
...e.userAttributes,
|
|
4939
|
-
...t ? {
|
|
4940
|
-
urlPath: t
|
|
4941
|
-
} : {}
|
|
4942
|
-
},
|
|
4943
|
-
options: ot(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
4944
|
-
};
|
|
4945
|
-
return {
|
|
4946
|
-
apiKey: n.apiKey,
|
|
4947
|
-
model: n.model,
|
|
4948
|
-
content: await ke(n)
|
|
4949
|
-
};
|
|
4950
|
-
};
|
|
4997
|
+
const Bi = /* @__PURE__ */ b($i, [["render", Ri]]);
|
|
4951
4998
|
export {
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
un as a,
|
|
4966
|
-
Pi as b,
|
|
4999
|
+
be as A,
|
|
5000
|
+
ye as B,
|
|
5001
|
+
oo as C,
|
|
5002
|
+
Vi as D,
|
|
5003
|
+
Ui as E,
|
|
5004
|
+
so as F,
|
|
5005
|
+
fo as I,
|
|
5006
|
+
yo as S,
|
|
5007
|
+
qo as T,
|
|
5008
|
+
zr as V,
|
|
5009
|
+
ke as _,
|
|
5010
|
+
Di as a,
|
|
5011
|
+
Mi as b,
|
|
4967
5012
|
L as c,
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
5013
|
+
ge as d,
|
|
5014
|
+
b as e,
|
|
5015
|
+
G as f,
|
|
5016
|
+
_n as g,
|
|
5017
|
+
Li as h,
|
|
5018
|
+
_ as i,
|
|
5019
|
+
le as j,
|
|
5020
|
+
St as k,
|
|
5021
|
+
Bi as l,
|
|
5022
|
+
M as m,
|
|
5023
|
+
Ti as n,
|
|
5024
|
+
R as o,
|
|
5025
|
+
Mt as p,
|
|
5026
|
+
Ht as q,
|
|
5027
|
+
Kt as r,
|
|
5028
|
+
Wi as s,
|
|
5029
|
+
De as t,
|
|
4985
5030
|
Ni as u,
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
5031
|
+
Oi as v,
|
|
5032
|
+
yi as w,
|
|
5033
|
+
Fi as x,
|
|
5034
|
+
Tn as y,
|
|
5035
|
+
In as z
|
|
4991
5036
|
};
|