@builder.io/sdk-vue 4.2.1 → 4.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{awaiter-522m_tb0.js → awaiter-QkoC16ei.js} +1 -1
- package/lib/browser/{awaiter-xp9lcSxP.cjs → awaiter-dVEzPIfa.cjs} +1 -1
- package/lib/browser/{block-wrapper-9mehIM9T.cjs → block-wrapper-BOi64ZSf.cjs} +1 -1
- package/lib/browser/{block-wrapper-26klNOq9.js → block-wrapper-LGlUvVpu.js} +3 -3
- package/lib/browser/blocks/form/form/form.vue.d.ts +1 -0
- package/lib/browser/blocks/img/img.vue.d.ts +9 -2
- package/lib/browser/blocks/symbol/symbol.types.d.ts +1 -2
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/browser/blocks/tabs/tabs.vue.d.ts +1 -0
- package/lib/browser/component-ref-Jt8NZQKY.cjs +1 -0
- package/lib/browser/{component-ref-IrVdrKrT.js → component-ref-tMh8EWjb.js} +68 -57
- package/lib/browser/components/awaiter.types.d.ts +7 -0
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
- package/lib/browser/components/block/components/interactive-element.vue.d.ts +6 -3
- package/lib/browser/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
- package/lib/browser/components/block/components/style-wrapper.vue.d.ts +15 -0
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +6 -2
- package/lib/browser/components/live-edit.vue.d.ts +17 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/find-block-4FksmtpZ.js +30 -0
- package/lib/browser/find-block-FHyxDYzT.cjs +1 -0
- package/lib/browser/{get-block-properties-QnM_YrNk.js → get-block-properties-Ahsh8p5y.js} +8 -8
- package/lib/browser/{get-block-properties-OKep411k.cjs → get-block-properties-NuVrGQN_.cjs} +1 -1
- package/lib/browser/helpers/find-block.d.ts +18 -0
- package/lib/browser/helpers/subscribe-to-editor.d.ts +3 -2
- package/lib/browser/{index-dDcL7IfY.js → index-EtzQVBnH.js} +635 -569
- package/lib/browser/index-jbLVGF3d.cjs +334 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +11 -11
- package/lib/browser/live-edit-h_5MH287.cjs +1 -0
- package/lib/browser/live-edit-rw2-UX9h.js +32 -0
- package/lib/browser/{repeated-block-nKx_42cr.cjs → repeated-block-DP1NryZH.cjs} +1 -1
- package/lib/browser/{repeated-block-iOBHvqGU.js → repeated-block-WP795fea.js} +2 -2
- package/lib/browser/style-wrapper-OLuHp-wg.js +210 -0
- package/lib/browser/style-wrapper-_FKH2e4u.cjs +1 -0
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-1mRIGpV6.cjs → awaiter-AB81htE9.cjs} +1 -1
- package/lib/edge/{awaiter-inDvpJQO.js → awaiter-G2IZpq8y.js} +1 -1
- package/lib/{node/block-wrapper-02ftlAfU.cjs → edge/block-wrapper-3KMmt5za.cjs} +1 -1
- package/lib/edge/{block-wrapper-SsRgbO8V.js → block-wrapper-hc1D57Il.js} +3 -3
- package/lib/edge/blocks/form/form/form.vue.d.ts +1 -0
- package/lib/edge/blocks/img/img.vue.d.ts +9 -2
- package/lib/edge/blocks/symbol/symbol.types.d.ts +1 -2
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/edge/blocks/tabs/tabs.vue.d.ts +1 -0
- package/lib/edge/component-ref-1l1Dc15N.cjs +1 -0
- package/lib/edge/{component-ref-xNhbKfn9.js → component-ref-__eNmb_i.js} +68 -57
- package/lib/edge/components/awaiter.types.d.ts +7 -0
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
- package/lib/edge/components/block/components/interactive-element.vue.d.ts +6 -3
- package/lib/edge/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
- package/lib/edge/components/block/components/style-wrapper.vue.d.ts +15 -0
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +6 -2
- package/lib/edge/components/live-edit.vue.d.ts +17 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/find-block-3Ig0kVVe.js +29 -0
- package/lib/edge/find-block-FREohLcp.cjs +1 -0
- package/lib/edge/{get-block-properties-YBHD-kyN.js → get-block-properties-IlO7VcTG.js} +10 -10
- package/lib/edge/{get-block-properties-gqcOodFf.cjs → get-block-properties-YofIFdQl.cjs} +1 -1
- package/lib/edge/helpers/find-block.d.ts +18 -0
- package/lib/edge/helpers/subscribe-to-editor.d.ts +3 -2
- package/lib/edge/{index-KuatB8ic.cjs → index-UFKf4DGh.cjs} +27 -27
- package/lib/edge/{index-hzqKkVuy.js → index-pedBdruj.js} +880 -814
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +11 -11
- package/lib/edge/live-edit-bP5Bdb_I.cjs +1 -0
- package/lib/edge/live-edit-mkwzJ3KQ.js +31 -0
- package/lib/{node/repeated-block-pKrhMIDV.cjs → edge/repeated-block-eV-zFRwn.cjs} +1 -1
- package/lib/{node/repeated-block-dhWJ0p4C.js → edge/repeated-block-i0HNWVX0.js} +2 -2
- package/lib/edge/style-wrapper-QrUxYNMa.cjs +1 -0
- package/lib/edge/style-wrapper-mI3PSijR.js +209 -0
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-xwpDFIvR.cjs → awaiter-GsCK0Rmm.cjs} +1 -1
- package/lib/node/{awaiter-VENdQO6n.js → awaiter-vsM2I4ci.js} +2 -2
- package/lib/node/{block-wrapper-YFKoP-Sr.js → block-wrapper-HC1GKPg-.js} +5 -5
- package/lib/{edge/block-wrapper-1wOAQ8jv.cjs → node/block-wrapper-VVk0Gqbc.cjs} +1 -1
- package/lib/node/blocks/form/form/form.vue.d.ts +1 -0
- package/lib/node/blocks/img/img.vue.d.ts +9 -2
- package/lib/node/blocks/symbol/symbol.types.d.ts +1 -2
- package/lib/node/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/node/blocks/tabs/tabs.vue.d.ts +1 -0
- package/lib/node/component-ref-SsJCZYlF.cjs +1 -0
- package/lib/node/{component-ref-CL-UB2rM.js → component-ref-bqN5ZiyT.js} +70 -58
- package/lib/node/components/awaiter.types.d.ts +7 -0
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -6
- package/lib/node/components/block/components/interactive-element.vue.d.ts +6 -3
- package/lib/node/components/block/components/live-edit-block-styles.vue.d.ts +19 -0
- package/lib/node/components/block/components/style-wrapper.vue.d.ts +15 -0
- package/lib/node/components/content/components/enable-editor.vue.d.ts +6 -2
- package/lib/node/components/live-edit.vue.d.ts +17 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/find-block-3Ig0kVVe.js +29 -0
- package/lib/node/find-block-FREohLcp.cjs +1 -0
- package/lib/node/{get-block-properties-5a2c_5xR.cjs → get-block-properties--0kf0kc1.cjs} +1 -1
- package/lib/node/{get-block-properties-LchfO6Kb.js → get-block-properties-4dl07r5f.js} +1 -1
- package/lib/node/helpers/find-block.d.ts +18 -0
- package/lib/node/helpers/subscribe-to-editor.d.ts +3 -2
- package/lib/node/index-9ZnpkpZ8.cjs +334 -0
- package/lib/node/{index-HR8y_fPw.js → index-BtCfIIfO.js} +600 -534
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +8 -8
- package/lib/node/live-edit-dkMPrQFh.js +31 -0
- package/lib/node/live-edit-k5C1gkl6.cjs +1 -0
- package/lib/{edge/repeated-block-E4-2V2fe.js → node/repeated-block-FOLLYnPQ.js} +2 -2
- package/lib/{edge/repeated-block-6mZ2NJ7W.cjs → node/repeated-block-pPsNH7xs.cjs} +1 -1
- package/lib/node/style-wrapper-CbrJHZiI.cjs +1 -0
- package/lib/node/style-wrapper-bEfbvdLX.js +210 -0
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/block-styles-4ljhsSUM.js +0 -84
- package/lib/browser/block-styles-NDMRfO-4.cjs +0 -1
- package/lib/browser/component-ref-B8JFh8hq.cjs +0 -1
- package/lib/browser/index-Sn06h7cl.cjs +0 -334
- package/lib/edge/block-styles-NdwXUvb8.js +0 -83
- package/lib/edge/block-styles-gtNLlF4k.cjs +0 -1
- package/lib/edge/component-ref-aeV7uVzT.cjs +0 -1
- package/lib/node/block-styles-8bE2sgtd.cjs +0 -1
- package/lib/node/block-styles-8zkB2lOv.js +0 -84
- package/lib/node/component-ref-U-rcbsRh.cjs +0 -1
- package/lib/node/index-SDqfr0zQ.cjs +0 -334
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
2
|
+
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as $, toHandlers as L, withCtx as O, renderSlot as N, resolveComponent as k, createTextVNode as Vt, toDisplayString as ce, defineAsyncComponent as Y, createVNode as E, renderList as F, createCommentVNode as C, h as ze, createElementVNode as z, normalizeStyle as M, normalizeClass as Z, markRaw as Nt } from "vue";
|
|
3
|
+
const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Wt = (e) => typeof e == "string" && xt.has(e.toLowerCase());
|
|
4
|
+
function x(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
7
7
|
if (!e[r] || n && !r.startsWith(t))
|
|
@@ -11,11 +11,11 @@ function W(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const Dt = y({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: Wt };
|
|
19
19
|
}
|
|
20
20
|
}), v = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
@@ -24,24 +24,24 @@ const xt = y({
|
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
26
|
function Ot(e, t, n, o, r, i) {
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (d(), S(
|
|
28
|
-
typeof e.TagName == "string" ? (d(), S(
|
|
29
|
-
default:
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, L(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (d(), S(X(e.TagName), $({ key: 0 }, e.attributes, L(e.actionAttributes)), {
|
|
29
|
+
default: O(() => [
|
|
30
30
|
N(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (d(), S(
|
|
34
|
-
default:
|
|
33
|
+
}, 16)) : (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, L(e.actionAttributes)), {
|
|
34
|
+
default: O(() => [
|
|
35
35
|
N(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const ke = /* @__PURE__ */ v(Dt, [["render", Ot]]), vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })), R = "vue",
|
|
43
|
+
default: ke
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), R = "vue", j = () => {
|
|
45
45
|
switch (R) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
@@ -56,7 +56,7 @@ const Ce = /* @__PURE__ */ v(xt, [["render", Ot]]), vs = /* @__PURE__ */ Object.
|
|
|
56
56
|
}
|
|
57
57
|
}, Ut = y({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: ke },
|
|
60
60
|
props: [
|
|
61
61
|
"attributes",
|
|
62
62
|
"link",
|
|
@@ -65,13 +65,13 @@ const Ce = /* @__PURE__ */ v(xt, [["render", Ot]]), vs = /* @__PURE__ */ Object.
|
|
|
65
65
|
"text"
|
|
66
66
|
],
|
|
67
67
|
data() {
|
|
68
|
-
return { filterAttrs:
|
|
68
|
+
return { filterAttrs: x };
|
|
69
69
|
},
|
|
70
70
|
methods: {
|
|
71
71
|
attrs() {
|
|
72
72
|
return {
|
|
73
|
-
...
|
|
74
|
-
[
|
|
73
|
+
...x(this.attributes, "v-on:", !1),
|
|
74
|
+
[j()]: `${this.link ? "" : "builder-button"} ${this.attributes[j()] || ""}`,
|
|
75
75
|
...this.link ? {
|
|
76
76
|
href: this.link,
|
|
77
77
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -83,20 +83,20 @@ const Ce = /* @__PURE__ */ v(xt, [["render", Ot]]), vs = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
86
|
+
function Lt(e, t, n, o, r, i) {
|
|
87
87
|
const s = k("DynamicRenderer");
|
|
88
88
|
return d(), S(s, {
|
|
89
89
|
attributes: e.attrs(),
|
|
90
90
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
|
-
default:
|
|
94
|
-
Vt(
|
|
93
|
+
default: O(() => [
|
|
94
|
+
Vt(ce(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const Ft = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ht = Symbol(), be = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -117,11 +117,11 @@ const Lt = /* @__PURE__ */ v(Ut, [["render", Ft]]), Ht = Symbol(), ge = {
|
|
|
117
117
|
}, Mt = Symbol(), Ge = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
119
|
key: Mt
|
|
120
|
-
},
|
|
121
|
-
log: (...e) => console.log(
|
|
122
|
-
error: (...e) => console.error(
|
|
123
|
-
warn: (...e) => console.warn(
|
|
124
|
-
debug: (...e) => console.debug(
|
|
120
|
+
}, ne = "[Builder.io]: ", B = {
|
|
121
|
+
log: (...e) => console.log(ne, ...e),
|
|
122
|
+
error: (...e) => console.error(ne, ...e),
|
|
123
|
+
warn: (...e) => console.warn(ne, ...e),
|
|
124
|
+
debug: (...e) => console.debug(ne, ...e)
|
|
125
125
|
}, Je = (e, t, n) => {
|
|
126
126
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
|
|
127
127
|
return o === void 0 || o === e ? n : o;
|
|
@@ -138,7 +138,7 @@ const jt = (e) => {
|
|
|
138
138
|
function Kt() {
|
|
139
139
|
return T() && window.self !== window.top;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function A(e) {
|
|
142
142
|
return Kt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
143
143
|
Ye(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
144
144
|
}
|
|
@@ -187,7 +187,7 @@ const qt = () => {
|
|
|
187
187
|
context: t,
|
|
188
188
|
event: n
|
|
189
189
|
}), Jt = () => ({
|
|
190
|
-
isEditing:
|
|
190
|
+
isEditing: A(),
|
|
191
191
|
isBrowser: T(),
|
|
192
192
|
isServer: !T(),
|
|
193
193
|
getUserAttributes: () => Xe()
|
|
@@ -219,7 +219,7 @@ function _e({
|
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
|
-
const
|
|
222
|
+
const xe = ({
|
|
223
223
|
code: e,
|
|
224
224
|
builder: t,
|
|
225
225
|
context: n,
|
|
@@ -228,7 +228,7 @@ const We = ({
|
|
|
228
228
|
rootSetState: i,
|
|
229
229
|
rootState: s
|
|
230
230
|
}) => {
|
|
231
|
-
const
|
|
231
|
+
const l = Gt({
|
|
232
232
|
builder: t,
|
|
233
233
|
context: n,
|
|
234
234
|
event: o,
|
|
@@ -238,7 +238,7 @@ const We = ({
|
|
|
238
238
|
rootSetState: i
|
|
239
239
|
})
|
|
240
240
|
});
|
|
241
|
-
return new Function(...
|
|
241
|
+
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
242
242
|
}, K = (e) => e != null;
|
|
243
243
|
function Yt() {
|
|
244
244
|
var e;
|
|
@@ -254,11 +254,11 @@ const Xt = ({
|
|
|
254
254
|
return t && n && !o ? (e && B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
255
255
|
}, _t = (e) => (T() || Xt({
|
|
256
256
|
shouldLogWarning: !0
|
|
257
|
-
}),
|
|
257
|
+
}), xe(e)), Zt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, en = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, tn = (e) => {
|
|
258
258
|
var t, n, o, r, i, s;
|
|
259
259
|
return ((o = (n = (t = Zt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = en.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
260
260
|
};
|
|
261
|
-
function
|
|
261
|
+
function ee({
|
|
262
262
|
code: e,
|
|
263
263
|
context: t,
|
|
264
264
|
localState: n,
|
|
@@ -269,13 +269,13 @@ function te({
|
|
|
269
269
|
}) {
|
|
270
270
|
if (e.trim() === "")
|
|
271
271
|
return;
|
|
272
|
-
const
|
|
273
|
-
if (
|
|
272
|
+
const l = tn(e.trim());
|
|
273
|
+
if (l)
|
|
274
274
|
return Je({
|
|
275
275
|
...o,
|
|
276
276
|
...n
|
|
277
|
-
},
|
|
278
|
-
const
|
|
277
|
+
}, l);
|
|
278
|
+
const a = {
|
|
279
279
|
code: Qt(e, {
|
|
280
280
|
isExpression: s
|
|
281
281
|
}),
|
|
@@ -287,7 +287,7 @@ function te({
|
|
|
287
287
|
localState: n
|
|
288
288
|
};
|
|
289
289
|
try {
|
|
290
|
-
return _t(
|
|
290
|
+
return _t(a);
|
|
291
291
|
} catch (u) {
|
|
292
292
|
B.error("Failed code evaluation: " + u.message, {
|
|
293
293
|
code: e
|
|
@@ -308,7 +308,7 @@ const on = (e, t) => {
|
|
|
308
308
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
|
|
309
309
|
return {
|
|
310
310
|
...e.component.options,
|
|
311
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) =>
|
|
311
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => ee({
|
|
312
312
|
code: i,
|
|
313
313
|
context: t,
|
|
314
314
|
localState: t.localState,
|
|
@@ -323,7 +323,7 @@ function rn(e, ...t) {
|
|
|
323
323
|
delete n[o];
|
|
324
324
|
return n;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function se(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
327
327
|
if (e == null || typeof e != "object") {
|
|
328
328
|
t(e, (i) => {
|
|
329
329
|
n !== null && o !== null && (n[o] = i);
|
|
@@ -331,13 +331,13 @@ function ae(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
333
|
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
|
|
334
|
-
t(i, (
|
|
335
|
-
e[s] =
|
|
336
|
-
}),
|
|
334
|
+
t(i, (a) => {
|
|
335
|
+
e[s] = a;
|
|
336
|
+
}), se(i, t, e, s, r);
|
|
337
337
|
}) : Object.entries(e).forEach(([i, s]) => {
|
|
338
|
-
t(s, (
|
|
339
|
-
e[i] =
|
|
340
|
-
}),
|
|
338
|
+
t(s, (a) => {
|
|
339
|
+
e[i] = a;
|
|
340
|
+
}), se(s, t, e, i, r);
|
|
341
341
|
}));
|
|
342
342
|
}
|
|
343
343
|
function Ze(e) {
|
|
@@ -347,7 +347,7 @@ function sn(e) {
|
|
|
347
347
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
348
348
|
return !1;
|
|
349
349
|
let t = !1;
|
|
350
|
-
return
|
|
350
|
+
return se(e, (n) => {
|
|
351
351
|
if (Ze(n)) {
|
|
352
352
|
t = !0;
|
|
353
353
|
return;
|
|
@@ -355,7 +355,7 @@ function sn(e) {
|
|
|
355
355
|
}), t;
|
|
356
356
|
}
|
|
357
357
|
function an(e, t) {
|
|
358
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
358
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (se(e, (n, o) => {
|
|
359
359
|
Ze(n) && o(n[t] ?? void 0);
|
|
360
360
|
}), e);
|
|
361
361
|
}
|
|
@@ -363,27 +363,27 @@ function ln(e, t) {
|
|
|
363
363
|
var n, o;
|
|
364
364
|
return (n = e.component) != null && n.options && sn((o = e.component) == null ? void 0 : o.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = an(e.component.options, t ?? "Default")), e;
|
|
365
365
|
}
|
|
366
|
-
const
|
|
366
|
+
const Ce = (e) => JSON.parse(JSON.stringify(e)), et = (e, t, n) => {
|
|
367
367
|
if (Object(e) !== e)
|
|
368
368
|
return e;
|
|
369
369
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
370
370
|
return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
371
371
|
};
|
|
372
|
-
function
|
|
372
|
+
function ge(e) {
|
|
373
373
|
if (e === null || typeof e != "object")
|
|
374
374
|
return e;
|
|
375
375
|
if (Array.isArray(e))
|
|
376
|
-
return e.map((n) =>
|
|
376
|
+
return e.map((n) => ge(n));
|
|
377
377
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
378
378
|
return e;
|
|
379
379
|
const t = {};
|
|
380
380
|
for (const n in e)
|
|
381
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
381
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ge(e[n]));
|
|
382
382
|
return t;
|
|
383
383
|
}
|
|
384
384
|
const cn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), dn = (e) => {
|
|
385
385
|
if (cn) {
|
|
386
|
-
const t =
|
|
386
|
+
const t = Ce(e);
|
|
387
387
|
return {
|
|
388
388
|
...t,
|
|
389
389
|
properties: {
|
|
@@ -394,7 +394,7 @@ const cn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), dn = (e) =
|
|
|
394
394
|
}
|
|
395
395
|
};
|
|
396
396
|
} else {
|
|
397
|
-
const t =
|
|
397
|
+
const t = ge(rn(e, "children", "meta"));
|
|
398
398
|
return {
|
|
399
399
|
...t,
|
|
400
400
|
properties: {
|
|
@@ -418,14 +418,14 @@ const cn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), dn = (e) =
|
|
|
418
418
|
return e;
|
|
419
419
|
const i = dn(e);
|
|
420
420
|
for (const s in e.bindings) {
|
|
421
|
-
const
|
|
422
|
-
code:
|
|
421
|
+
const l = e.bindings[s], a = ee({
|
|
422
|
+
code: l,
|
|
423
423
|
localState: n,
|
|
424
424
|
rootState: o,
|
|
425
425
|
rootSetState: r,
|
|
426
426
|
context: t
|
|
427
427
|
});
|
|
428
|
-
et(i, s,
|
|
428
|
+
et(i, s, a);
|
|
429
429
|
}
|
|
430
430
|
return i;
|
|
431
431
|
};
|
|
@@ -445,25 +445,25 @@ function pn({
|
|
|
445
445
|
context: t
|
|
446
446
|
}), i = ln(i, o.locale), i;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Te(e) {
|
|
449
449
|
const t = e || (T() ? window.location.search : void 0);
|
|
450
450
|
return t ? Ye(t).indexOf("builder.preview=") !== -1 : !1;
|
|
451
451
|
}
|
|
452
452
|
const mn = (e) => ({
|
|
453
453
|
type: "builder.registerComponent",
|
|
454
|
-
data:
|
|
454
|
+
data: ae(e)
|
|
455
455
|
}), hn = (e) => {
|
|
456
456
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
457
457
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
458
458
|
};
|
|
459
|
-
function
|
|
459
|
+
function ae(e) {
|
|
460
460
|
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? hn(n) : n));
|
|
461
461
|
}
|
|
462
|
-
const
|
|
462
|
+
const We = {};
|
|
463
463
|
function Ss(e, t) {
|
|
464
|
-
e === "plugin" && (t =
|
|
465
|
-
let n =
|
|
466
|
-
if (n || (n =
|
|
464
|
+
e === "plugin" && (t = ae(t));
|
|
465
|
+
let n = We[e];
|
|
466
|
+
if (n || (n = We[e] = []), n.push(t), T()) {
|
|
467
467
|
const o = {
|
|
468
468
|
type: "builder.register",
|
|
469
469
|
data: {
|
|
@@ -488,13 +488,13 @@ function ks(e) {
|
|
|
488
488
|
}, "*");
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
const
|
|
491
|
+
const De = {};
|
|
492
492
|
function Cs(e) {
|
|
493
493
|
if (T()) {
|
|
494
|
-
Object.assign(
|
|
494
|
+
Object.assign(De, e);
|
|
495
495
|
const t = {
|
|
496
496
|
type: "builder.settingsChange",
|
|
497
|
-
data:
|
|
497
|
+
data: De
|
|
498
498
|
};
|
|
499
499
|
parent.postMessage(t, "*");
|
|
500
500
|
}
|
|
@@ -514,7 +514,7 @@ const Oe = "builder.", fn = "options.", tt = (e) => {
|
|
|
514
514
|
return {};
|
|
515
515
|
const e = new URLSearchParams(window.location.search);
|
|
516
516
|
return tt(e);
|
|
517
|
-
}, nt = "4.2.
|
|
517
|
+
}, nt = "4.2.3", ot = () => ({
|
|
518
518
|
"X-Builder-SDK": R,
|
|
519
519
|
"X-Builder-SDK-GEN": "2",
|
|
520
520
|
"X-Builder-SDK-Version": nt
|
|
@@ -523,7 +523,7 @@ const Oe = "builder.", fn = "options.", tt = (e) => {
|
|
|
523
523
|
return e;
|
|
524
524
|
const t = e.split(".");
|
|
525
525
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
526
|
-
},
|
|
526
|
+
}, de = ({
|
|
527
527
|
name: e,
|
|
528
528
|
canTrack: t
|
|
529
529
|
}) => {
|
|
@@ -534,14 +534,14 @@ const Oe = "builder.", fn = "options.", tt = (e) => {
|
|
|
534
534
|
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
535
535
|
return;
|
|
536
536
|
}
|
|
537
|
-
}, rt = async (e) =>
|
|
537
|
+
}, rt = async (e) => de(e), yn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), vn = [["secure", ""], ["SameSite", "None"]], Sn = ({
|
|
538
538
|
name: e,
|
|
539
539
|
value: t,
|
|
540
540
|
expires: n
|
|
541
541
|
}) => {
|
|
542
542
|
const r = (T() ? location.protocol === "https:" : !0) ? vn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", gn(window.location.hostname)], ...r];
|
|
543
543
|
return yn(s);
|
|
544
|
-
},
|
|
544
|
+
}, we = async ({
|
|
545
545
|
name: e,
|
|
546
546
|
value: t,
|
|
547
547
|
expires: n,
|
|
@@ -590,7 +590,7 @@ const st = "builderSessionId", Cn = async ({
|
|
|
590
590
|
}, Tn = () => it(), wn = ({
|
|
591
591
|
id: e,
|
|
592
592
|
canTrack: t
|
|
593
|
-
}) =>
|
|
593
|
+
}) => we({
|
|
594
594
|
name: st,
|
|
595
595
|
value: e,
|
|
596
596
|
canTrack: t
|
|
@@ -629,12 +629,12 @@ const st = "builderSessionId", Cn = async ({
|
|
|
629
629
|
return t;
|
|
630
630
|
{
|
|
631
631
|
const n = En();
|
|
632
|
-
return
|
|
632
|
+
return An({
|
|
633
633
|
id: n,
|
|
634
634
|
canTrack: e
|
|
635
635
|
}), n;
|
|
636
636
|
}
|
|
637
|
-
}, En = () => it(),
|
|
637
|
+
}, En = () => it(), An = ({
|
|
638
638
|
id: e,
|
|
639
639
|
canTrack: t
|
|
640
640
|
}) => $n({
|
|
@@ -642,11 +642,11 @@ const st = "builderSessionId", Cn = async ({
|
|
|
642
642
|
value: e,
|
|
643
643
|
canTrack: t
|
|
644
644
|
});
|
|
645
|
-
function
|
|
645
|
+
function Ie(e) {
|
|
646
646
|
var t;
|
|
647
647
|
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
|
|
648
648
|
}
|
|
649
|
-
const
|
|
649
|
+
const Pn = async ({
|
|
650
650
|
canTrack: e
|
|
651
651
|
}) => {
|
|
652
652
|
if (!e)
|
|
@@ -677,14 +677,14 @@ const An = async ({
|
|
|
677
677
|
url: location.href,
|
|
678
678
|
...o
|
|
679
679
|
},
|
|
680
|
-
...await
|
|
680
|
+
...await Pn({
|
|
681
681
|
canTrack: t
|
|
682
682
|
}),
|
|
683
683
|
userAttributes: Xe(),
|
|
684
684
|
ownerId: n
|
|
685
685
|
}
|
|
686
686
|
});
|
|
687
|
-
async function
|
|
687
|
+
async function ye({
|
|
688
688
|
apiHost: e,
|
|
689
689
|
...t
|
|
690
690
|
}) {
|
|
@@ -692,10 +692,10 @@ async function ve({
|
|
|
692
692
|
B.error("Missing API key for track call. Please provide your API key.");
|
|
693
693
|
return;
|
|
694
694
|
}
|
|
695
|
-
if (!t.canTrack ||
|
|
695
|
+
if (!t.canTrack || A() || !(T() || R === "reactNative"))
|
|
696
696
|
return;
|
|
697
697
|
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
698
|
-
return
|
|
698
|
+
return Ie(o), fetch(o, {
|
|
699
699
|
method: "POST",
|
|
700
700
|
body: JSON.stringify({
|
|
701
701
|
events: [await Bn(t)]
|
|
@@ -709,7 +709,7 @@ async function ve({
|
|
|
709
709
|
console.error("Failed to track: ", r);
|
|
710
710
|
});
|
|
711
711
|
}
|
|
712
|
-
const Ts = (e) =>
|
|
712
|
+
const Ts = (e) => ye({
|
|
713
713
|
...e,
|
|
714
714
|
canTrack: !0
|
|
715
715
|
}), Vn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
@@ -752,10 +752,10 @@ const dt = (e) => {
|
|
|
752
752
|
if (r != null && r.type)
|
|
753
753
|
switch (r.type) {
|
|
754
754
|
case "builder.evaluate": {
|
|
755
|
-
const
|
|
755
|
+
const l = r.data.text, a = r.data.arguments || [], u = r.data.id, p = new Function(l);
|
|
756
756
|
let f, c = null;
|
|
757
757
|
try {
|
|
758
|
-
f = p.apply(null,
|
|
758
|
+
f = p.apply(null, a);
|
|
759
759
|
} catch (m) {
|
|
760
760
|
c = m;
|
|
761
761
|
}
|
|
@@ -806,13 +806,13 @@ const dt = (e) => {
|
|
|
806
806
|
break;
|
|
807
807
|
}
|
|
808
808
|
case "builder.resetState": {
|
|
809
|
-
const i = r.data, s = i.model,
|
|
810
|
-
s === e &&
|
|
809
|
+
const i = r.data, s = i.model, l = i == null ? void 0 : i.state, a = i.editType;
|
|
810
|
+
s === e && l && n.stateUpdate(l, a);
|
|
811
811
|
break;
|
|
812
812
|
}
|
|
813
813
|
case "builder.contentUpdate": {
|
|
814
|
-
const i = r.data, s = i.key || i.alias || i.entry || i.modelName, a = i.
|
|
815
|
-
s === e && n.contentUpdate(a);
|
|
814
|
+
const i = r.data, s = i.key || i.alias || i.entry || i.modelName, l = i.data, a = i.editType;
|
|
815
|
+
s === e && n.contentUpdate(l, a);
|
|
816
816
|
break;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
@@ -845,21 +845,21 @@ const dt = (e) => {
|
|
|
845
845
|
return window.addEventListener("message", r), () => {
|
|
846
846
|
window.removeEventListener("message", r);
|
|
847
847
|
};
|
|
848
|
-
}, Nn = "builder.tests",
|
|
848
|
+
}, Nn = "builder.tests", $e = (e) => `${Nn}.${e}`, xn = ({
|
|
849
849
|
contentId: e
|
|
850
850
|
}) => rt({
|
|
851
|
-
name:
|
|
851
|
+
name: $e(e),
|
|
852
852
|
canTrack: !0
|
|
853
|
-
}),
|
|
853
|
+
}), Wn = ({
|
|
854
854
|
contentId: e
|
|
855
|
-
}) =>
|
|
856
|
-
name:
|
|
855
|
+
}) => de({
|
|
856
|
+
name: $e(e),
|
|
857
857
|
canTrack: !0
|
|
858
|
-
}),
|
|
858
|
+
}), Dn = ({
|
|
859
859
|
contentId: e,
|
|
860
860
|
value: t
|
|
861
|
-
}) =>
|
|
862
|
-
name:
|
|
861
|
+
}) => we({
|
|
862
|
+
name: $e(e),
|
|
863
863
|
value: t,
|
|
864
864
|
canTrack: !0
|
|
865
865
|
}), pt = (e) => K(e.id) && K(e.variations) && Object.keys(e.variations).length > 0, On = ({
|
|
@@ -877,7 +877,7 @@ const dt = (e) => {
|
|
|
877
877
|
return e;
|
|
878
878
|
}, mt = (e) => {
|
|
879
879
|
const t = On(e);
|
|
880
|
-
return
|
|
880
|
+
return Dn({
|
|
881
881
|
contentId: e.id,
|
|
882
882
|
value: t
|
|
883
883
|
}).catch((n) => {
|
|
@@ -907,7 +907,7 @@ const dt = (e) => {
|
|
|
907
907
|
return;
|
|
908
908
|
if (!pt(e))
|
|
909
909
|
return e;
|
|
910
|
-
const n =
|
|
910
|
+
const n = Wn({
|
|
911
911
|
contentId: e.id
|
|
912
912
|
}) || mt({
|
|
913
913
|
variations: e.variations,
|
|
@@ -920,13 +920,13 @@ const dt = (e) => {
|
|
|
920
920
|
...e,
|
|
921
921
|
...o
|
|
922
922
|
};
|
|
923
|
-
},
|
|
923
|
+
}, Ln = async ({
|
|
924
924
|
item: e,
|
|
925
925
|
canTrack: t
|
|
926
926
|
}) => {
|
|
927
927
|
if (!t || !pt(e))
|
|
928
928
|
return e;
|
|
929
|
-
const o = await
|
|
929
|
+
const o = await xn({
|
|
930
930
|
contentId: e.id
|
|
931
931
|
}) || mt({
|
|
932
932
|
variations: e.variations,
|
|
@@ -940,8 +940,8 @@ const dt = (e) => {
|
|
|
940
940
|
...r
|
|
941
941
|
};
|
|
942
942
|
};
|
|
943
|
-
const
|
|
944
|
-
function
|
|
943
|
+
const Le = "builder.userAttributes";
|
|
944
|
+
function Fe() {
|
|
945
945
|
let e = !0;
|
|
946
946
|
const t = /* @__PURE__ */ new Set();
|
|
947
947
|
return {
|
|
@@ -952,15 +952,15 @@ function Le() {
|
|
|
952
952
|
...this.getUserAttributes(),
|
|
953
953
|
...n
|
|
954
954
|
};
|
|
955
|
-
|
|
956
|
-
name:
|
|
955
|
+
we({
|
|
956
|
+
name: Le,
|
|
957
957
|
value: JSON.stringify(o),
|
|
958
958
|
canTrack: e
|
|
959
959
|
}), t.forEach((r) => r(o));
|
|
960
960
|
},
|
|
961
961
|
getUserAttributes() {
|
|
962
|
-
return T() ? JSON.parse(
|
|
963
|
-
name:
|
|
962
|
+
return T() ? JSON.parse(de({
|
|
963
|
+
name: Le,
|
|
964
964
|
canTrack: e
|
|
965
965
|
}) || "{}") : {};
|
|
966
966
|
},
|
|
@@ -976,31 +976,31 @@ function Le() {
|
|
|
976
976
|
}
|
|
977
977
|
};
|
|
978
978
|
}
|
|
979
|
-
let
|
|
980
|
-
T() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ =
|
|
981
|
-
const
|
|
982
|
-
|
|
983
|
-
},
|
|
979
|
+
let ve;
|
|
980
|
+
T() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Fe()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = Fe();
|
|
981
|
+
const le = ve, Is = (e) => {
|
|
982
|
+
le.setUserAttributes(e);
|
|
983
|
+
}, G = (e) => {
|
|
984
984
|
const t = K(e) ? e : !0;
|
|
985
|
-
return
|
|
985
|
+
return le.setCanTrack(t), t;
|
|
986
986
|
};
|
|
987
|
-
function
|
|
987
|
+
function Fn() {
|
|
988
988
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
989
989
|
}
|
|
990
990
|
function Hn() {
|
|
991
|
-
const e =
|
|
991
|
+
const e = Fn().fetch;
|
|
992
992
|
if (typeof e > "u")
|
|
993
993
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
994
994
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
995
995
|
return e;
|
|
996
996
|
}
|
|
997
997
|
const Mn = Hn();
|
|
998
|
-
function
|
|
998
|
+
function Se(e, t = null, n = ".") {
|
|
999
999
|
return Object.keys(e).reduce((o, r) => {
|
|
1000
1000
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
1001
1001
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
1002
1002
|
...o,
|
|
1003
|
-
...
|
|
1003
|
+
...Se(i, s, n)
|
|
1004
1004
|
} : {
|
|
1005
1005
|
...o,
|
|
1006
1006
|
[s]: i
|
|
@@ -1026,7 +1026,7 @@ function jn(e) {
|
|
|
1026
1026
|
}
|
|
1027
1027
|
return t;
|
|
1028
1028
|
}
|
|
1029
|
-
const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0,
|
|
1029
|
+
const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (e) => {
|
|
1030
1030
|
const {
|
|
1031
1031
|
limit: t = 30,
|
|
1032
1032
|
userAttributes: n,
|
|
@@ -1034,8 +1034,8 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ee = (
|
|
|
1034
1034
|
model: r,
|
|
1035
1035
|
apiKey: i,
|
|
1036
1036
|
enrich: s,
|
|
1037
|
-
locale:
|
|
1038
|
-
apiVersion:
|
|
1037
|
+
locale: l,
|
|
1038
|
+
apiVersion: a = Kn,
|
|
1039
1039
|
fields: u,
|
|
1040
1040
|
omit: p,
|
|
1041
1041
|
offset: f,
|
|
@@ -1043,43 +1043,39 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ee = (
|
|
|
1043
1043
|
staleCacheSeconds: m,
|
|
1044
1044
|
sort: b,
|
|
1045
1045
|
includeUnpublished: g,
|
|
1046
|
-
apiHost:
|
|
1046
|
+
apiHost: P
|
|
1047
1047
|
} = e;
|
|
1048
1048
|
if (!i)
|
|
1049
1049
|
throw new Error("Missing API key");
|
|
1050
|
-
if (!["v3"].includes(
|
|
1051
|
-
throw new Error(`Invalid apiVersion: expected 'v3', received '${
|
|
1052
|
-
const
|
|
1053
|
-
w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
locale: D,
|
|
1058
|
-
...H
|
|
1059
|
-
}), s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", p ?? "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && w.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && w.searchParams.set("includeUnpublished", String(g)), c && He(c) && w.searchParams.set("cacheSeconds", String(c)), m && He(m) && w.searchParams.set("staleCacheSeconds", String(m)), b) {
|
|
1060
|
-
const x = ke({
|
|
1050
|
+
if (!["v3"].includes(a))
|
|
1051
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
1052
|
+
const U = t !== 1, V = P || "https://cdn.builder.io", w = new URL(`${V}/api/${a}/content/${r}`);
|
|
1053
|
+
w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(U)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l);
|
|
1054
|
+
let W = n || {};
|
|
1055
|
+
if (s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", p ?? "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && w.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && w.searchParams.set("includeUnpublished", String(g)), c && He(c) && w.searchParams.set("cacheSeconds", String(c)), m && He(m) && w.searchParams.set("staleCacheSeconds", String(m)), b) {
|
|
1056
|
+
const D = Se({
|
|
1061
1057
|
sort: b
|
|
1062
1058
|
});
|
|
1063
|
-
for (const
|
|
1064
|
-
w.searchParams.set(
|
|
1059
|
+
for (const H in D)
|
|
1060
|
+
w.searchParams.set(H, JSON.stringify(D[H]));
|
|
1065
1061
|
}
|
|
1066
|
-
const
|
|
1062
|
+
const J = {
|
|
1067
1063
|
...bn(),
|
|
1068
1064
|
...Qe(e.options || {})
|
|
1069
1065
|
};
|
|
1070
|
-
|
|
1071
|
-
...
|
|
1072
|
-
...zn(
|
|
1066
|
+
W = {
|
|
1067
|
+
...W,
|
|
1068
|
+
...zn(J)
|
|
1073
1069
|
};
|
|
1074
|
-
const
|
|
1075
|
-
for (const
|
|
1076
|
-
w.searchParams.set(
|
|
1077
|
-
if (Object.keys(
|
|
1078
|
-
const
|
|
1070
|
+
const Q = Se(J);
|
|
1071
|
+
for (const D in Q)
|
|
1072
|
+
w.searchParams.set(D, String(Q[D]));
|
|
1073
|
+
if (Object.keys(W).length > 0 && w.searchParams.set("userAttributes", JSON.stringify(W)), o) {
|
|
1074
|
+
const D = ft({
|
|
1079
1075
|
query: o
|
|
1080
1076
|
});
|
|
1081
|
-
for (const
|
|
1082
|
-
w.searchParams.set(
|
|
1077
|
+
for (const H in D)
|
|
1078
|
+
w.searchParams.set(H, JSON.stringify(D[H]));
|
|
1083
1079
|
}
|
|
1084
1080
|
return w;
|
|
1085
1081
|
}, qn = (e) => {
|
|
@@ -1097,16 +1093,22 @@ const Kn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ee = (
|
|
|
1097
1093
|
}
|
|
1098
1094
|
return {};
|
|
1099
1095
|
}, Gn = (e) => "results" in e;
|
|
1100
|
-
async function
|
|
1101
|
-
|
|
1096
|
+
async function Ee(e) {
|
|
1097
|
+
var o;
|
|
1098
|
+
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
1099
|
+
t && (e.locale = t, e.userAttributes = {
|
|
1100
|
+
locale: t,
|
|
1101
|
+
...e.userAttributes
|
|
1102
|
+
});
|
|
1103
|
+
const n = await Yn({
|
|
1102
1104
|
...e,
|
|
1103
1105
|
limit: 1
|
|
1104
1106
|
});
|
|
1105
|
-
return
|
|
1107
|
+
return n && n[0] || null;
|
|
1106
1108
|
}
|
|
1107
1109
|
const Jn = async (e) => {
|
|
1108
1110
|
var s;
|
|
1109
|
-
const t =
|
|
1111
|
+
const t = Re(e), n = e.fetch ?? Mn, o = {
|
|
1110
1112
|
...e.fetchOptions,
|
|
1111
1113
|
headers: {
|
|
1112
1114
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
@@ -1114,14 +1116,14 @@ const Jn = async (e) => {
|
|
|
1114
1116
|
}
|
|
1115
1117
|
};
|
|
1116
1118
|
return await (await n(t.href, o)).json();
|
|
1117
|
-
}, Qn = async (e, t, n =
|
|
1118
|
-
const o =
|
|
1119
|
+
}, Qn = async (e, t, n = Re(e)) => {
|
|
1120
|
+
const o = G(e.canTrack);
|
|
1119
1121
|
if (n.search.includes("preview="), !o || !(T() || R === "reactNative"))
|
|
1120
1122
|
return t.results;
|
|
1121
1123
|
try {
|
|
1122
1124
|
const r = [];
|
|
1123
1125
|
for (const i of t.results)
|
|
1124
|
-
r.push(await
|
|
1126
|
+
r.push(await Ln({
|
|
1125
1127
|
item: i,
|
|
1126
1128
|
canTrack: o
|
|
1127
1129
|
}));
|
|
@@ -1132,7 +1134,7 @@ const Jn = async (e) => {
|
|
|
1132
1134
|
return t.results;
|
|
1133
1135
|
};
|
|
1134
1136
|
async function Yn(e) {
|
|
1135
|
-
const t =
|
|
1137
|
+
const t = Re(e), n = await Jn(e);
|
|
1136
1138
|
if (!Gn(n))
|
|
1137
1139
|
throw B.error("Error fetching data. ", {
|
|
1138
1140
|
url: t,
|
|
@@ -1158,22 +1160,22 @@ const $s = async (e) => {
|
|
|
1158
1160
|
return {
|
|
1159
1161
|
apiKey: n.apiKey,
|
|
1160
1162
|
model: n.model,
|
|
1161
|
-
content: await
|
|
1163
|
+
content: await Ee(n)
|
|
1162
1164
|
};
|
|
1163
1165
|
}, Ae = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1164
1166
|
function Xn(e, t, n = {}) {
|
|
1165
|
-
let o, r, i, s = null,
|
|
1166
|
-
const
|
|
1167
|
-
|
|
1167
|
+
let o, r, i, s = null, l = 0;
|
|
1168
|
+
const a = function() {
|
|
1169
|
+
l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
1168
1170
|
};
|
|
1169
1171
|
return function() {
|
|
1170
1172
|
const u = Date.now();
|
|
1171
|
-
!
|
|
1172
|
-
const p = t - (u -
|
|
1173
|
-
return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null),
|
|
1173
|
+
!l && n.leading === !1 && (l = u);
|
|
1174
|
+
const p = t - (u - l);
|
|
1175
|
+
return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, p)), i;
|
|
1174
1176
|
};
|
|
1175
1177
|
}
|
|
1176
|
-
function
|
|
1178
|
+
function _(e, ...t) {
|
|
1177
1179
|
const n = Object(e);
|
|
1178
1180
|
for (let o = 1; o < arguments.length; o++) {
|
|
1179
1181
|
const r = arguments[o];
|
|
@@ -1199,9 +1201,9 @@ function bt(e) {
|
|
|
1199
1201
|
}
|
|
1200
1202
|
function gt(e, t) {
|
|
1201
1203
|
const n = Zn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
1202
|
-
for (const
|
|
1203
|
-
for (const
|
|
1204
|
-
|
|
1204
|
+
for (const l of s)
|
|
1205
|
+
for (const a of n)
|
|
1206
|
+
a in l || (l[a] = o[a]);
|
|
1205
1207
|
}
|
|
1206
1208
|
function Zn(e) {
|
|
1207
1209
|
const t = [];
|
|
@@ -1217,8 +1219,8 @@ function yt(e) {
|
|
|
1217
1219
|
return;
|
|
1218
1220
|
}
|
|
1219
1221
|
Array.from(t).forEach((n) => {
|
|
1220
|
-
gt(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
1221
|
-
n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
1222
|
+
gt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", _(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1223
|
+
n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), _(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1222
1224
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1223
1225
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1224
1226
|
});
|
|
@@ -1234,22 +1236,22 @@ function eo(e) {
|
|
|
1234
1236
|
gt(e, n);
|
|
1235
1237
|
let o = !1, r = !1;
|
|
1236
1238
|
function i() {
|
|
1237
|
-
!o &&
|
|
1238
|
-
|
|
1239
|
+
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
1240
|
+
_(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
1239
1241
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
1240
1242
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1241
|
-
})) : e.repeat && o && !r && !
|
|
1243
|
+
})) : e.repeat && o && !r && !l(n) && (o = !1, _(n.style, e.steps[0].styles));
|
|
1242
1244
|
}
|
|
1243
1245
|
const s = Xn(i, 200, {
|
|
1244
1246
|
leading: !1
|
|
1245
1247
|
});
|
|
1246
|
-
function
|
|
1248
|
+
function l(p) {
|
|
1247
1249
|
const f = p.getBoundingClientRect(), c = window.innerHeight, b = (e.thresholdPercent || 0) / 100 * c;
|
|
1248
1250
|
return f.bottom > b && f.top < c - b;
|
|
1249
1251
|
}
|
|
1250
|
-
const
|
|
1252
|
+
const a = e.steps[0].styles;
|
|
1251
1253
|
function u() {
|
|
1252
|
-
|
|
1254
|
+
_(n.style, a);
|
|
1253
1255
|
}
|
|
1254
1256
|
u(), setTimeout(() => {
|
|
1255
1257
|
n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -1329,7 +1331,7 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1329
1331
|
} = e;
|
|
1330
1332
|
if (!(n != null && n.collection))
|
|
1331
1333
|
return;
|
|
1332
|
-
const r =
|
|
1334
|
+
const r = ee({
|
|
1333
1335
|
code: n.collection,
|
|
1334
1336
|
localState: t.localState,
|
|
1335
1337
|
rootState: t.rootState,
|
|
@@ -1339,14 +1341,14 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1339
1341
|
if (!Array.isArray(r))
|
|
1340
1342
|
return;
|
|
1341
1343
|
const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
|
|
1342
|
-
return r.map((
|
|
1344
|
+
return r.map((a, u) => ({
|
|
1343
1345
|
context: {
|
|
1344
1346
|
...t,
|
|
1345
1347
|
localState: {
|
|
1346
1348
|
...t.localState,
|
|
1347
1349
|
$index: u,
|
|
1348
|
-
$item:
|
|
1349
|
-
[s]:
|
|
1350
|
+
$item: a,
|
|
1351
|
+
[s]: a,
|
|
1350
1352
|
[`$${s}Index`]: u
|
|
1351
1353
|
}
|
|
1352
1354
|
},
|
|
@@ -1377,34 +1379,34 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1377
1379
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1378
1380
|
e
|
|
1379
1381
|
), e;
|
|
1380
|
-
}), po = () => import("./block-
|
|
1381
|
-
throw console.error(
|
|
1382
|
-
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1383
|
-
e
|
|
1384
|
-
), e;
|
|
1385
|
-
}), mo = () => import("./block-wrapper-26klNOq9.js").then((e) => e.default).catch((e) => {
|
|
1382
|
+
}), po = () => import("./block-wrapper-LGlUvVpu.js").then((e) => e.default).catch((e) => {
|
|
1386
1383
|
throw console.error(
|
|
1387
1384
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1388
1385
|
e
|
|
1389
1386
|
), e;
|
|
1390
|
-
}),
|
|
1387
|
+
}), mo = () => import("./component-ref-tMh8EWjb.js").then((e) => e.default).catch((e) => {
|
|
1391
1388
|
throw console.error(
|
|
1392
1389
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1393
1390
|
e
|
|
1394
1391
|
), e;
|
|
1395
|
-
}),
|
|
1392
|
+
}), ho = () => import("./repeated-block-WP795fea.js").then((e) => e.default).catch((e) => {
|
|
1396
1393
|
throw console.error(
|
|
1397
1394
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1398
1395
|
e
|
|
1399
1396
|
), e;
|
|
1397
|
+
}), fo = () => import("./style-wrapper-OLuHp-wg.js").then((e) => e.default).catch((e) => {
|
|
1398
|
+
throw console.error(
|
|
1399
|
+
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1400
|
+
e
|
|
1401
|
+
), e;
|
|
1400
1402
|
}), bo = y({
|
|
1401
1403
|
name: "block",
|
|
1402
1404
|
components: {
|
|
1403
|
-
|
|
1404
|
-
RepeatedBlock:
|
|
1405
|
-
ComponentRef:
|
|
1406
|
-
BlockWrapper:
|
|
1407
|
-
DynamicDiv:
|
|
1405
|
+
StyleWrapper: Y(fo),
|
|
1406
|
+
RepeatedBlock: Y(ho),
|
|
1407
|
+
ComponentRef: Y(mo),
|
|
1408
|
+
BlockWrapper: Y(po),
|
|
1409
|
+
DynamicDiv: Y(uo)
|
|
1408
1410
|
},
|
|
1409
1411
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1410
1412
|
data() {
|
|
@@ -1494,20 +1496,21 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1494
1496
|
});
|
|
1495
1497
|
function go(e, t, n, o, r, i) {
|
|
1496
1498
|
var f;
|
|
1497
|
-
const s = k("
|
|
1499
|
+
const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
|
|
1498
1500
|
return e.canShowBlock ? (d(), h(I, { key: 0 }, [
|
|
1499
1501
|
E(s, {
|
|
1500
1502
|
block: e.processedBlock,
|
|
1501
|
-
context: e.context
|
|
1502
|
-
|
|
1503
|
+
context: e.context,
|
|
1504
|
+
id: e.block.id
|
|
1505
|
+
}, null, 8, ["block", "context", "id"]),
|
|
1503
1506
|
(f = e.blockComponent) != null && f.noWrap ? (d(), h(I, { key: 1 }, [
|
|
1504
|
-
e.repeatItem ? (d(!0), h(I, { key: 1 },
|
|
1507
|
+
e.repeatItem ? (d(!0), h(I, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
|
|
1505
1508
|
key: e.generateKey(m),
|
|
1506
1509
|
repeatContext: c.context,
|
|
1507
1510
|
block: c.block,
|
|
1508
1511
|
registeredComponents: e.registeredComponents,
|
|
1509
1512
|
linkComponent: e.linkComponent
|
|
1510
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(
|
|
1513
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (d(), S(l, {
|
|
1511
1514
|
key: 0,
|
|
1512
1515
|
componentRef: e.componentRefProps.componentRef,
|
|
1513
1516
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -1520,7 +1523,7 @@ function go(e, t, n, o, r, i) {
|
|
|
1520
1523
|
isInteractive: e.componentRefProps.isInteractive
|
|
1521
1524
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1522
1525
|
], 64)) : (d(), h(I, { key: 0 }, [
|
|
1523
|
-
e.repeatItem ? (d(!0), h(I, { key: 1 },
|
|
1526
|
+
e.repeatItem ? (d(!0), h(I, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
|
|
1524
1527
|
key: e.generateKey(m),
|
|
1525
1528
|
repeatContext: c.context,
|
|
1526
1529
|
block: c.block,
|
|
@@ -1532,8 +1535,8 @@ function go(e, t, n, o, r, i) {
|
|
|
1532
1535
|
block: e.processedBlock,
|
|
1533
1536
|
context: e.context
|
|
1534
1537
|
}, {
|
|
1535
|
-
default:
|
|
1536
|
-
E(
|
|
1538
|
+
default: O(() => [
|
|
1539
|
+
E(l, {
|
|
1537
1540
|
componentRef: e.componentRefProps.componentRef,
|
|
1538
1541
|
componentOptions: e.componentRefProps.componentOptions,
|
|
1539
1542
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -1544,7 +1547,7 @@ function go(e, t, n, o, r, i) {
|
|
|
1544
1547
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1545
1548
|
isInteractive: e.componentRefProps.isInteractive
|
|
1546
1549
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1547
|
-
(d(!0), h(I, null,
|
|
1550
|
+
(d(!0), h(I, null, F(e.childrenWithoutParentComponent, (c, m) => (d(), S(a, {
|
|
1548
1551
|
key: c.id,
|
|
1549
1552
|
block: c,
|
|
1550
1553
|
registeredComponents: e.registeredComponents,
|
|
@@ -1557,7 +1560,7 @@ function go(e, t, n, o, r, i) {
|
|
|
1557
1560
|
], 64))
|
|
1558
1561
|
], 64)) : C("", !0);
|
|
1559
1562
|
}
|
|
1560
|
-
const Ct = /* @__PURE__ */ v(bo, [["render", go]]),
|
|
1563
|
+
const Ct = /* @__PURE__ */ v(bo, [["render", go]]), As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1561
1564
|
__proto__: null,
|
|
1562
1565
|
default: Ct
|
|
1563
1566
|
}, Symbol.toStringTag, { value: "Module" })), yo = y({
|
|
@@ -1604,7 +1607,7 @@ const Ct = /* @__PURE__ */ v(bo, [["render", go]]), Ps = /* @__PURE__ */ Object.
|
|
|
1604
1607
|
methods: {
|
|
1605
1608
|
onClick() {
|
|
1606
1609
|
var e, t;
|
|
1607
|
-
|
|
1610
|
+
A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1608
1611
|
{
|
|
1609
1612
|
type: "builder.clickEmptyBlocks",
|
|
1610
1613
|
data: {
|
|
@@ -1617,7 +1620,7 @@ const Ct = /* @__PURE__ */ v(bo, [["render", go]]), Ps = /* @__PURE__ */ Object.
|
|
|
1617
1620
|
},
|
|
1618
1621
|
onMouseEnter() {
|
|
1619
1622
|
var e, t;
|
|
1620
|
-
|
|
1623
|
+
A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1621
1624
|
{
|
|
1622
1625
|
type: "builder.hoverEmptyBlocks",
|
|
1623
1626
|
data: {
|
|
@@ -1631,9 +1634,9 @@ const Ct = /* @__PURE__ */ v(bo, [["render", go]]), Ps = /* @__PURE__ */ Object.
|
|
|
1631
1634
|
}
|
|
1632
1635
|
});
|
|
1633
1636
|
function vo(e, t, n, o, r, i) {
|
|
1634
|
-
return d(), S(
|
|
1637
|
+
return d(), S(X(e.BlocksWrapper), $({
|
|
1635
1638
|
ref: "blocksWrapperRef",
|
|
1636
|
-
class: e.className + " component-
|
|
1639
|
+
class: e.className + " component-5vz8uirn7sc",
|
|
1637
1640
|
"builder-path": e.dataPath,
|
|
1638
1641
|
"builder-parent-id": e.parent,
|
|
1639
1642
|
style: e.styleProp,
|
|
@@ -1641,13 +1644,13 @@ function vo(e, t, n, o, r, i) {
|
|
|
1641
1644
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
1642
1645
|
onKeyPress: (s) => e.onClick()
|
|
1643
1646
|
}, { ...e.BlocksWrapperProps }), {
|
|
1644
|
-
default:
|
|
1647
|
+
default: O(() => [
|
|
1645
1648
|
N(e.$slots, "default", {}, void 0, !0)
|
|
1646
1649
|
]),
|
|
1647
1650
|
_: 3
|
|
1648
1651
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1649
1652
|
}
|
|
1650
|
-
const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-
|
|
1653
|
+
const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-82fc93d6"]]), ko = y({
|
|
1651
1654
|
name: "builder-blocks",
|
|
1652
1655
|
components: { BlocksWrapper: So, Block: Ct },
|
|
1653
1656
|
props: [
|
|
@@ -1662,25 +1665,25 @@ const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-161c6b74
|
|
|
1662
1665
|
"registeredComponents"
|
|
1663
1666
|
],
|
|
1664
1667
|
inject: {
|
|
1665
|
-
builderContext:
|
|
1668
|
+
builderContext: be.key,
|
|
1666
1669
|
componentsContext: Ge.key
|
|
1667
1670
|
}
|
|
1668
1671
|
});
|
|
1669
1672
|
function Co(e, t, n, o, r, i) {
|
|
1670
|
-
var
|
|
1671
|
-
const s = k("Block"),
|
|
1672
|
-
return d(), S(
|
|
1673
|
+
var a, u, p, f;
|
|
1674
|
+
const s = k("Block"), l = k("BlocksWrapper");
|
|
1675
|
+
return d(), S(l, {
|
|
1673
1676
|
blocks: e.blocks,
|
|
1674
1677
|
parent: e.parent,
|
|
1675
1678
|
path: e.path,
|
|
1676
1679
|
styleProp: e.styleProp,
|
|
1677
|
-
BlocksWrapperProps: e.BlocksWrapperProps || ((
|
|
1680
|
+
BlocksWrapperProps: e.BlocksWrapperProps || ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapperProps),
|
|
1678
1681
|
classNameProp: e.className,
|
|
1679
1682
|
BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((f = e.builderContext) == null ? void 0 : f.BlocksWrapper)
|
|
1680
1683
|
}, {
|
|
1681
|
-
default:
|
|
1684
|
+
default: O(() => [
|
|
1682
1685
|
N(e.$slots, "default"),
|
|
1683
|
-
e.blocks ? (d(!0), h(I, { key: 0 },
|
|
1686
|
+
e.blocks ? (d(!0), h(I, { key: 0 }, F(e.blocks, (c, m) => {
|
|
1684
1687
|
var b;
|
|
1685
1688
|
return d(), S(s, {
|
|
1686
1689
|
key: c.id,
|
|
@@ -1703,10 +1706,10 @@ function wo(e, t, n, o, r, i) {
|
|
|
1703
1706
|
N(e.$slots, "default")
|
|
1704
1707
|
]);
|
|
1705
1708
|
}
|
|
1706
|
-
const
|
|
1709
|
+
const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1707
1710
|
__proto__: null,
|
|
1708
|
-
default:
|
|
1709
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1711
|
+
default: te
|
|
1712
|
+
}, Symbol.toStringTag, { value: "Module" })), ue = y({
|
|
1710
1713
|
render() {
|
|
1711
1714
|
return ze("style", {
|
|
1712
1715
|
innerHTML: this.styles,
|
|
@@ -1737,8 +1740,8 @@ const ne = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1737
1740
|
default: 991,
|
|
1738
1741
|
max: 1200
|
|
1739
1742
|
}
|
|
1740
|
-
},
|
|
1741
|
-
const t =
|
|
1743
|
+
}, Ps = (e, t = Tt) => `@media (max-width: ${t[e].max}px)`, $o = (e) => {
|
|
1744
|
+
const t = Ce(Tt);
|
|
1742
1745
|
if (!e)
|
|
1743
1746
|
return t;
|
|
1744
1747
|
const {
|
|
@@ -1747,11 +1750,11 @@ const ne = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1747
1750
|
medium: r
|
|
1748
1751
|
} = e;
|
|
1749
1752
|
if (n) {
|
|
1750
|
-
const
|
|
1753
|
+
const a = Math.floor(n / 2);
|
|
1751
1754
|
t.xsmall = {
|
|
1752
1755
|
max: n,
|
|
1753
|
-
min:
|
|
1754
|
-
default:
|
|
1756
|
+
min: a,
|
|
1757
|
+
default: a + 1
|
|
1755
1758
|
};
|
|
1756
1759
|
}
|
|
1757
1760
|
if (!o || !r)
|
|
@@ -1768,20 +1771,20 @@ const ne = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1768
1771
|
min: s,
|
|
1769
1772
|
default: s + 1
|
|
1770
1773
|
};
|
|
1771
|
-
const
|
|
1774
|
+
const l = t.medium.max + 1;
|
|
1772
1775
|
return t.large = {
|
|
1773
1776
|
max: 2e3,
|
|
1774
1777
|
// TODO: decide upper limit
|
|
1775
|
-
min:
|
|
1776
|
-
default:
|
|
1778
|
+
min: l,
|
|
1779
|
+
default: l + 1
|
|
1777
1780
|
}, t;
|
|
1778
1781
|
}, Ro = (e) => `builder-columns ${e}-breakpoints`, Eo = y({
|
|
1779
1782
|
name: "builder-columns",
|
|
1780
1783
|
components: {
|
|
1781
|
-
InlinedStyles:
|
|
1782
|
-
DynamicRenderer:
|
|
1784
|
+
InlinedStyles: ue,
|
|
1785
|
+
DynamicRenderer: ke,
|
|
1783
1786
|
Blocks: q,
|
|
1784
|
-
DynamicDiv:
|
|
1787
|
+
DynamicDiv: te
|
|
1785
1788
|
},
|
|
1786
1789
|
props: [
|
|
1787
1790
|
"space",
|
|
@@ -1910,17 +1913,17 @@ const ne = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1910
1913
|
...e.link ? {
|
|
1911
1914
|
href: e.link
|
|
1912
1915
|
} : {},
|
|
1913
|
-
[
|
|
1916
|
+
[j()]: "builder-column",
|
|
1914
1917
|
style: St(this.columnCssVars(t))
|
|
1915
1918
|
};
|
|
1916
1919
|
}
|
|
1917
1920
|
}
|
|
1918
1921
|
});
|
|
1919
|
-
function
|
|
1922
|
+
function Ao(e, t, n, o, r, i) {
|
|
1920
1923
|
var u;
|
|
1921
|
-
const s = k("InlinedStyles"),
|
|
1924
|
+
const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1922
1925
|
return d(), h("div", $({
|
|
1923
|
-
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-
|
|
1926
|
+
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-1be3j8m9ewb",
|
|
1924
1927
|
style: e.columnsCssVars()
|
|
1925
1928
|
}, {}), [
|
|
1926
1929
|
e.TARGET !== "reactNative" ? (d(), S(s, {
|
|
@@ -1929,14 +1932,14 @@ function Po(e, t, n, o, r, i) {
|
|
|
1929
1932
|
styles: e.columnsStyles(),
|
|
1930
1933
|
nonce: e.builderContext.nonce
|
|
1931
1934
|
}, null, 8, ["styles", "nonce"])) : C("", !0),
|
|
1932
|
-
(d(!0), h(I, null,
|
|
1935
|
+
(d(!0), h(I, null, F(e.columns, (p, f) => (d(), S(a, {
|
|
1933
1936
|
key: f,
|
|
1934
1937
|
TagName: e.getTagName(p),
|
|
1935
1938
|
actionAttributes: {},
|
|
1936
1939
|
attributes: e.getAttributes(p, f)
|
|
1937
1940
|
}, {
|
|
1938
|
-
default:
|
|
1939
|
-
E(
|
|
1941
|
+
default: O(() => [
|
|
1942
|
+
E(l, {
|
|
1940
1943
|
path: `columns.${f}.blocks`,
|
|
1941
1944
|
parent: e.builderBlock.id,
|
|
1942
1945
|
context: e.builderContext,
|
|
@@ -1952,7 +1955,7 @@ function Po(e, t, n, o, r, i) {
|
|
|
1952
1955
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1953
1956
|
], 16);
|
|
1954
1957
|
}
|
|
1955
|
-
const
|
|
1958
|
+
const Po = /* @__PURE__ */ v(Eo, [["render", Ao], ["__scopeId", "data-v-ab15749a"]]), Bo = y({
|
|
1956
1959
|
name: "builder-fragment-component",
|
|
1957
1960
|
props: []
|
|
1958
1961
|
});
|
|
@@ -1965,11 +1968,11 @@ const No = /* @__PURE__ */ v(Bo, [["render", Vo]]);
|
|
|
1965
1968
|
function Me(e) {
|
|
1966
1969
|
return e.replace(/http(s)?:/, "");
|
|
1967
1970
|
}
|
|
1968
|
-
function
|
|
1971
|
+
function xo(e = "", t, n) {
|
|
1969
1972
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1970
1973
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1971
1974
|
}
|
|
1972
|
-
function
|
|
1975
|
+
function Wo(e, t) {
|
|
1973
1976
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1974
1977
|
return e;
|
|
1975
1978
|
if (t === "master")
|
|
@@ -1981,18 +1984,18 @@ function Do(e, t) {
|
|
|
1981
1984
|
}
|
|
1982
1985
|
return null;
|
|
1983
1986
|
}
|
|
1984
|
-
function
|
|
1987
|
+
function oe(e) {
|
|
1985
1988
|
if (!e)
|
|
1986
1989
|
return e;
|
|
1987
1990
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1988
1991
|
if (e.match(/builder\.io/)) {
|
|
1989
1992
|
let n = e;
|
|
1990
1993
|
const o = Number(e.split("?width=")[1]);
|
|
1991
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
1994
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${xo(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1992
1995
|
}
|
|
1993
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1996
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Wo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1994
1997
|
}
|
|
1995
|
-
const
|
|
1998
|
+
const Do = y({
|
|
1996
1999
|
name: "builder-image",
|
|
1997
2000
|
props: [
|
|
1998
2001
|
"lazy",
|
|
@@ -2022,10 +2025,10 @@ const xo = y({
|
|
|
2022
2025
|
if (!this.noWebp) {
|
|
2023
2026
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
2024
2027
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
2025
|
-
return console.debug("Removed given srcset"),
|
|
2028
|
+
return console.debug("Removed given srcset"), oe(t);
|
|
2026
2029
|
} else if (this.image && !this.srcset)
|
|
2027
|
-
return
|
|
2028
|
-
return
|
|
2030
|
+
return oe(t);
|
|
2031
|
+
return oe(t);
|
|
2029
2032
|
}
|
|
2030
2033
|
},
|
|
2031
2034
|
webpSrcSet() {
|
|
@@ -2043,12 +2046,12 @@ const xo = y({
|
|
|
2043
2046
|
return this.aspectRatio ? e : void 0;
|
|
2044
2047
|
}
|
|
2045
2048
|
}
|
|
2046
|
-
}), Oo = ["srcset"], Uo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"],
|
|
2049
|
+
}), Oo = ["srcset"], Uo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Lo = {
|
|
2047
2050
|
key: 2,
|
|
2048
|
-
class: "div-
|
|
2051
|
+
class: "div-t43jfuqn6g-2"
|
|
2049
2052
|
};
|
|
2050
|
-
function
|
|
2051
|
-
var s,
|
|
2053
|
+
function Fo(e, t, n, o, r, i) {
|
|
2054
|
+
var s, l, a, u, p, f;
|
|
2052
2055
|
return d(), h(I, null, [
|
|
2053
2056
|
z("picture", null, [
|
|
2054
2057
|
e.webpSrcSet ? (d(), h("source", {
|
|
@@ -2062,37 +2065,37 @@ function Lo(e, t, n, o, r, i) {
|
|
|
2062
2065
|
alt: e.altText,
|
|
2063
2066
|
title: e.title,
|
|
2064
2067
|
role: e.altText ? void 0 : "presentation",
|
|
2065
|
-
style:
|
|
2068
|
+
style: M({
|
|
2066
2069
|
objectPosition: e.backgroundPosition || "center",
|
|
2067
2070
|
objectFit: e.backgroundSize || "cover",
|
|
2068
2071
|
...e.aspectRatioCss
|
|
2069
2072
|
}),
|
|
2070
|
-
class:
|
|
2071
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
2073
|
+
class: Z(
|
|
2074
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
|
|
2072
2075
|
),
|
|
2073
2076
|
src: e.image,
|
|
2074
2077
|
srcset: e.srcSetToUse,
|
|
2075
2078
|
sizes: e.sizes
|
|
2076
2079
|
}, null, 14, Uo)
|
|
2077
2080
|
]),
|
|
2078
|
-
e.aspectRatio && !((
|
|
2081
|
+
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
|
|
2079
2082
|
key: 0,
|
|
2080
|
-
class: "builder-image-sizer div-
|
|
2081
|
-
style:
|
|
2083
|
+
class: "builder-image-sizer div-t43jfuqn6g",
|
|
2084
|
+
style: M({
|
|
2082
2085
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
2083
2086
|
})
|
|
2084
2087
|
}, null, 4)) : C("", !0),
|
|
2085
|
-
(u = (
|
|
2086
|
-
!e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div",
|
|
2088
|
+
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? N(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
|
|
2089
|
+
!e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", Lo, [
|
|
2087
2090
|
N(e.$slots, "default", {}, void 0, !0)
|
|
2088
2091
|
])) : C("", !0)
|
|
2089
2092
|
], 64);
|
|
2090
2093
|
}
|
|
2091
|
-
const Ho = /* @__PURE__ */ v(
|
|
2094
|
+
const Ho = /* @__PURE__ */ v(Do, [["render", Fo], ["__scopeId", "data-v-741b9bbc"]]), Mo = y({
|
|
2092
2095
|
name: "builder-section-component",
|
|
2093
2096
|
props: ["attributes", "maxWidth"],
|
|
2094
2097
|
data() {
|
|
2095
|
-
return { filterAttrs:
|
|
2098
|
+
return { filterAttrs: x };
|
|
2096
2099
|
}
|
|
2097
2100
|
});
|
|
2098
2101
|
function jo(e, t, n, o, r, i) {
|
|
@@ -2109,7 +2112,7 @@ function jo(e, t, n, o, r, i) {
|
|
|
2109
2112
|
marginLeft: "auto",
|
|
2110
2113
|
marginRight: "auto"
|
|
2111
2114
|
}
|
|
2112
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
2115
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
2113
2116
|
N(e.$slots, "default")
|
|
2114
2117
|
], 16);
|
|
2115
2118
|
}
|
|
@@ -2128,14 +2131,14 @@ function qo(e, t, n, o) {
|
|
|
2128
2131
|
if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (b = p.value.slice(0, -1)), !(c && m))
|
|
2129
2132
|
return !0;
|
|
2130
2133
|
if (Array.isArray(b))
|
|
2131
|
-
return m === "isNot" ? b.every((
|
|
2134
|
+
return m === "isNot" ? b.every((P) => s(u, {
|
|
2132
2135
|
property: c,
|
|
2133
2136
|
operator: m,
|
|
2134
|
-
value:
|
|
2135
|
-
})) : !!b.find((
|
|
2137
|
+
value: P
|
|
2138
|
+
})) : !!b.find((P) => s(u, {
|
|
2136
2139
|
property: c,
|
|
2137
2140
|
operator: m,
|
|
2138
|
-
value:
|
|
2141
|
+
value: P
|
|
2139
2142
|
}));
|
|
2140
2143
|
const g = u[c];
|
|
2141
2144
|
if (Array.isArray(g))
|
|
@@ -2164,12 +2167,12 @@ function qo(e, t, n, o) {
|
|
|
2164
2167
|
}
|
|
2165
2168
|
})();
|
|
2166
2169
|
}
|
|
2167
|
-
const
|
|
2170
|
+
const l = {
|
|
2168
2171
|
query: t,
|
|
2169
2172
|
startDate: n,
|
|
2170
2173
|
endDate: o
|
|
2171
|
-
},
|
|
2172
|
-
return
|
|
2174
|
+
}, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2175
|
+
return l.startDate && new Date(l.startDate) > a || l.endDate && new Date(l.endDate) < a ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => s(e, u));
|
|
2173
2176
|
}
|
|
2174
2177
|
const zo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
2175
2178
|
if (!navigator.cookieEnabled) {
|
|
@@ -2332,7 +2335,7 @@ const zo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2332
2335
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2333
2336
|
}
|
|
2334
2337
|
}
|
|
2335
|
-
}`,
|
|
2338
|
+
}`, re = "default", Qo = "filterWithCustomTargeting", wt = "builderIoPersonalization", It = "updateVisibilityStylesScript", $t = ["react", "vue", "svelte", "qwik"], Rt = ["vue", "svelte", "qwik"];
|
|
2336
2339
|
function Yo(e, t) {
|
|
2337
2340
|
return !(e && e.length > 0) || !t ? !1 : Rt.includes(R) ? !0 : !T();
|
|
2338
2341
|
}
|
|
@@ -2346,9 +2349,9 @@ function Xo({
|
|
|
2346
2349
|
const i = {
|
|
2347
2350
|
blocks: r ?? [],
|
|
2348
2351
|
path: "this.children",
|
|
2349
|
-
index:
|
|
2352
|
+
index: re
|
|
2350
2353
|
};
|
|
2351
|
-
if (n &&
|
|
2354
|
+
if (n && A()) {
|
|
2352
2355
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
2353
2356
|
const s = e == null ? void 0 : e[t];
|
|
2354
2357
|
if (s)
|
|
@@ -2363,12 +2366,12 @@ function Xo({
|
|
|
2363
2366
|
if (T()) {
|
|
2364
2367
|
const s = o == null ? void 0 : o[0];
|
|
2365
2368
|
if (s && e) {
|
|
2366
|
-
const
|
|
2367
|
-
if (
|
|
2369
|
+
const l = e.indexOf(s);
|
|
2370
|
+
if (l !== -1)
|
|
2368
2371
|
return {
|
|
2369
2372
|
blocks: s.blocks,
|
|
2370
|
-
path: `variants.${
|
|
2371
|
-
index:
|
|
2373
|
+
path: `variants.${l}.blocks`,
|
|
2374
|
+
index: l
|
|
2372
2375
|
};
|
|
2373
2376
|
}
|
|
2374
2377
|
}
|
|
@@ -2378,7 +2381,7 @@ const _o = () => `
|
|
|
2378
2381
|
window.${Qo} = ${Go}
|
|
2379
2382
|
window.${wt} = ${zo}
|
|
2380
2383
|
window.${It} = ${Jo}
|
|
2381
|
-
`, Et = R === "react", Zo = (e, t, n) => `window.${wt}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`, er = (e, t, n) => `window.${It}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`,
|
|
2384
|
+
`, Et = R === "react", Zo = (e, t, n) => `window.${wt}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`, er = (e, t, n) => `window.${It}(${JSON.stringify(e)}, "${t}", ${Et}${n ? `, "${n}"` : ""})`, pe = {
|
|
2382
2385
|
"@type": "@builder.io/sdk:Element",
|
|
2383
2386
|
layerName: "Accordion item title",
|
|
2384
2387
|
responsiveStyles: {
|
|
@@ -2407,7 +2410,7 @@ const _o = () => `
|
|
|
2407
2410
|
}
|
|
2408
2411
|
}
|
|
2409
2412
|
}]
|
|
2410
|
-
},
|
|
2413
|
+
}, me = {
|
|
2411
2414
|
"@type": "@builder.io/sdk:Element",
|
|
2412
2415
|
layerName: "Accordion item detail",
|
|
2413
2416
|
responsiveStyles: {
|
|
@@ -2455,19 +2458,19 @@ const _o = () => `
|
|
|
2455
2458
|
name: "title",
|
|
2456
2459
|
type: "uiBlocks",
|
|
2457
2460
|
hideFromUI: !0,
|
|
2458
|
-
defaultValue: [
|
|
2461
|
+
defaultValue: [pe]
|
|
2459
2462
|
}, {
|
|
2460
2463
|
name: "detail",
|
|
2461
2464
|
type: "uiBlocks",
|
|
2462
2465
|
hideFromUI: !0,
|
|
2463
|
-
defaultValue: [
|
|
2466
|
+
defaultValue: [me]
|
|
2464
2467
|
}],
|
|
2465
2468
|
defaultValue: [{
|
|
2466
|
-
title: [
|
|
2467
|
-
detail: [
|
|
2469
|
+
title: [pe],
|
|
2470
|
+
detail: [me]
|
|
2468
2471
|
}, {
|
|
2469
|
-
title: [
|
|
2470
|
-
detail: [
|
|
2472
|
+
title: [pe],
|
|
2473
|
+
detail: [me]
|
|
2471
2474
|
}],
|
|
2472
2475
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2473
2476
|
}, {
|
|
@@ -2562,11 +2565,11 @@ const _o = () => `
|
|
|
2562
2565
|
continue;
|
|
2563
2566
|
const s = r.getBoundingClientRect();
|
|
2564
2567
|
if (s.left > i.left) {
|
|
2565
|
-
const
|
|
2568
|
+
const l = parseInt(
|
|
2566
2569
|
r.getAttribute("data-index") || "",
|
|
2567
2570
|
10
|
|
2568
2571
|
);
|
|
2569
|
-
isNaN(
|
|
2572
|
+
isNaN(l) || (i = s, e = l);
|
|
2570
2573
|
} else
|
|
2571
2574
|
break;
|
|
2572
2575
|
}
|
|
@@ -2602,38 +2605,38 @@ function ir(e, t, n, o, r, i) {
|
|
|
2602
2605
|
const s = k("Blocks");
|
|
2603
2606
|
return d(), h("div", {
|
|
2604
2607
|
class: "builder-accordion",
|
|
2605
|
-
style:
|
|
2608
|
+
style: M(e.accordionStyles)
|
|
2606
2609
|
}, [
|
|
2607
|
-
(d(!0), h(I, null,
|
|
2610
|
+
(d(!0), h(I, null, F(e.items, (l, a) => (d(), h(I, { key: a }, [
|
|
2608
2611
|
z("div", {
|
|
2609
|
-
class:
|
|
2610
|
-
style:
|
|
2612
|
+
class: Z(e.getAccordionTitleClassName(a)),
|
|
2613
|
+
style: M({
|
|
2611
2614
|
...e.accordionTitleStyles,
|
|
2612
2615
|
...e.grid && {
|
|
2613
2616
|
width: e.gridRowWidth,
|
|
2614
|
-
order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(
|
|
2617
|
+
order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
|
|
2615
2618
|
}
|
|
2616
2619
|
}),
|
|
2617
|
-
"data-index":
|
|
2618
|
-
onClick: async (u) => e.onClick(
|
|
2620
|
+
"data-index": a,
|
|
2621
|
+
onClick: async (u) => e.onClick(a)
|
|
2619
2622
|
}, [
|
|
2620
2623
|
E(s, {
|
|
2621
|
-
blocks:
|
|
2622
|
-
path: `items.${
|
|
2624
|
+
blocks: l.title,
|
|
2625
|
+
path: `items.${a}.title`,
|
|
2623
2626
|
parent: e.builderBlock.id,
|
|
2624
2627
|
context: e.builderContext,
|
|
2625
2628
|
registeredComponents: e.builderComponents,
|
|
2626
2629
|
linkComponent: e.builderLinkComponent
|
|
2627
2630
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2628
2631
|
], 14, rr),
|
|
2629
|
-
e.open.includes(
|
|
2632
|
+
e.open.includes(a) ? (d(), h("div", {
|
|
2630
2633
|
key: 0,
|
|
2631
|
-
class:
|
|
2632
|
-
style:
|
|
2634
|
+
class: Z(e.getAccordionDetailClassName(a)),
|
|
2635
|
+
style: M(e.accordionDetailStyles)
|
|
2633
2636
|
}, [
|
|
2634
2637
|
E(s, {
|
|
2635
|
-
blocks:
|
|
2636
|
-
path: `items.${
|
|
2638
|
+
blocks: l.detail,
|
|
2639
|
+
path: `items.${a}.detail`,
|
|
2637
2640
|
parent: e.builderBlock.id,
|
|
2638
2641
|
context: e.builderContext,
|
|
2639
2642
|
registeredComponents: e.builderComponents,
|
|
@@ -2858,7 +2861,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
2858
2861
|
});
|
|
2859
2862
|
}
|
|
2860
2863
|
const n = e.get("columns");
|
|
2861
|
-
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((
|
|
2864
|
+
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((l, a) => l + a.get("width"), 0) !== 100) && t();
|
|
2862
2865
|
}
|
|
2863
2866
|
}, {
|
|
2864
2867
|
name: "space",
|
|
@@ -2892,7 +2895,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
2892
2895
|
hidden: !0,
|
|
2893
2896
|
canHaveChildren: !0,
|
|
2894
2897
|
noWrap: !0
|
|
2895
|
-
},
|
|
2898
|
+
}, Pe = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], dr = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], ur = {
|
|
2896
2899
|
name: "Image",
|
|
2897
2900
|
static: !0,
|
|
2898
2901
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -2907,22 +2910,22 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
2907
2910
|
name: "image",
|
|
2908
2911
|
type: "file",
|
|
2909
2912
|
bubble: !0,
|
|
2910
|
-
allowedFileTypes:
|
|
2913
|
+
allowedFileTypes: Pe,
|
|
2911
2914
|
required: !0,
|
|
2912
2915
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2913
2916
|
onChange: (e) => {
|
|
2914
2917
|
e.delete("srcset"), e.delete("noWebp");
|
|
2915
|
-
function n(s,
|
|
2916
|
-
return new Promise((
|
|
2918
|
+
function n(s, l = 6e4) {
|
|
2919
|
+
return new Promise((a, u) => {
|
|
2917
2920
|
const p = document.createElement("img");
|
|
2918
2921
|
let f = !1;
|
|
2919
2922
|
p.onload = () => {
|
|
2920
|
-
f = !0,
|
|
2923
|
+
f = !0, a(p);
|
|
2921
2924
|
}, p.addEventListener("error", (c) => {
|
|
2922
2925
|
console.warn("Image load failed", c.error), u(c.error);
|
|
2923
2926
|
}), p.src = s, setTimeout(() => {
|
|
2924
2927
|
f || u(new Error("Image load timed out"));
|
|
2925
|
-
},
|
|
2928
|
+
}, l);
|
|
2926
2929
|
});
|
|
2927
2930
|
}
|
|
2928
2931
|
function o(s) {
|
|
@@ -2933,8 +2936,8 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
2933
2936
|
s.type.includes("svg") && e.set("noWebp", !0);
|
|
2934
2937
|
}), r && (!i || i === 0.7041))
|
|
2935
2938
|
return n(r).then((s) => {
|
|
2936
|
-
const
|
|
2937
|
-
e.get("image") === r && (!
|
|
2939
|
+
const l = e.get("aspectRatio");
|
|
2940
|
+
e.get("image") === r && (!l || l === 0.7041) && s.width && s.height && (e.set("aspectRatio", o(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
|
|
2938
2941
|
});
|
|
2939
2942
|
}
|
|
2940
2943
|
}, {
|
|
@@ -3040,7 +3043,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3040
3043
|
defaultValue: []
|
|
3041
3044
|
}]
|
|
3042
3045
|
}]
|
|
3043
|
-
},
|
|
3046
|
+
}, Be = y({
|
|
3044
3047
|
render() {
|
|
3045
3048
|
return ze("script", {
|
|
3046
3049
|
innerHTML: this.scriptStr,
|
|
@@ -3054,8 +3057,8 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3054
3057
|
name: "builder-personalization-container",
|
|
3055
3058
|
components: {
|
|
3056
3059
|
Blocks: q,
|
|
3057
|
-
InlinedStyles:
|
|
3058
|
-
InlinedScript:
|
|
3060
|
+
InlinedStyles: ue,
|
|
3061
|
+
InlinedScript: Be
|
|
3059
3062
|
},
|
|
3060
3063
|
props: [
|
|
3061
3064
|
"builderContext",
|
|
@@ -3068,7 +3071,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3068
3071
|
data() {
|
|
3069
3072
|
var e, t, n, o, r, i, s;
|
|
3070
3073
|
return {
|
|
3071
|
-
userAttributes:
|
|
3074
|
+
userAttributes: le.getUserAttributes(),
|
|
3072
3075
|
scriptStr: Zo(
|
|
3073
3076
|
this.variants,
|
|
3074
3077
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
@@ -3082,18 +3085,18 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3082
3085
|
unsubscribers: [],
|
|
3083
3086
|
shouldRenderVariants: Yo(
|
|
3084
3087
|
this.variants,
|
|
3085
|
-
|
|
3088
|
+
G((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
3086
3089
|
),
|
|
3087
3090
|
shouldResetVariants: !1,
|
|
3088
3091
|
TARGET: R,
|
|
3089
|
-
DEFAULT_INDEX:
|
|
3092
|
+
DEFAULT_INDEX: re,
|
|
3090
3093
|
SDKS_REQUIRING_RESET_APPROACH: Rt
|
|
3091
3094
|
};
|
|
3092
3095
|
},
|
|
3093
3096
|
mounted() {
|
|
3094
3097
|
var t;
|
|
3095
3098
|
this.shouldResetVariants = !0;
|
|
3096
|
-
const e =
|
|
3099
|
+
const e = le.subscribeOnUserAttributesChange(
|
|
3097
3100
|
(n) => {
|
|
3098
3101
|
this.userAttributes = n;
|
|
3099
3102
|
},
|
|
@@ -3101,12 +3104,12 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3101
3104
|
fireImmediately: R === "qwik"
|
|
3102
3105
|
}
|
|
3103
3106
|
);
|
|
3104
|
-
if (!(
|
|
3107
|
+
if (!(A() || Te())) {
|
|
3105
3108
|
const n = this.filteredVariants[0];
|
|
3106
3109
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
3107
3110
|
new CustomEvent("builder.variantLoaded", {
|
|
3108
3111
|
detail: {
|
|
3109
|
-
variant: n ||
|
|
3112
|
+
variant: n || re,
|
|
3110
3113
|
content: (t = this.builderContext) == null ? void 0 : t.content
|
|
3111
3114
|
},
|
|
3112
3115
|
bubbles: !0
|
|
@@ -3117,7 +3120,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3117
3120
|
i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
|
|
3118
3121
|
new CustomEvent("builder.variantDisplayed", {
|
|
3119
3122
|
detail: {
|
|
3120
|
-
variant: n ||
|
|
3123
|
+
variant: n || re,
|
|
3121
3124
|
content: (s = this.builderContext) == null ? void 0 : s.content
|
|
3122
3125
|
},
|
|
3123
3126
|
bubbles: !0
|
|
@@ -3134,9 +3137,9 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3134
3137
|
computed: {
|
|
3135
3138
|
attrs() {
|
|
3136
3139
|
return {
|
|
3137
|
-
...
|
|
3138
|
-
...
|
|
3139
|
-
[
|
|
3140
|
+
...x(this.attributes, "v-on:", !1),
|
|
3141
|
+
...x(this.attributes, "v-on:", !0),
|
|
3142
|
+
[j()]: `builder-personalization-container ${this.attributes[j()] || ""}`
|
|
3140
3143
|
};
|
|
3141
3144
|
},
|
|
3142
3145
|
filteredVariants() {
|
|
@@ -3176,8 +3179,8 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3176
3179
|
}
|
|
3177
3180
|
});
|
|
3178
3181
|
function hr(e, t, n, o, r, i) {
|
|
3179
|
-
var u, p, f, c, m, b, g,
|
|
3180
|
-
const s = k("Blocks"),
|
|
3182
|
+
var u, p, f, c, m, b, g, P, U, V;
|
|
3183
|
+
const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
|
|
3181
3184
|
return d(), h("div", $({ ref: "rootRef" }, e.attrs), [
|
|
3182
3185
|
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
|
|
3183
3186
|
key: 0,
|
|
@@ -3193,39 +3196,39 @@ function hr(e, t, n, o, r, i) {
|
|
|
3193
3196
|
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : C("", !0),
|
|
3194
3197
|
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(I, { key: 1 }, [
|
|
3195
3198
|
e.shouldRenderVariants ? (d(), h(I, { key: 0 }, [
|
|
3196
|
-
E(
|
|
3199
|
+
E(l, {
|
|
3197
3200
|
nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
|
|
3198
3201
|
styles: e.hideVariantsStyleString,
|
|
3199
3202
|
id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
|
|
3200
3203
|
}, null, 8, ["nonce", "styles", "id"]),
|
|
3201
|
-
E(
|
|
3204
|
+
E(a, {
|
|
3202
3205
|
nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
|
|
3203
3206
|
scriptStr: e.updateVisibilityStylesScript,
|
|
3204
3207
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
3205
3208
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
3206
|
-
(d(!0), h(I, null,
|
|
3207
|
-
var
|
|
3209
|
+
(d(!0), h(I, null, F(e.variants, (w, W) => {
|
|
3210
|
+
var J, Q, D, H;
|
|
3208
3211
|
return d(), S(s, {
|
|
3209
|
-
key: `${(
|
|
3212
|
+
key: `${(J = e.builderBlock) == null ? void 0 : J.id}-${W}`,
|
|
3210
3213
|
BlocksWrapperProps: {
|
|
3211
3214
|
...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
|
|
3212
3215
|
"aria-hidden": !0,
|
|
3213
3216
|
hidden: !0,
|
|
3214
|
-
"data-variant-id": `${(
|
|
3217
|
+
"data-variant-id": `${(D = e.builderBlock) == null ? void 0 : D.id}-${W}`
|
|
3215
3218
|
},
|
|
3216
3219
|
blocks: w.blocks,
|
|
3217
|
-
parent: (
|
|
3218
|
-
path: `component.options.variants.${
|
|
3220
|
+
parent: (H = e.builderBlock) == null ? void 0 : H.id,
|
|
3221
|
+
path: `component.options.variants.${W}.blocks`,
|
|
3219
3222
|
context: e.builderContext,
|
|
3220
3223
|
registeredComponents: e.builderComponents
|
|
3221
3224
|
}, {
|
|
3222
|
-
default:
|
|
3223
|
-
var
|
|
3225
|
+
default: O(() => {
|
|
3226
|
+
var Ve, Ne;
|
|
3224
3227
|
return [
|
|
3225
|
-
E(
|
|
3226
|
-
nonce: ((
|
|
3228
|
+
E(a, {
|
|
3229
|
+
nonce: ((Ve = e.builderContext) == null ? void 0 : Ve.nonce) || "",
|
|
3227
3230
|
scriptStr: e.scriptStr,
|
|
3228
|
-
id: `variants-script-${(Ne = e.builderBlock) == null ? void 0 : Ne.id}-${
|
|
3231
|
+
id: `variants-script-${(Ne = e.builderBlock) == null ? void 0 : Ne.id}-${W}`
|
|
3229
3232
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
3230
3233
|
];
|
|
3231
3234
|
}),
|
|
@@ -3235,23 +3238,23 @@ function hr(e, t, n, o, r, i) {
|
|
|
3235
3238
|
], 64)) : C("", !0),
|
|
3236
3239
|
E(s, {
|
|
3237
3240
|
blocks: e.blocksToRender.blocks,
|
|
3238
|
-
parent: (
|
|
3241
|
+
parent: (P = e.builderBlock) == null ? void 0 : P.id,
|
|
3239
3242
|
path: e.blocksToRender.path,
|
|
3240
3243
|
context: e.builderContext,
|
|
3241
3244
|
registeredComponents: e.builderComponents,
|
|
3242
3245
|
BlocksWrapperProps: {
|
|
3243
|
-
...(
|
|
3246
|
+
...(U = e.builderContext) == null ? void 0 : U.BlocksWrapperProps,
|
|
3244
3247
|
"data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${e.blocksToRender.index}`
|
|
3245
3248
|
}
|
|
3246
3249
|
}, {
|
|
3247
|
-
default:
|
|
3248
|
-
var w,
|
|
3250
|
+
default: O(() => {
|
|
3251
|
+
var w, W;
|
|
3249
3252
|
return [
|
|
3250
|
-
e.shouldRenderVariants ? (d(), S(
|
|
3253
|
+
e.shouldRenderVariants ? (d(), S(a, {
|
|
3251
3254
|
key: 0,
|
|
3252
3255
|
nonce: ((w = e.builderContext) == null ? void 0 : w.nonce) || "",
|
|
3253
3256
|
scriptStr: e.scriptStr,
|
|
3254
|
-
id: `variants-script-${(
|
|
3257
|
+
id: `variants-script-${(W = e.builderBlock) == null ? void 0 : W.id}-${e.DEFAULT_INDEX}`
|
|
3255
3258
|
}, null, 8, ["nonce", "scriptStr", "id"])) : C("", !0)
|
|
3256
3259
|
];
|
|
3257
3260
|
}),
|
|
@@ -3322,18 +3325,18 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
|
|
|
3322
3325
|
props: ["builderContext", "name", "builderComponents"]
|
|
3323
3326
|
});
|
|
3324
3327
|
function vr(e, t, n, o, r, i) {
|
|
3325
|
-
var
|
|
3328
|
+
var l, a, u;
|
|
3326
3329
|
const s = k("Blocks");
|
|
3327
3330
|
return d(), h("div", $(
|
|
3328
3331
|
{ style: {
|
|
3329
3332
|
pointerEvents: "auto"
|
|
3330
3333
|
} },
|
|
3331
|
-
!((
|
|
3334
|
+
!((l = e.builderContext.context) != null && l.symbolId) && {
|
|
3332
3335
|
"builder-slot": e.name
|
|
3333
3336
|
}
|
|
3334
3337
|
), [
|
|
3335
3338
|
E(s, {
|
|
3336
|
-
parent: (
|
|
3339
|
+
parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
|
|
3337
3340
|
path: `symbol.data.${e.name}`,
|
|
3338
3341
|
context: e.builderContext,
|
|
3339
3342
|
registeredComponents: e.builderComponents,
|
|
@@ -3380,7 +3383,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3380
3383
|
builderComponents: !0,
|
|
3381
3384
|
builderLinkComponent: !0
|
|
3382
3385
|
}
|
|
3383
|
-
},
|
|
3386
|
+
}, he = {
|
|
3384
3387
|
"@type": "@builder.io/sdk:Element",
|
|
3385
3388
|
responsiveStyles: {
|
|
3386
3389
|
large: {
|
|
@@ -3402,7 +3405,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3402
3405
|
text: "New tab"
|
|
3403
3406
|
}
|
|
3404
3407
|
}
|
|
3405
|
-
},
|
|
3408
|
+
}, fe = {
|
|
3406
3409
|
"@type": "@builder.io/sdk:Element",
|
|
3407
3410
|
responsiveStyles: {
|
|
3408
3411
|
large: {
|
|
@@ -3428,16 +3431,16 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3428
3431
|
name: "label",
|
|
3429
3432
|
type: "uiBlocks",
|
|
3430
3433
|
hideFromUI: !0,
|
|
3431
|
-
defaultValue: [
|
|
3434
|
+
defaultValue: [he]
|
|
3432
3435
|
}, {
|
|
3433
3436
|
name: "content",
|
|
3434
3437
|
type: "uiBlocks",
|
|
3435
3438
|
hideFromUI: !0,
|
|
3436
|
-
defaultValue: [
|
|
3439
|
+
defaultValue: [fe]
|
|
3437
3440
|
}],
|
|
3438
3441
|
defaultValue: [{
|
|
3439
3442
|
label: [{
|
|
3440
|
-
...
|
|
3443
|
+
...he,
|
|
3441
3444
|
component: {
|
|
3442
3445
|
name: "Text",
|
|
3443
3446
|
options: {
|
|
@@ -3446,7 +3449,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3446
3449
|
}
|
|
3447
3450
|
}],
|
|
3448
3451
|
content: [{
|
|
3449
|
-
...
|
|
3452
|
+
...fe,
|
|
3450
3453
|
component: {
|
|
3451
3454
|
name: "Text",
|
|
3452
3455
|
options: {
|
|
@@ -3456,7 +3459,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3456
3459
|
}]
|
|
3457
3460
|
}, {
|
|
3458
3461
|
label: [{
|
|
3459
|
-
...
|
|
3462
|
+
...he,
|
|
3460
3463
|
component: {
|
|
3461
3464
|
name: "Text",
|
|
3462
3465
|
options: {
|
|
@@ -3465,7 +3468,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3465
3468
|
}
|
|
3466
3469
|
}],
|
|
3467
3470
|
content: [{
|
|
3468
|
-
...
|
|
3471
|
+
...fe,
|
|
3469
3472
|
component: {
|
|
3470
3473
|
name: "Text",
|
|
3471
3474
|
options: {
|
|
@@ -3527,9 +3530,9 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3527
3530
|
props: [
|
|
3528
3531
|
"defaultActiveTab",
|
|
3529
3532
|
"tabs",
|
|
3533
|
+
"activeTabStyle",
|
|
3530
3534
|
"collapsible",
|
|
3531
3535
|
"tabHeaderLayout",
|
|
3532
|
-
"activeTabStyle",
|
|
3533
3536
|
"builderBlock",
|
|
3534
3537
|
"builderContext",
|
|
3535
3538
|
"builderComponents",
|
|
@@ -3542,6 +3545,9 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3542
3545
|
activeTabContent(e) {
|
|
3543
3546
|
return this.tabs && this.tabs[e].content;
|
|
3544
3547
|
},
|
|
3548
|
+
getTabStyle(e) {
|
|
3549
|
+
return e === this.activeTab ? this.activeTabStyle : {};
|
|
3550
|
+
},
|
|
3545
3551
|
onClick(e) {
|
|
3546
3552
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3547
3553
|
}
|
|
@@ -3552,25 +3558,23 @@ function $r(e, t, n, o, r, i) {
|
|
|
3552
3558
|
return d(), h("div", null, [
|
|
3553
3559
|
z("div", {
|
|
3554
3560
|
class: "builder-tabs-wrap",
|
|
3555
|
-
style:
|
|
3561
|
+
style: M({
|
|
3556
3562
|
display: "flex",
|
|
3557
3563
|
flexDirection: "row",
|
|
3558
3564
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
3559
3565
|
overflow: "auto"
|
|
3560
3566
|
})
|
|
3561
3567
|
}, [
|
|
3562
|
-
(d(!0), h(I, null,
|
|
3563
|
-
key:
|
|
3564
|
-
class:
|
|
3565
|
-
style:
|
|
3566
|
-
|
|
3567
|
-
}),
|
|
3568
|
-
onClick: async (u) => e.onClick(l)
|
|
3568
|
+
(d(!0), h(I, null, F(e.tabs, (l, a) => (d(), h("span", {
|
|
3569
|
+
key: a,
|
|
3570
|
+
class: Z(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
3571
|
+
style: M(e.getTabStyle(a)),
|
|
3572
|
+
onClick: async (u) => e.onClick(a)
|
|
3569
3573
|
}, [
|
|
3570
3574
|
E(s, {
|
|
3571
3575
|
parent: e.builderBlock.id,
|
|
3572
|
-
path: `tabs.${
|
|
3573
|
-
blocks:
|
|
3576
|
+
path: `tabs.${a}.label`,
|
|
3577
|
+
blocks: l.label,
|
|
3574
3578
|
context: e.builderContext,
|
|
3575
3579
|
registeredComponents: e.builderComponents,
|
|
3576
3580
|
linkComponent: e.builderLinkComponent
|
|
@@ -3593,7 +3597,6 @@ const Rr = /* @__PURE__ */ v(Tr, [["render", $r]]), Er = {
|
|
|
3593
3597
|
shouldReceiveBuilderProps: {},
|
|
3594
3598
|
name: "Text",
|
|
3595
3599
|
static: !0,
|
|
3596
|
-
isRSC: !0,
|
|
3597
3600
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
3598
3601
|
inputs: [{
|
|
3599
3602
|
name: "text",
|
|
@@ -3608,10 +3611,10 @@ const Rr = /* @__PURE__ */ v(Tr, [["render", $r]]), Er = {
|
|
|
3608
3611
|
height: "auto",
|
|
3609
3612
|
textAlign: "center"
|
|
3610
3613
|
}
|
|
3611
|
-
},
|
|
3614
|
+
}, Ar = y({
|
|
3612
3615
|
name: "builder-text",
|
|
3613
3616
|
props: ["text"]
|
|
3614
|
-
}),
|
|
3617
|
+
}), Pr = ["innerHTML"];
|
|
3615
3618
|
function Br(e, t, n, o, r, i) {
|
|
3616
3619
|
var s;
|
|
3617
3620
|
return d(), h("div", {
|
|
@@ -3620,9 +3623,9 @@ function Br(e, t, n, o, r, i) {
|
|
|
3620
3623
|
style: {
|
|
3621
3624
|
outline: "none"
|
|
3622
3625
|
}
|
|
3623
|
-
}, null, 8,
|
|
3626
|
+
}, null, 8, Pr);
|
|
3624
3627
|
}
|
|
3625
|
-
const Vr = /* @__PURE__ */ v(
|
|
3628
|
+
const Vr = /* @__PURE__ */ v(Ar, [["render", Br]]), Nr = {
|
|
3626
3629
|
name: "Custom Code",
|
|
3627
3630
|
static: !0,
|
|
3628
3631
|
requiredPermissions: ["editCode"],
|
|
@@ -3644,7 +3647,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3644
3647
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3645
3648
|
advanced: !0
|
|
3646
3649
|
}]
|
|
3647
|
-
},
|
|
3650
|
+
}, xr = y({
|
|
3648
3651
|
name: "builder-custom-code",
|
|
3649
3652
|
props: ["code", "replaceNodes"],
|
|
3650
3653
|
data() {
|
|
@@ -3656,7 +3659,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3656
3659
|
watch: {
|
|
3657
3660
|
onUpdateHook0: {
|
|
3658
3661
|
handler() {
|
|
3659
|
-
|
|
3662
|
+
A() && setTimeout(() => {
|
|
3660
3663
|
this.runScripts();
|
|
3661
3664
|
}, 0);
|
|
3662
3665
|
},
|
|
@@ -3703,15 +3706,15 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3703
3706
|
}
|
|
3704
3707
|
}
|
|
3705
3708
|
}
|
|
3706
|
-
}),
|
|
3707
|
-
function
|
|
3709
|
+
}), Wr = ["innerHTML"];
|
|
3710
|
+
function Dr(e, t, n, o, r, i) {
|
|
3708
3711
|
return d(), h("div", {
|
|
3709
3712
|
ref: "elementRef",
|
|
3710
|
-
class:
|
|
3713
|
+
class: Z("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3711
3714
|
innerHTML: e.code
|
|
3712
|
-
}, null, 10,
|
|
3715
|
+
}, null, 10, Wr);
|
|
3713
3716
|
}
|
|
3714
|
-
const Or = /* @__PURE__ */ v(
|
|
3717
|
+
const Or = /* @__PURE__ */ v(xr, [["render", Dr]]), Ur = {
|
|
3715
3718
|
name: "Embed",
|
|
3716
3719
|
static: !0,
|
|
3717
3720
|
inputs: [{
|
|
@@ -3726,7 +3729,7 @@ const Or = /* @__PURE__ */ v(Wr, [["render", xr]]), Ur = {
|
|
|
3726
3729
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3727
3730
|
hideFromUI: !0
|
|
3728
3731
|
}]
|
|
3729
|
-
},
|
|
3732
|
+
}, Lr = ["text/javascript", "application/javascript", "application/ecmascript"], Fr = (e) => Lr.includes(e.type), Hr = y({
|
|
3730
3733
|
name: "builder-embed",
|
|
3731
3734
|
props: ["content"],
|
|
3732
3735
|
data() {
|
|
@@ -3759,7 +3762,7 @@ const Or = /* @__PURE__ */ v(Wr, [["render", xr]]), Ur = {
|
|
|
3759
3762
|
this.scriptsInserted.push(n.src);
|
|
3760
3763
|
const o = document.createElement("script");
|
|
3761
3764
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3762
|
-
} else if (
|
|
3765
|
+
} else if (Fr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3763
3766
|
try {
|
|
3764
3767
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3765
3768
|
} catch (o) {
|
|
@@ -4044,7 +4047,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4044
4047
|
formState: "unsubmitted",
|
|
4045
4048
|
responseData: null,
|
|
4046
4049
|
formErrorMessage: "",
|
|
4047
|
-
filterAttrs:
|
|
4050
|
+
filterAttrs: x
|
|
4048
4051
|
};
|
|
4049
4052
|
},
|
|
4050
4053
|
methods: {
|
|
@@ -4057,7 +4060,10 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4057
4060
|
this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
|
|
4058
4061
|
},
|
|
4059
4062
|
submissionState() {
|
|
4060
|
-
return
|
|
4063
|
+
return A() && this.previewState || this.formState;
|
|
4064
|
+
},
|
|
4065
|
+
errorResponse(e) {
|
|
4066
|
+
return JSON.stringify(e, null, 2);
|
|
4061
4067
|
},
|
|
4062
4068
|
onSubmit(e) {
|
|
4063
4069
|
var n;
|
|
@@ -4072,7 +4078,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4072
4078
|
e.preventDefault();
|
|
4073
4079
|
const o = e.currentTarget || e.target, r = this.customHeaders || {};
|
|
4074
4080
|
let i;
|
|
4075
|
-
const s = new FormData(o),
|
|
4081
|
+
const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).filter(
|
|
4076
4082
|
(c) => !!c.name && (c.type !== "radio" || c.checked)
|
|
4077
4083
|
).map((c) => {
|
|
4078
4084
|
let m;
|
|
@@ -4098,18 +4104,18 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4098
4104
|
value: m
|
|
4099
4105
|
};
|
|
4100
4106
|
});
|
|
4101
|
-
let
|
|
4102
|
-
if (this.sendSubmissionsTo === "email" && (
|
|
4103
|
-
(c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (
|
|
4104
|
-
}),
|
|
4107
|
+
let a = this.contentType;
|
|
4108
|
+
if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
|
|
4109
|
+
(c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
|
|
4110
|
+
}), a !== "application/json")
|
|
4105
4111
|
i = s;
|
|
4106
4112
|
else {
|
|
4107
4113
|
const c = {};
|
|
4108
|
-
Array.from(
|
|
4114
|
+
Array.from(l).forEach(({ value: m, key: b }) => {
|
|
4109
4115
|
et(c, b, m);
|
|
4110
4116
|
}), i = JSON.stringify(c);
|
|
4111
4117
|
}
|
|
4112
|
-
|
|
4118
|
+
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
4113
4119
|
const u = new CustomEvent("presubmit", {
|
|
4114
4120
|
detail: {
|
|
4115
4121
|
body: i
|
|
@@ -4127,25 +4133,25 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4127
4133
|
const p = `${Gr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
4128
4134
|
this.sendSubmissionsToEmail || ""
|
|
4129
4135
|
)}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
4130
|
-
|
|
4136
|
+
Ie(f), fetch(f, {
|
|
4131
4137
|
body: i,
|
|
4132
4138
|
headers: r,
|
|
4133
4139
|
method: this.method || "post"
|
|
4134
4140
|
}).then(
|
|
4135
4141
|
async (c) => {
|
|
4136
|
-
var g,
|
|
4142
|
+
var g, P;
|
|
4137
4143
|
let m;
|
|
4138
4144
|
const b = c.headers.get("content-type");
|
|
4139
4145
|
if (b && b.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
|
|
4140
|
-
const
|
|
4146
|
+
const U = new CustomEvent("submit:error", {
|
|
4141
4147
|
detail: {
|
|
4142
4148
|
error: m,
|
|
4143
4149
|
status: c.status
|
|
4144
4150
|
}
|
|
4145
4151
|
});
|
|
4146
|
-
if ((g = this.$refs.formRef) != null && g.nativeElement && ((
|
|
4147
|
-
|
|
4148
|
-
),
|
|
4152
|
+
if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
|
|
4153
|
+
U
|
|
4154
|
+
), U.defaultPrevented))
|
|
4149
4155
|
return;
|
|
4150
4156
|
this.responseData = m, this.formState = "error";
|
|
4151
4157
|
let V = this.errorMessagePath ? Je(m, this.errorMessagePath) : m.message || m.error || m;
|
|
@@ -4155,14 +4161,14 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4155
4161
|
return;
|
|
4156
4162
|
}
|
|
4157
4163
|
if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
|
|
4158
|
-
const
|
|
4164
|
+
const U = new CustomEvent("submit:success", {
|
|
4159
4165
|
detail: {
|
|
4160
4166
|
res: c,
|
|
4161
4167
|
body: m
|
|
4162
4168
|
}
|
|
4163
4169
|
});
|
|
4164
4170
|
if (this.$refs.formRef) {
|
|
4165
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
4171
|
+
if (this.$refs.formRef.dispatchEvent(U), U.defaultPrevented)
|
|
4166
4172
|
return;
|
|
4167
4173
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
4168
4174
|
}
|
|
@@ -4192,7 +4198,7 @@ const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
|
4192
4198
|
}
|
|
4193
4199
|
}), Qr = ["validate", "action", "method", "name"], Yr = {
|
|
4194
4200
|
key: 2,
|
|
4195
|
-
class: "builder-form-error-text pre-
|
|
4201
|
+
class: "builder-form-error-text pre-2oa2wtipkzk"
|
|
4196
4202
|
};
|
|
4197
4203
|
function Xr(e, t, n, o, r, i) {
|
|
4198
4204
|
const s = k("Blocks");
|
|
@@ -4202,8 +4208,8 @@ function Xr(e, t, n, o, r, i) {
|
|
|
4202
4208
|
action: !e.sendWithJs && e.action,
|
|
4203
4209
|
method: e.method,
|
|
4204
4210
|
name: e.name,
|
|
4205
|
-
onSubmit: t[0] || (t[0] = async (
|
|
4206
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
4211
|
+
onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
|
|
4212
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4207
4213
|
N(e.$slots, "default", {}, void 0, !0),
|
|
4208
4214
|
e.submissionState() === "error" ? (d(), S(s, {
|
|
4209
4215
|
key: 0,
|
|
@@ -4217,7 +4223,7 @@ function Xr(e, t, n, o, r, i) {
|
|
|
4217
4223
|
blocks: e.sendingMessage,
|
|
4218
4224
|
context: e.builderContext
|
|
4219
4225
|
}, null, 8, ["blocks", "context"])) : C("", !0),
|
|
4220
|
-
e.submissionState() === "error" && e.responseData ? (d(), h("pre", Yr,
|
|
4226
|
+
e.submissionState() === "error" && e.responseData ? (d(), h("pre", Yr, ce(e.errorResponse(e.responseData)), 1)) : C("", !0),
|
|
4221
4227
|
e.submissionState() === "success" ? (d(), S(s, {
|
|
4222
4228
|
key: 3,
|
|
4223
4229
|
path: "successMessage",
|
|
@@ -4226,7 +4232,7 @@ function Xr(e, t, n, o, r, i) {
|
|
|
4226
4232
|
}, null, 8, ["blocks", "context"])) : C("", !0)
|
|
4227
4233
|
], 16, Qr);
|
|
4228
4234
|
}
|
|
4229
|
-
const _r = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-
|
|
4235
|
+
const _r = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-77c7888c"]]), Zr = {
|
|
4230
4236
|
name: "Form:Input",
|
|
4231
4237
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4232
4238
|
inputs: [
|
|
@@ -4289,7 +4295,7 @@ const _r = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-158ccfce
|
|
|
4289
4295
|
"required"
|
|
4290
4296
|
],
|
|
4291
4297
|
data() {
|
|
4292
|
-
return { isEditing:
|
|
4298
|
+
return { isEditing: A, filterAttrs: x };
|
|
4293
4299
|
}
|
|
4294
4300
|
}), ti = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4295
4301
|
function ni(e, t, n, o, r, i) {
|
|
@@ -4301,7 +4307,7 @@ function ni(e, t, n, o, r, i) {
|
|
|
4301
4307
|
value: e.value,
|
|
4302
4308
|
defaultValue: e.defaultValue,
|
|
4303
4309
|
required: e.required
|
|
4304
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4310
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ti);
|
|
4305
4311
|
}
|
|
4306
4312
|
const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
|
|
4307
4313
|
name: "Form:Select",
|
|
@@ -4349,7 +4355,7 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
|
|
|
4349
4355
|
name: "builder-select-component",
|
|
4350
4356
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4351
4357
|
data() {
|
|
4352
|
-
return { isEditing:
|
|
4358
|
+
return { isEditing: A, filterAttrs: x };
|
|
4353
4359
|
}
|
|
4354
4360
|
}), si = ["value", "defaultValue", "name", "required"], ai = ["value"];
|
|
4355
4361
|
function li(e, t, n, o, r, i) {
|
|
@@ -4359,11 +4365,11 @@ function li(e, t, n, o, r, i) {
|
|
|
4359
4365
|
defaultValue: e.defaultValue,
|
|
4360
4366
|
name: e.name,
|
|
4361
4367
|
required: e.required
|
|
4362
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4363
|
-
(d(!0), h(I, null,
|
|
4364
|
-
key: `${s.name}-${
|
|
4368
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4369
|
+
(d(!0), h(I, null, F(e.options, (s, l) => (d(), h("option", {
|
|
4370
|
+
key: `${s.name}-${l}`,
|
|
4365
4371
|
value: s.value
|
|
4366
|
-
},
|
|
4372
|
+
}, ce(s.name || s.value), 9, ai))), 128))
|
|
4367
4373
|
], 16, si);
|
|
4368
4374
|
}
|
|
4369
4375
|
const ci = /* @__PURE__ */ v(ii, [["render", li]]), di = {
|
|
@@ -4395,11 +4401,11 @@ const ci = /* @__PURE__ */ v(ii, [["render", li]]), di = {
|
|
|
4395
4401
|
name: "builder-submit-button",
|
|
4396
4402
|
props: ["attributes", "text"],
|
|
4397
4403
|
data() {
|
|
4398
|
-
return { filterAttrs:
|
|
4404
|
+
return { filterAttrs: x };
|
|
4399
4405
|
}
|
|
4400
4406
|
});
|
|
4401
4407
|
function pi(e, t, n, o, r, i) {
|
|
4402
|
-
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4408
|
+
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ce(e.text), 17);
|
|
4403
4409
|
}
|
|
4404
4410
|
const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
|
|
4405
4411
|
name: "Form:TextArea",
|
|
@@ -4448,7 +4454,7 @@ const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
|
|
|
4448
4454
|
"required"
|
|
4449
4455
|
],
|
|
4450
4456
|
data() {
|
|
4451
|
-
return { filterAttrs:
|
|
4457
|
+
return { filterAttrs: x };
|
|
4452
4458
|
}
|
|
4453
4459
|
}), bi = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4454
4460
|
function gi(e, t, n, o, r, i) {
|
|
@@ -4458,10 +4464,9 @@ function gi(e, t, n, o, r, i) {
|
|
|
4458
4464
|
value: e.value,
|
|
4459
4465
|
defaultValue: e.defaultValue,
|
|
4460
4466
|
required: e.required
|
|
4461
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4467
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, bi);
|
|
4462
4468
|
}
|
|
4463
4469
|
const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
|
|
4464
|
-
// friendlyName?
|
|
4465
4470
|
name: "Raw:Img",
|
|
4466
4471
|
hideFromInsertMenu: !0,
|
|
4467
4472
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -4469,44 +4474,88 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
|
|
|
4469
4474
|
name: "image",
|
|
4470
4475
|
bubble: !0,
|
|
4471
4476
|
type: "file",
|
|
4472
|
-
allowedFileTypes:
|
|
4477
|
+
allowedFileTypes: Pe,
|
|
4473
4478
|
required: !0
|
|
4479
|
+
}, {
|
|
4480
|
+
name: "backgroundSize",
|
|
4481
|
+
type: "text",
|
|
4482
|
+
defaultValue: "cover",
|
|
4483
|
+
enum: [{
|
|
4484
|
+
label: "contain",
|
|
4485
|
+
value: "contain",
|
|
4486
|
+
helperText: "The image should never get cropped"
|
|
4487
|
+
}, {
|
|
4488
|
+
label: "cover",
|
|
4489
|
+
value: "cover",
|
|
4490
|
+
helperText: "The image should fill it's box, cropping when needed"
|
|
4491
|
+
}]
|
|
4492
|
+
}, {
|
|
4493
|
+
name: "backgroundPosition",
|
|
4494
|
+
type: "text",
|
|
4495
|
+
defaultValue: "center",
|
|
4496
|
+
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
4497
|
+
}, {
|
|
4498
|
+
name: "altText",
|
|
4499
|
+
type: "string",
|
|
4500
|
+
helperText: "Text to display when the user has images off"
|
|
4501
|
+
}, {
|
|
4502
|
+
name: "title",
|
|
4503
|
+
type: "string",
|
|
4504
|
+
helperText: "Text to display when hovering over the asset"
|
|
4505
|
+
}, {
|
|
4506
|
+
name: "aspectRatio",
|
|
4507
|
+
type: "number",
|
|
4508
|
+
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
4509
|
+
advanced: !0,
|
|
4510
|
+
defaultValue: 0.7041
|
|
4474
4511
|
}],
|
|
4475
|
-
noWrap: !0
|
|
4476
|
-
static: !0
|
|
4512
|
+
noWrap: !0
|
|
4477
4513
|
}, Si = y({
|
|
4478
4514
|
name: "builder-img-component",
|
|
4479
4515
|
props: [
|
|
4480
4516
|
"imgSrc",
|
|
4481
4517
|
"image",
|
|
4518
|
+
"attributes",
|
|
4519
|
+
"altText",
|
|
4520
|
+
"title",
|
|
4482
4521
|
"backgroundSize",
|
|
4483
4522
|
"backgroundPosition",
|
|
4484
|
-
"
|
|
4485
|
-
"attributes"
|
|
4523
|
+
"aspectRatio"
|
|
4486
4524
|
],
|
|
4487
4525
|
data() {
|
|
4488
|
-
return { isEditing:
|
|
4526
|
+
return { isEditing: A };
|
|
4489
4527
|
},
|
|
4490
4528
|
computed: {
|
|
4491
4529
|
srcSetToUse() {
|
|
4492
4530
|
const e = this.imgSrc || this.image;
|
|
4493
4531
|
if (!(!e || typeof e != "string") && e.match(/builder\.io/))
|
|
4494
|
-
return
|
|
4532
|
+
return oe(e);
|
|
4533
|
+
},
|
|
4534
|
+
imgAttrs() {
|
|
4535
|
+
const e = {
|
|
4536
|
+
...x(this.attributes, "v-on:", !1),
|
|
4537
|
+
...x(this.attributes, "v-on:", !0),
|
|
4538
|
+
[j()]: `builder-raw-img ${this.attributes[j()] || ""}`
|
|
4539
|
+
};
|
|
4540
|
+
return delete e.style, e;
|
|
4495
4541
|
}
|
|
4496
4542
|
}
|
|
4497
|
-
}), ki = ["alt", "
|
|
4543
|
+
}), ki = ["alt", "title", "src"];
|
|
4498
4544
|
function Ci(e, t, n, o, r, i) {
|
|
4545
|
+
var s;
|
|
4499
4546
|
return d(), h("img", $({
|
|
4500
4547
|
loading: "lazy",
|
|
4501
|
-
style: {
|
|
4502
|
-
objectFit: e.backgroundSize || "cover",
|
|
4503
|
-
objectPosition: e.backgroundPosition || "center"
|
|
4504
|
-
},
|
|
4505
4548
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
4506
4549
|
alt: e.altText,
|
|
4550
|
+
title: e.title,
|
|
4507
4551
|
src: e.imgSrc || e.image,
|
|
4508
|
-
|
|
4509
|
-
|
|
4552
|
+
style: {
|
|
4553
|
+
objectFit: e.backgroundSize || "cover",
|
|
4554
|
+
objectPosition: e.backgroundPosition || "center",
|
|
4555
|
+
aspectRatio: e.aspectRatio || void 0,
|
|
4556
|
+
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4557
|
+
}
|
|
4558
|
+
}, e.imgAttrs), null, 16, ki);
|
|
4510
4559
|
}
|
|
4511
4560
|
const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
4512
4561
|
name: "Video",
|
|
@@ -4526,7 +4575,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
|
4526
4575
|
}, {
|
|
4527
4576
|
name: "posterImage",
|
|
4528
4577
|
type: "file",
|
|
4529
|
-
allowedFileTypes:
|
|
4578
|
+
allowedFileTypes: Pe,
|
|
4530
4579
|
helperText: "Image to show before the video plays"
|
|
4531
4580
|
}, {
|
|
4532
4581
|
name: "autoPlay",
|
|
@@ -4674,7 +4723,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
|
4674
4723
|
flexDirection: "column",
|
|
4675
4724
|
alignItems: "stretch"
|
|
4676
4725
|
}
|
|
4677
|
-
},
|
|
4726
|
+
}, Ai = {
|
|
4678
4727
|
key: 2,
|
|
4679
4728
|
style: {
|
|
4680
4729
|
pointerEvents: "none",
|
|
@@ -4688,8 +4737,8 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
|
4688
4737
|
height: "100%"
|
|
4689
4738
|
}
|
|
4690
4739
|
};
|
|
4691
|
-
function
|
|
4692
|
-
var s,
|
|
4740
|
+
function Pi(e, t, n, o, r, i) {
|
|
4741
|
+
var s, l, a, u, p, f, c;
|
|
4693
4742
|
return d(), h("div", $i, [
|
|
4694
4743
|
z("video", $({
|
|
4695
4744
|
class: "builder-video",
|
|
@@ -4719,9 +4768,9 @@ function Ai(e, t, n, o, r, i) {
|
|
|
4719
4768
|
}
|
|
4720
4769
|
), null, 16)
|
|
4721
4770
|
], 16, Ri),
|
|
4722
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
4771
|
+
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
|
|
4723
4772
|
key: 0,
|
|
4724
|
-
style:
|
|
4773
|
+
style: M({
|
|
4725
4774
|
width: "100%",
|
|
4726
4775
|
paddingTop: e.aspectRatio * 100 + "%",
|
|
4727
4776
|
pointerEvents: "none",
|
|
@@ -4731,12 +4780,12 @@ function Ai(e, t, n, o, r, i) {
|
|
|
4731
4780
|
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", Ei, [
|
|
4732
4781
|
N(e.$slots, "default")
|
|
4733
4782
|
])) : C("", !0),
|
|
4734
|
-
(c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div",
|
|
4783
|
+
(c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div", Ai, [
|
|
4735
4784
|
N(e.$slots, "default")
|
|
4736
4785
|
])) : C("", !0)
|
|
4737
4786
|
]);
|
|
4738
4787
|
}
|
|
4739
|
-
const Bi = /* @__PURE__ */ v(Ii, [["render",
|
|
4788
|
+
const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
4740
4789
|
component: Or,
|
|
4741
4790
|
...Nr
|
|
4742
4791
|
}, {
|
|
@@ -4764,10 +4813,10 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Ai]]), Vi = () => [{
|
|
|
4764
4813
|
component: Bi,
|
|
4765
4814
|
...wi
|
|
4766
4815
|
}], je = () => [{
|
|
4767
|
-
component:
|
|
4816
|
+
component: Ft,
|
|
4768
4817
|
...ar
|
|
4769
4818
|
}, {
|
|
4770
|
-
component:
|
|
4819
|
+
component: Po,
|
|
4771
4820
|
...lr
|
|
4772
4821
|
}, {
|
|
4773
4822
|
component: No,
|
|
@@ -4855,7 +4904,7 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Ai]]), Vi = () => [{
|
|
|
4855
4904
|
}).join('');
|
|
4856
4905
|
styleEl.innerHTML = newStyleStr;
|
|
4857
4906
|
}
|
|
4858
|
-
}`,
|
|
4907
|
+
}`, xi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4859
4908
|
if (!navigator.cookieEnabled) {
|
|
4860
4909
|
return;
|
|
4861
4910
|
}
|
|
@@ -4889,23 +4938,23 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Ai]]), Vi = () => [{
|
|
|
4889
4938
|
thisScriptEl?.remove();
|
|
4890
4939
|
}
|
|
4891
4940
|
return;
|
|
4892
|
-
}`,
|
|
4941
|
+
}`, At = "builderIoAbTest", Pt = "builderIoRenderContent", ie = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4893
4942
|
...t,
|
|
4894
4943
|
testVariationId: t.id,
|
|
4895
4944
|
id: e == null ? void 0 : e.id
|
|
4896
|
-
})),
|
|
4945
|
+
})), Wi = ({
|
|
4897
4946
|
canTrack: e,
|
|
4898
4947
|
content: t
|
|
4899
|
-
}) => !(!(
|
|
4900
|
-
window.${
|
|
4901
|
-
window.${
|
|
4902
|
-
`,
|
|
4903
|
-
window.${
|
|
4948
|
+
}) => !(!(ie(t).length > 0) || !e), Di = (e) => e === "react" || e === "reactNative", Oi = R === "angular", Bt = Di(R), Ui = () => `
|
|
4949
|
+
window.${At} = ${Ni}
|
|
4950
|
+
window.${Pt} = ${xi}
|
|
4951
|
+
`, Li = (e, t) => `
|
|
4952
|
+
window.${At}(
|
|
4904
4953
|
"${t}",${JSON.stringify(e)}, ${Bt}, ${Oi}
|
|
4905
|
-
)`,
|
|
4954
|
+
)`, Fi = ({
|
|
4906
4955
|
contentId: e,
|
|
4907
4956
|
variationId: t
|
|
4908
|
-
}) => `window.${
|
|
4957
|
+
}) => `window.${Pt}(
|
|
4909
4958
|
"${t}", "${e}", ${Bt}
|
|
4910
4959
|
)`;
|
|
4911
4960
|
function Ke(e) {
|
|
@@ -4950,7 +4999,7 @@ const Hi = (e, t, n = !0) => {
|
|
|
4950
4999
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4951
5000
|
}
|
|
4952
5001
|
};
|
|
4953
|
-
}, Ki = ["svelte", "qwik", "vue"], qi = () => Ki.includes(R) && (
|
|
5002
|
+
}, Ki = ["svelte", "qwik", "vue"], qi = () => Ki.includes(R) && (A() || Te()), zi = (e) => {
|
|
4954
5003
|
var i;
|
|
4955
5004
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
4956
5005
|
let r = "";
|
|
@@ -4965,11 +5014,11 @@ font-weight: 400;
|
|
|
4965
5014
|
for (const s in e.files) {
|
|
4966
5015
|
if (!(String(Number(s)) === s))
|
|
4967
5016
|
continue;
|
|
4968
|
-
const
|
|
4969
|
-
|
|
5017
|
+
const a = e.files[s];
|
|
5018
|
+
a && a !== o && (r += `
|
|
4970
5019
|
@font-face {
|
|
4971
5020
|
font-family: "${t}";
|
|
4972
|
-
src: url('${
|
|
5021
|
+
src: url('${a}') format('woff2');
|
|
4973
5022
|
font-display: fallback;
|
|
4974
5023
|
font-weight: ${s};
|
|
4975
5024
|
}
|
|
@@ -5003,7 +5052,7 @@ font-weight: ${s};
|
|
|
5003
5052
|
}
|
|
5004
5053
|
`, Yi = (e) => e ? "" : Qi, Xi = (e) => `variant-${e}`, _i = y({
|
|
5005
5054
|
name: "enable-editor",
|
|
5006
|
-
components: { DynamicDiv:
|
|
5055
|
+
components: { DynamicDiv: te },
|
|
5007
5056
|
props: [
|
|
5008
5057
|
"isNestedRender",
|
|
5009
5058
|
"builderContextSignal",
|
|
@@ -5024,11 +5073,14 @@ font-weight: ${s};
|
|
|
5024
5073
|
data() {
|
|
5025
5074
|
return {
|
|
5026
5075
|
hasExecuted: !1,
|
|
5076
|
+
contextValue: this.builderContextSignal,
|
|
5077
|
+
prevData: null,
|
|
5078
|
+
prevLocale: "",
|
|
5027
5079
|
ContentWrapper: this.contentWrapper || "div",
|
|
5028
5080
|
httpReqsData: {},
|
|
5029
5081
|
httpReqsPending: {},
|
|
5030
5082
|
clicked: !1,
|
|
5031
|
-
builderContext:
|
|
5083
|
+
builderContext: be,
|
|
5032
5084
|
needsElementRefDivForEditing: qi,
|
|
5033
5085
|
getWrapperClassName: Xi
|
|
5034
5086
|
};
|
|
@@ -5036,7 +5088,7 @@ font-weight: ${s};
|
|
|
5036
5088
|
provide() {
|
|
5037
5089
|
const e = this;
|
|
5038
5090
|
return {
|
|
5039
|
-
[
|
|
5091
|
+
[be.key]: e.builderContextSignal
|
|
5040
5092
|
};
|
|
5041
5093
|
},
|
|
5042
5094
|
created() {
|
|
@@ -5045,25 +5097,25 @@ font-weight: ${s};
|
|
|
5045
5097
|
mounted() {
|
|
5046
5098
|
var e, t, n;
|
|
5047
5099
|
if (T()) {
|
|
5048
|
-
|
|
5100
|
+
A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5049
5101
|
new CustomEvent("initeditingbldr")
|
|
5050
5102
|
);
|
|
5051
|
-
const o = this.builderContextSignal.content &&
|
|
5103
|
+
const o = this.builderContextSignal.content && G(this.canTrack), r = de({
|
|
5052
5104
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
5053
5105
|
canTrack: !0
|
|
5054
5106
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
5055
5107
|
if (o && i === r) {
|
|
5056
|
-
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id,
|
|
5057
|
-
|
|
5108
|
+
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
|
|
5109
|
+
ye({
|
|
5058
5110
|
apiHost: this.apiHost,
|
|
5059
5111
|
type: "impression",
|
|
5060
5112
|
canTrack: !0,
|
|
5061
5113
|
contentId: s,
|
|
5062
|
-
apiKey:
|
|
5114
|
+
apiKey: l,
|
|
5063
5115
|
variationId: r !== s ? r : void 0
|
|
5064
5116
|
});
|
|
5065
5117
|
}
|
|
5066
|
-
|
|
5118
|
+
Te() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5067
5119
|
new CustomEvent("initpreviewingbldr")
|
|
5068
5120
|
);
|
|
5069
5121
|
}
|
|
@@ -5083,15 +5135,23 @@ font-weight: ${s};
|
|
|
5083
5135
|
},
|
|
5084
5136
|
onUpdateHook2: {
|
|
5085
5137
|
handler() {
|
|
5086
|
-
|
|
5138
|
+
if (this.data) {
|
|
5139
|
+
if (this.prevData === this.data)
|
|
5140
|
+
return;
|
|
5141
|
+
this.mergeNewRootState(this.data), this.prevData = this.data;
|
|
5142
|
+
}
|
|
5087
5143
|
},
|
|
5088
5144
|
immediate: !0
|
|
5089
5145
|
},
|
|
5090
5146
|
onUpdateHook3: {
|
|
5091
5147
|
handler() {
|
|
5092
|
-
this.locale
|
|
5093
|
-
|
|
5094
|
-
|
|
5148
|
+
if (this.locale) {
|
|
5149
|
+
if (this.prevLocale === this.locale)
|
|
5150
|
+
return;
|
|
5151
|
+
this.mergeNewRootState({
|
|
5152
|
+
locale: this.locale
|
|
5153
|
+
}), this.prevLocale = this.locale;
|
|
5154
|
+
}
|
|
5095
5155
|
},
|
|
5096
5156
|
immediate: !0
|
|
5097
5157
|
}
|
|
@@ -5131,30 +5191,30 @@ font-weight: ${s};
|
|
|
5131
5191
|
}
|
|
5132
5192
|
},
|
|
5133
5193
|
methods: {
|
|
5134
|
-
mergeNewRootState(e) {
|
|
5135
|
-
var
|
|
5136
|
-
const
|
|
5194
|
+
mergeNewRootState(e, t) {
|
|
5195
|
+
var o, r;
|
|
5196
|
+
const n = {
|
|
5137
5197
|
...this.builderContextSignal.rootState,
|
|
5138
5198
|
...e
|
|
5139
5199
|
};
|
|
5140
|
-
this.builderContextSignal.rootSetState ? (
|
|
5200
|
+
this.builderContextSignal.rootSetState ? (r = (o = this.builderContextSignal).rootSetState) == null || r.call(o, n) : this.builderContextSignal.rootState = n, this.builderContextSignal.rootSetState ? this.builderContextSignal.rootSetState(n) : this.builderContextSignal.rootState = n;
|
|
5141
5201
|
},
|
|
5142
|
-
mergeNewContent(e) {
|
|
5143
|
-
var
|
|
5144
|
-
const
|
|
5202
|
+
mergeNewContent(e, t) {
|
|
5203
|
+
var o, r, i, s, l;
|
|
5204
|
+
const n = {
|
|
5145
5205
|
...this.builderContextSignal.content,
|
|
5146
5206
|
...e,
|
|
5147
5207
|
data: {
|
|
5148
|
-
...(
|
|
5208
|
+
...(o = this.builderContextSignal.content) == null ? void 0 : o.data,
|
|
5149
5209
|
...e == null ? void 0 : e.data
|
|
5150
5210
|
},
|
|
5151
5211
|
meta: {
|
|
5152
|
-
...(
|
|
5212
|
+
...(r = this.builderContextSignal.content) == null ? void 0 : r.meta,
|
|
5153
5213
|
...e == null ? void 0 : e.meta,
|
|
5154
|
-
breakpoints: ((
|
|
5214
|
+
breakpoints: ((i = e == null ? void 0 : e.meta) == null ? void 0 : i.breakpoints) || ((l = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : l.breakpoints)
|
|
5155
5215
|
}
|
|
5156
5216
|
};
|
|
5157
|
-
this.builderContextSignal.content =
|
|
5217
|
+
this.builderContextSignal.content = n;
|
|
5158
5218
|
},
|
|
5159
5219
|
processMessage(e) {
|
|
5160
5220
|
return ut({
|
|
@@ -5173,11 +5233,11 @@ font-weight: ${s};
|
|
|
5173
5233
|
animation: (t) => {
|
|
5174
5234
|
yt(t);
|
|
5175
5235
|
},
|
|
5176
|
-
contentUpdate: (t) => {
|
|
5177
|
-
this.mergeNewContent(t);
|
|
5236
|
+
contentUpdate: (t, n) => {
|
|
5237
|
+
this.mergeNewContent(t, n);
|
|
5178
5238
|
},
|
|
5179
|
-
stateUpdate: (t) => {
|
|
5180
|
-
this.mergeNewRootState(t);
|
|
5239
|
+
stateUpdate: (t, n) => {
|
|
5240
|
+
this.mergeNewRootState(t, n);
|
|
5181
5241
|
}
|
|
5182
5242
|
}
|
|
5183
5243
|
})(e);
|
|
@@ -5186,10 +5246,10 @@ font-weight: ${s};
|
|
|
5186
5246
|
var t, n;
|
|
5187
5247
|
if (this.builderContextSignal.content) {
|
|
5188
5248
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
5189
|
-
|
|
5249
|
+
ye({
|
|
5190
5250
|
apiHost: this.apiHost,
|
|
5191
5251
|
type: "click",
|
|
5192
|
-
canTrack:
|
|
5252
|
+
canTrack: G(this.canTrack),
|
|
5193
5253
|
contentId: r,
|
|
5194
5254
|
apiKey: this.apiKey,
|
|
5195
5255
|
variationId: o !== r ? o : void 0,
|
|
@@ -5207,43 +5267,45 @@ font-weight: ${s};
|
|
|
5207
5267
|
if (!r)
|
|
5208
5268
|
return;
|
|
5209
5269
|
const i = typeof r == "object" && r["@type"] === "@builder.io/core:Request";
|
|
5210
|
-
if (this.httpReqsPending[o] || this.httpReqsData[o] && !
|
|
5270
|
+
if (this.httpReqsPending[o] || this.httpReqsData[o] && !A())
|
|
5211
5271
|
return;
|
|
5212
5272
|
const s = i ? r.request.url : r;
|
|
5213
5273
|
this.httpReqsPending[o] = !0;
|
|
5214
|
-
const
|
|
5274
|
+
const l = s.replace(
|
|
5215
5275
|
/{{([^}]+)}}/g,
|
|
5216
|
-
(
|
|
5217
|
-
|
|
5218
|
-
code:
|
|
5276
|
+
(p, f) => String(
|
|
5277
|
+
ee({
|
|
5278
|
+
code: f,
|
|
5219
5279
|
context: this.context || {},
|
|
5220
5280
|
localState: void 0,
|
|
5221
5281
|
rootState: this.builderContextSignal.rootState,
|
|
5222
5282
|
rootSetState: this.builderContextSignal.rootSetState
|
|
5223
5283
|
})
|
|
5224
5284
|
)
|
|
5225
|
-
),
|
|
5226
|
-
url:
|
|
5285
|
+
), a = i ? {
|
|
5286
|
+
url: l,
|
|
5227
5287
|
method: r.request.method,
|
|
5228
5288
|
headers: r.request.headers,
|
|
5229
5289
|
body: r.request.body
|
|
5230
5290
|
} : {
|
|
5231
|
-
url:
|
|
5291
|
+
url: l,
|
|
5232
5292
|
method: "GET"
|
|
5233
5293
|
};
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5294
|
+
Ie(JSON.stringify(a));
|
|
5295
|
+
const u = {
|
|
5296
|
+
method: a.method,
|
|
5297
|
+
headers: a.headers,
|
|
5298
|
+
body: a.body
|
|
5299
|
+
};
|
|
5300
|
+
a.method === "GET" && delete u.body, fetch(a.url, u).then((p) => p.json()).then((p) => {
|
|
5239
5301
|
this.mergeNewRootState({
|
|
5240
|
-
[o]:
|
|
5302
|
+
[o]: p
|
|
5241
5303
|
}), this.httpReqsData[o] = !0;
|
|
5242
|
-
}).catch((
|
|
5304
|
+
}).catch((p) => {
|
|
5243
5305
|
console.error(
|
|
5244
5306
|
"error fetching dynamic data",
|
|
5245
5307
|
JSON.stringify(r),
|
|
5246
|
-
|
|
5308
|
+
p
|
|
5247
5309
|
);
|
|
5248
5310
|
}).finally(() => {
|
|
5249
5311
|
this.httpReqsPending[o] = !1;
|
|
@@ -5252,12 +5314,12 @@ font-weight: ${s};
|
|
|
5252
5314
|
);
|
|
5253
5315
|
},
|
|
5254
5316
|
emitStateUpdate() {
|
|
5255
|
-
|
|
5317
|
+
A() && window.dispatchEvent(
|
|
5256
5318
|
new CustomEvent(
|
|
5257
5319
|
"builder:component:stateChange",
|
|
5258
5320
|
{
|
|
5259
5321
|
detail: {
|
|
5260
|
-
state:
|
|
5322
|
+
state: Ce(this.builderContextSignal.rootState),
|
|
5261
5323
|
ref: {
|
|
5262
5324
|
name: this.model
|
|
5263
5325
|
}
|
|
@@ -5297,7 +5359,7 @@ font-weight: ${s};
|
|
|
5297
5359
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
5298
5360
|
`builder.overrides.${n}`
|
|
5299
5361
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
5300
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
5362
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Ee({
|
|
5301
5363
|
model: this.model,
|
|
5302
5364
|
apiKey: this.apiKey,
|
|
5303
5365
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -5313,21 +5375,21 @@ font-weight: ${s};
|
|
|
5313
5375
|
}
|
|
5314
5376
|
});
|
|
5315
5377
|
function Zi(e, t, n, o, r, i) {
|
|
5316
|
-
var s,
|
|
5317
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(
|
|
5378
|
+
var s, l, a;
|
|
5379
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper), $({
|
|
5318
5380
|
key: 0,
|
|
5319
5381
|
ref: "elementRef",
|
|
5320
5382
|
onClick: (u) => e.onClick(u),
|
|
5321
5383
|
"builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
|
|
5322
5384
|
"builder-model": e.model,
|
|
5323
|
-
className: e.getWrapperClassName(((
|
|
5385
|
+
className: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
|
|
5324
5386
|
style: {
|
|
5325
5387
|
display: !e.builderContextSignal.content && e.needsElementRefDivForEditing() ? "none" : void 0
|
|
5326
5388
|
},
|
|
5327
5389
|
onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
|
|
5328
5390
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
5329
5391
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
5330
|
-
default:
|
|
5392
|
+
default: O(() => [
|
|
5331
5393
|
N(e.$slots, "default")
|
|
5332
5394
|
]),
|
|
5333
5395
|
_: 3
|
|
@@ -5335,7 +5397,7 @@ function Zi(e, t, n, o, r, i) {
|
|
|
5335
5397
|
}
|
|
5336
5398
|
const es = /* @__PURE__ */ v(_i, [["render", Zi]]), ts = y({
|
|
5337
5399
|
name: "content-styles",
|
|
5338
|
-
components: { InlinedStyles:
|
|
5400
|
+
components: { InlinedStyles: ue },
|
|
5339
5401
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5340
5402
|
data() {
|
|
5341
5403
|
return {
|
|
@@ -5365,10 +5427,10 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5365
5427
|
data: t,
|
|
5366
5428
|
locale: n
|
|
5367
5429
|
}) => {
|
|
5368
|
-
var i, s,
|
|
5430
|
+
var i, s, l;
|
|
5369
5431
|
const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
|
|
5370
|
-
return (
|
|
5371
|
-
|
|
5432
|
+
return (l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || l.forEach((a) => {
|
|
5433
|
+
a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
|
|
5372
5434
|
}), {
|
|
5373
5435
|
...o,
|
|
5374
5436
|
...r,
|
|
@@ -5391,10 +5453,10 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5391
5453
|
name: "content-component",
|
|
5392
5454
|
components: {
|
|
5393
5455
|
EnableEditor: es,
|
|
5394
|
-
InlinedScript:
|
|
5456
|
+
InlinedScript: Be,
|
|
5395
5457
|
ContentStyles: os,
|
|
5396
5458
|
Blocks: q,
|
|
5397
|
-
DynamicDiv:
|
|
5459
|
+
DynamicDiv: te
|
|
5398
5460
|
},
|
|
5399
5461
|
props: [
|
|
5400
5462
|
"apiKey",
|
|
@@ -5422,7 +5484,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5422
5484
|
data() {
|
|
5423
5485
|
var e, t;
|
|
5424
5486
|
return {
|
|
5425
|
-
scriptStr:
|
|
5487
|
+
scriptStr: Fi({
|
|
5426
5488
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5427
5489
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5428
5490
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -5436,7 +5498,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5436
5498
|
...n,
|
|
5437
5499
|
[r.name]: {
|
|
5438
5500
|
component: ss(o),
|
|
5439
|
-
...
|
|
5501
|
+
...ae(r)
|
|
5440
5502
|
}
|
|
5441
5503
|
}),
|
|
5442
5504
|
{}
|
|
@@ -5463,7 +5525,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5463
5525
|
].reduce(
|
|
5464
5526
|
(n, { component: o, ...r }) => ({
|
|
5465
5527
|
...n,
|
|
5466
|
-
[r.name]:
|
|
5528
|
+
[r.name]: ae(r)
|
|
5467
5529
|
}),
|
|
5468
5530
|
{}
|
|
5469
5531
|
),
|
|
@@ -5490,7 +5552,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5490
5552
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
5491
5553
|
);
|
|
5492
5554
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
5493
|
-
e &&
|
|
5555
|
+
e && ee({
|
|
5494
5556
|
code: e,
|
|
5495
5557
|
context: this.context || {},
|
|
5496
5558
|
localState: void 0,
|
|
@@ -5508,7 +5570,7 @@ const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
|
5508
5570
|
}
|
|
5509
5571
|
});
|
|
5510
5572
|
function ls(e, t, n, o, r, i) {
|
|
5511
|
-
const s = k("InlinedScript"),
|
|
5573
|
+
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
5512
5574
|
return d(), S(u, $({
|
|
5513
5575
|
apiHost: e.apiHost,
|
|
5514
5576
|
nonce: e.nonce,
|
|
@@ -5527,8 +5589,8 @@ function ls(e, t, n, o, r, i) {
|
|
|
5527
5589
|
trustedHosts: e.trustedHosts,
|
|
5528
5590
|
isNestedRender: e.isNestedRender
|
|
5529
5591
|
}, {}), {
|
|
5530
|
-
default:
|
|
5531
|
-
var p, f, c, m, b, g,
|
|
5592
|
+
default: O(() => {
|
|
5593
|
+
var p, f, c, m, b, g, P;
|
|
5532
5594
|
return [
|
|
5533
5595
|
e.isSsrAbTest ? (d(), S(s, {
|
|
5534
5596
|
key: 0,
|
|
@@ -5536,7 +5598,7 @@ function ls(e, t, n, o, r, i) {
|
|
|
5536
5598
|
scriptStr: e.scriptStr,
|
|
5537
5599
|
nonce: e.nonce || ""
|
|
5538
5600
|
}, null, 8, ["scriptStr", "nonce"])) : C("", !0),
|
|
5539
|
-
e.TARGET !== "reactNative" ? (d(), S(
|
|
5601
|
+
e.TARGET !== "reactNative" ? (d(), S(l, {
|
|
5540
5602
|
key: 1,
|
|
5541
5603
|
nonce: e.nonce || "",
|
|
5542
5604
|
isNestedRender: e.isNestedRender,
|
|
@@ -5544,8 +5606,8 @@ function ls(e, t, n, o, r, i) {
|
|
|
5544
5606
|
cssCode: (c = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : c.cssCode,
|
|
5545
5607
|
customFonts: (b = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
|
|
5546
5608
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : C("", !0),
|
|
5547
|
-
E(
|
|
5548
|
-
blocks: (
|
|
5609
|
+
E(a, {
|
|
5610
|
+
blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
|
|
5549
5611
|
context: e.builderContextSignal,
|
|
5550
5612
|
registeredComponents: e.registeredComponents,
|
|
5551
5613
|
linkComponent: e.linkComponent
|
|
@@ -5558,8 +5620,8 @@ function ls(e, t, n, o, r, i) {
|
|
|
5558
5620
|
const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
5559
5621
|
name: "content-variants",
|
|
5560
5622
|
components: {
|
|
5561
|
-
InlinedScript:
|
|
5562
|
-
InlinedStyles:
|
|
5623
|
+
InlinedScript: Be,
|
|
5624
|
+
InlinedStyles: ue,
|
|
5563
5625
|
ContentComponent: cs
|
|
5564
5626
|
},
|
|
5565
5627
|
props: [
|
|
@@ -5585,15 +5647,15 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
|
5585
5647
|
],
|
|
5586
5648
|
data() {
|
|
5587
5649
|
return {
|
|
5588
|
-
shouldRenderVariants:
|
|
5589
|
-
canTrack:
|
|
5650
|
+
shouldRenderVariants: Wi({
|
|
5651
|
+
canTrack: G(this.canTrack),
|
|
5590
5652
|
content: this.content
|
|
5591
5653
|
}),
|
|
5592
5654
|
SDKS_SUPPORTING_PERSONALIZATION: $t,
|
|
5593
5655
|
getInitPersonalizationVariantsFnsScriptString: _o,
|
|
5594
5656
|
TARGET: R,
|
|
5595
5657
|
getInitVariantsFnsScriptString: Ui,
|
|
5596
|
-
getVariants:
|
|
5658
|
+
getVariants: ie
|
|
5597
5659
|
};
|
|
5598
5660
|
},
|
|
5599
5661
|
mounted() {
|
|
@@ -5601,8 +5663,8 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
|
5601
5663
|
computed: {
|
|
5602
5664
|
updateCookieAndStylesScriptStr() {
|
|
5603
5665
|
var e;
|
|
5604
|
-
return
|
|
5605
|
-
|
|
5666
|
+
return Li(
|
|
5667
|
+
ie(this.content).map((t) => ({
|
|
5606
5668
|
id: t.testVariationId,
|
|
5607
5669
|
testRatio: t.testRatio
|
|
5608
5670
|
})),
|
|
@@ -5610,7 +5672,7 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
|
5610
5672
|
);
|
|
5611
5673
|
},
|
|
5612
5674
|
hideVariantsStyleString() {
|
|
5613
|
-
return
|
|
5675
|
+
return ie(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
5614
5676
|
},
|
|
5615
5677
|
defaultContent() {
|
|
5616
5678
|
var e;
|
|
@@ -5619,13 +5681,13 @@ const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
|
5619
5681
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5620
5682
|
} : Un({
|
|
5621
5683
|
item: this.content,
|
|
5622
|
-
canTrack:
|
|
5684
|
+
canTrack: G(this.canTrack)
|
|
5623
5685
|
});
|
|
5624
5686
|
}
|
|
5625
5687
|
}
|
|
5626
5688
|
});
|
|
5627
5689
|
function us(e, t, n, o, r, i) {
|
|
5628
|
-
const s = k("InlinedScript"),
|
|
5690
|
+
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5629
5691
|
return d(), h(I, null, [
|
|
5630
5692
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(), h(I, { key: 0 }, [
|
|
5631
5693
|
E(s, {
|
|
@@ -5641,7 +5703,7 @@ function us(e, t, n, o, r, i) {
|
|
|
5641
5703
|
}, null, 8, ["nonce", "scriptStr"])) : C("", !0)
|
|
5642
5704
|
], 64)) : C("", !0),
|
|
5643
5705
|
e.shouldRenderVariants ? (d(), h(I, { key: 1 }, [
|
|
5644
|
-
E(
|
|
5706
|
+
E(l, {
|
|
5645
5707
|
id: "builderio-variants",
|
|
5646
5708
|
styles: e.hideVariantsStyleString,
|
|
5647
5709
|
nonce: e.nonce || ""
|
|
@@ -5651,7 +5713,7 @@ function us(e, t, n, o, r, i) {
|
|
|
5651
5713
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
5652
5714
|
nonce: e.nonce || ""
|
|
5653
5715
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5654
|
-
(d(!0), h(I, null,
|
|
5716
|
+
(d(!0), h(I, null, F(e.getVariants(e.content), (u, p) => (d(), S(a, $({
|
|
5655
5717
|
key: u.testVariationId,
|
|
5656
5718
|
apiHost: e.apiHost,
|
|
5657
5719
|
isNestedRender: e.isNestedRender,
|
|
@@ -5676,7 +5738,7 @@ function us(e, t, n, o, r, i) {
|
|
|
5676
5738
|
trustedHosts: e.trustedHosts
|
|
5677
5739
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
5678
5740
|
], 64)) : C("", !0),
|
|
5679
|
-
E(
|
|
5741
|
+
E(a, $({
|
|
5680
5742
|
apiHost: e.apiHost,
|
|
5681
5743
|
nonce: e.nonce,
|
|
5682
5744
|
isNestedRender: e.isNestedRender,
|
|
@@ -5709,7 +5771,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5709
5771
|
}) => {
|
|
5710
5772
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5711
5773
|
(e != null && e.apiKey))
|
|
5712
|
-
return
|
|
5774
|
+
return Ee({
|
|
5713
5775
|
model: t.model,
|
|
5714
5776
|
apiKey: e.apiKey,
|
|
5715
5777
|
apiVersion: e.apiVersion,
|
|
@@ -5723,14 +5785,14 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5723
5785
|
});
|
|
5724
5786
|
}, hs = y({
|
|
5725
5787
|
name: "builder-symbol",
|
|
5726
|
-
components: { ContentVariants: ps, DynamicDiv:
|
|
5788
|
+
components: { ContentVariants: ps, DynamicDiv: te },
|
|
5727
5789
|
props: [
|
|
5728
5790
|
"symbol",
|
|
5791
|
+
"builderComponents",
|
|
5729
5792
|
"attributes",
|
|
5730
5793
|
"dynamic",
|
|
5731
5794
|
"builderContext",
|
|
5732
5795
|
"builderBlock",
|
|
5733
|
-
"builderComponents",
|
|
5734
5796
|
"builderLinkComponent"
|
|
5735
5797
|
],
|
|
5736
5798
|
data() {
|
|
@@ -5738,7 +5800,7 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5738
5800
|
return {
|
|
5739
5801
|
contentToUse: (e = this.symbol) == null ? void 0 : e.content,
|
|
5740
5802
|
symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
|
|
5741
|
-
filterAttrs:
|
|
5803
|
+
filterAttrs: x
|
|
5742
5804
|
};
|
|
5743
5805
|
},
|
|
5744
5806
|
mounted() {
|
|
@@ -5759,10 +5821,13 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5759
5821
|
contentWrapper() {
|
|
5760
5822
|
return "div";
|
|
5761
5823
|
},
|
|
5824
|
+
customComponents() {
|
|
5825
|
+
return Object.values(this.builderComponents);
|
|
5826
|
+
},
|
|
5762
5827
|
className() {
|
|
5763
5828
|
var e, t;
|
|
5764
5829
|
return [
|
|
5765
|
-
this.attributes[
|
|
5830
|
+
this.attributes[j()],
|
|
5766
5831
|
"builder-symbol",
|
|
5767
5832
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
5768
5833
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -5788,9 +5853,9 @@ const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
|
5788
5853
|
}
|
|
5789
5854
|
});
|
|
5790
5855
|
function fs(e, t, n, o, r, i) {
|
|
5791
|
-
var
|
|
5856
|
+
var l, a, u, p, f;
|
|
5792
5857
|
const s = k("ContentVariants");
|
|
5793
|
-
return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
5858
|
+
return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5794
5859
|
E(s, {
|
|
5795
5860
|
nonce: e.builderContext.nonce,
|
|
5796
5861
|
isNestedRender: !0,
|
|
@@ -5798,11 +5863,11 @@ function fs(e, t, n, o, r, i) {
|
|
|
5798
5863
|
apiKey: e.builderContext.apiKey,
|
|
5799
5864
|
context: {
|
|
5800
5865
|
...e.builderContext.context,
|
|
5801
|
-
symbolId: (
|
|
5866
|
+
symbolId: (l = e.builderBlock) == null ? void 0 : l.id
|
|
5802
5867
|
},
|
|
5803
|
-
customComponents:
|
|
5868
|
+
customComponents: e.customComponents,
|
|
5804
5869
|
data: {
|
|
5805
|
-
...(
|
|
5870
|
+
...(a = e.symbol) == null ? void 0 : a.data,
|
|
5806
5871
|
...e.builderContext.localState,
|
|
5807
5872
|
...(p = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : p.state
|
|
5808
5873
|
},
|
|
@@ -5817,44 +5882,45 @@ function fs(e, t, n, o, r, i) {
|
|
|
5817
5882
|
}
|
|
5818
5883
|
const bs = /* @__PURE__ */ v(hs, [["render", fs]]);
|
|
5819
5884
|
export {
|
|
5820
|
-
|
|
5885
|
+
ws as A,
|
|
5821
5886
|
Ct as B,
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5887
|
+
Po as C,
|
|
5888
|
+
$s as D,
|
|
5889
|
+
Qn as E,
|
|
5825
5890
|
No as F,
|
|
5826
|
-
|
|
5827
|
-
|
|
5891
|
+
Yn as G,
|
|
5892
|
+
Ee as H,
|
|
5828
5893
|
Ho as I,
|
|
5829
|
-
|
|
5894
|
+
vs as J,
|
|
5895
|
+
As as K,
|
|
5830
5896
|
Ko as S,
|
|
5831
5897
|
R as T,
|
|
5832
5898
|
Bi as V,
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5899
|
+
v as _,
|
|
5900
|
+
j as a,
|
|
5901
|
+
be as b,
|
|
5902
|
+
ue as c,
|
|
5903
|
+
K as d,
|
|
5904
|
+
ee as e,
|
|
5905
|
+
$o as f,
|
|
5906
|
+
Es as g,
|
|
5907
|
+
Rs as h,
|
|
5908
|
+
A as i,
|
|
5909
|
+
Ps as j,
|
|
5910
|
+
Ae as k,
|
|
5911
|
+
pn as l,
|
|
5912
|
+
Ft as m,
|
|
5913
|
+
bs as n,
|
|
5914
|
+
Vr as o,
|
|
5915
|
+
q as p,
|
|
5916
|
+
ps as q,
|
|
5917
|
+
Te as r,
|
|
5852
5918
|
Is as s,
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5919
|
+
mn as t,
|
|
5920
|
+
Ss as u,
|
|
5921
|
+
ks as v,
|
|
5856
5922
|
ss as w,
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5923
|
+
Cs as x,
|
|
5924
|
+
tt as y,
|
|
5925
|
+
Ts as z
|
|
5860
5926
|
};
|