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