@builder.io/sdk-vue 5.2.16 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/lib/browser/{awaiter-xl6zu7C3.js → awaiter-XLoIdAw3.js} +1 -1
- package/lib/browser/{awaiter-sma99jcM.cjs → awaiter-qNFJfpSz.cjs} +1 -1
- package/lib/browser/{block-wrapper-5K0uC4T-.js → block-wrapper-f3zEx8S_.js} +3 -3
- package/lib/browser/{block-wrapper-RAvXLpEQ.cjs → block-wrapper-reas9rmo.cjs} +1 -1
- package/lib/browser/blocks/symbol/symbol.helpers.d.ts +1 -0
- package/lib/browser/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/browser/{component-ref-Tya2rDO2.cjs → component-ref-4ay3OV1k.cjs} +1 -1
- package/lib/browser/{component-ref-xLqT_jOc.js → component-ref-4lLMyE43.js} +4 -4
- package/lib/browser/components/block/block.helpers.d.ts +1 -1
- package/lib/browser/components/block/block.vue.d.ts +6 -11
- package/lib/browser/components/builder-scripts.vue.d.ts +18 -0
- package/lib/browser/components/content/components/styles.helpers.d.ts +1 -1
- package/lib/browser/components/content/content.helpers.d.ts +5 -1
- package/lib/browser/components/content/content.vue.d.ts +3 -5
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/components/content-variants/helpers.d.ts +6 -0
- package/lib/browser/constants/builder-registered-components.d.ts +1 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/context/builder-scripts.context.d.ts +7 -0
- package/lib/browser/functions/evaluate/safe-state-expression.d.ts +33 -0
- package/lib/browser/functions/extract-localized-values.d.ts +4 -0
- package/lib/browser/functions/get-processed-block.d.ts +0 -1
- package/lib/browser/functions/is-editing-or-previewing.d.ts +1 -0
- package/lib/browser/functions/set.d.ts +29 -1
- package/lib/browser/get-block-properties-CK4qnoHd.cjs +1 -0
- package/lib/browser/{get-block-properties-PdAD_uE2.js → get-block-properties-nqV8scES.js} +21 -18
- package/lib/browser/helpers/bounded-cache.d.ts +4 -0
- package/lib/browser/helpers/copy-plain-data.d.ts +6 -0
- package/lib/browser/index-helpers/blocks-exports.d.ts +1 -0
- package/lib/browser/index-lRIGot7h.cjs +368 -0
- package/lib/browser/{index-3sJN4pWL.js → index-pJnoXY0A.js} +1250 -1090
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +22 -21
- package/lib/browser/{live-edit-j4eofiKh.js → live-edit-5mCChUV2.js} +1 -1
- package/lib/browser/{live-edit-Sgr9Viar.cjs → live-edit-hoV0ghuj.cjs} +1 -1
- package/lib/browser/{repeated-block-2KvsgJoX.js → repeated-block-F5n8q4pA.js} +2 -2
- package/lib/browser/{repeated-block-HKaLji2X.cjs → repeated-block-FDJw__8i.cjs} +1 -1
- package/lib/browser/{style-wrapper-MZ3hUHCo.cjs → style-wrapper-6XW31DT6.cjs} +1 -1
- package/lib/browser/{style-wrapper-9lr-T4FL.js → style-wrapper-e5wqPuhd.js} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-vRSBu8iR.js → awaiter-TPWZATcH.js} +1 -1
- package/lib/edge/{awaiter-nGRnkiX-.cjs → awaiter-g1cucmgb.cjs} +1 -1
- package/lib/{node/block-wrapper-fc6BPhIM.cjs → edge/block-wrapper-oEdWkUs5.cjs} +1 -1
- package/lib/edge/{block-wrapper-dMzRh0wq.js → block-wrapper-pWTeul3q.js} +3 -3
- package/lib/edge/blocks/symbol/symbol.helpers.d.ts +1 -0
- package/lib/edge/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/edge/{component-ref-XuJa5YQU.js → component-ref-PjrRqoNv.js} +4 -4
- package/lib/edge/{component-ref-u8AFcxuW.cjs → component-ref-XsyNNMUg.cjs} +1 -1
- package/lib/edge/components/block/block.helpers.d.ts +1 -1
- package/lib/edge/components/block/block.vue.d.ts +6 -11
- package/lib/edge/components/builder-scripts.vue.d.ts +18 -0
- package/lib/edge/components/content/components/styles.helpers.d.ts +1 -1
- package/lib/edge/components/content/content.helpers.d.ts +5 -1
- package/lib/edge/components/content/content.vue.d.ts +3 -5
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/components/content-variants/helpers.d.ts +6 -0
- package/lib/edge/constants/builder-registered-components.d.ts +1 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/context/builder-scripts.context.d.ts +7 -0
- package/lib/edge/functions/evaluate/safe-state-expression.d.ts +33 -0
- package/lib/edge/functions/extract-localized-values.d.ts +4 -0
- package/lib/edge/functions/get-processed-block.d.ts +0 -1
- package/lib/edge/functions/is-editing-or-previewing.d.ts +1 -0
- package/lib/edge/functions/set.d.ts +29 -1
- package/lib/edge/get-block-properties-LZfO1d9V.cjs +1 -0
- package/lib/edge/{get-block-properties-lu3ijq_9.js → get-block-properties-OQKbXkPB.js} +21 -18
- package/lib/edge/helpers/bounded-cache.d.ts +4 -0
- package/lib/edge/helpers/copy-plain-data.d.ts +6 -0
- package/lib/edge/{index-CP41tPKH.js → index-RgTaKnZ2.js} +2079 -1919
- package/lib/edge/index-fWAfFgEy.cjs +386 -0
- package/lib/edge/index-helpers/blocks-exports.d.ts +1 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +25 -24
- package/lib/{node/live-edit-x06K74KY.cjs → edge/live-edit-JjbauDaL.cjs} +1 -1
- package/lib/edge/{live-edit-tT8gysr5.js → live-edit-f7U2Azcm.js} +1 -1
- package/lib/edge/{repeated-block-5aHuPiq3.cjs → repeated-block-N0cYhpaS.cjs} +1 -1
- package/lib/edge/{repeated-block-4rbJPAPK.js → repeated-block-bXYXfKP_.js} +2 -2
- package/lib/edge/{style-wrapper-6PnkoOq4.js → style-wrapper-XXgvForl.js} +1 -1
- package/lib/edge/{style-wrapper-sPnVD1R-.cjs → style-wrapper-x1xM4jrn.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-bcSiDzNQ.cjs → awaiter-6GuArcPZ.cjs} +1 -1
- package/lib/node/{awaiter-UWXH3tw0.js → awaiter-U9ghjah_.js} +1 -1
- package/lib/{edge/block-wrapper-jhPTdeIL.cjs → node/block-wrapper-BjCwxGrk.cjs} +1 -1
- package/lib/node/{block-wrapper-8T5wRKIN.js → block-wrapper-S-D5WDpF.js} +3 -3
- package/lib/node/blocks/symbol/symbol.helpers.d.ts +1 -0
- package/lib/node/blocks/symbol/symbol.vue.d.ts +1 -0
- package/lib/node/{component-ref-IPdlOOp0.cjs → component-ref-2T_SzZr_.cjs} +1 -1
- package/lib/node/{component-ref-T9N8WIw7.js → component-ref-JIXZgEPq.js} +5 -5
- package/lib/node/components/block/block.helpers.d.ts +1 -1
- package/lib/node/components/block/block.vue.d.ts +6 -11
- package/lib/node/components/builder-scripts.vue.d.ts +18 -0
- package/lib/node/components/content/components/styles.helpers.d.ts +1 -1
- package/lib/node/components/content/content.helpers.d.ts +5 -1
- package/lib/node/components/content/content.vue.d.ts +3 -5
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/components/content-variants/helpers.d.ts +6 -0
- package/lib/node/constants/builder-registered-components.d.ts +1 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/context/builder-scripts.context.d.ts +7 -0
- package/lib/node/functions/evaluate/safe-state-expression.d.ts +33 -0
- package/lib/node/functions/extract-localized-values.d.ts +4 -0
- package/lib/node/functions/get-processed-block.d.ts +0 -1
- package/lib/node/functions/is-editing-or-previewing.d.ts +1 -0
- package/lib/node/functions/set.d.ts +29 -1
- package/lib/node/{get-block-properties-WEdzaQYx.js → get-block-properties-6ZEBsSGZ.js} +20 -17
- package/lib/node/get-block-properties-VdcyrKHl.cjs +1 -0
- package/lib/node/helpers/bounded-cache.d.ts +4 -0
- package/lib/node/helpers/copy-plain-data.d.ts +6 -0
- package/lib/node/{index-xh_ab-8r.js → index-BFBRlmya.js} +1216 -1083
- package/lib/node/index-C8cK6fMj.cjs +368 -0
- package/lib/node/index-helpers/blocks-exports.d.ts +1 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +20 -19
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/node/{live-edit-AtFUb3WY.js → live-edit-Gaqi2aam.js} +1 -1
- package/lib/{edge/live-edit-IztuqB6L.cjs → node/live-edit-YCZ5pmAP.cjs} +1 -1
- package/lib/node/{repeated-block-YbKmZjn5.cjs → repeated-block-crOq_RyN.cjs} +1 -1
- package/lib/node/{repeated-block-EYdA5P-G.js → repeated-block-xa9PS91L.js} +2 -2
- package/lib/node/should-force-browser-runtime-in-node-dSSMAIhU.js +725 -0
- package/lib/node/should-force-browser-runtime-in-node-ljCjC7PN.cjs +56 -0
- package/lib/node/{style-wrapper-If0xZQdH.js → style-wrapper-8sWObtTj.js} +8 -8
- package/lib/node/{style-wrapper-1VLAyo7U.cjs → style-wrapper-ol70p_wf.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/get-block-properties-2sbfjttK.cjs +0 -1
- package/lib/browser/index-i151V2-T.cjs +0 -368
- package/lib/edge/get-block-properties-GGRkyJ2n.cjs +0 -1
- package/lib/edge/index-2DMPkBgw.cjs +0 -386
- package/lib/node/get-block-properties-Oqi1CKFa.cjs +0 -1
- package/lib/node/index-RMd-8REX.cjs +0 -368
- package/lib/node/should-force-browser-runtime-in-node-GnAFs4J8.js +0 -503
- package/lib/node/should-force-browser-runtime-in-node-Kyj0J4tl.cjs +0 -48
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as y, openBlock as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
2
|
+
import { defineComponent as y, openBlock as u, createElementBlock as h, Fragment as w, createBlock as S, resolveDynamicComponent as Z, mergeProps as R, toHandlers as x, withCtx as D, renderSlot as B, resolveComponent as C, createTextVNode as tn, toDisplayString as he, defineAsyncComponent as Y, createVNode as $, renderList as L, createCommentVNode as v, h as ht, createElementVNode as G, normalizeStyle as M, normalizeClass as te, markRaw as nn } from "vue";
|
|
3
|
+
const on = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), rn = (e) => typeof e == "string" && on.has(e.toLowerCase());
|
|
4
|
+
function N(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
7
7
|
if (!e[r] || n && !r.startsWith(t))
|
|
@@ -11,36 +11,36 @@ function O(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const sn = y({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: rn };
|
|
19
19
|
}
|
|
20
|
-
}),
|
|
20
|
+
}), k = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
22
22
|
for (const [o, r] of t)
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (
|
|
28
|
-
typeof e.TagName == "string" ? (
|
|
26
|
+
function an(e, t, n, o, r, i) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (u(), S(Z(e.TagName), R({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (u(), h(w, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (u(), S(Z(e.TagName), R({ key: 0 }, e.attributes, x(e.actionAttributes)), {
|
|
29
29
|
default: D(() => [
|
|
30
|
-
|
|
30
|
+
B(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (
|
|
33
|
+
}, 16)) : (u(), S(Z(e.TagName), R({ key: 1 }, e.attributes, x(e.actionAttributes)), {
|
|
34
34
|
default: D(() => [
|
|
35
|
-
|
|
35
|
+
B(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const Ve = /* @__PURE__ */ k(sn, [["render", an]]), sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
43
|
+
default: Ve
|
|
44
44
|
}, Symbol.toStringTag, { value: "Module" })), E = "vue", H = () => {
|
|
45
45
|
switch (E) {
|
|
46
46
|
case "react":
|
|
@@ -54,9 +54,9 @@ const Re = /* @__PURE__ */ v(Ht, [["render", jt]]), Bs = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, ln = y({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: Ve },
|
|
60
60
|
props: [
|
|
61
61
|
"attributes",
|
|
62
62
|
"link",
|
|
@@ -65,12 +65,12 @@ const Re = /* @__PURE__ */ v(Ht, [["render", jt]]), Bs = /* @__PURE__ */ Object.
|
|
|
65
65
|
"text"
|
|
66
66
|
],
|
|
67
67
|
data() {
|
|
68
|
-
return { filterAttrs:
|
|
68
|
+
return { filterAttrs: N };
|
|
69
69
|
},
|
|
70
70
|
methods: {
|
|
71
71
|
attrs() {
|
|
72
72
|
return {
|
|
73
|
-
...
|
|
73
|
+
...N(this.attributes, "v-on:", !1),
|
|
74
74
|
[H()]: `${this.link ? "" : "builder-button"} ${this.attributes[H()] || ""}`,
|
|
75
75
|
...this.link ? {
|
|
76
76
|
href: this.link,
|
|
@@ -83,20 +83,20 @@ const Re = /* @__PURE__ */ v(Ht, [["render", jt]]), Bs = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
87
|
-
const s =
|
|
88
|
-
return
|
|
86
|
+
function cn(e, t, n, o, r, i) {
|
|
87
|
+
const s = C("DynamicRenderer");
|
|
88
|
+
return u(), 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
93
|
default: D(() => [
|
|
94
|
-
|
|
94
|
+
tn(he(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const dn = /* @__PURE__ */ k(ln, [["render", cn]]), un = Symbol(), Te = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -113,43 +113,51 @@ const qt = /* @__PURE__ */ v(zt, [["render", Kt]]), Gt = Symbol(), ve = {
|
|
|
113
113
|
nonce: "",
|
|
114
114
|
model: ""
|
|
115
115
|
},
|
|
116
|
-
key:
|
|
117
|
-
},
|
|
116
|
+
key: un
|
|
117
|
+
}, pn = Symbol(), ft = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
|
-
key:
|
|
120
|
-
},
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
119
|
+
key: pn
|
|
120
|
+
}, bt = (e) => {
|
|
121
|
+
const t = /* @__PURE__ */ new Map();
|
|
122
|
+
return {
|
|
123
|
+
get: (n) => t.get(n),
|
|
124
|
+
set: (n, o) => {
|
|
125
|
+
!t.has(n) && t.size >= e && t.delete(t.keys().next().value), t.set(n, o);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
}, re = "[Builder.io]: ", V = {
|
|
129
|
+
log: (...e) => console.log(re, ...e),
|
|
130
|
+
error: (...e) => console.error(re, ...e),
|
|
131
|
+
warn: (...e) => console.warn(re, ...e),
|
|
132
|
+
debug: (...e) => console.debug(re, ...e)
|
|
133
|
+
}, gt = (e, t, n) => {
|
|
126
134
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
|
|
127
135
|
return o === void 0 || o === e ? n : o;
|
|
128
136
|
};
|
|
129
|
-
function
|
|
137
|
+
function I() {
|
|
130
138
|
return typeof window < "u" && typeof document < "u";
|
|
131
139
|
}
|
|
132
|
-
const
|
|
140
|
+
const mn = (e) => {
|
|
133
141
|
const t = {};
|
|
134
142
|
return e.forEach((n, o) => {
|
|
135
143
|
t[o] = n;
|
|
136
144
|
}), t;
|
|
137
|
-
},
|
|
138
|
-
function
|
|
139
|
-
return
|
|
145
|
+
}, yt = (e) => e instanceof URLSearchParams ? mn(e) : e, St = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
146
|
+
function hn() {
|
|
147
|
+
return I() && window.self !== window.top;
|
|
140
148
|
}
|
|
141
|
-
function
|
|
142
|
-
return
|
|
143
|
-
|
|
149
|
+
function P(e) {
|
|
150
|
+
return hn() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
151
|
+
St(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
144
152
|
}
|
|
145
|
-
const
|
|
146
|
-
if (
|
|
153
|
+
const fn = () => {
|
|
154
|
+
if (I()) {
|
|
147
155
|
const e = new URL(location.href);
|
|
148
156
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
149
157
|
} else
|
|
150
158
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
151
|
-
},
|
|
152
|
-
const e =
|
|
159
|
+
}, bn = () => typeof navigator == "object" && navigator.userAgent || "", vt = () => {
|
|
160
|
+
const e = bn(), t = {
|
|
153
161
|
Android() {
|
|
154
162
|
return e.match(/Android/i);
|
|
155
163
|
},
|
|
@@ -168,22 +176,22 @@ const Yt = () => {
|
|
|
168
176
|
any() {
|
|
169
177
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || E === "reactNative";
|
|
170
178
|
}
|
|
171
|
-
}, n = e.match(/Tablet|iPad/i), o =
|
|
179
|
+
}, n = e.match(/Tablet|iPad/i), o = fn();
|
|
172
180
|
return {
|
|
173
181
|
urlPath: o == null ? void 0 : o.pathname,
|
|
174
182
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
175
183
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
176
184
|
};
|
|
177
|
-
},
|
|
185
|
+
}, kt = "5.4.0", Ct = () => ({
|
|
178
186
|
"X-Builder-SDK": E,
|
|
179
187
|
"X-Builder-SDK-GEN": "2",
|
|
180
|
-
"X-Builder-SDK-Version":
|
|
181
|
-
}), j = (e) => e != null,
|
|
188
|
+
"X-Builder-SDK-Version": kt
|
|
189
|
+
}), j = (e) => e != null, gn = (e) => {
|
|
182
190
|
if (e === "localhost" || e === "127.0.0.1")
|
|
183
191
|
return e;
|
|
184
192
|
const t = e.split(".");
|
|
185
193
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
186
|
-
},
|
|
194
|
+
}, fe = ({
|
|
187
195
|
name: e,
|
|
188
196
|
canTrack: t
|
|
189
197
|
}) => {
|
|
@@ -191,17 +199,17 @@ const Yt = () => {
|
|
|
191
199
|
try {
|
|
192
200
|
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
193
201
|
} catch (o) {
|
|
194
|
-
|
|
202
|
+
V.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
195
203
|
return;
|
|
196
204
|
}
|
|
197
|
-
},
|
|
205
|
+
}, Tt = async (e) => fe(e), yn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(j).join("; "), Sn = [["secure", ""], ["SameSite", "None"]], vn = ({
|
|
198
206
|
name: e,
|
|
199
207
|
value: t,
|
|
200
208
|
expires: n
|
|
201
209
|
}) => {
|
|
202
|
-
const r = (
|
|
203
|
-
return
|
|
204
|
-
},
|
|
210
|
+
const r = (I() ? location.protocol === "https:" : !0) ? Sn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", gn(window.location.hostname)], ...r];
|
|
211
|
+
return yn(s);
|
|
212
|
+
}, Oe = async ({
|
|
205
213
|
name: e,
|
|
206
214
|
value: t,
|
|
207
215
|
expires: n,
|
|
@@ -210,103 +218,103 @@ const Yt = () => {
|
|
|
210
218
|
try {
|
|
211
219
|
if (!o)
|
|
212
220
|
return;
|
|
213
|
-
const r =
|
|
221
|
+
const r = vn({
|
|
214
222
|
name: e,
|
|
215
223
|
value: t,
|
|
216
224
|
expires: n
|
|
217
225
|
});
|
|
218
226
|
document.cookie = r;
|
|
219
227
|
} catch (r) {
|
|
220
|
-
|
|
228
|
+
V.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
221
229
|
}
|
|
222
230
|
};
|
|
223
|
-
function
|
|
231
|
+
function kn() {
|
|
224
232
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
225
233
|
const t = Math.random() * 16 | 0;
|
|
226
234
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
227
235
|
});
|
|
228
236
|
}
|
|
229
|
-
function
|
|
230
|
-
return
|
|
237
|
+
function It() {
|
|
238
|
+
return kn().replace(/-/g, "");
|
|
231
239
|
}
|
|
232
|
-
const
|
|
240
|
+
const wt = "builderSessionId", Cn = async ({
|
|
233
241
|
canTrack: e
|
|
234
242
|
}) => {
|
|
235
243
|
if (!e)
|
|
236
244
|
return;
|
|
237
|
-
const t = await
|
|
238
|
-
name:
|
|
245
|
+
const t = await Tt({
|
|
246
|
+
name: wt,
|
|
239
247
|
canTrack: e
|
|
240
248
|
});
|
|
241
249
|
if (j(t))
|
|
242
250
|
return t;
|
|
243
251
|
{
|
|
244
|
-
const n =
|
|
245
|
-
return
|
|
252
|
+
const n = Tn();
|
|
253
|
+
return In({
|
|
246
254
|
id: n,
|
|
247
255
|
canTrack: e
|
|
248
256
|
}), n;
|
|
249
257
|
}
|
|
250
|
-
},
|
|
258
|
+
}, Tn = () => It(), In = ({
|
|
251
259
|
id: e,
|
|
252
260
|
canTrack: t
|
|
253
|
-
}) =>
|
|
254
|
-
name:
|
|
261
|
+
}) => Oe({
|
|
262
|
+
name: wt,
|
|
255
263
|
value: e,
|
|
256
264
|
canTrack: t
|
|
257
|
-
}),
|
|
265
|
+
}), Et = () => I() && typeof localStorage < "u" ? localStorage : void 0, wn = ({
|
|
258
266
|
key: e,
|
|
259
267
|
canTrack: t
|
|
260
268
|
}) => {
|
|
261
269
|
var n;
|
|
262
270
|
try {
|
|
263
|
-
return t ? (n =
|
|
271
|
+
return t ? (n = Et()) == null ? void 0 : n.getItem(e) : void 0;
|
|
264
272
|
} catch (o) {
|
|
265
273
|
console.debug("[LocalStorage] GET error: ", o);
|
|
266
274
|
return;
|
|
267
275
|
}
|
|
268
|
-
},
|
|
276
|
+
}, En = ({
|
|
269
277
|
key: e,
|
|
270
278
|
canTrack: t,
|
|
271
279
|
value: n
|
|
272
280
|
}) => {
|
|
273
281
|
var o;
|
|
274
282
|
try {
|
|
275
|
-
t && ((o =
|
|
283
|
+
t && ((o = Et()) == null || o.setItem(e, n));
|
|
276
284
|
} catch (r) {
|
|
277
285
|
console.debug("[LocalStorage] SET error: ", r);
|
|
278
286
|
}
|
|
279
|
-
},
|
|
287
|
+
}, Rt = "builderVisitorId", Rn = ({
|
|
280
288
|
canTrack: e
|
|
281
289
|
}) => {
|
|
282
290
|
if (!e)
|
|
283
291
|
return;
|
|
284
|
-
const t =
|
|
285
|
-
key:
|
|
292
|
+
const t = wn({
|
|
293
|
+
key: Rt,
|
|
286
294
|
canTrack: e
|
|
287
295
|
});
|
|
288
296
|
if (j(t))
|
|
289
297
|
return t;
|
|
290
298
|
{
|
|
291
|
-
const n =
|
|
292
|
-
return
|
|
299
|
+
const n = $n();
|
|
300
|
+
return Pn({
|
|
293
301
|
id: n,
|
|
294
302
|
canTrack: e
|
|
295
303
|
}), n;
|
|
296
304
|
}
|
|
297
|
-
},
|
|
305
|
+
}, $n = () => It(), Pn = ({
|
|
298
306
|
id: e,
|
|
299
307
|
canTrack: t
|
|
300
|
-
}) =>
|
|
301
|
-
key:
|
|
308
|
+
}) => En({
|
|
309
|
+
key: Rt,
|
|
302
310
|
value: e,
|
|
303
311
|
canTrack: t
|
|
304
312
|
});
|
|
305
|
-
function
|
|
313
|
+
function Ne(e) {
|
|
306
314
|
var t;
|
|
307
|
-
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" &&
|
|
315
|
+
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && V.log(e);
|
|
308
316
|
}
|
|
309
|
-
const
|
|
317
|
+
const An = async ({
|
|
310
318
|
canTrack: e
|
|
311
319
|
}) => {
|
|
312
320
|
if (!e)
|
|
@@ -314,16 +322,16 @@ const mn = async ({
|
|
|
314
322
|
visitorId: void 0,
|
|
315
323
|
sessionId: void 0
|
|
316
324
|
};
|
|
317
|
-
const t = await
|
|
325
|
+
const t = await Cn({
|
|
318
326
|
canTrack: e
|
|
319
|
-
}), n =
|
|
327
|
+
}), n = Rn({
|
|
320
328
|
canTrack: e
|
|
321
329
|
});
|
|
322
330
|
return {
|
|
323
331
|
sessionId: t,
|
|
324
332
|
visitorId: n
|
|
325
333
|
};
|
|
326
|
-
},
|
|
334
|
+
}, Bn = async ({
|
|
327
335
|
type: e,
|
|
328
336
|
canTrack: t,
|
|
329
337
|
apiKey: n,
|
|
@@ -337,42 +345,42 @@ const mn = async ({
|
|
|
337
345
|
url: location.href,
|
|
338
346
|
...o
|
|
339
347
|
},
|
|
340
|
-
...await
|
|
348
|
+
...await An({
|
|
341
349
|
canTrack: t
|
|
342
350
|
}),
|
|
343
|
-
userAttributes:
|
|
351
|
+
userAttributes: vt(),
|
|
344
352
|
ownerId: n
|
|
345
353
|
}
|
|
346
354
|
});
|
|
347
|
-
async function
|
|
355
|
+
async function ue({
|
|
348
356
|
apiHost: e,
|
|
349
357
|
...t
|
|
350
358
|
}) {
|
|
351
359
|
if (!t.apiKey) {
|
|
352
|
-
|
|
360
|
+
V.error("Missing API key for track call. Please provide your API key.");
|
|
353
361
|
return;
|
|
354
362
|
}
|
|
355
|
-
if (!t.canTrack ||
|
|
363
|
+
if (!t.canTrack || P() || !(I() || E === "reactNative"))
|
|
356
364
|
return;
|
|
357
365
|
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
358
|
-
return
|
|
366
|
+
return Ne(o), fetch(o, {
|
|
359
367
|
method: "POST",
|
|
360
368
|
body: JSON.stringify({
|
|
361
|
-
events: [await
|
|
369
|
+
events: [await Bn(t)]
|
|
362
370
|
}),
|
|
363
371
|
headers: {
|
|
364
372
|
"content-type": "application/json",
|
|
365
|
-
...
|
|
373
|
+
...Ct()
|
|
366
374
|
},
|
|
367
375
|
mode: "cors"
|
|
368
376
|
}).catch((r) => {
|
|
369
377
|
console.error("Failed to track: ", r);
|
|
370
378
|
});
|
|
371
379
|
}
|
|
372
|
-
const
|
|
380
|
+
const aa = (e) => ue({
|
|
373
381
|
...e,
|
|
374
382
|
canTrack: !0
|
|
375
|
-
}),
|
|
383
|
+
}), Vn = ({
|
|
376
384
|
builder: e,
|
|
377
385
|
context: t,
|
|
378
386
|
event: n,
|
|
@@ -384,13 +392,13 @@ const Vs = (e) => le({
|
|
|
384
392
|
builder: e,
|
|
385
393
|
context: t,
|
|
386
394
|
event: n
|
|
387
|
-
}),
|
|
388
|
-
isEditing:
|
|
389
|
-
isBrowser:
|
|
390
|
-
isServer: !
|
|
391
|
-
getUserAttributes: () =>
|
|
395
|
+
}), On = (e) => ({
|
|
396
|
+
isEditing: P(),
|
|
397
|
+
isBrowser: I(),
|
|
398
|
+
isServer: !I(),
|
|
399
|
+
getUserAttributes: () => vt(),
|
|
392
400
|
trackConversion: (t, n) => {
|
|
393
|
-
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 ||
|
|
401
|
+
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || ue({
|
|
394
402
|
type: "conversion",
|
|
395
403
|
apiKey: e.apiKey,
|
|
396
404
|
canTrack: e.canTrack ?? !0,
|
|
@@ -404,10 +412,10 @@ const Vs = (e) => le({
|
|
|
404
412
|
}
|
|
405
413
|
});
|
|
406
414
|
}
|
|
407
|
-
}),
|
|
415
|
+
}), Nn = (e, {
|
|
408
416
|
isExpression: t = !0
|
|
409
417
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
410
|
-
function
|
|
418
|
+
function $t({
|
|
411
419
|
rootState: e,
|
|
412
420
|
localState: t,
|
|
413
421
|
rootSetState: n
|
|
@@ -417,7 +425,7 @@ function bt({
|
|
|
417
425
|
if (t && r in t)
|
|
418
426
|
return t[r];
|
|
419
427
|
const i = o[r];
|
|
420
|
-
return typeof i == "object" && i !== null ?
|
|
428
|
+
return typeof i == "object" && i !== null ? $t({
|
|
421
429
|
rootState: i,
|
|
422
430
|
localState: void 0,
|
|
423
431
|
rootSetState: n ? (s) => {
|
|
@@ -432,7 +440,10 @@ function bt({
|
|
|
432
440
|
}
|
|
433
441
|
});
|
|
434
442
|
}
|
|
435
|
-
const
|
|
443
|
+
const Wn = 5e3, Ke = bt(Wn), Dn = (e, t) => {
|
|
444
|
+
let n = Ke.get(t);
|
|
445
|
+
return n || (n = new Function(...e, t), Ke.set(t, n)), n;
|
|
446
|
+
}, ze = ({
|
|
436
447
|
code: e,
|
|
437
448
|
builder: t,
|
|
438
449
|
context: n,
|
|
@@ -441,37 +452,44 @@ const Me = ({
|
|
|
441
452
|
rootSetState: i,
|
|
442
453
|
rootState: s
|
|
443
454
|
}) => {
|
|
444
|
-
const l =
|
|
455
|
+
const l = Vn({
|
|
445
456
|
builder: t,
|
|
446
457
|
context: n,
|
|
447
458
|
event: o,
|
|
448
|
-
state:
|
|
459
|
+
state: $t({
|
|
449
460
|
rootState: s,
|
|
450
461
|
localState: r,
|
|
451
462
|
rootSetState: i
|
|
452
463
|
})
|
|
453
464
|
});
|
|
454
|
-
return
|
|
465
|
+
return Dn(l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
455
466
|
};
|
|
456
|
-
function
|
|
467
|
+
function Un() {
|
|
457
468
|
var e;
|
|
458
469
|
return typeof process < "u" && j((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
459
470
|
}
|
|
460
|
-
|
|
471
|
+
let qe = !1;
|
|
472
|
+
const xn = ({
|
|
461
473
|
shouldLogWarning: e
|
|
462
474
|
}) => {
|
|
463
475
|
var r;
|
|
464
|
-
if (!
|
|
476
|
+
if (!Un())
|
|
465
477
|
return !1;
|
|
466
478
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
467
|
-
return t && n && !o ? (e &&
|
|
468
|
-
},
|
|
479
|
+
return t && n && !o ? (e && !qe && (qe = !0, V.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;
|
|
480
|
+
}, Ln = (e) => (I() || xn({
|
|
469
481
|
shouldLogWarning: !0
|
|
470
|
-
}),
|
|
482
|
+
}), ze(e)), Fn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Mn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Hn = (e) => {
|
|
471
483
|
var t, n, o, r, i, s;
|
|
472
|
-
return ((o = (n = (t =
|
|
484
|
+
return ((o = (n = (t = Fn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Mn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
485
|
+
}, jn = 5e3, Ge = bt(jn), Kn = (e) => {
|
|
486
|
+
let t = Ge.get(e);
|
|
487
|
+
return t === void 0 && (t = Hn(e) || null, Ge.set(e, t)), t;
|
|
488
|
+
}, zn = (e, t, n) => {
|
|
489
|
+
const o = n.split(".")[0], r = t && Object.prototype.hasOwnProperty.call(t, o) ? t : e;
|
|
490
|
+
return gt(r, n);
|
|
473
491
|
};
|
|
474
|
-
function
|
|
492
|
+
function ne({
|
|
475
493
|
code: e,
|
|
476
494
|
context: t,
|
|
477
495
|
localState: n,
|
|
@@ -483,17 +501,14 @@ function te({
|
|
|
483
501
|
}) {
|
|
484
502
|
if (e.trim() === "")
|
|
485
503
|
return;
|
|
486
|
-
const a =
|
|
504
|
+
const a = Kn(e.trim());
|
|
487
505
|
if (a)
|
|
488
|
-
return
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
}, a);
|
|
492
|
-
const u = {
|
|
493
|
-
code: gn(e, {
|
|
506
|
+
return zn(o, n, a);
|
|
507
|
+
const d = {
|
|
508
|
+
code: Nn(e, {
|
|
494
509
|
isExpression: s
|
|
495
510
|
}),
|
|
496
|
-
builder:
|
|
511
|
+
builder: On(l),
|
|
497
512
|
context: t,
|
|
498
513
|
event: i,
|
|
499
514
|
rootSetState: r,
|
|
@@ -501,28 +516,28 @@ function te({
|
|
|
501
516
|
localState: n
|
|
502
517
|
};
|
|
503
518
|
try {
|
|
504
|
-
return
|
|
519
|
+
return Ln(d);
|
|
505
520
|
} catch (p) {
|
|
506
|
-
|
|
521
|
+
V.error("Failed code evaluation: " + p.message, {
|
|
507
522
|
code: e
|
|
508
523
|
});
|
|
509
524
|
return;
|
|
510
525
|
}
|
|
511
526
|
}
|
|
512
|
-
function
|
|
527
|
+
function qn(e, t) {
|
|
513
528
|
var n;
|
|
514
529
|
return {
|
|
515
530
|
...(n = e.component) == null ? void 0 : n.options,
|
|
516
531
|
...e.options,
|
|
517
|
-
...
|
|
532
|
+
...Gn(e, t)
|
|
518
533
|
};
|
|
519
534
|
}
|
|
520
|
-
const
|
|
535
|
+
const Gn = (e, t) => {
|
|
521
536
|
var n, o;
|
|
522
537
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
|
|
523
538
|
return {
|
|
524
539
|
...e.component.options,
|
|
525
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) =>
|
|
540
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => ne({
|
|
526
541
|
code: i,
|
|
527
542
|
context: t,
|
|
528
543
|
localState: t.localState,
|
|
@@ -531,97 +546,85 @@ const In = (e, t) => {
|
|
|
531
546
|
}))
|
|
532
547
|
};
|
|
533
548
|
};
|
|
534
|
-
function
|
|
535
|
-
const n = Object.assign({}, e);
|
|
536
|
-
for (const o of t)
|
|
537
|
-
delete n[o];
|
|
538
|
-
return n;
|
|
539
|
-
}
|
|
540
|
-
function ce(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
541
|
-
if (e == null || typeof e != "object") {
|
|
542
|
-
t(e, (i) => {
|
|
543
|
-
n !== null && o !== null && (n[o] = i);
|
|
544
|
-
});
|
|
545
|
-
return;
|
|
546
|
-
}
|
|
547
|
-
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
|
|
548
|
-
t(i, (a) => {
|
|
549
|
-
e[s] = a;
|
|
550
|
-
}), ce(i, t, e, s, r);
|
|
551
|
-
}) : Object.entries(e).forEach(([i, s]) => {
|
|
552
|
-
t(s, (a) => {
|
|
553
|
-
e[i] = a;
|
|
554
|
-
}), ce(s, t, e, i, r);
|
|
555
|
-
}));
|
|
556
|
-
}
|
|
557
|
-
function gt(e) {
|
|
549
|
+
function Pt(e) {
|
|
558
550
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
559
551
|
}
|
|
560
|
-
|
|
561
|
-
if (
|
|
562
|
-
return !
|
|
563
|
-
|
|
564
|
-
return
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
552
|
+
const _n = (e) => {
|
|
553
|
+
if (Array.isArray(e))
|
|
554
|
+
return !0;
|
|
555
|
+
const t = Object.getPrototypeOf(e);
|
|
556
|
+
return t === Object.prototype || t === null;
|
|
557
|
+
};
|
|
558
|
+
function ae(e, t, n) {
|
|
559
|
+
if (e === null || typeof e != "object")
|
|
560
|
+
return e;
|
|
561
|
+
if (Pt(e))
|
|
562
|
+
return ae(e[t] ?? void 0, t, n);
|
|
563
|
+
if (!_n(e))
|
|
564
|
+
return e;
|
|
565
|
+
if (n.has(e))
|
|
566
|
+
return n.get(e);
|
|
567
|
+
n.set(e, e);
|
|
568
|
+
let o = null;
|
|
569
|
+
if (Array.isArray(e))
|
|
570
|
+
for (let i = 0; i < e.length; i++) {
|
|
571
|
+
const s = ae(e[i], t, n);
|
|
572
|
+
s !== e[i] && (o || (o = e.slice()), o[i] = s);
|
|
568
573
|
}
|
|
569
|
-
|
|
574
|
+
else
|
|
575
|
+
for (const i of Object.keys(e)) {
|
|
576
|
+
const s = ae(e[i], t, n);
|
|
577
|
+
s !== e[i] && (o || (o = {
|
|
578
|
+
...e
|
|
579
|
+
}), o[i] = s);
|
|
580
|
+
}
|
|
581
|
+
const r = o ?? e;
|
|
582
|
+
return n.set(e, r), r;
|
|
570
583
|
}
|
|
571
|
-
function
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
584
|
+
function Jn(e, t) {
|
|
585
|
+
var r;
|
|
586
|
+
const n = (r = e.component) == null ? void 0 : r.options;
|
|
587
|
+
if (!n || typeof n != "object" || Pt(n))
|
|
588
|
+
return e;
|
|
589
|
+
const o = ae(n, t ?? "Default", /* @__PURE__ */ new WeakMap());
|
|
590
|
+
return o === n ? e : (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"), {
|
|
591
|
+
...e,
|
|
592
|
+
component: {
|
|
593
|
+
...e.component,
|
|
594
|
+
options: o
|
|
595
|
+
}
|
|
596
|
+
});
|
|
575
597
|
}
|
|
576
|
-
function
|
|
577
|
-
|
|
578
|
-
return
|
|
598
|
+
function be(e) {
|
|
599
|
+
const t = e || (I() ? window.location.search : void 0);
|
|
600
|
+
return t ? St(t).indexOf("builder.preview=") !== -1 : !1;
|
|
579
601
|
}
|
|
580
|
-
const
|
|
602
|
+
const At = () => P() || be(), Bt = (e) => e.toString().match(/[^.[\]]+/g), Vt = (e) => Math.abs(Number(e)) >> 0 === +e, Ot = (e) => e.some((t, n) => t === "__proto__" || n < e.length - 1 && (t === "constructor" || t === "prototype")), Nt = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, Qn = (e, t, n) => {
|
|
581
603
|
if (Object(e) !== e)
|
|
582
604
|
return e;
|
|
583
|
-
const o = Array.isArray(t) ? t : t
|
|
584
|
-
return !o ||
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
605
|
+
const o = Array.isArray(t) ? t : Bt(t);
|
|
606
|
+
return !o || Ot(o) || (o.slice(0, -1).reduce((r, i, s) => {
|
|
607
|
+
const l = Nt(r, i);
|
|
608
|
+
return Object(l) === l ? l : r[i] = Vt(o[s + 1]) ? [] : {};
|
|
609
|
+
}, e)[o[o.length - 1]] = n), e;
|
|
610
|
+
}, Yn = (e, t, n, o) => {
|
|
611
|
+
if (Object(e) !== e)
|
|
588
612
|
return e;
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
if (e["@type"] === "@builder.io/sdk:Element")
|
|
613
|
+
const r = Bt(t);
|
|
614
|
+
if (!r || Ot(r))
|
|
592
615
|
return e;
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
return {
|
|
602
|
-
...t,
|
|
603
|
-
properties: {
|
|
604
|
-
...t.properties
|
|
605
|
-
},
|
|
606
|
-
actions: {
|
|
607
|
-
...t.actions
|
|
608
|
-
}
|
|
609
|
-
};
|
|
610
|
-
} else {
|
|
611
|
-
const t = Se($n(e, "children", "meta"));
|
|
612
|
-
return {
|
|
613
|
-
...t,
|
|
614
|
-
properties: {
|
|
615
|
-
...t.properties
|
|
616
|
-
},
|
|
617
|
-
actions: {
|
|
618
|
-
...t.actions
|
|
619
|
-
},
|
|
620
|
-
children: e.children,
|
|
621
|
-
meta: e.meta
|
|
622
|
-
};
|
|
616
|
+
o.add(e);
|
|
617
|
+
let i = e;
|
|
618
|
+
for (let s = 0; s < r.length - 1; s++) {
|
|
619
|
+
const l = r[s];
|
|
620
|
+
let a = Nt(i, l);
|
|
621
|
+
Object(a) !== a ? (a = Vt(r[s + 1]) ? [] : {}, o.add(a), i[l] = a) : typeof a == "object" && !o.has(a) && (a = Array.isArray(a) ? a.slice() : {
|
|
622
|
+
...a
|
|
623
|
+
}, o.add(a), i[l] = a), i = a;
|
|
623
624
|
}
|
|
624
|
-
|
|
625
|
+
return i[r[r.length - 1]] = n, e;
|
|
626
|
+
};
|
|
627
|
+
const Xn = ({
|
|
625
628
|
block: e,
|
|
626
629
|
context: t,
|
|
627
630
|
localState: n,
|
|
@@ -630,54 +633,74 @@ const Pn = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Bn = (e) =
|
|
|
630
633
|
}) => {
|
|
631
634
|
if (!e.bindings)
|
|
632
635
|
return e;
|
|
633
|
-
const i =
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
636
|
+
const i = /* @__PURE__ */ new WeakSet(), s = {
|
|
637
|
+
...e,
|
|
638
|
+
properties: {
|
|
639
|
+
...e.properties
|
|
640
|
+
},
|
|
641
|
+
actions: {
|
|
642
|
+
...e.actions
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
i.add(s.properties), i.add(s.actions);
|
|
646
|
+
for (const l in e.bindings) {
|
|
647
|
+
const a = e.bindings[l], d = ne({
|
|
648
|
+
code: a,
|
|
637
649
|
localState: n,
|
|
638
650
|
rootState: o,
|
|
639
651
|
rootSetState: r,
|
|
640
652
|
context: t
|
|
641
653
|
});
|
|
642
|
-
|
|
654
|
+
Yn(s, l, d, i);
|
|
643
655
|
}
|
|
644
|
-
return
|
|
656
|
+
return s;
|
|
657
|
+
}, _e = /* @__PURE__ */ new WeakMap(), Zn = (e) => {
|
|
658
|
+
if (!e.bindings)
|
|
659
|
+
return !1;
|
|
660
|
+
for (const t in e.bindings)
|
|
661
|
+
return !0;
|
|
662
|
+
return !1;
|
|
645
663
|
};
|
|
646
|
-
function
|
|
664
|
+
function eo({
|
|
647
665
|
block: e,
|
|
648
666
|
context: t,
|
|
649
667
|
localState: n,
|
|
650
668
|
rootState: o,
|
|
651
669
|
rootSetState: r
|
|
652
670
|
}) {
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
671
|
+
const i = o.locale, s = !Zn(e) && typeof e == "object" && e !== null && !At(), l = i ?? "";
|
|
672
|
+
if (s) {
|
|
673
|
+
const d = _e.get(e);
|
|
674
|
+
if (d && d.locale === l)
|
|
675
|
+
return d.block;
|
|
676
|
+
}
|
|
677
|
+
let a = e;
|
|
678
|
+
return a = Xn({
|
|
679
|
+
block: a,
|
|
656
680
|
localState: n,
|
|
657
681
|
rootState: o,
|
|
658
682
|
rootSetState: r,
|
|
659
683
|
context: t
|
|
660
|
-
}),
|
|
684
|
+
}), a = Jn(a, i), s && _e.set(e, {
|
|
685
|
+
locale: l,
|
|
686
|
+
block: a
|
|
687
|
+
}), a;
|
|
661
688
|
}
|
|
662
|
-
|
|
663
|
-
const t = e || (w() ? window.location.search : void 0);
|
|
664
|
-
return t ? at(t).indexOf("builder.preview=") !== -1 : !1;
|
|
665
|
-
}
|
|
666
|
-
const On = (e) => ({
|
|
689
|
+
const to = (e) => ({
|
|
667
690
|
type: "builder.registerComponent",
|
|
668
|
-
data:
|
|
669
|
-
}),
|
|
691
|
+
data: We(e)
|
|
692
|
+
}), no = (e) => {
|
|
670
693
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
671
694
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
672
695
|
};
|
|
673
|
-
function
|
|
674
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
696
|
+
function We(e) {
|
|
697
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? no(n) : n));
|
|
675
698
|
}
|
|
676
|
-
const
|
|
677
|
-
function
|
|
678
|
-
e === "plugin" && (t =
|
|
679
|
-
let n =
|
|
680
|
-
if (n || (n =
|
|
699
|
+
const Je = {};
|
|
700
|
+
function la(e, t) {
|
|
701
|
+
e === "plugin" && (t = We(t));
|
|
702
|
+
let n = Je[e];
|
|
703
|
+
if (n || (n = Je[e] = []), n.push(t), I()) {
|
|
681
704
|
const o = {
|
|
682
705
|
type: "builder.register",
|
|
683
706
|
data: {
|
|
@@ -692,9 +715,9 @@ function Ns(e, t) {
|
|
|
692
715
|
}
|
|
693
716
|
}
|
|
694
717
|
}
|
|
695
|
-
function
|
|
718
|
+
function ca(e) {
|
|
696
719
|
var t;
|
|
697
|
-
if (
|
|
720
|
+
if (I()) {
|
|
698
721
|
const n = JSON.parse(JSON.stringify(e));
|
|
699
722
|
e.action && (n.action = e.action.toString()), (t = window.parent) == null || t.postMessage({
|
|
700
723
|
type: "builder.registerAction",
|
|
@@ -702,50 +725,50 @@ function Os(e) {
|
|
|
702
725
|
}, "*");
|
|
703
726
|
}
|
|
704
727
|
}
|
|
705
|
-
const
|
|
706
|
-
function
|
|
707
|
-
if (
|
|
708
|
-
Object.assign(
|
|
728
|
+
const Qe = {};
|
|
729
|
+
function da(e) {
|
|
730
|
+
if (I()) {
|
|
731
|
+
Object.assign(Qe, e);
|
|
709
732
|
const t = {
|
|
710
733
|
type: "builder.settingsChange",
|
|
711
|
-
data:
|
|
734
|
+
data: Qe
|
|
712
735
|
};
|
|
713
736
|
parent.postMessage(t, "*");
|
|
714
737
|
}
|
|
715
738
|
}
|
|
716
|
-
const
|
|
739
|
+
const Ye = "builder.", oo = "options.", Wt = (e) => {
|
|
717
740
|
if (!e)
|
|
718
741
|
return {};
|
|
719
|
-
const t =
|
|
742
|
+
const t = yt(e), n = {};
|
|
720
743
|
return Object.keys(t).forEach((o) => {
|
|
721
|
-
if (o.startsWith(
|
|
722
|
-
const r = o.replace(
|
|
744
|
+
if (o.startsWith(Ye)) {
|
|
745
|
+
const r = o.replace(Ye, "").replace(oo, "");
|
|
723
746
|
n[r] = t[o];
|
|
724
747
|
}
|
|
725
748
|
}), n;
|
|
726
|
-
},
|
|
727
|
-
if (!
|
|
749
|
+
}, ro = () => {
|
|
750
|
+
if (!I())
|
|
728
751
|
return {};
|
|
729
752
|
const e = new URLSearchParams(window.location.search);
|
|
730
|
-
return
|
|
731
|
-
},
|
|
732
|
-
function
|
|
753
|
+
return Wt(e);
|
|
754
|
+
}, io = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
755
|
+
function Dt(e, t) {
|
|
733
756
|
let n;
|
|
734
757
|
try {
|
|
735
758
|
n = new URL(t.origin);
|
|
736
759
|
} catch {
|
|
737
760
|
return !1;
|
|
738
761
|
}
|
|
739
|
-
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e ||
|
|
762
|
+
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || io).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
|
|
740
763
|
}
|
|
741
|
-
let
|
|
742
|
-
const
|
|
764
|
+
let Xe = !1;
|
|
765
|
+
const Ut = (e) => {
|
|
743
766
|
var t, n;
|
|
744
|
-
|
|
767
|
+
Xe || (Xe = !0, I() && ((t = window.parent) == null || t.postMessage({
|
|
745
768
|
type: "builder.sdkInfo",
|
|
746
769
|
data: {
|
|
747
770
|
target: E,
|
|
748
|
-
version:
|
|
771
|
+
version: kt,
|
|
749
772
|
supportsPatchUpdates: !1,
|
|
750
773
|
// Supports builder-model="..." attribute which is needed to
|
|
751
774
|
// scope our '+ add block' button styling
|
|
@@ -763,7 +786,7 @@ const kt = (e) => {
|
|
|
763
786
|
}
|
|
764
787
|
}, "*"), window.addEventListener("message", (o) => {
|
|
765
788
|
var i, s;
|
|
766
|
-
if (!
|
|
789
|
+
if (!Dt(e.trustedHosts, o))
|
|
767
790
|
return;
|
|
768
791
|
const {
|
|
769
792
|
data: r
|
|
@@ -771,7 +794,7 @@ const kt = (e) => {
|
|
|
771
794
|
if (r != null && r.type)
|
|
772
795
|
switch (r.type) {
|
|
773
796
|
case "builder.evaluate": {
|
|
774
|
-
const l = r.data.text, a = r.data.arguments || [],
|
|
797
|
+
const l = r.data.text, a = r.data.arguments || [], d = r.data.id, p = new Function(l);
|
|
775
798
|
let b, c = null;
|
|
776
799
|
try {
|
|
777
800
|
b = p.apply(null, a);
|
|
@@ -781,7 +804,7 @@ const kt = (e) => {
|
|
|
781
804
|
c ? (i = window.parent) == null || i.postMessage({
|
|
782
805
|
type: "builder.evaluateError",
|
|
783
806
|
data: {
|
|
784
|
-
id:
|
|
807
|
+
id: d,
|
|
785
808
|
error: c.message
|
|
786
809
|
}
|
|
787
810
|
}, "*") : b && typeof b.then == "function" ? b.then((m) => {
|
|
@@ -789,7 +812,7 @@ const kt = (e) => {
|
|
|
789
812
|
(f = window.parent) == null || f.postMessage({
|
|
790
813
|
type: "builder.evaluateResult",
|
|
791
814
|
data: {
|
|
792
|
-
id:
|
|
815
|
+
id: d,
|
|
793
816
|
result: m
|
|
794
817
|
}
|
|
795
818
|
}, "*");
|
|
@@ -797,19 +820,19 @@ const kt = (e) => {
|
|
|
797
820
|
type: "builder.evaluateResult",
|
|
798
821
|
data: {
|
|
799
822
|
result: b,
|
|
800
|
-
id:
|
|
823
|
+
id: d
|
|
801
824
|
}
|
|
802
825
|
}, "*");
|
|
803
826
|
break;
|
|
804
827
|
}
|
|
805
828
|
}
|
|
806
829
|
})));
|
|
807
|
-
},
|
|
830
|
+
}, xt = ({
|
|
808
831
|
model: e,
|
|
809
832
|
trustedHosts: t,
|
|
810
833
|
callbacks: n
|
|
811
834
|
}) => (o) => {
|
|
812
|
-
if (!
|
|
835
|
+
if (!Dt(t, o))
|
|
813
836
|
return;
|
|
814
837
|
const {
|
|
815
838
|
data: r
|
|
@@ -835,20 +858,20 @@ const kt = (e) => {
|
|
|
835
858
|
break;
|
|
836
859
|
}
|
|
837
860
|
}
|
|
838
|
-
},
|
|
861
|
+
}, ua = ({
|
|
839
862
|
model: e,
|
|
840
863
|
apiKey: t,
|
|
841
864
|
callback: n,
|
|
842
865
|
trustedHosts: o
|
|
843
866
|
}) => {
|
|
844
|
-
if (!
|
|
845
|
-
return
|
|
867
|
+
if (!I)
|
|
868
|
+
return V.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
846
869
|
};
|
|
847
|
-
|
|
870
|
+
Ut({
|
|
848
871
|
modelName: e,
|
|
849
872
|
apiKey: t
|
|
850
873
|
});
|
|
851
|
-
const r =
|
|
874
|
+
const r = xt({
|
|
852
875
|
callbacks: {
|
|
853
876
|
contentUpdate: n,
|
|
854
877
|
animation: () => {
|
|
@@ -864,24 +887,24 @@ const kt = (e) => {
|
|
|
864
887
|
return window.addEventListener("message", r), () => {
|
|
865
888
|
window.removeEventListener("message", r);
|
|
866
889
|
};
|
|
867
|
-
},
|
|
890
|
+
}, so = "builder.tests", De = (e) => `${so}.${e}`, ao = ({
|
|
868
891
|
contentId: e
|
|
869
|
-
}) =>
|
|
870
|
-
name:
|
|
892
|
+
}) => Tt({
|
|
893
|
+
name: De(e),
|
|
871
894
|
canTrack: !0
|
|
872
|
-
}),
|
|
895
|
+
}), lo = ({
|
|
873
896
|
contentId: e
|
|
874
|
-
}) =>
|
|
875
|
-
name:
|
|
897
|
+
}) => fe({
|
|
898
|
+
name: De(e),
|
|
876
899
|
canTrack: !0
|
|
877
|
-
}),
|
|
900
|
+
}), co = ({
|
|
878
901
|
contentId: e,
|
|
879
902
|
value: t
|
|
880
|
-
}) =>
|
|
881
|
-
name:
|
|
903
|
+
}) => Oe({
|
|
904
|
+
name: De(e),
|
|
882
905
|
value: t,
|
|
883
906
|
canTrack: !0
|
|
884
|
-
}),
|
|
907
|
+
}), Lt = (e) => j(e.id) && j(e.variations) && Object.keys(e.variations).length > 0, uo = ({
|
|
885
908
|
id: e,
|
|
886
909
|
variations: t
|
|
887
910
|
}) => {
|
|
@@ -894,15 +917,15 @@ const kt = (e) => {
|
|
|
894
917
|
return i;
|
|
895
918
|
}
|
|
896
919
|
return e;
|
|
897
|
-
},
|
|
898
|
-
const t =
|
|
899
|
-
return
|
|
920
|
+
}, Ft = (e) => {
|
|
921
|
+
const t = uo(e);
|
|
922
|
+
return co({
|
|
900
923
|
contentId: e.id,
|
|
901
924
|
value: t
|
|
902
925
|
}).catch((n) => {
|
|
903
|
-
|
|
926
|
+
V.error("could not store A/B test variation: ", n);
|
|
904
927
|
}), t;
|
|
905
|
-
},
|
|
928
|
+
}, Mt = ({
|
|
906
929
|
item: e,
|
|
907
930
|
testGroupId: t
|
|
908
931
|
}) => {
|
|
@@ -916,7 +939,7 @@ const kt = (e) => {
|
|
|
916
939
|
testVariationId: n.id,
|
|
917
940
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
918
941
|
};
|
|
919
|
-
},
|
|
942
|
+
}, po = ({
|
|
920
943
|
item: e,
|
|
921
944
|
canTrack: t
|
|
922
945
|
}) => {
|
|
@@ -924,14 +947,14 @@ const kt = (e) => {
|
|
|
924
947
|
return e;
|
|
925
948
|
if (!e)
|
|
926
949
|
return;
|
|
927
|
-
if (!
|
|
950
|
+
if (!Lt(e))
|
|
928
951
|
return e;
|
|
929
|
-
const n =
|
|
952
|
+
const n = lo({
|
|
930
953
|
contentId: e.id
|
|
931
|
-
}) ||
|
|
954
|
+
}) || Ft({
|
|
932
955
|
variations: e.variations,
|
|
933
956
|
id: e.id
|
|
934
|
-
}), o =
|
|
957
|
+
}), o = Mt({
|
|
935
958
|
item: e,
|
|
936
959
|
testGroupId: n
|
|
937
960
|
});
|
|
@@ -939,18 +962,18 @@ const kt = (e) => {
|
|
|
939
962
|
...e,
|
|
940
963
|
...o
|
|
941
964
|
};
|
|
942
|
-
},
|
|
965
|
+
}, mo = async ({
|
|
943
966
|
item: e,
|
|
944
967
|
canTrack: t
|
|
945
968
|
}) => {
|
|
946
|
-
if (!t || !
|
|
969
|
+
if (!t || !Lt(e))
|
|
947
970
|
return e;
|
|
948
|
-
const o = await
|
|
971
|
+
const o = await ao({
|
|
949
972
|
contentId: e.id
|
|
950
|
-
}) ||
|
|
973
|
+
}) || Ft({
|
|
951
974
|
variations: e.variations,
|
|
952
975
|
id: e.id
|
|
953
|
-
}), r =
|
|
976
|
+
}), r = Mt({
|
|
954
977
|
item: e,
|
|
955
978
|
testGroupId: o
|
|
956
979
|
});
|
|
@@ -959,49 +982,49 @@ const kt = (e) => {
|
|
|
959
982
|
...r
|
|
960
983
|
};
|
|
961
984
|
};
|
|
962
|
-
const
|
|
963
|
-
if (!
|
|
985
|
+
const ho = "builder.preview", fo = "BUILDER_STUDIO", Ze = "builder.userAttributes.", bo = (e) => e === "true" ? !0 : e === "false" ? !1 : e, et = () => {
|
|
986
|
+
if (!I())
|
|
964
987
|
return {};
|
|
965
988
|
const e = new URLSearchParams(window.location.search);
|
|
966
|
-
if (e.get(
|
|
989
|
+
if (e.get(ho) !== fo)
|
|
967
990
|
return {};
|
|
968
991
|
const t = {};
|
|
969
992
|
return e.forEach((n, o) => {
|
|
970
|
-
o.startsWith(
|
|
993
|
+
o.startsWith(Ze) && (t[o.slice(Ze.length)] = bo(n));
|
|
971
994
|
}), t;
|
|
972
|
-
},
|
|
973
|
-
function
|
|
995
|
+
}, tt = "builder.userAttributes";
|
|
996
|
+
function nt() {
|
|
974
997
|
let e = !0;
|
|
975
998
|
const t = /* @__PURE__ */ new Set(), n = () => {
|
|
976
|
-
const o =
|
|
977
|
-
name:
|
|
999
|
+
const o = fe({
|
|
1000
|
+
name: tt,
|
|
978
1001
|
canTrack: e
|
|
979
1002
|
});
|
|
980
1003
|
return o ? JSON.parse(o) : {};
|
|
981
1004
|
};
|
|
982
1005
|
return {
|
|
983
1006
|
setUserAttributes(o) {
|
|
984
|
-
if (!
|
|
1007
|
+
if (!I())
|
|
985
1008
|
return;
|
|
986
1009
|
const r = {
|
|
987
1010
|
...n(),
|
|
988
1011
|
...o
|
|
989
1012
|
};
|
|
990
|
-
|
|
991
|
-
name:
|
|
1013
|
+
Oe({
|
|
1014
|
+
name: tt,
|
|
992
1015
|
value: JSON.stringify(r),
|
|
993
1016
|
canTrack: e
|
|
994
1017
|
});
|
|
995
|
-
const i =
|
|
1018
|
+
const i = et();
|
|
996
1019
|
t.forEach((s) => s({
|
|
997
1020
|
...r,
|
|
998
1021
|
...i
|
|
999
1022
|
}));
|
|
1000
1023
|
},
|
|
1001
1024
|
getUserAttributes() {
|
|
1002
|
-
return
|
|
1025
|
+
return I() ? {
|
|
1003
1026
|
...n(),
|
|
1004
|
-
...
|
|
1027
|
+
...et()
|
|
1005
1028
|
} : {};
|
|
1006
1029
|
},
|
|
1007
1030
|
subscribeOnUserAttributesChange(o, {
|
|
@@ -1016,45 +1039,45 @@ function _e() {
|
|
|
1016
1039
|
}
|
|
1017
1040
|
};
|
|
1018
1041
|
}
|
|
1019
|
-
let
|
|
1020
|
-
|
|
1021
|
-
const
|
|
1022
|
-
|
|
1023
|
-
},
|
|
1042
|
+
let Ie;
|
|
1043
|
+
I() && E === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = nt()), Ie = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : Ie = nt();
|
|
1044
|
+
const pe = Ie, pa = (e) => {
|
|
1045
|
+
pe.setUserAttributes(e);
|
|
1046
|
+
}, _ = (e) => {
|
|
1024
1047
|
const t = j(e) ? e : !0;
|
|
1025
|
-
return
|
|
1048
|
+
return pe.setCanTrack(t), t;
|
|
1026
1049
|
};
|
|
1027
|
-
function
|
|
1050
|
+
function go() {
|
|
1028
1051
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
1029
1052
|
}
|
|
1030
|
-
function
|
|
1031
|
-
const e =
|
|
1053
|
+
function yo() {
|
|
1054
|
+
const e = go().fetch;
|
|
1032
1055
|
if (typeof e > "u")
|
|
1033
1056
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
1034
1057
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
1035
1058
|
return e;
|
|
1036
1059
|
}
|
|
1037
|
-
const
|
|
1038
|
-
function
|
|
1060
|
+
const So = yo();
|
|
1061
|
+
function we(e, t = null, n = ".") {
|
|
1039
1062
|
return Object.keys(e).reduce((o, r) => {
|
|
1040
1063
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
1041
1064
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
1042
1065
|
...o,
|
|
1043
|
-
...
|
|
1066
|
+
...we(i, s, n)
|
|
1044
1067
|
} : {
|
|
1045
1068
|
...o,
|
|
1046
1069
|
[s]: i
|
|
1047
1070
|
};
|
|
1048
1071
|
}, {});
|
|
1049
1072
|
}
|
|
1050
|
-
function
|
|
1073
|
+
function Ht(e, t, n = {}) {
|
|
1051
1074
|
for (const o in e) {
|
|
1052
1075
|
const r = e[o], i = t ? t + "." + o : o;
|
|
1053
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ?
|
|
1076
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Ht(r, i, n) : n[i] = r;
|
|
1054
1077
|
}
|
|
1055
1078
|
return n;
|
|
1056
1079
|
}
|
|
1057
|
-
function
|
|
1080
|
+
function vo(e) {
|
|
1058
1081
|
const t = {};
|
|
1059
1082
|
for (const n in e) {
|
|
1060
1083
|
const o = n.split(".");
|
|
@@ -1066,7 +1089,7 @@ function Xn(e) {
|
|
|
1066
1089
|
}
|
|
1067
1090
|
return t;
|
|
1068
1091
|
}
|
|
1069
|
-
const
|
|
1092
|
+
const ko = "v3", ot = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ue = (e) => {
|
|
1070
1093
|
const {
|
|
1071
1094
|
limit: t = 30,
|
|
1072
1095
|
userAttributes: n,
|
|
@@ -1076,115 +1099,115 @@ const Zn = "v3", Qe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Oe = (
|
|
|
1076
1099
|
enrich: s,
|
|
1077
1100
|
enrichOptions: l,
|
|
1078
1101
|
locale: a,
|
|
1079
|
-
apiVersion:
|
|
1102
|
+
apiVersion: d = ko,
|
|
1080
1103
|
fields: p,
|
|
1081
1104
|
omit: b,
|
|
1082
1105
|
offset: c,
|
|
1083
1106
|
cacheSeconds: m,
|
|
1084
1107
|
staleCacheSeconds: f,
|
|
1085
1108
|
sort: g,
|
|
1086
|
-
includeUnpublished:
|
|
1109
|
+
includeUnpublished: A,
|
|
1087
1110
|
apiHost: U
|
|
1088
1111
|
} = e;
|
|
1089
1112
|
if (!i)
|
|
1090
1113
|
throw new Error("Missing API key");
|
|
1091
|
-
if (!["v3"].includes(
|
|
1092
|
-
throw new Error(`Invalid apiVersion: expected 'v3', received '${
|
|
1093
|
-
const
|
|
1094
|
-
|
|
1095
|
-
let
|
|
1096
|
-
if (s &&
|
|
1097
|
-
const W =
|
|
1114
|
+
if (!["v3"].includes(d))
|
|
1115
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${d}'`);
|
|
1116
|
+
const O = t !== 1, q = U || "https://cdn.builder.io", T = new URL(`${q}/api/${d}/content/${r}`);
|
|
1117
|
+
T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(O)), T.searchParams.set("includeRefs", String(!0)), a && T.searchParams.set("locale", a);
|
|
1118
|
+
let K = n || {};
|
|
1119
|
+
if (s && T.searchParams.set("enrich", String(s)), s && l && T.searchParams.set("enrichOptions", JSON.stringify(l)), T.searchParams.set("omit", b ?? "meta.componentsUsed"), p && T.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && T.searchParams.set("offset", String(Math.floor(c))), typeof A == "boolean" && T.searchParams.set("includeUnpublished", String(A)), m && ot(m) && T.searchParams.set("cacheSeconds", String(m)), f && ot(f) && T.searchParams.set("staleCacheSeconds", String(f)), g) {
|
|
1120
|
+
const W = we({
|
|
1098
1121
|
sort: g
|
|
1099
1122
|
});
|
|
1100
1123
|
for (const F in W)
|
|
1101
|
-
|
|
1124
|
+
T.searchParams.set(F, JSON.stringify(W[F]));
|
|
1102
1125
|
}
|
|
1103
|
-
const
|
|
1104
|
-
...
|
|
1105
|
-
...
|
|
1126
|
+
const J = {
|
|
1127
|
+
...ro(),
|
|
1128
|
+
...yt(e.options || {})
|
|
1106
1129
|
};
|
|
1107
|
-
|
|
1108
|
-
...
|
|
1109
|
-
...
|
|
1130
|
+
K = {
|
|
1131
|
+
...K,
|
|
1132
|
+
...Io(J)
|
|
1110
1133
|
};
|
|
1111
|
-
const Q =
|
|
1134
|
+
const Q = we(J);
|
|
1112
1135
|
for (const W in Q)
|
|
1113
|
-
W !== "apiKey" &&
|
|
1114
|
-
if (Object.keys(
|
|
1115
|
-
const W =
|
|
1136
|
+
W !== "apiKey" && T.searchParams.set(W, String(Q[W]));
|
|
1137
|
+
if (Object.keys(K).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(K)), o) {
|
|
1138
|
+
const W = Ht({
|
|
1116
1139
|
query: o
|
|
1117
1140
|
});
|
|
1118
1141
|
for (const F in W)
|
|
1119
|
-
|
|
1142
|
+
T.searchParams.set(F, JSON.stringify(W[F]));
|
|
1120
1143
|
}
|
|
1121
|
-
return
|
|
1122
|
-
},
|
|
1144
|
+
return T;
|
|
1145
|
+
}, Co = (e) => e === "true" ? !0 : e === "false" ? !1 : e, To = (e) => {
|
|
1123
1146
|
const t = {};
|
|
1124
1147
|
for (const n in e)
|
|
1125
|
-
n.startsWith("userAttributes.") && (t[n] =
|
|
1148
|
+
n.startsWith("userAttributes.") && (t[n] = Co(e[n]), delete e[n]);
|
|
1126
1149
|
return t;
|
|
1127
|
-
},
|
|
1128
|
-
if (
|
|
1150
|
+
}, Io = (e) => {
|
|
1151
|
+
if (I() && e.preview === "BUILDER_STUDIO") {
|
|
1129
1152
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
1130
|
-
const t =
|
|
1153
|
+
const t = To(e), {
|
|
1131
1154
|
userAttributes: n
|
|
1132
|
-
} =
|
|
1155
|
+
} = vo(t);
|
|
1133
1156
|
return n;
|
|
1134
1157
|
}
|
|
1135
1158
|
return {};
|
|
1136
|
-
},
|
|
1137
|
-
async function
|
|
1159
|
+
}, wo = (e) => "results" in e;
|
|
1160
|
+
async function xe(e) {
|
|
1138
1161
|
var o;
|
|
1139
1162
|
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
1140
1163
|
t && (e.locale = t, e.userAttributes = {
|
|
1141
1164
|
locale: t,
|
|
1142
1165
|
...e.userAttributes
|
|
1143
1166
|
});
|
|
1144
|
-
const n = await
|
|
1167
|
+
const n = await $o({
|
|
1145
1168
|
...e,
|
|
1146
1169
|
limit: 1
|
|
1147
1170
|
});
|
|
1148
1171
|
return n && n[0] || null;
|
|
1149
1172
|
}
|
|
1150
|
-
const
|
|
1173
|
+
const Eo = async (e) => {
|
|
1151
1174
|
var s;
|
|
1152
|
-
const t =
|
|
1175
|
+
const t = Ue(e), n = e.fetch ?? So, o = {
|
|
1153
1176
|
...e.fetchOptions,
|
|
1154
1177
|
headers: {
|
|
1155
1178
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
1156
|
-
...
|
|
1179
|
+
...Ct()
|
|
1157
1180
|
}
|
|
1158
1181
|
};
|
|
1159
1182
|
return await (await n(t.href, o)).json();
|
|
1160
|
-
},
|
|
1161
|
-
const o =
|
|
1162
|
-
if (n.search.includes("preview="), !o || !(
|
|
1183
|
+
}, Ro = async (e, t, n = Ue(e)) => {
|
|
1184
|
+
const o = _(e.canTrack);
|
|
1185
|
+
if (n.search.includes("preview="), !o || !(I() || E === "reactNative"))
|
|
1163
1186
|
return t.results;
|
|
1164
1187
|
try {
|
|
1165
1188
|
const r = [];
|
|
1166
1189
|
for (const i of t.results)
|
|
1167
|
-
r.push(await
|
|
1190
|
+
r.push(await mo({
|
|
1168
1191
|
item: i,
|
|
1169
1192
|
canTrack: o
|
|
1170
1193
|
}));
|
|
1171
1194
|
t.results = r;
|
|
1172
1195
|
} catch (r) {
|
|
1173
|
-
|
|
1196
|
+
V.error("Could not process A/B tests. ", r);
|
|
1174
1197
|
}
|
|
1175
1198
|
return t.results;
|
|
1176
1199
|
};
|
|
1177
|
-
async function
|
|
1178
|
-
const t =
|
|
1179
|
-
if (!
|
|
1180
|
-
throw
|
|
1200
|
+
async function $o(e) {
|
|
1201
|
+
const t = Ue(e), n = await Eo(e);
|
|
1202
|
+
if (!wo(n))
|
|
1203
|
+
throw V.error("Error fetching data. ", {
|
|
1181
1204
|
url: t,
|
|
1182
1205
|
content: n,
|
|
1183
1206
|
options: e
|
|
1184
1207
|
}), n;
|
|
1185
|
-
return
|
|
1208
|
+
return Ro(e, n);
|
|
1186
1209
|
}
|
|
1187
|
-
const
|
|
1210
|
+
const ma = async (e) => {
|
|
1188
1211
|
var o, r, i;
|
|
1189
1212
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1190
1213
|
...e,
|
|
@@ -1196,27 +1219,27 @@ const xs = async (e) => {
|
|
|
1196
1219
|
urlPath: t
|
|
1197
1220
|
} : {}
|
|
1198
1221
|
},
|
|
1199
|
-
options:
|
|
1222
|
+
options: Wt(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
1200
1223
|
};
|
|
1201
1224
|
return {
|
|
1202
1225
|
apiKey: n.apiKey,
|
|
1203
1226
|
model: n.model,
|
|
1204
|
-
content: await
|
|
1227
|
+
content: await xe(n)
|
|
1205
1228
|
};
|
|
1206
|
-
},
|
|
1207
|
-
function
|
|
1229
|
+
}, Le = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1230
|
+
function Po(e, t, n = {}) {
|
|
1208
1231
|
let o, r, i, s = null, l = 0;
|
|
1209
1232
|
const a = function() {
|
|
1210
1233
|
l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
1211
1234
|
};
|
|
1212
1235
|
return function() {
|
|
1213
|
-
const
|
|
1214
|
-
!l && n.leading === !1 && (l =
|
|
1215
|
-
const p = t - (
|
|
1216
|
-
return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), l =
|
|
1236
|
+
const d = Date.now();
|
|
1237
|
+
!l && n.leading === !1 && (l = d);
|
|
1238
|
+
const p = t - (d - l);
|
|
1239
|
+
return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), l = d, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, p)), i;
|
|
1217
1240
|
};
|
|
1218
1241
|
}
|
|
1219
|
-
function
|
|
1242
|
+
function ee(e, ...t) {
|
|
1220
1243
|
const n = Object(e);
|
|
1221
1244
|
for (let o = 1; o < arguments.length; o++) {
|
|
1222
1245
|
const r = arguments[o];
|
|
@@ -1226,64 +1249,64 @@ function Z(e, ...t) {
|
|
|
1226
1249
|
}
|
|
1227
1250
|
return n;
|
|
1228
1251
|
}
|
|
1229
|
-
function
|
|
1252
|
+
function Ao(e) {
|
|
1230
1253
|
for (const t of e)
|
|
1231
1254
|
switch (t.trigger) {
|
|
1232
1255
|
case "pageLoad":
|
|
1233
|
-
|
|
1256
|
+
zt(t);
|
|
1234
1257
|
break;
|
|
1235
1258
|
case "scrollInView":
|
|
1236
|
-
|
|
1259
|
+
Vo(t);
|
|
1237
1260
|
break;
|
|
1238
1261
|
}
|
|
1239
1262
|
}
|
|
1240
|
-
function
|
|
1263
|
+
function jt(e) {
|
|
1241
1264
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1242
1265
|
}
|
|
1243
|
-
function
|
|
1244
|
-
const n =
|
|
1266
|
+
function Kt(e, t) {
|
|
1267
|
+
const n = Bo(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
1245
1268
|
for (const l of s)
|
|
1246
1269
|
for (const a of n)
|
|
1247
1270
|
a in l || (l[a] = o[a]);
|
|
1248
1271
|
}
|
|
1249
|
-
function
|
|
1272
|
+
function Bo(e) {
|
|
1250
1273
|
const t = [];
|
|
1251
1274
|
for (const n of e.steps)
|
|
1252
1275
|
for (const o in n.styles)
|
|
1253
1276
|
t.indexOf(o) === -1 && t.push(o);
|
|
1254
1277
|
return t;
|
|
1255
1278
|
}
|
|
1256
|
-
function
|
|
1279
|
+
function zt(e) {
|
|
1257
1280
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1258
1281
|
if (!t.length) {
|
|
1259
|
-
|
|
1282
|
+
jt(e.elementId || e.id || "");
|
|
1260
1283
|
return;
|
|
1261
1284
|
}
|
|
1262
1285
|
Array.from(t).forEach((n) => {
|
|
1263
|
-
|
|
1264
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1286
|
+
Kt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ee(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1287
|
+
n.style.transition = `all ${e.duration}s ${Le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ee(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1265
1288
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1266
1289
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1267
1290
|
});
|
|
1268
1291
|
});
|
|
1269
1292
|
}
|
|
1270
|
-
function
|
|
1293
|
+
function Vo(e) {
|
|
1271
1294
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1272
1295
|
if (!t.length) {
|
|
1273
|
-
|
|
1296
|
+
jt(e.elementId || e.id || "");
|
|
1274
1297
|
return;
|
|
1275
1298
|
}
|
|
1276
1299
|
Array.from(t).forEach((n) => {
|
|
1277
|
-
|
|
1300
|
+
Kt(e, n);
|
|
1278
1301
|
let o = !1, r = !1;
|
|
1279
1302
|
function i() {
|
|
1280
1303
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
1281
|
-
|
|
1304
|
+
ee(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
1282
1305
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
1283
1306
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1284
|
-
})) : e.repeat && o && !r && !l(n) && (o = !1,
|
|
1307
|
+
})) : e.repeat && o && !r && !l(n) && (o = !1, ee(n.style, e.steps[0].styles));
|
|
1285
1308
|
}
|
|
1286
|
-
const s =
|
|
1309
|
+
const s = Po(i, 200, {
|
|
1287
1310
|
leading: !1
|
|
1288
1311
|
});
|
|
1289
1312
|
function l(p) {
|
|
@@ -1291,65 +1314,65 @@ function uo(e) {
|
|
|
1291
1314
|
return b.bottom > f && b.top < c - f;
|
|
1292
1315
|
}
|
|
1293
1316
|
const a = e.steps[0].styles;
|
|
1294
|
-
function
|
|
1295
|
-
|
|
1317
|
+
function d() {
|
|
1318
|
+
ee(n.style, a);
|
|
1296
1319
|
}
|
|
1297
|
-
|
|
1298
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1320
|
+
d(), setTimeout(() => {
|
|
1321
|
+
n.style.transition = `all ${e.duration}s ${Le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
1299
1322
|
}), document.addEventListener("scroll", s, {
|
|
1300
1323
|
capture: !0,
|
|
1301
1324
|
passive: !0
|
|
1302
1325
|
}), i();
|
|
1303
1326
|
});
|
|
1304
1327
|
}
|
|
1305
|
-
const
|
|
1328
|
+
const ie = (e, t) => {
|
|
1306
1329
|
const n = (e == null ? void 0 : e.objectPosition) || t;
|
|
1307
1330
|
return n ? {
|
|
1308
1331
|
...e,
|
|
1309
1332
|
"--builder-image-position": n
|
|
1310
1333
|
} : e;
|
|
1311
|
-
},
|
|
1334
|
+
}, ha = (e, t) => t ? {
|
|
1312
1335
|
...e,
|
|
1313
|
-
large:
|
|
1314
|
-
medium:
|
|
1315
|
-
small:
|
|
1316
|
-
xsmall:
|
|
1317
|
-
} : e,
|
|
1336
|
+
large: ie(e == null ? void 0 : e.large, "initial"),
|
|
1337
|
+
medium: ie(e == null ? void 0 : e.medium),
|
|
1338
|
+
small: ie(e == null ? void 0 : e.small),
|
|
1339
|
+
xsmall: ie(e == null ? void 0 : e.xsmall)
|
|
1340
|
+
} : e, qt = (e) => Object.entries(e).map(([n, o]) => {
|
|
1318
1341
|
if (typeof o == "string")
|
|
1319
|
-
return `${
|
|
1320
|
-
}).filter(j),
|
|
1321
|
-
`),
|
|
1342
|
+
return `${Le(n)}: ${o};`;
|
|
1343
|
+
}).filter(j), Oo = (e) => qt(e).join(`
|
|
1344
|
+
`), fa = ({
|
|
1322
1345
|
mediaQuery: e,
|
|
1323
1346
|
className: t,
|
|
1324
1347
|
styles: n
|
|
1325
1348
|
}) => {
|
|
1326
1349
|
const o = `.${t} {
|
|
1327
|
-
${
|
|
1350
|
+
${Oo(n)}
|
|
1328
1351
|
}`;
|
|
1329
1352
|
return e ? `${e} {
|
|
1330
1353
|
${o}
|
|
1331
1354
|
}` : o;
|
|
1332
1355
|
};
|
|
1333
|
-
function
|
|
1356
|
+
function No({
|
|
1334
1357
|
style: e
|
|
1335
1358
|
}) {
|
|
1336
1359
|
return e;
|
|
1337
1360
|
}
|
|
1338
|
-
const
|
|
1361
|
+
const ba = ({
|
|
1339
1362
|
block: e,
|
|
1340
1363
|
context: t
|
|
1341
|
-
}) =>
|
|
1364
|
+
}) => Gt(No({
|
|
1342
1365
|
style: e.style || {},
|
|
1343
1366
|
context: t,
|
|
1344
1367
|
block: e
|
|
1345
1368
|
}));
|
|
1346
|
-
function
|
|
1369
|
+
function Gt(e) {
|
|
1347
1370
|
switch (E) {
|
|
1348
1371
|
case "svelte":
|
|
1349
1372
|
case "vue":
|
|
1350
1373
|
case "solid":
|
|
1351
1374
|
case "angular":
|
|
1352
|
-
return
|
|
1375
|
+
return qt(e).join(" ");
|
|
1353
1376
|
case "qwik":
|
|
1354
1377
|
case "reactNative":
|
|
1355
1378
|
case "react":
|
|
@@ -1357,7 +1380,7 @@ function Bt(e) {
|
|
|
1357
1380
|
return e;
|
|
1358
1381
|
}
|
|
1359
1382
|
}
|
|
1360
|
-
const
|
|
1383
|
+
const _t = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Wo = ({
|
|
1361
1384
|
block: e,
|
|
1362
1385
|
registeredComponents: t,
|
|
1363
1386
|
model: n
|
|
@@ -1367,99 +1390,121 @@ const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1367
1390
|
if (!o)
|
|
1368
1391
|
return null;
|
|
1369
1392
|
const r = t[o];
|
|
1370
|
-
if (!r ||
|
|
1393
|
+
if (!r || _t(r, n)) {
|
|
1371
1394
|
console.warn(`
|
|
1372
1395
|
Could not find a registered component named "${o}".
|
|
1373
1396
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1374
1397
|
return;
|
|
1375
1398
|
} else
|
|
1376
1399
|
return r;
|
|
1377
|
-
},
|
|
1400
|
+
}, rt = /* @__PURE__ */ new WeakMap(), Do = (e) => {
|
|
1401
|
+
if (At()) {
|
|
1402
|
+
const {
|
|
1403
|
+
repeat: n,
|
|
1404
|
+
...o
|
|
1405
|
+
} = e;
|
|
1406
|
+
return o;
|
|
1407
|
+
}
|
|
1408
|
+
let t = rt.get(e);
|
|
1409
|
+
if (!t) {
|
|
1410
|
+
const {
|
|
1411
|
+
repeat: n,
|
|
1412
|
+
...o
|
|
1413
|
+
} = e;
|
|
1414
|
+
t = o, rt.set(e, t);
|
|
1415
|
+
}
|
|
1416
|
+
return t;
|
|
1417
|
+
}, Uo = ({
|
|
1378
1418
|
block: e,
|
|
1379
1419
|
context: t
|
|
1380
1420
|
}) => {
|
|
1381
1421
|
const {
|
|
1382
|
-
repeat: n
|
|
1383
|
-
...o
|
|
1422
|
+
repeat: n
|
|
1384
1423
|
} = e;
|
|
1385
1424
|
if (!(n != null && n.collection))
|
|
1386
1425
|
return;
|
|
1387
|
-
const
|
|
1426
|
+
const o = ne({
|
|
1388
1427
|
code: n.collection,
|
|
1389
1428
|
localState: t.localState,
|
|
1390
1429
|
rootState: t.rootState,
|
|
1391
1430
|
rootSetState: t.rootSetState,
|
|
1392
1431
|
context: t.context
|
|
1393
1432
|
});
|
|
1394
|
-
if (!Array.isArray(
|
|
1433
|
+
if (!Array.isArray(o))
|
|
1395
1434
|
return;
|
|
1396
|
-
const
|
|
1397
|
-
return
|
|
1435
|
+
const r = n.collection.split(".").pop(), i = n.itemName || (r ? r + "Item" : "item"), s = Do(e);
|
|
1436
|
+
return o.map((a, d) => ({
|
|
1398
1437
|
context: {
|
|
1399
1438
|
...t,
|
|
1400
1439
|
localState: {
|
|
1401
1440
|
...t.localState,
|
|
1402
|
-
$index:
|
|
1441
|
+
$index: d,
|
|
1403
1442
|
$item: a,
|
|
1404
|
-
[
|
|
1405
|
-
[`$${
|
|
1443
|
+
[i]: a,
|
|
1444
|
+
[`$${i}Index`]: d
|
|
1406
1445
|
}
|
|
1407
1446
|
},
|
|
1408
|
-
block:
|
|
1447
|
+
block: s
|
|
1409
1448
|
}));
|
|
1410
|
-
},
|
|
1449
|
+
}, xo = (e, t) => {
|
|
1411
1450
|
var n;
|
|
1412
1451
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1413
1452
|
builderLinkComponent: t
|
|
1414
1453
|
} : {};
|
|
1415
|
-
},
|
|
1454
|
+
}, it = /* @__PURE__ */ new WeakMap(), Lo = (e, t, n) => {
|
|
1416
1455
|
var o;
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1456
|
+
if ((o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents) {
|
|
1457
|
+
let r = it.get(t);
|
|
1458
|
+
r || (r = /* @__PURE__ */ new Map(), it.set(t, r));
|
|
1459
|
+
let i = r.get(n);
|
|
1460
|
+
return i || (i = Object.fromEntries(Object.entries(t).filter(([s, l]) => !_t(l, n))), r.set(n, i)), {
|
|
1461
|
+
builderComponents: i
|
|
1462
|
+
};
|
|
1463
|
+
}
|
|
1464
|
+
return {};
|
|
1465
|
+
}, Fo = (e, t) => {
|
|
1421
1466
|
var n;
|
|
1422
1467
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1423
1468
|
builderBlock: t
|
|
1424
1469
|
} : {};
|
|
1425
|
-
},
|
|
1470
|
+
}, Mo = (e, t) => {
|
|
1426
1471
|
var n;
|
|
1427
1472
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1428
1473
|
builderContext: t
|
|
1429
1474
|
} : {};
|
|
1430
|
-
},
|
|
1475
|
+
}, Ho = (e) => e.toString(), jo = () => Promise.resolve().then(() => or).then((e) => e.default).catch((e) => {
|
|
1431
1476
|
throw console.error(
|
|
1432
1477
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1433
1478
|
e
|
|
1434
1479
|
), e;
|
|
1435
|
-
}),
|
|
1480
|
+
}), Ko = () => import("./block-wrapper-f3zEx8S_.js").then((e) => e.default).catch((e) => {
|
|
1436
1481
|
throw console.error(
|
|
1437
1482
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1438
1483
|
e
|
|
1439
1484
|
), e;
|
|
1440
|
-
}),
|
|
1485
|
+
}), zo = () => import("./component-ref-4lLMyE43.js").then((e) => e.default).catch((e) => {
|
|
1441
1486
|
throw console.error(
|
|
1442
1487
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1443
1488
|
e
|
|
1444
1489
|
), e;
|
|
1445
|
-
}),
|
|
1490
|
+
}), qo = () => import("./repeated-block-F5n8q4pA.js").then((e) => e.default).catch((e) => {
|
|
1446
1491
|
throw console.error(
|
|
1447
1492
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1448
1493
|
e
|
|
1449
1494
|
), e;
|
|
1450
|
-
}),
|
|
1495
|
+
}), Go = () => import("./style-wrapper-e5wqPuhd.js").then((e) => e.default).catch((e) => {
|
|
1451
1496
|
throw console.error(
|
|
1452
1497
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1453
1498
|
e
|
|
1454
1499
|
), e;
|
|
1455
|
-
}),
|
|
1500
|
+
}), _o = y({
|
|
1456
1501
|
name: "block",
|
|
1457
1502
|
components: {
|
|
1458
|
-
StyleWrapper: Y(
|
|
1459
|
-
RepeatedBlock: Y(
|
|
1460
|
-
ComponentRef: Y(
|
|
1461
|
-
BlockWrapper: Y(
|
|
1462
|
-
DynamicDiv: Y(
|
|
1503
|
+
StyleWrapper: Y(Go),
|
|
1504
|
+
RepeatedBlock: Y(qo),
|
|
1505
|
+
ComponentRef: Y(zo),
|
|
1506
|
+
BlockWrapper: Y(Ko),
|
|
1507
|
+
DynamicDiv: Y(jo)
|
|
1463
1508
|
},
|
|
1464
1509
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1465
1510
|
data() {
|
|
@@ -1468,12 +1513,16 @@ const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1468
1513
|
value: null,
|
|
1469
1514
|
update: !1
|
|
1470
1515
|
},
|
|
1471
|
-
|
|
1516
|
+
_componentRefProps: {
|
|
1517
|
+
value: null,
|
|
1518
|
+
deps: []
|
|
1519
|
+
},
|
|
1520
|
+
generateKey: Ho
|
|
1472
1521
|
};
|
|
1473
1522
|
},
|
|
1474
1523
|
mounted() {
|
|
1475
1524
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1476
|
-
t && e &&
|
|
1525
|
+
t && e && Ao(
|
|
1477
1526
|
t.map((n) => ({
|
|
1478
1527
|
...n,
|
|
1479
1528
|
elementId: e
|
|
@@ -1484,14 +1533,14 @@ const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1484
1533
|
},
|
|
1485
1534
|
computed: {
|
|
1486
1535
|
repeatItem() {
|
|
1487
|
-
return
|
|
1536
|
+
return Uo({
|
|
1488
1537
|
block: this.block,
|
|
1489
1538
|
context: this.context
|
|
1490
1539
|
});
|
|
1491
1540
|
},
|
|
1492
1541
|
processedBlock() {
|
|
1493
1542
|
var t;
|
|
1494
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1543
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : eo({
|
|
1495
1544
|
block: this.block,
|
|
1496
1545
|
localState: this.context.localState,
|
|
1497
1546
|
rootState: this.context.rootState,
|
|
@@ -1500,7 +1549,7 @@ const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1500
1549
|
});
|
|
1501
1550
|
},
|
|
1502
1551
|
blockComponent() {
|
|
1503
|
-
return
|
|
1552
|
+
return Wo({
|
|
1504
1553
|
block: this.processedBlock,
|
|
1505
1554
|
registeredComponents: this.registeredComponents,
|
|
1506
1555
|
model: this.context.model
|
|
@@ -1522,16 +1571,16 @@ const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1522
1571
|
return !((t = this.blockComponent) != null && t.component) && !this.repeatItem ? this.processedBlock.children ?? [] : [];
|
|
1523
1572
|
},
|
|
1524
1573
|
componentRefProps() {
|
|
1525
|
-
var
|
|
1526
|
-
return {
|
|
1574
|
+
var t, n, o;
|
|
1575
|
+
return this.processedBlock, this.context, this.context.rootState, this.context.localState, this.registeredComponents, this.linkComponent, {
|
|
1527
1576
|
blockChildren: this.processedBlock.children ?? [],
|
|
1528
|
-
componentRef: (
|
|
1577
|
+
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
1529
1578
|
componentOptions: {
|
|
1530
|
-
...
|
|
1531
|
-
...
|
|
1532
|
-
...
|
|
1533
|
-
...
|
|
1534
|
-
...
|
|
1579
|
+
...qn(this.processedBlock, this.context),
|
|
1580
|
+
...Fo(this.blockComponent, this.processedBlock),
|
|
1581
|
+
...Mo(this.blockComponent, this.context),
|
|
1582
|
+
...xo(this.blockComponent, this.linkComponent),
|
|
1583
|
+
...Lo(
|
|
1535
1584
|
this.blockComponent,
|
|
1536
1585
|
this.registeredComponents,
|
|
1537
1586
|
this.context.model
|
|
@@ -1541,29 +1590,29 @@ const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1541
1590
|
linkComponent: this.linkComponent,
|
|
1542
1591
|
registeredComponents: this.registeredComponents,
|
|
1543
1592
|
builderBlock: this.processedBlock,
|
|
1544
|
-
includeBlockProps: ((
|
|
1545
|
-
isInteractive: !((
|
|
1593
|
+
includeBlockProps: ((n = this.blockComponent) == null ? void 0 : n.noWrap) === !0,
|
|
1594
|
+
isInteractive: !((o = this.blockComponent) != null && o.isRSC && E === "rsc")
|
|
1546
1595
|
};
|
|
1547
1596
|
}
|
|
1548
1597
|
}
|
|
1549
1598
|
});
|
|
1550
|
-
function
|
|
1599
|
+
function Jo(e, t, n, o, r, i) {
|
|
1551
1600
|
var b;
|
|
1552
|
-
const s =
|
|
1553
|
-
return e.canShowBlock ? (
|
|
1554
|
-
|
|
1601
|
+
const s = C("StyleWrapper"), l = C("ComponentRef"), a = C("Block", !0), d = C("BlockWrapper"), p = C("RepeatedBlock");
|
|
1602
|
+
return e.canShowBlock ? (u(), h(w, { key: 0 }, [
|
|
1603
|
+
$(s, {
|
|
1555
1604
|
block: e.processedBlock,
|
|
1556
1605
|
context: e.context,
|
|
1557
1606
|
id: e.block.id
|
|
1558
1607
|
}, null, 8, ["block", "context", "id"]),
|
|
1559
|
-
(b = e.blockComponent) != null && b.noWrap ? (
|
|
1560
|
-
e.repeatItem ? (
|
|
1608
|
+
(b = e.blockComponent) != null && b.noWrap ? (u(), h(w, { key: 1 }, [
|
|
1609
|
+
e.repeatItem ? (u(!0), h(w, { key: 1 }, L(e.repeatItem, (c, m) => (u(), S(p, {
|
|
1561
1610
|
key: e.generateKey(m),
|
|
1562
1611
|
repeatContext: c.context,
|
|
1563
1612
|
block: c.block,
|
|
1564
1613
|
registeredComponents: e.registeredComponents,
|
|
1565
1614
|
linkComponent: e.linkComponent
|
|
1566
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (
|
|
1615
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), S(l, {
|
|
1567
1616
|
key: 0,
|
|
1568
1617
|
componentRef: e.componentRefProps.componentRef,
|
|
1569
1618
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -1575,21 +1624,21 @@ function Eo(e, t, n, o, r, i) {
|
|
|
1575
1624
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1576
1625
|
isInteractive: e.componentRefProps.isInteractive
|
|
1577
1626
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1578
|
-
], 64)) : (
|
|
1579
|
-
e.repeatItem ? (
|
|
1627
|
+
], 64)) : (u(), h(w, { key: 0 }, [
|
|
1628
|
+
e.repeatItem ? (u(!0), h(w, { key: 1 }, L(e.repeatItem, (c, m) => (u(), S(p, {
|
|
1580
1629
|
key: e.generateKey(m),
|
|
1581
1630
|
repeatContext: c.context,
|
|
1582
1631
|
block: c.block,
|
|
1583
1632
|
registeredComponents: e.registeredComponents,
|
|
1584
1633
|
linkComponent: e.linkComponent
|
|
1585
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (
|
|
1634
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (u(), S(d, {
|
|
1586
1635
|
key: 0,
|
|
1587
1636
|
Wrapper: e.Tag,
|
|
1588
1637
|
block: e.processedBlock,
|
|
1589
1638
|
context: e.context
|
|
1590
1639
|
}, {
|
|
1591
1640
|
default: D(() => [
|
|
1592
|
-
|
|
1641
|
+
$(l, {
|
|
1593
1642
|
componentRef: e.componentRefProps.componentRef,
|
|
1594
1643
|
componentOptions: e.componentRefProps.componentOptions,
|
|
1595
1644
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -1600,7 +1649,7 @@ function Eo(e, t, n, o, r, i) {
|
|
|
1600
1649
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1601
1650
|
isInteractive: e.componentRefProps.isInteractive
|
|
1602
1651
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1603
|
-
(
|
|
1652
|
+
(u(!0), h(w, null, L(e.childrenWithoutParentComponent, (c, m) => (u(), S(a, {
|
|
1604
1653
|
key: c.id,
|
|
1605
1654
|
block: c,
|
|
1606
1655
|
registeredComponents: e.registeredComponents,
|
|
@@ -1611,12 +1660,12 @@ function Eo(e, t, n, o, r, i) {
|
|
|
1611
1660
|
_: 1
|
|
1612
1661
|
}, 8, ["Wrapper", "block", "context"]))
|
|
1613
1662
|
], 64))
|
|
1614
|
-
], 64)) :
|
|
1663
|
+
], 64)) : v("", !0);
|
|
1615
1664
|
}
|
|
1616
|
-
const
|
|
1665
|
+
const Jt = /* @__PURE__ */ k(_o, [["render", Jo]]), ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1617
1666
|
__proto__: null,
|
|
1618
|
-
default:
|
|
1619
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1667
|
+
default: Jt
|
|
1668
|
+
}, Symbol.toStringTag, { value: "Module" })), Qo = y({
|
|
1620
1669
|
name: "builder-blocks-wrapper",
|
|
1621
1670
|
props: [
|
|
1622
1671
|
"blocks",
|
|
@@ -1660,7 +1709,7 @@ const Nt = /* @__PURE__ */ v($o, [["render", Eo]]), Hs = /* @__PURE__ */ Object.
|
|
|
1660
1709
|
methods: {
|
|
1661
1710
|
onClick() {
|
|
1662
1711
|
var e, t;
|
|
1663
|
-
|
|
1712
|
+
P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1664
1713
|
{
|
|
1665
1714
|
type: "builder.clickEmptyBlocks",
|
|
1666
1715
|
data: {
|
|
@@ -1673,7 +1722,7 @@ const Nt = /* @__PURE__ */ v($o, [["render", Eo]]), Hs = /* @__PURE__ */ Object.
|
|
|
1673
1722
|
},
|
|
1674
1723
|
onMouseEnter() {
|
|
1675
1724
|
var e, t;
|
|
1676
|
-
|
|
1725
|
+
P() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1677
1726
|
{
|
|
1678
1727
|
type: "builder.hoverEmptyBlocks",
|
|
1679
1728
|
data: {
|
|
@@ -1686,10 +1735,10 @@ const Nt = /* @__PURE__ */ v($o, [["render", Eo]]), Hs = /* @__PURE__ */ Object.
|
|
|
1686
1735
|
}
|
|
1687
1736
|
}
|
|
1688
1737
|
});
|
|
1689
|
-
function
|
|
1690
|
-
return
|
|
1738
|
+
function Yo(e, t, n, o, r, i) {
|
|
1739
|
+
return u(), S(Z(e.BlocksWrapper), R({
|
|
1691
1740
|
ref: "blocksWrapperRef",
|
|
1692
|
-
class: e.className + " component-
|
|
1741
|
+
class: e.className + " component-1zgn626bpbf",
|
|
1693
1742
|
"builder-path": e.dataPath,
|
|
1694
1743
|
"builder-parent-id": e.parent,
|
|
1695
1744
|
style: e.styleProp,
|
|
@@ -1698,14 +1747,14 @@ function Ao(e, t, n, o, r, i) {
|
|
|
1698
1747
|
onKeyPress: (s) => e.onClick()
|
|
1699
1748
|
}, { ...e.BlocksWrapperProps }), {
|
|
1700
1749
|
default: D(() => [
|
|
1701
|
-
|
|
1750
|
+
B(e.$slots, "default", {}, void 0, !0)
|
|
1702
1751
|
]),
|
|
1703
1752
|
_: 3
|
|
1704
1753
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1705
1754
|
}
|
|
1706
|
-
const
|
|
1755
|
+
const Xo = /* @__PURE__ */ k(Qo, [["render", Yo], ["__scopeId", "data-v-bab174f6"]]), Zo = y({
|
|
1707
1756
|
name: "builder-blocks",
|
|
1708
|
-
components: { BlocksWrapper:
|
|
1757
|
+
components: { BlocksWrapper: Xo, Block: Jt },
|
|
1709
1758
|
props: [
|
|
1710
1759
|
"blocks",
|
|
1711
1760
|
"parent",
|
|
@@ -1718,53 +1767,53 @@ const Po = /* @__PURE__ */ v(Ro, [["render", Ao], ["__scopeId", "data-v-82fc93d6
|
|
|
1718
1767
|
"registeredComponents"
|
|
1719
1768
|
],
|
|
1720
1769
|
inject: {
|
|
1721
|
-
builderContext:
|
|
1722
|
-
componentsContext:
|
|
1770
|
+
builderContext: Te.key,
|
|
1771
|
+
componentsContext: ft.key
|
|
1723
1772
|
}
|
|
1724
1773
|
});
|
|
1725
|
-
function
|
|
1726
|
-
var a,
|
|
1727
|
-
const s =
|
|
1728
|
-
return
|
|
1774
|
+
function er(e, t, n, o, r, i) {
|
|
1775
|
+
var a, d, p, b;
|
|
1776
|
+
const s = C("Block"), l = C("BlocksWrapper");
|
|
1777
|
+
return u(), S(l, {
|
|
1729
1778
|
blocks: e.blocks,
|
|
1730
1779
|
parent: e.parent,
|
|
1731
1780
|
path: e.path,
|
|
1732
1781
|
styleProp: e.styleProp,
|
|
1733
|
-
BlocksWrapperProps: e.BlocksWrapperProps || ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || ((
|
|
1782
|
+
BlocksWrapperProps: e.BlocksWrapperProps || ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || ((d = e.builderContext) == null ? void 0 : d.BlocksWrapperProps),
|
|
1734
1783
|
classNameProp: e.className,
|
|
1735
1784
|
BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((b = e.builderContext) == null ? void 0 : b.BlocksWrapper)
|
|
1736
1785
|
}, {
|
|
1737
1786
|
default: D(() => [
|
|
1738
|
-
|
|
1739
|
-
e.blocks ? (
|
|
1787
|
+
B(e.$slots, "default"),
|
|
1788
|
+
e.blocks ? (u(!0), h(w, { key: 0 }, L(e.blocks, (c, m) => {
|
|
1740
1789
|
var f;
|
|
1741
|
-
return
|
|
1790
|
+
return u(), S(s, {
|
|
1742
1791
|
key: c.id,
|
|
1743
1792
|
block: c,
|
|
1744
1793
|
linkComponent: e.linkComponent,
|
|
1745
1794
|
context: e.context || e.builderContext,
|
|
1746
1795
|
registeredComponents: e.registeredComponents || ((f = e.componentsContext) == null ? void 0 : f.registeredComponents)
|
|
1747
1796
|
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]);
|
|
1748
|
-
}), 128)) :
|
|
1797
|
+
}), 128)) : v("", !0)
|
|
1749
1798
|
]),
|
|
1750
1799
|
_: 3
|
|
1751
1800
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
1752
1801
|
}
|
|
1753
|
-
const
|
|
1802
|
+
const z = /* @__PURE__ */ k(Zo, [["render", er]]), tr = y({
|
|
1754
1803
|
name: "dynamic-div",
|
|
1755
1804
|
props: []
|
|
1756
1805
|
});
|
|
1757
|
-
function
|
|
1758
|
-
return
|
|
1759
|
-
|
|
1806
|
+
function nr(e, t, n, o, r, i) {
|
|
1807
|
+
return u(), h("div", null, [
|
|
1808
|
+
B(e.$slots, "default")
|
|
1760
1809
|
]);
|
|
1761
1810
|
}
|
|
1762
|
-
const
|
|
1811
|
+
const oe = /* @__PURE__ */ k(tr, [["render", nr]]), or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1763
1812
|
__proto__: null,
|
|
1764
|
-
default:
|
|
1765
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1813
|
+
default: oe
|
|
1814
|
+
}, Symbol.toStringTag, { value: "Module" })), ge = y({
|
|
1766
1815
|
render() {
|
|
1767
|
-
return
|
|
1816
|
+
return ht("style", {
|
|
1768
1817
|
innerHTML: this.styles,
|
|
1769
1818
|
"data-id": this.id,
|
|
1770
1819
|
nonce: this.nonce
|
|
@@ -1772,7 +1821,7 @@ const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.
|
|
|
1772
1821
|
},
|
|
1773
1822
|
name: "inlined-styles",
|
|
1774
1823
|
props: ["styles", "id", "nonce"]
|
|
1775
|
-
}),
|
|
1824
|
+
}), X = {
|
|
1776
1825
|
xsmall: {
|
|
1777
1826
|
min: 0,
|
|
1778
1827
|
default: 160,
|
|
@@ -1793,8 +1842,21 @@ const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.
|
|
|
1793
1842
|
default: 991,
|
|
1794
1843
|
max: 1200
|
|
1795
1844
|
}
|
|
1796
|
-
},
|
|
1797
|
-
const t =
|
|
1845
|
+
}, ya = (e, t = X) => `@media (max-width: ${t[e].max}px)`, rr = (e) => {
|
|
1846
|
+
const t = {
|
|
1847
|
+
xsmall: {
|
|
1848
|
+
...X.xsmall
|
|
1849
|
+
},
|
|
1850
|
+
small: {
|
|
1851
|
+
...X.small
|
|
1852
|
+
},
|
|
1853
|
+
medium: {
|
|
1854
|
+
...X.medium
|
|
1855
|
+
},
|
|
1856
|
+
large: {
|
|
1857
|
+
...X.large
|
|
1858
|
+
}
|
|
1859
|
+
};
|
|
1798
1860
|
if (!e)
|
|
1799
1861
|
return t;
|
|
1800
1862
|
const {
|
|
@@ -1831,13 +1893,13 @@ const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.
|
|
|
1831
1893
|
min: l,
|
|
1832
1894
|
default: l + 1
|
|
1833
1895
|
}, t;
|
|
1834
|
-
},
|
|
1896
|
+
}, ir = (e) => `builder-columns ${e}-breakpoints`, sr = y({
|
|
1835
1897
|
name: "builder-columns",
|
|
1836
1898
|
components: {
|
|
1837
|
-
InlinedStyles:
|
|
1838
|
-
DynamicRenderer:
|
|
1839
|
-
Blocks:
|
|
1840
|
-
DynamicDiv:
|
|
1899
|
+
InlinedStyles: ge,
|
|
1900
|
+
DynamicRenderer: Ve,
|
|
1901
|
+
Blocks: z,
|
|
1902
|
+
DynamicDiv: oe
|
|
1841
1903
|
},
|
|
1842
1904
|
props: [
|
|
1843
1905
|
"space",
|
|
@@ -1850,7 +1912,7 @@ const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.
|
|
|
1850
1912
|
"builderComponents"
|
|
1851
1913
|
],
|
|
1852
1914
|
data() {
|
|
1853
|
-
return { TARGET: E, getColumnsClass:
|
|
1915
|
+
return { TARGET: E, getColumnsClass: ir };
|
|
1854
1916
|
},
|
|
1855
1917
|
computed: {
|
|
1856
1918
|
gutterSize() {
|
|
@@ -1929,7 +1991,7 @@ const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.
|
|
|
1929
1991
|
},
|
|
1930
1992
|
getWidthForBreakpointSize(e) {
|
|
1931
1993
|
var n, o;
|
|
1932
|
-
return
|
|
1994
|
+
return rr(
|
|
1933
1995
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1934
1996
|
)[e].max;
|
|
1935
1997
|
},
|
|
@@ -1967,32 +2029,32 @@ const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.
|
|
|
1967
2029
|
href: e.link
|
|
1968
2030
|
} : {},
|
|
1969
2031
|
[H()]: "builder-column",
|
|
1970
|
-
style:
|
|
2032
|
+
style: Gt(this.columnCssVars(t))
|
|
1971
2033
|
};
|
|
1972
2034
|
}
|
|
1973
2035
|
}
|
|
1974
2036
|
});
|
|
1975
|
-
function
|
|
1976
|
-
var
|
|
1977
|
-
const s =
|
|
1978
|
-
return
|
|
1979
|
-
class: e.getColumnsClass((
|
|
2037
|
+
function ar(e, t, n, o, r, i) {
|
|
2038
|
+
var d;
|
|
2039
|
+
const s = C("InlinedStyles"), l = C("Blocks"), a = C("DynamicRenderer");
|
|
2040
|
+
return u(), h("div", R({
|
|
2041
|
+
class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-20351ewpue7",
|
|
1980
2042
|
style: e.columnsCssVars()
|
|
1981
2043
|
}, {}), [
|
|
1982
|
-
e.TARGET !== "reactNative" ? (
|
|
2044
|
+
e.TARGET !== "reactNative" ? (u(), S(s, {
|
|
1983
2045
|
key: 0,
|
|
1984
2046
|
id: "builderio-columns",
|
|
1985
2047
|
styles: e.columnsStyles(),
|
|
1986
2048
|
nonce: e.builderContext.nonce
|
|
1987
|
-
}, null, 8, ["styles", "nonce"])) :
|
|
1988
|
-
(
|
|
2049
|
+
}, null, 8, ["styles", "nonce"])) : v("", !0),
|
|
2050
|
+
(u(!0), h(w, null, L(e.columns, (p, b) => (u(), S(a, {
|
|
1989
2051
|
key: b,
|
|
1990
2052
|
TagName: e.getTagName(p),
|
|
1991
2053
|
actionAttributes: {},
|
|
1992
2054
|
attributes: e.getAttributes(p, b)
|
|
1993
2055
|
}, {
|
|
1994
2056
|
default: D(() => [
|
|
1995
|
-
|
|
2057
|
+
$(l, {
|
|
1996
2058
|
path: `columns.${b}.blocks`,
|
|
1997
2059
|
parent: e.builderBlock.id,
|
|
1998
2060
|
context: e.builderContext,
|
|
@@ -2008,47 +2070,47 @@ function Lo(e, t, n, o, r, i) {
|
|
|
2008
2070
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
2009
2071
|
], 16);
|
|
2010
2072
|
}
|
|
2011
|
-
const
|
|
2073
|
+
const lr = /* @__PURE__ */ k(sr, [["render", ar], ["__scopeId", "data-v-b0ce0948"]]), cr = y({
|
|
2012
2074
|
name: "builder-fragment-component",
|
|
2013
2075
|
props: []
|
|
2014
2076
|
});
|
|
2015
|
-
function
|
|
2016
|
-
return
|
|
2017
|
-
|
|
2077
|
+
function dr(e, t, n, o, r, i) {
|
|
2078
|
+
return u(), h("span", null, [
|
|
2079
|
+
B(e.$slots, "default")
|
|
2018
2080
|
]);
|
|
2019
2081
|
}
|
|
2020
|
-
const
|
|
2021
|
-
function
|
|
2082
|
+
const ur = /* @__PURE__ */ k(cr, [["render", dr]]);
|
|
2083
|
+
function st(e) {
|
|
2022
2084
|
return e.replace(/http(s)?:/, "");
|
|
2023
2085
|
}
|
|
2024
|
-
function
|
|
2086
|
+
function pr(e = "", t, n) {
|
|
2025
2087
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
2026
2088
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
2027
2089
|
}
|
|
2028
|
-
function
|
|
2090
|
+
function mr(e, t) {
|
|
2029
2091
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
2030
2092
|
return e;
|
|
2031
2093
|
if (t === "master")
|
|
2032
|
-
return
|
|
2094
|
+
return st(e);
|
|
2033
2095
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
2034
2096
|
if (n) {
|
|
2035
2097
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
2036
|
-
return
|
|
2098
|
+
return st(`${o[0]}_${i}${r}`);
|
|
2037
2099
|
}
|
|
2038
2100
|
return null;
|
|
2039
2101
|
}
|
|
2040
|
-
function
|
|
2102
|
+
function le(e) {
|
|
2041
2103
|
if (!e)
|
|
2042
2104
|
return e;
|
|
2043
2105
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
2044
2106
|
if (e.match(/builder\.io/)) {
|
|
2045
2107
|
let n = e;
|
|
2046
2108
|
const o = Number(e.split("?width=")[1]);
|
|
2047
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
2109
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${pr(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
2048
2110
|
}
|
|
2049
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
2111
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [mr(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
2050
2112
|
}
|
|
2051
|
-
const
|
|
2113
|
+
const hr = y({
|
|
2052
2114
|
name: "builder-image",
|
|
2053
2115
|
props: [
|
|
2054
2116
|
"lazy",
|
|
@@ -2078,10 +2140,10 @@ const qo = y({
|
|
|
2078
2140
|
if (!this.noWebp) {
|
|
2079
2141
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
2080
2142
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
2081
|
-
return console.debug("Removed given srcset"),
|
|
2143
|
+
return console.debug("Removed given srcset"), le(t);
|
|
2082
2144
|
} else if (this.image && !this.srcset)
|
|
2083
|
-
return
|
|
2084
|
-
return
|
|
2145
|
+
return le(t);
|
|
2146
|
+
return le(t);
|
|
2085
2147
|
}
|
|
2086
2148
|
},
|
|
2087
2149
|
webpSrcSet() {
|
|
@@ -2102,20 +2164,20 @@ const qo = y({
|
|
|
2102
2164
|
return this.aspectRatio ? e : void 0;
|
|
2103
2165
|
}
|
|
2104
2166
|
}
|
|
2105
|
-
}),
|
|
2167
|
+
}), fr = ["srcset", "sizes"], br = ["loading", "fetchpriority", "alt", "title", "src", "srcset", "sizes"], gr = {
|
|
2106
2168
|
key: 2,
|
|
2107
|
-
class: "div-
|
|
2169
|
+
class: "div-1ifnufbde19-2"
|
|
2108
2170
|
};
|
|
2109
|
-
function
|
|
2110
|
-
var s, l, a,
|
|
2111
|
-
return
|
|
2171
|
+
function yr(e, t, n, o, r, i) {
|
|
2172
|
+
var s, l, a, d, p, b;
|
|
2173
|
+
return u(), h(w, null, [
|
|
2112
2174
|
G("picture", null, [
|
|
2113
|
-
e.webpSrcSet ? (
|
|
2175
|
+
e.webpSrcSet ? (u(), h("source", {
|
|
2114
2176
|
key: 0,
|
|
2115
2177
|
type: "image/webp",
|
|
2116
2178
|
srcset: e.webpSrcSet,
|
|
2117
2179
|
sizes: e.sizesToUse
|
|
2118
|
-
}, null, 8,
|
|
2180
|
+
}, null, 8, fr)) : v("", !0),
|
|
2119
2181
|
G("img", {
|
|
2120
2182
|
loading: e.highPriority ? "eager" : "lazy",
|
|
2121
2183
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
@@ -2126,36 +2188,36 @@ function Qo(e, t, n, o, r, i) {
|
|
|
2126
2188
|
objectFit: e.backgroundSize || "cover",
|
|
2127
2189
|
...e.aspectRatioCss
|
|
2128
2190
|
}),
|
|
2129
|
-
class:
|
|
2130
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
2191
|
+
class: te(
|
|
2192
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-1ifnufbde19"
|
|
2131
2193
|
),
|
|
2132
2194
|
src: e.image,
|
|
2133
2195
|
srcset: e.srcSetToUse,
|
|
2134
2196
|
sizes: e.sizesToUse
|
|
2135
|
-
}, null, 14,
|
|
2197
|
+
}, null, 14, br)
|
|
2136
2198
|
]),
|
|
2137
|
-
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (
|
|
2199
|
+
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (u(), h("div", {
|
|
2138
2200
|
key: 0,
|
|
2139
|
-
class: "builder-image-sizer div-
|
|
2201
|
+
class: "builder-image-sizer div-1ifnufbde19",
|
|
2140
2202
|
style: M({
|
|
2141
2203
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
2142
2204
|
})
|
|
2143
|
-
}, null, 4)) :
|
|
2144
|
-
(
|
|
2145
|
-
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (
|
|
2146
|
-
|
|
2147
|
-
])) :
|
|
2205
|
+
}, null, 4)) : v("", !0),
|
|
2206
|
+
(d = (a = e.builderBlock) == null ? void 0 : a.children) != null && d.length && e.fitContent ? B(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
|
|
2207
|
+
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (u(), h("div", gr, [
|
|
2208
|
+
B(e.$slots, "default", {}, void 0, !0)
|
|
2209
|
+
])) : v("", !0)
|
|
2148
2210
|
], 64);
|
|
2149
2211
|
}
|
|
2150
|
-
const
|
|
2212
|
+
const Sr = /* @__PURE__ */ k(hr, [["render", yr], ["__scopeId", "data-v-a28af777"]]), vr = y({
|
|
2151
2213
|
name: "builder-section-component",
|
|
2152
2214
|
props: ["attributes", "maxWidth"],
|
|
2153
2215
|
data() {
|
|
2154
|
-
return { filterAttrs:
|
|
2216
|
+
return { filterAttrs: N };
|
|
2155
2217
|
}
|
|
2156
2218
|
});
|
|
2157
|
-
function
|
|
2158
|
-
return
|
|
2219
|
+
function kr(e, t, n, o, r, i) {
|
|
2220
|
+
return u(), h("section", R({
|
|
2159
2221
|
style: {
|
|
2160
2222
|
width: "100%",
|
|
2161
2223
|
alignSelf: "stretch",
|
|
@@ -2169,34 +2231,34 @@ function Zo(e, t, n, o, r, i) {
|
|
|
2169
2231
|
marginRight: "auto"
|
|
2170
2232
|
}
|
|
2171
2233
|
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
2172
|
-
|
|
2234
|
+
B(e.$slots, "default")
|
|
2173
2235
|
], 16);
|
|
2174
2236
|
}
|
|
2175
|
-
const
|
|
2176
|
-
function
|
|
2177
|
-
function r(
|
|
2178
|
-
return typeof
|
|
2237
|
+
const Cr = /* @__PURE__ */ k(vr, [["render", kr]]);
|
|
2238
|
+
function Tr(e, t, n, o) {
|
|
2239
|
+
function r(d) {
|
|
2240
|
+
return typeof d == "string";
|
|
2179
2241
|
}
|
|
2180
|
-
function i(
|
|
2181
|
-
return typeof
|
|
2242
|
+
function i(d) {
|
|
2243
|
+
return typeof d == "number";
|
|
2182
2244
|
}
|
|
2183
|
-
function s(
|
|
2245
|
+
function s(d, p) {
|
|
2184
2246
|
return (() => {
|
|
2185
2247
|
const c = p.property, m = p.operator;
|
|
2186
2248
|
let f = p.value;
|
|
2187
2249
|
if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (f = p.value.slice(0, -1)), !(c && m))
|
|
2188
2250
|
return !0;
|
|
2189
2251
|
if (Array.isArray(f))
|
|
2190
|
-
return m === "isNot" ? f.every((
|
|
2252
|
+
return m === "isNot" ? f.every((A) => s(d, {
|
|
2191
2253
|
property: c,
|
|
2192
2254
|
operator: m,
|
|
2193
|
-
value:
|
|
2194
|
-
})) : !!f.find((
|
|
2255
|
+
value: A
|
|
2256
|
+
})) : !!f.find((A) => s(d, {
|
|
2195
2257
|
property: c,
|
|
2196
2258
|
operator: m,
|
|
2197
|
-
value:
|
|
2259
|
+
value: A
|
|
2198
2260
|
}));
|
|
2199
|
-
const g =
|
|
2261
|
+
const g = d[c];
|
|
2200
2262
|
if (Array.isArray(g))
|
|
2201
2263
|
return g.includes(f);
|
|
2202
2264
|
switch (m) {
|
|
@@ -2228,9 +2290,9 @@ function tr(e, t, n, o) {
|
|
|
2228
2290
|
startDate: n,
|
|
2229
2291
|
endDate: o
|
|
2230
2292
|
}, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2231
|
-
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((
|
|
2293
|
+
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((d) => s(e, d));
|
|
2232
2294
|
}
|
|
2233
|
-
const
|
|
2295
|
+
const Ir = `function getStudioUserAttributes() {
|
|
2234
2296
|
const params = new URLSearchParams(window.location.search);
|
|
2235
2297
|
if (params.get('builder.preview') !== 'BUILDER_STUDIO') {
|
|
2236
2298
|
return {};
|
|
@@ -2243,7 +2305,7 @@ const nr = `function getStudioUserAttributes() {
|
|
|
2243
2305
|
}
|
|
2244
2306
|
});
|
|
2245
2307
|
return attributes;
|
|
2246
|
-
}`,
|
|
2308
|
+
}`, wr = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
2247
2309
|
if (!navigator.cookieEnabled) {
|
|
2248
2310
|
return;
|
|
2249
2311
|
}
|
|
@@ -2289,7 +2351,7 @@ const nr = `function getStudioUserAttributes() {
|
|
|
2289
2351
|
thisScript.remove();
|
|
2290
2352
|
}
|
|
2291
2353
|
}
|
|
2292
|
-
}`,
|
|
2354
|
+
}`, Er = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2293
2355
|
function isString(val) {
|
|
2294
2356
|
return typeof val === 'string';
|
|
2295
2357
|
}
|
|
@@ -2367,7 +2429,7 @@ const nr = `function getStudioUserAttributes() {
|
|
|
2367
2429
|
return item.query.every(filter => {
|
|
2368
2430
|
return objectMatchesQuery(userAttributes, filter);
|
|
2369
2431
|
});
|
|
2370
|
-
}`,
|
|
2432
|
+
}`, Rr = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
2371
2433
|
function getCookie(name) {
|
|
2372
2434
|
const nameEQ = name + '=';
|
|
2373
2435
|
const ca = document.cookie.split(';');
|
|
@@ -2406,11 +2468,11 @@ const nr = `function getStudioUserAttributes() {
|
|
|
2406
2468
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2407
2469
|
}
|
|
2408
2470
|
}
|
|
2409
|
-
}`,
|
|
2410
|
-
function
|
|
2411
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
2471
|
+
}`, ce = "default", at = "filterWithCustomTargeting", Ee = "builderIoPersonalization", Re = "updateVisibilityStylesScript", lt = "builderIoStudioUserAttributes", $r = "PersonalizationContainer", Fe = ["react", "vue", "svelte", "qwik"], Qt = ["vue", "svelte", "qwik"];
|
|
2472
|
+
function Pr(e, t) {
|
|
2473
|
+
return !(e && e.length > 0) || !t ? !1 : Qt.includes(E) ? !0 : !I();
|
|
2412
2474
|
}
|
|
2413
|
-
function
|
|
2475
|
+
function Ar({
|
|
2414
2476
|
variants: e,
|
|
2415
2477
|
previewingIndex: t,
|
|
2416
2478
|
isHydrated: n,
|
|
@@ -2420,9 +2482,9 @@ function lr({
|
|
|
2420
2482
|
const i = {
|
|
2421
2483
|
blocks: r ?? [],
|
|
2422
2484
|
path: "this.children",
|
|
2423
|
-
index:
|
|
2485
|
+
index: ce
|
|
2424
2486
|
};
|
|
2425
|
-
if (n &&
|
|
2487
|
+
if (n && P()) {
|
|
2426
2488
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
2427
2489
|
const s = e == null ? void 0 : e[t];
|
|
2428
2490
|
if (s)
|
|
@@ -2434,7 +2496,7 @@ function lr({
|
|
|
2434
2496
|
}
|
|
2435
2497
|
return i;
|
|
2436
2498
|
}
|
|
2437
|
-
if (
|
|
2499
|
+
if (I()) {
|
|
2438
2500
|
const s = o == null ? void 0 : o[0];
|
|
2439
2501
|
if (s && e) {
|
|
2440
2502
|
const l = e.indexOf(s);
|
|
@@ -2448,25 +2510,28 @@ function lr({
|
|
|
2448
2510
|
}
|
|
2449
2511
|
return i;
|
|
2450
2512
|
}
|
|
2451
|
-
const
|
|
2513
|
+
const $e = (e) => {
|
|
2452
2514
|
var t;
|
|
2453
|
-
return Array.isArray(e) ? e.some(
|
|
2454
|
-
},
|
|
2515
|
+
return Array.isArray(e) ? e.some($e) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === $r ? !0 : Object.values(e).some($e);
|
|
2516
|
+
}, Br = (e) => $e(e), Yt = () => `
|
|
2455
2517
|
(function() {
|
|
2456
|
-
if (!window.${
|
|
2457
|
-
window.${
|
|
2518
|
+
if (!window.${lt}) {
|
|
2519
|
+
window.${lt} = ${Ir};
|
|
2458
2520
|
}
|
|
2459
|
-
if (!window.${
|
|
2460
|
-
window.${
|
|
2521
|
+
if (!window.${at}) {
|
|
2522
|
+
window.${at} = ${Er};
|
|
2461
2523
|
}
|
|
2462
|
-
if (!window.${
|
|
2463
|
-
window.${
|
|
2524
|
+
if (!window.${Ee}) {
|
|
2525
|
+
window.${Ee} = ${wr};
|
|
2464
2526
|
}
|
|
2465
|
-
if (!window.${
|
|
2466
|
-
window.${
|
|
2527
|
+
if (!window.${Re}) {
|
|
2528
|
+
window.${Re} = ${Rr};
|
|
2467
2529
|
}
|
|
2468
2530
|
})();
|
|
2469
|
-
`,
|
|
2531
|
+
`, Xt = E === "react", Vr = (e, t, n) => `window.${Ee}(${JSON.stringify(e)}, "${t}", ${Xt}${n ? `, "${n}"` : ""})`, Or = (e, t, n) => `window.${Re}(${JSON.stringify(e)}, "${t}", ${Xt}${n ? `, "${n}"` : ""})`, Nr = Symbol(), Pe = {
|
|
2532
|
+
BuilderScripts: { scriptsEmitted: !1 },
|
|
2533
|
+
key: Nr
|
|
2534
|
+
}, Se = {
|
|
2470
2535
|
"@type": "@builder.io/sdk:Element",
|
|
2471
2536
|
layerName: "Accordion item title",
|
|
2472
2537
|
responsiveStyles: {
|
|
@@ -2495,7 +2560,7 @@ const Ie = (e) => {
|
|
|
2495
2560
|
}
|
|
2496
2561
|
}
|
|
2497
2562
|
}]
|
|
2498
|
-
},
|
|
2563
|
+
}, ve = {
|
|
2499
2564
|
"@type": "@builder.io/sdk:Element",
|
|
2500
2565
|
layerName: "Accordion item detail",
|
|
2501
2566
|
responsiveStyles: {
|
|
@@ -2526,7 +2591,7 @@ const Ie = (e) => {
|
|
|
2526
2591
|
}
|
|
2527
2592
|
}
|
|
2528
2593
|
}]
|
|
2529
|
-
},
|
|
2594
|
+
}, Wr = {
|
|
2530
2595
|
name: "Builder:Accordion",
|
|
2531
2596
|
canHaveChildren: !0,
|
|
2532
2597
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2543,19 +2608,19 @@ const Ie = (e) => {
|
|
|
2543
2608
|
name: "title",
|
|
2544
2609
|
type: "uiBlocks",
|
|
2545
2610
|
hideFromUI: !0,
|
|
2546
|
-
defaultValue: [
|
|
2611
|
+
defaultValue: [Se]
|
|
2547
2612
|
}, {
|
|
2548
2613
|
name: "detail",
|
|
2549
2614
|
type: "uiBlocks",
|
|
2550
2615
|
hideFromUI: !0,
|
|
2551
|
-
defaultValue: [
|
|
2616
|
+
defaultValue: [ve]
|
|
2552
2617
|
}],
|
|
2553
2618
|
defaultValue: [{
|
|
2554
|
-
title: [
|
|
2555
|
-
detail: [
|
|
2619
|
+
title: [Se],
|
|
2620
|
+
detail: [ve]
|
|
2556
2621
|
}, {
|
|
2557
|
-
title: [
|
|
2558
|
-
detail: [
|
|
2622
|
+
title: [Se],
|
|
2623
|
+
detail: [ve]
|
|
2559
2624
|
}],
|
|
2560
2625
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2561
2626
|
}, {
|
|
@@ -2590,9 +2655,9 @@ const Ie = (e) => {
|
|
|
2590
2655
|
builderComponents: !0,
|
|
2591
2656
|
builderLinkComponent: !0
|
|
2592
2657
|
}
|
|
2593
|
-
},
|
|
2658
|
+
}, Dr = (e) => e.toString(), Ur = y({
|
|
2594
2659
|
name: "builder-accordion",
|
|
2595
|
-
components: { Blocks:
|
|
2660
|
+
components: { Blocks: z },
|
|
2596
2661
|
props: [
|
|
2597
2662
|
"grid",
|
|
2598
2663
|
"oneAtATime",
|
|
@@ -2604,7 +2669,7 @@ const Ie = (e) => {
|
|
|
2604
2669
|
"builderLinkComponent"
|
|
2605
2670
|
],
|
|
2606
2671
|
data() {
|
|
2607
|
-
return { open: [], convertOrderNumberToString:
|
|
2672
|
+
return { open: [], convertOrderNumberToString: Dr };
|
|
2608
2673
|
},
|
|
2609
2674
|
computed: {
|
|
2610
2675
|
onlyOneAtATime() {
|
|
@@ -2685,16 +2750,16 @@ const Ie = (e) => {
|
|
|
2685
2750
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2686
2751
|
}
|
|
2687
2752
|
}
|
|
2688
|
-
}),
|
|
2689
|
-
function
|
|
2690
|
-
const s =
|
|
2691
|
-
return
|
|
2753
|
+
}), xr = ["data-index", "onClick"];
|
|
2754
|
+
function Lr(e, t, n, o, r, i) {
|
|
2755
|
+
const s = C("Blocks");
|
|
2756
|
+
return u(), h("div", {
|
|
2692
2757
|
class: "builder-accordion",
|
|
2693
2758
|
style: M(e.accordionStyles)
|
|
2694
2759
|
}, [
|
|
2695
|
-
(
|
|
2760
|
+
(u(!0), h(w, null, L(e.items, (l, a) => (u(), h(w, { key: a }, [
|
|
2696
2761
|
G("div", {
|
|
2697
|
-
class:
|
|
2762
|
+
class: te(e.getAccordionTitleClassName(a)),
|
|
2698
2763
|
style: M({
|
|
2699
2764
|
...e.accordionTitleStyles,
|
|
2700
2765
|
...e.grid && {
|
|
@@ -2703,9 +2768,9 @@ function gr(e, t, n, o, r, i) {
|
|
|
2703
2768
|
}
|
|
2704
2769
|
}),
|
|
2705
2770
|
"data-index": a,
|
|
2706
|
-
onClick: async (
|
|
2771
|
+
onClick: async (d) => e.onClick(a)
|
|
2707
2772
|
}, [
|
|
2708
|
-
|
|
2773
|
+
$(s, {
|
|
2709
2774
|
blocks: l.title,
|
|
2710
2775
|
path: `items.${a}.title`,
|
|
2711
2776
|
parent: e.builderBlock.id,
|
|
@@ -2713,13 +2778,13 @@ function gr(e, t, n, o, r, i) {
|
|
|
2713
2778
|
registeredComponents: e.builderComponents,
|
|
2714
2779
|
linkComponent: e.builderLinkComponent
|
|
2715
2780
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2716
|
-
], 14,
|
|
2717
|
-
e.open.includes(a) ? (
|
|
2781
|
+
], 14, xr),
|
|
2782
|
+
e.open.includes(a) ? (u(), h("div", {
|
|
2718
2783
|
key: 0,
|
|
2719
|
-
class:
|
|
2784
|
+
class: te(e.getAccordionDetailClassName(a)),
|
|
2720
2785
|
style: M(e.accordionDetailStyles)
|
|
2721
2786
|
}, [
|
|
2722
|
-
|
|
2787
|
+
$(s, {
|
|
2723
2788
|
blocks: l.detail,
|
|
2724
2789
|
path: `items.${a}.detail`,
|
|
2725
2790
|
parent: e.builderBlock.id,
|
|
@@ -2727,11 +2792,11 @@ function gr(e, t, n, o, r, i) {
|
|
|
2727
2792
|
registeredComponents: e.builderComponents,
|
|
2728
2793
|
linkComponent: e.builderLinkComponent
|
|
2729
2794
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2730
|
-
], 6)) :
|
|
2795
|
+
], 6)) : v("", !0)
|
|
2731
2796
|
], 64))), 128))
|
|
2732
2797
|
], 4);
|
|
2733
2798
|
}
|
|
2734
|
-
const
|
|
2799
|
+
const Fr = /* @__PURE__ */ k(Ur, [["render", Lr]]), Mr = {
|
|
2735
2800
|
name: "Core:Button",
|
|
2736
2801
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2737
2802
|
defaultStyles: {
|
|
@@ -2767,7 +2832,7 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
2767
2832
|
shouldReceiveBuilderProps: {
|
|
2768
2833
|
builderLinkComponent: !0
|
|
2769
2834
|
}
|
|
2770
|
-
},
|
|
2835
|
+
}, Hr = {
|
|
2771
2836
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2772
2837
|
name: "Columns",
|
|
2773
2838
|
isRSC: !0,
|
|
@@ -2974,13 +3039,13 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
2974
3039
|
builderComponents: !0,
|
|
2975
3040
|
builderLinkComponent: !0
|
|
2976
3041
|
}
|
|
2977
|
-
},
|
|
3042
|
+
}, jr = {
|
|
2978
3043
|
name: "Fragment",
|
|
2979
3044
|
static: !0,
|
|
2980
3045
|
hidden: !0,
|
|
2981
3046
|
canHaveChildren: !0,
|
|
2982
3047
|
noWrap: !0
|
|
2983
|
-
},
|
|
3048
|
+
}, Me = ["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"], Kr = ["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"], zr = {
|
|
2984
3049
|
name: "Image",
|
|
2985
3050
|
static: !0,
|
|
2986
3051
|
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",
|
|
@@ -2995,21 +3060,21 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
2995
3060
|
name: "image",
|
|
2996
3061
|
type: "file",
|
|
2997
3062
|
bubble: !0,
|
|
2998
|
-
allowedFileTypes:
|
|
3063
|
+
allowedFileTypes: Me,
|
|
2999
3064
|
required: !0,
|
|
3000
3065
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
3001
3066
|
onChange: (e) => {
|
|
3002
3067
|
e.delete("srcset"), e.delete("noWebp");
|
|
3003
3068
|
function n(s, l = 6e4) {
|
|
3004
|
-
return new Promise((a,
|
|
3069
|
+
return new Promise((a, d) => {
|
|
3005
3070
|
const p = document.createElement("img");
|
|
3006
3071
|
let b = !1;
|
|
3007
3072
|
p.onload = () => {
|
|
3008
3073
|
b = !0, a(p);
|
|
3009
3074
|
}, p.addEventListener("error", (c) => {
|
|
3010
|
-
console.warn("Image load failed", c.error),
|
|
3075
|
+
console.warn("Image load failed", c.error), d(c.error);
|
|
3011
3076
|
}), p.src = s, setTimeout(() => {
|
|
3012
|
-
b ||
|
|
3077
|
+
b || d(new Error("Image load timed out"));
|
|
3013
3078
|
}, l);
|
|
3014
3079
|
});
|
|
3015
3080
|
}
|
|
@@ -3093,7 +3158,7 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3093
3158
|
shouldReceiveBuilderProps: {
|
|
3094
3159
|
builderBlock: !0
|
|
3095
3160
|
}
|
|
3096
|
-
},
|
|
3161
|
+
}, qr = {
|
|
3097
3162
|
name: "PersonalizationContainer",
|
|
3098
3163
|
shouldReceiveBuilderProps: {
|
|
3099
3164
|
builderBlock: !0,
|
|
@@ -3129,9 +3194,9 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3129
3194
|
defaultValue: []
|
|
3130
3195
|
}]
|
|
3131
3196
|
}]
|
|
3132
|
-
},
|
|
3197
|
+
}, ye = y({
|
|
3133
3198
|
render() {
|
|
3134
|
-
return
|
|
3199
|
+
return ht("script", {
|
|
3135
3200
|
innerHTML: this.scriptStr,
|
|
3136
3201
|
"data-id": this.id,
|
|
3137
3202
|
nonce: this.nonce
|
|
@@ -3139,12 +3204,12 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3139
3204
|
},
|
|
3140
3205
|
name: "inlined-script",
|
|
3141
3206
|
props: ["scriptStr", "id", "nonce"]
|
|
3142
|
-
}),
|
|
3207
|
+
}), Gr = y({
|
|
3143
3208
|
name: "builder-personalization-container",
|
|
3144
3209
|
components: {
|
|
3145
|
-
Blocks:
|
|
3146
|
-
InlinedStyles:
|
|
3147
|
-
InlinedScript:
|
|
3210
|
+
Blocks: z,
|
|
3211
|
+
InlinedStyles: ge,
|
|
3212
|
+
InlinedScript: ye
|
|
3148
3213
|
},
|
|
3149
3214
|
props: [
|
|
3150
3215
|
"builderContext",
|
|
@@ -3157,32 +3222,32 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3157
3222
|
data() {
|
|
3158
3223
|
var e, t, n, o, r, i, s;
|
|
3159
3224
|
return {
|
|
3160
|
-
userAttributes:
|
|
3161
|
-
scriptStr:
|
|
3225
|
+
userAttributes: pe.getUserAttributes(),
|
|
3226
|
+
scriptStr: Vr(
|
|
3162
3227
|
this.variants,
|
|
3163
3228
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
3164
3229
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
3165
3230
|
),
|
|
3166
|
-
updateVisibilityStylesScript:
|
|
3231
|
+
updateVisibilityStylesScript: Or(
|
|
3167
3232
|
this.variants,
|
|
3168
3233
|
((o = this.builderBlock) == null ? void 0 : o.id) || "none",
|
|
3169
3234
|
(i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
|
|
3170
3235
|
),
|
|
3171
3236
|
unsubscribers: [],
|
|
3172
|
-
shouldRenderVariants:
|
|
3237
|
+
shouldRenderVariants: Pr(
|
|
3173
3238
|
this.variants,
|
|
3174
|
-
|
|
3239
|
+
_((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
3175
3240
|
),
|
|
3176
3241
|
shouldResetVariants: !1,
|
|
3177
3242
|
TARGET: E,
|
|
3178
|
-
DEFAULT_INDEX:
|
|
3179
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
3243
|
+
DEFAULT_INDEX: ce,
|
|
3244
|
+
SDKS_REQUIRING_RESET_APPROACH: Qt
|
|
3180
3245
|
};
|
|
3181
3246
|
},
|
|
3182
3247
|
mounted() {
|
|
3183
3248
|
var t;
|
|
3184
3249
|
this.shouldResetVariants = !0;
|
|
3185
|
-
const e =
|
|
3250
|
+
const e = pe.subscribeOnUserAttributesChange(
|
|
3186
3251
|
(n) => {
|
|
3187
3252
|
this.userAttributes = n;
|
|
3188
3253
|
},
|
|
@@ -3190,12 +3255,12 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3190
3255
|
fireImmediately: E === "qwik"
|
|
3191
3256
|
}
|
|
3192
3257
|
);
|
|
3193
|
-
if (!(
|
|
3258
|
+
if (!(P() || be())) {
|
|
3194
3259
|
const n = this.filteredVariants[0];
|
|
3195
3260
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
3196
3261
|
new CustomEvent("builder.variantLoaded", {
|
|
3197
3262
|
detail: {
|
|
3198
|
-
variant: n ||
|
|
3263
|
+
variant: n || ce,
|
|
3199
3264
|
content: (t = this.builderContext) == null ? void 0 : t.content
|
|
3200
3265
|
},
|
|
3201
3266
|
bubbles: !0
|
|
@@ -3206,7 +3271,7 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3206
3271
|
i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
|
|
3207
3272
|
new CustomEvent("builder.variantDisplayed", {
|
|
3208
3273
|
detail: {
|
|
3209
|
-
variant: n ||
|
|
3274
|
+
variant: n || ce,
|
|
3210
3275
|
content: (s = this.builderContext) == null ? void 0 : s.content
|
|
3211
3276
|
},
|
|
3212
3277
|
bubbles: !0
|
|
@@ -3223,15 +3288,15 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3223
3288
|
computed: {
|
|
3224
3289
|
attrs() {
|
|
3225
3290
|
return {
|
|
3226
|
-
...
|
|
3227
|
-
...
|
|
3291
|
+
...N(this.attributes, "v-on:", !1),
|
|
3292
|
+
...N(this.attributes, "v-on:", !0),
|
|
3228
3293
|
[H()]: `builder-personalization-container ${this.attributes[H()] || ""}`
|
|
3229
3294
|
};
|
|
3230
3295
|
},
|
|
3231
3296
|
filteredVariants() {
|
|
3232
3297
|
return (this.variants || []).filter((e) => {
|
|
3233
3298
|
var t, n, o, r;
|
|
3234
|
-
return
|
|
3299
|
+
return Tr(
|
|
3235
3300
|
{
|
|
3236
3301
|
...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
|
|
3237
3302
|
locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
|
|
@@ -3246,7 +3311,7 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3246
3311
|
},
|
|
3247
3312
|
blocksToRender() {
|
|
3248
3313
|
var e;
|
|
3249
|
-
return
|
|
3314
|
+
return Ar({
|
|
3250
3315
|
variants: this.variants,
|
|
3251
3316
|
fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
|
|
3252
3317
|
isHydrated: this.shouldResetVariants,
|
|
@@ -3264,14 +3329,14 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3264
3329
|
}
|
|
3265
3330
|
}
|
|
3266
3331
|
});
|
|
3267
|
-
function
|
|
3268
|
-
var
|
|
3269
|
-
const s =
|
|
3270
|
-
return
|
|
3271
|
-
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (
|
|
3332
|
+
function _r(e, t, n, o, r, i) {
|
|
3333
|
+
var d, p, b, c, m, f, g, A, U, O;
|
|
3334
|
+
const s = C("Blocks"), l = C("InlinedStyles"), a = C("InlinedScript");
|
|
3335
|
+
return u(), h("div", R({ ref: "rootRef" }, e.attrs), [
|
|
3336
|
+
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), S(s, {
|
|
3272
3337
|
key: 0,
|
|
3273
3338
|
blocks: e.blocksToRender.blocks,
|
|
3274
|
-
parent: (
|
|
3339
|
+
parent: (d = e.builderBlock) == null ? void 0 : d.id,
|
|
3275
3340
|
path: e.blocksToRender.path,
|
|
3276
3341
|
context: e.builderContext,
|
|
3277
3342
|
registeredComponents: e.builderComponents,
|
|
@@ -3279,77 +3344,77 @@ function $r(e, t, n, o, r, i) {
|
|
|
3279
3344
|
...(p = e.builderContext) == null ? void 0 : p.BlocksWrapperProps,
|
|
3280
3345
|
"data-variant-id": `${(b = e.builderBlock) == null ? void 0 : b.id}-${e.blocksToRender.index}`
|
|
3281
3346
|
}
|
|
3282
|
-
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) :
|
|
3283
|
-
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (
|
|
3284
|
-
e.shouldRenderVariants ? (
|
|
3285
|
-
|
|
3347
|
+
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : v("", !0),
|
|
3348
|
+
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), h(w, { key: 1 }, [
|
|
3349
|
+
e.shouldRenderVariants ? (u(), h(w, { key: 0 }, [
|
|
3350
|
+
$(l, {
|
|
3286
3351
|
nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
|
|
3287
3352
|
styles: e.hideVariantsStyleString,
|
|
3288
3353
|
id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
|
|
3289
3354
|
}, null, 8, ["nonce", "styles", "id"]),
|
|
3290
|
-
|
|
3355
|
+
$(a, {
|
|
3291
3356
|
nonce: ((f = e.builderContext) == null ? void 0 : f.nonce) || "",
|
|
3292
3357
|
scriptStr: e.updateVisibilityStylesScript,
|
|
3293
3358
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
3294
3359
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
3295
|
-
(
|
|
3296
|
-
var
|
|
3297
|
-
return
|
|
3298
|
-
key: `${(
|
|
3360
|
+
(u(!0), h(w, null, L(e.variants, (q, T) => {
|
|
3361
|
+
var K, J, Q, W;
|
|
3362
|
+
return u(), S(s, {
|
|
3363
|
+
key: `${(K = e.builderBlock) == null ? void 0 : K.id}-${T}`,
|
|
3299
3364
|
BlocksWrapperProps: {
|
|
3300
|
-
...(
|
|
3365
|
+
...(J = e.builderContext) == null ? void 0 : J.BlocksWrapperProps,
|
|
3301
3366
|
"aria-hidden": !0,
|
|
3302
3367
|
hidden: !0,
|
|
3303
|
-
"data-variant-id": `${(Q = e.builderBlock) == null ? void 0 : Q.id}-${
|
|
3368
|
+
"data-variant-id": `${(Q = e.builderBlock) == null ? void 0 : Q.id}-${T}`
|
|
3304
3369
|
},
|
|
3305
3370
|
blocks: q.blocks,
|
|
3306
3371
|
parent: (W = e.builderBlock) == null ? void 0 : W.id,
|
|
3307
|
-
path: `component.options.variants.${
|
|
3372
|
+
path: `component.options.variants.${T}.blocks`,
|
|
3308
3373
|
context: e.builderContext,
|
|
3309
3374
|
registeredComponents: e.builderComponents
|
|
3310
3375
|
}, {
|
|
3311
3376
|
default: D(() => {
|
|
3312
|
-
var F,
|
|
3377
|
+
var F, je;
|
|
3313
3378
|
return [
|
|
3314
|
-
|
|
3379
|
+
$(a, {
|
|
3315
3380
|
nonce: ((F = e.builderContext) == null ? void 0 : F.nonce) || "",
|
|
3316
3381
|
scriptStr: e.scriptStr,
|
|
3317
|
-
id: `variants-script-${(
|
|
3382
|
+
id: `variants-script-${(je = e.builderBlock) == null ? void 0 : je.id}-${T}`
|
|
3318
3383
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
3319
3384
|
];
|
|
3320
3385
|
}),
|
|
3321
3386
|
_: 2
|
|
3322
3387
|
}, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
|
|
3323
3388
|
}), 128))
|
|
3324
|
-
], 64)) :
|
|
3325
|
-
|
|
3389
|
+
], 64)) : v("", !0),
|
|
3390
|
+
$(s, {
|
|
3326
3391
|
blocks: e.blocksToRender.blocks,
|
|
3327
|
-
parent: (
|
|
3392
|
+
parent: (A = e.builderBlock) == null ? void 0 : A.id,
|
|
3328
3393
|
path: e.blocksToRender.path,
|
|
3329
3394
|
context: e.builderContext,
|
|
3330
3395
|
registeredComponents: e.builderComponents,
|
|
3331
3396
|
BlocksWrapperProps: {
|
|
3332
3397
|
...(U = e.builderContext) == null ? void 0 : U.BlocksWrapperProps,
|
|
3333
|
-
"data-variant-id": `${(
|
|
3398
|
+
"data-variant-id": `${(O = e.builderBlock) == null ? void 0 : O.id}-${e.blocksToRender.index}`
|
|
3334
3399
|
}
|
|
3335
3400
|
}, {
|
|
3336
3401
|
default: D(() => {
|
|
3337
|
-
var q,
|
|
3402
|
+
var q, T;
|
|
3338
3403
|
return [
|
|
3339
|
-
e.shouldRenderVariants ? (
|
|
3404
|
+
e.shouldRenderVariants ? (u(), S(a, {
|
|
3340
3405
|
key: 0,
|
|
3341
3406
|
nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
|
|
3342
3407
|
scriptStr: e.scriptStr,
|
|
3343
|
-
id: `variants-script-${(
|
|
3344
|
-
}, null, 8, ["nonce", "scriptStr", "id"])) :
|
|
3408
|
+
id: `variants-script-${(T = e.builderBlock) == null ? void 0 : T.id}-${e.DEFAULT_INDEX}`
|
|
3409
|
+
}, null, 8, ["nonce", "scriptStr", "id"])) : v("", !0)
|
|
3345
3410
|
];
|
|
3346
3411
|
}),
|
|
3347
3412
|
_: 1
|
|
3348
3413
|
}, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])
|
|
3349
|
-
], 64)) :
|
|
3414
|
+
], 64)) : v("", !0)
|
|
3350
3415
|
], 16);
|
|
3351
3416
|
}
|
|
3352
|
-
const
|
|
3417
|
+
const Jr = /* @__PURE__ */ k(Gr, [["render", _r]]), Qr = {
|
|
3353
3418
|
name: "Core:Section",
|
|
3354
3419
|
static: !0,
|
|
3355
3420
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3388,7 +3453,7 @@ const Er = /* @__PURE__ */ v(Ir, [["render", $r]]), Rr = {
|
|
|
3388
3453
|
}
|
|
3389
3454
|
}
|
|
3390
3455
|
}]
|
|
3391
|
-
},
|
|
3456
|
+
}, Yr = {
|
|
3392
3457
|
name: "Slot",
|
|
3393
3458
|
isRSC: !0,
|
|
3394
3459
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3405,15 +3470,15 @@ const Er = /* @__PURE__ */ v(Ir, [["render", $r]]), Rr = {
|
|
|
3405
3470
|
builderContext: !0,
|
|
3406
3471
|
builderComponents: !0
|
|
3407
3472
|
}
|
|
3408
|
-
},
|
|
3473
|
+
}, Xr = y({
|
|
3409
3474
|
name: "builder-slot",
|
|
3410
|
-
components: { Blocks:
|
|
3475
|
+
components: { Blocks: z },
|
|
3411
3476
|
props: ["builderContext", "name", "builderComponents"]
|
|
3412
3477
|
});
|
|
3413
|
-
function
|
|
3414
|
-
var l, a,
|
|
3415
|
-
const s =
|
|
3416
|
-
return
|
|
3478
|
+
function Zr(e, t, n, o, r, i) {
|
|
3479
|
+
var l, a, d;
|
|
3480
|
+
const s = C("Blocks");
|
|
3481
|
+
return u(), h("div", R(
|
|
3417
3482
|
{ style: {
|
|
3418
3483
|
pointerEvents: "auto"
|
|
3419
3484
|
} },
|
|
@@ -3421,16 +3486,16 @@ function Br(e, t, n, o, r, i) {
|
|
|
3421
3486
|
"builder-slot": e.name
|
|
3422
3487
|
}
|
|
3423
3488
|
), [
|
|
3424
|
-
|
|
3489
|
+
$(s, {
|
|
3425
3490
|
parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
|
|
3426
3491
|
path: `symbol.data.${e.name}`,
|
|
3427
3492
|
context: e.builderContext,
|
|
3428
3493
|
registeredComponents: e.builderComponents,
|
|
3429
|
-
blocks: (
|
|
3494
|
+
blocks: (d = e.builderContext.rootState) == null ? void 0 : d[e.name]
|
|
3430
3495
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
3431
3496
|
], 16);
|
|
3432
3497
|
}
|
|
3433
|
-
const
|
|
3498
|
+
const ei = /* @__PURE__ */ k(Xr, [["render", Zr]]), ti = {
|
|
3434
3499
|
name: "Symbol",
|
|
3435
3500
|
noWrap: !0,
|
|
3436
3501
|
static: !0,
|
|
@@ -3469,7 +3534,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3469
3534
|
builderComponents: !0,
|
|
3470
3535
|
builderLinkComponent: !0
|
|
3471
3536
|
}
|
|
3472
|
-
},
|
|
3537
|
+
}, ke = {
|
|
3473
3538
|
"@type": "@builder.io/sdk:Element",
|
|
3474
3539
|
responsiveStyles: {
|
|
3475
3540
|
large: {
|
|
@@ -3491,7 +3556,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3491
3556
|
text: "New tab"
|
|
3492
3557
|
}
|
|
3493
3558
|
}
|
|
3494
|
-
},
|
|
3559
|
+
}, Ce = {
|
|
3495
3560
|
"@type": "@builder.io/sdk:Element",
|
|
3496
3561
|
responsiveStyles: {
|
|
3497
3562
|
large: {
|
|
@@ -3507,7 +3572,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3507
3572
|
text: "New tab content "
|
|
3508
3573
|
}
|
|
3509
3574
|
}
|
|
3510
|
-
},
|
|
3575
|
+
}, ni = {
|
|
3511
3576
|
name: "Builder: Tabs",
|
|
3512
3577
|
inputs: [{
|
|
3513
3578
|
name: "tabs",
|
|
@@ -3517,16 +3582,16 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3517
3582
|
name: "label",
|
|
3518
3583
|
type: "uiBlocks",
|
|
3519
3584
|
hideFromUI: !0,
|
|
3520
|
-
defaultValue: [
|
|
3585
|
+
defaultValue: [ke]
|
|
3521
3586
|
}, {
|
|
3522
3587
|
name: "content",
|
|
3523
3588
|
type: "uiBlocks",
|
|
3524
3589
|
hideFromUI: !0,
|
|
3525
|
-
defaultValue: [
|
|
3590
|
+
defaultValue: [Ce]
|
|
3526
3591
|
}],
|
|
3527
3592
|
defaultValue: [{
|
|
3528
3593
|
label: [{
|
|
3529
|
-
...
|
|
3594
|
+
...ke,
|
|
3530
3595
|
component: {
|
|
3531
3596
|
name: "Text",
|
|
3532
3597
|
options: {
|
|
@@ -3535,7 +3600,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3535
3600
|
}
|
|
3536
3601
|
}],
|
|
3537
3602
|
content: [{
|
|
3538
|
-
...
|
|
3603
|
+
...Ce,
|
|
3539
3604
|
component: {
|
|
3540
3605
|
name: "Text",
|
|
3541
3606
|
options: {
|
|
@@ -3545,7 +3610,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3545
3610
|
}]
|
|
3546
3611
|
}, {
|
|
3547
3612
|
label: [{
|
|
3548
|
-
...
|
|
3613
|
+
...ke,
|
|
3549
3614
|
component: {
|
|
3550
3615
|
name: "Text",
|
|
3551
3616
|
options: {
|
|
@@ -3554,7 +3619,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3554
3619
|
}
|
|
3555
3620
|
}],
|
|
3556
3621
|
content: [{
|
|
3557
|
-
...
|
|
3622
|
+
...Ce,
|
|
3558
3623
|
component: {
|
|
3559
3624
|
name: "Text",
|
|
3560
3625
|
options: {
|
|
@@ -3610,9 +3675,9 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3610
3675
|
builderComponents: !0,
|
|
3611
3676
|
builderLinkComponent: !0
|
|
3612
3677
|
}
|
|
3613
|
-
},
|
|
3678
|
+
}, oi = y({
|
|
3614
3679
|
name: "builder-tabs",
|
|
3615
|
-
components: { Blocks:
|
|
3680
|
+
components: { Blocks: z },
|
|
3616
3681
|
props: [
|
|
3617
3682
|
"defaultActiveTab",
|
|
3618
3683
|
"tabs",
|
|
@@ -3638,10 +3703,10 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3638
3703
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3639
3704
|
}
|
|
3640
3705
|
}
|
|
3641
|
-
}),
|
|
3642
|
-
function
|
|
3643
|
-
const s =
|
|
3644
|
-
return
|
|
3706
|
+
}), ri = ["onClick"], ii = { key: 0 };
|
|
3707
|
+
function si(e, t, n, o, r, i) {
|
|
3708
|
+
const s = C("Blocks");
|
|
3709
|
+
return u(), h("div", null, [
|
|
3645
3710
|
G("div", {
|
|
3646
3711
|
class: "builder-tabs-wrap",
|
|
3647
3712
|
style: M({
|
|
@@ -3651,13 +3716,13 @@ function xr(e, t, n, o, r, i) {
|
|
|
3651
3716
|
overflow: "auto"
|
|
3652
3717
|
})
|
|
3653
3718
|
}, [
|
|
3654
|
-
(
|
|
3719
|
+
(u(!0), h(w, null, L(e.tabs, (l, a) => (u(), h("span", {
|
|
3655
3720
|
key: a,
|
|
3656
|
-
class:
|
|
3721
|
+
class: te(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
3657
3722
|
style: M(e.getTabStyle(a)),
|
|
3658
|
-
onClick: async (
|
|
3723
|
+
onClick: async (d) => e.onClick(a)
|
|
3659
3724
|
}, [
|
|
3660
|
-
|
|
3725
|
+
$(s, {
|
|
3661
3726
|
parent: e.builderBlock.id,
|
|
3662
3727
|
path: `tabs.${a}.label`,
|
|
3663
3728
|
blocks: l.label,
|
|
@@ -3665,10 +3730,10 @@ function xr(e, t, n, o, r, i) {
|
|
|
3665
3730
|
registeredComponents: e.builderComponents,
|
|
3666
3731
|
linkComponent: e.builderLinkComponent
|
|
3667
3732
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3668
|
-
], 14,
|
|
3733
|
+
], 14, ri))), 128))
|
|
3669
3734
|
], 4),
|
|
3670
|
-
e.activeTabContent(e.activeTab) ? (
|
|
3671
|
-
|
|
3735
|
+
e.activeTabContent(e.activeTab) ? (u(), h("div", ii, [
|
|
3736
|
+
$(s, {
|
|
3672
3737
|
parent: e.builderBlock.id,
|
|
3673
3738
|
path: `tabs.${e.activeTab}.content`,
|
|
3674
3739
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -3676,10 +3741,10 @@ function xr(e, t, n, o, r, i) {
|
|
|
3676
3741
|
registeredComponents: e.builderComponents,
|
|
3677
3742
|
linkComponent: e.builderLinkComponent
|
|
3678
3743
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3679
|
-
])) :
|
|
3744
|
+
])) : v("", !0)
|
|
3680
3745
|
]);
|
|
3681
3746
|
}
|
|
3682
|
-
const
|
|
3747
|
+
const ai = /* @__PURE__ */ k(oi, [["render", si]]), li = {
|
|
3683
3748
|
shouldReceiveBuilderProps: {},
|
|
3684
3749
|
name: "Text",
|
|
3685
3750
|
static: !0,
|
|
@@ -3697,21 +3762,21 @@ const Lr = /* @__PURE__ */ v(Wr, [["render", xr]]), Fr = {
|
|
|
3697
3762
|
height: "auto",
|
|
3698
3763
|
textAlign: "center"
|
|
3699
3764
|
}
|
|
3700
|
-
},
|
|
3765
|
+
}, ci = y({
|
|
3701
3766
|
name: "builder-text",
|
|
3702
3767
|
props: ["text"]
|
|
3703
|
-
}),
|
|
3704
|
-
function
|
|
3768
|
+
}), di = ["innerHTML"];
|
|
3769
|
+
function ui(e, t, n, o, r, i) {
|
|
3705
3770
|
var s;
|
|
3706
|
-
return
|
|
3771
|
+
return u(), h("div", {
|
|
3707
3772
|
class: "builder-text",
|
|
3708
3773
|
innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
|
|
3709
3774
|
style: {
|
|
3710
3775
|
outline: "none"
|
|
3711
3776
|
}
|
|
3712
|
-
}, null, 8,
|
|
3777
|
+
}, null, 8, di);
|
|
3713
3778
|
}
|
|
3714
|
-
const
|
|
3779
|
+
const pi = /* @__PURE__ */ k(ci, [["render", ui]]), mi = {
|
|
3715
3780
|
name: "Custom Code",
|
|
3716
3781
|
static: !0,
|
|
3717
3782
|
requiredPermissions: ["editCode"],
|
|
@@ -3733,7 +3798,7 @@ const zr = /* @__PURE__ */ v(Mr, [["render", jr]]), Kr = {
|
|
|
3733
3798
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3734
3799
|
advanced: !0
|
|
3735
3800
|
}]
|
|
3736
|
-
},
|
|
3801
|
+
}, hi = y({
|
|
3737
3802
|
name: "builder-custom-code",
|
|
3738
3803
|
props: ["code", "replaceNodes"],
|
|
3739
3804
|
data() {
|
|
@@ -3745,7 +3810,7 @@ const zr = /* @__PURE__ */ v(Mr, [["render", jr]]), Kr = {
|
|
|
3745
3810
|
watch: {
|
|
3746
3811
|
onUpdateHook0: {
|
|
3747
3812
|
handler() {
|
|
3748
|
-
|
|
3813
|
+
P() && setTimeout(() => {
|
|
3749
3814
|
this.runScripts();
|
|
3750
3815
|
}, 0);
|
|
3751
3816
|
},
|
|
@@ -3783,7 +3848,7 @@ const zr = /* @__PURE__ */ v(Mr, [["render", jr]]), Kr = {
|
|
|
3783
3848
|
try {
|
|
3784
3849
|
this.scriptsRun.push(o.innerText), new Function(o.innerText)();
|
|
3785
3850
|
} catch (r) {
|
|
3786
|
-
|
|
3851
|
+
V.warn(
|
|
3787
3852
|
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
3788
3853
|
r
|
|
3789
3854
|
);
|
|
@@ -3792,15 +3857,15 @@ const zr = /* @__PURE__ */ v(Mr, [["render", jr]]), Kr = {
|
|
|
3792
3857
|
}
|
|
3793
3858
|
}
|
|
3794
3859
|
}
|
|
3795
|
-
}),
|
|
3796
|
-
function
|
|
3797
|
-
return
|
|
3860
|
+
}), fi = ["innerHTML"];
|
|
3861
|
+
function bi(e, t, n, o, r, i) {
|
|
3862
|
+
return u(), h("div", {
|
|
3798
3863
|
ref: "elementRef",
|
|
3799
|
-
class:
|
|
3864
|
+
class: te("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3800
3865
|
innerHTML: e.code
|
|
3801
|
-
}, null, 10,
|
|
3866
|
+
}, null, 10, fi);
|
|
3802
3867
|
}
|
|
3803
|
-
const
|
|
3868
|
+
const gi = /* @__PURE__ */ k(hi, [["render", bi]]), yi = {
|
|
3804
3869
|
name: "Embed",
|
|
3805
3870
|
static: !0,
|
|
3806
3871
|
inputs: [{
|
|
@@ -3815,7 +3880,7 @@ const _r = /* @__PURE__ */ v(qr, [["render", Jr]]), Qr = {
|
|
|
3815
3880
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3816
3881
|
hideFromUI: !0
|
|
3817
3882
|
}]
|
|
3818
|
-
},
|
|
3883
|
+
}, Si = ["text/javascript", "application/javascript", "application/ecmascript"], vi = (e) => Si.includes(e.type), ki = y({
|
|
3819
3884
|
name: "builder-embed",
|
|
3820
3885
|
props: ["content"],
|
|
3821
3886
|
data() {
|
|
@@ -3848,24 +3913,24 @@ const _r = /* @__PURE__ */ v(qr, [["render", Jr]]), Qr = {
|
|
|
3848
3913
|
this.scriptsInserted.push(n.src);
|
|
3849
3914
|
const o = document.createElement("script");
|
|
3850
3915
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3851
|
-
} else if (
|
|
3916
|
+
} else if (vi(n) && !this.scriptsRun.includes(n.innerText))
|
|
3852
3917
|
try {
|
|
3853
3918
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3854
3919
|
} catch (o) {
|
|
3855
|
-
|
|
3920
|
+
V.warn("[BUILDER.IO] `Embed`: Error running script:", o);
|
|
3856
3921
|
}
|
|
3857
3922
|
}
|
|
3858
3923
|
}
|
|
3859
3924
|
}
|
|
3860
|
-
}),
|
|
3861
|
-
function
|
|
3862
|
-
return
|
|
3925
|
+
}), Ci = ["innerHTML"];
|
|
3926
|
+
function Ti(e, t, n, o, r, i) {
|
|
3927
|
+
return u(), h("div", {
|
|
3863
3928
|
class: "builder-embed",
|
|
3864
3929
|
ref: "elem",
|
|
3865
3930
|
innerHTML: e.content
|
|
3866
|
-
}, null, 8,
|
|
3931
|
+
}, null, 8, Ci);
|
|
3867
3932
|
}
|
|
3868
|
-
const
|
|
3933
|
+
const Ii = /* @__PURE__ */ k(ki, [["render", Ti]]), wi = {
|
|
3869
3934
|
name: "Form:Form",
|
|
3870
3935
|
// editableTags: ['builder-form-error']
|
|
3871
3936
|
defaults: {
|
|
@@ -4102,12 +4167,12 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
|
4102
4167
|
builderComponents: !0,
|
|
4103
4168
|
builderLinkComponent: !0
|
|
4104
4169
|
}
|
|
4105
|
-
},
|
|
4170
|
+
}, Ei = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Ri = () => {
|
|
4106
4171
|
const e = process.env.NODE_ENV || "production";
|
|
4107
|
-
return
|
|
4108
|
-
},
|
|
4172
|
+
return Ei.includes(e) ? e : "production";
|
|
4173
|
+
}, $i = y({
|
|
4109
4174
|
name: "builder-form-component",
|
|
4110
|
-
components: { Blocks:
|
|
4175
|
+
components: { Blocks: z },
|
|
4111
4176
|
props: [
|
|
4112
4177
|
"builderContext",
|
|
4113
4178
|
"previewState",
|
|
@@ -4133,7 +4198,7 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
|
4133
4198
|
formState: "unsubmitted",
|
|
4134
4199
|
responseData: null,
|
|
4135
4200
|
formErrorMessage: "",
|
|
4136
|
-
filterAttrs:
|
|
4201
|
+
filterAttrs: N
|
|
4137
4202
|
};
|
|
4138
4203
|
},
|
|
4139
4204
|
methods: {
|
|
@@ -4146,7 +4211,7 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
|
4146
4211
|
this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
|
|
4147
4212
|
},
|
|
4148
4213
|
submissionState() {
|
|
4149
|
-
return
|
|
4214
|
+
return P() && this.previewState || this.formState;
|
|
4150
4215
|
},
|
|
4151
4216
|
errorResponse(e) {
|
|
4152
4217
|
return JSON.stringify(e, null, 2);
|
|
@@ -4198,16 +4263,16 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
|
4198
4263
|
else {
|
|
4199
4264
|
const c = {};
|
|
4200
4265
|
Array.from(l).forEach(({ value: m, key: f }) => {
|
|
4201
|
-
|
|
4266
|
+
Qn(c, f, m);
|
|
4202
4267
|
}), i = JSON.stringify(c);
|
|
4203
4268
|
}
|
|
4204
4269
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
4205
|
-
const
|
|
4270
|
+
const d = new CustomEvent("presubmit", {
|
|
4206
4271
|
detail: {
|
|
4207
4272
|
body: i
|
|
4208
4273
|
}
|
|
4209
4274
|
});
|
|
4210
|
-
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(
|
|
4275
|
+
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
|
|
4211
4276
|
return;
|
|
4212
4277
|
if (this.formState = "sending", this.sendSubmissionsTo === "email" && (this.sendSubmissionsToEmail === "your@email.com" || !this.sendSubmissionsToEmail)) {
|
|
4213
4278
|
const c = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
@@ -4216,16 +4281,16 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
|
4216
4281
|
});
|
|
4217
4282
|
return;
|
|
4218
4283
|
}
|
|
4219
|
-
const p = `${
|
|
4284
|
+
const p = `${Ri() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
4220
4285
|
this.sendSubmissionsToEmail || ""
|
|
4221
4286
|
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
4222
|
-
|
|
4287
|
+
Ne(b), fetch(b, {
|
|
4223
4288
|
body: i,
|
|
4224
4289
|
headers: r,
|
|
4225
4290
|
method: this.method || "post"
|
|
4226
4291
|
}).then(
|
|
4227
4292
|
async (c) => {
|
|
4228
|
-
var g,
|
|
4293
|
+
var g, A;
|
|
4229
4294
|
let m;
|
|
4230
4295
|
const f = c.headers.get("content-type");
|
|
4231
4296
|
if (f && f.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
|
|
@@ -4235,14 +4300,14 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
|
4235
4300
|
status: c.status
|
|
4236
4301
|
}
|
|
4237
4302
|
});
|
|
4238
|
-
if ((g = this.$refs.formRef) != null && g.nativeElement && ((
|
|
4303
|
+
if ((g = this.$refs.formRef) != null && g.nativeElement && ((A = this.$refs.formRef) == null || A.nativeElement.dispatchEvent(
|
|
4239
4304
|
U
|
|
4240
4305
|
), U.defaultPrevented))
|
|
4241
4306
|
return;
|
|
4242
4307
|
this.responseData = m, this.formState = "error";
|
|
4243
|
-
let
|
|
4244
|
-
typeof
|
|
4245
|
-
formErrorMessage:
|
|
4308
|
+
let O = this.errorMessagePath ? gt(m, this.errorMessagePath) : m.message || m.error || m;
|
|
4309
|
+
typeof O != "string" && (O = JSON.stringify(O)), this.formErrorMessage = O, this.mergeNewRootState({
|
|
4310
|
+
formErrorMessage: O
|
|
4246
4311
|
});
|
|
4247
4312
|
return;
|
|
4248
4313
|
}
|
|
@@ -4260,12 +4325,12 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
|
4260
4325
|
}
|
|
4261
4326
|
if (this.successUrl)
|
|
4262
4327
|
if (this.$refs.formRef) {
|
|
4263
|
-
const
|
|
4328
|
+
const O = new CustomEvent("route", {
|
|
4264
4329
|
detail: {
|
|
4265
4330
|
url: this.successUrl
|
|
4266
4331
|
}
|
|
4267
4332
|
});
|
|
4268
|
-
this.$refs.formRef.dispatchEvent(
|
|
4333
|
+
this.$refs.formRef.dispatchEvent(O), O.defaultPrevented || (location.href = this.successUrl);
|
|
4269
4334
|
} else
|
|
4270
4335
|
location.href = this.successUrl;
|
|
4271
4336
|
}
|
|
@@ -4282,13 +4347,13 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
|
4282
4347
|
}
|
|
4283
4348
|
}
|
|
4284
4349
|
}
|
|
4285
|
-
}),
|
|
4350
|
+
}), Pi = ["validate", "action", "method", "name"], Ai = {
|
|
4286
4351
|
key: 2,
|
|
4287
|
-
class: "builder-form-error-text pre-
|
|
4352
|
+
class: "builder-form-error-text pre-7fq9d0i380"
|
|
4288
4353
|
};
|
|
4289
|
-
function
|
|
4290
|
-
const s =
|
|
4291
|
-
return
|
|
4354
|
+
function Bi(e, t, n, o, r, i) {
|
|
4355
|
+
const s = C("Blocks");
|
|
4356
|
+
return u(), h("form", R({
|
|
4292
4357
|
validate: e.validate,
|
|
4293
4358
|
ref: "formRef",
|
|
4294
4359
|
action: !e.sendWithJs && e.action,
|
|
@@ -4296,29 +4361,29 @@ function ci(e, t, n, o, r, i) {
|
|
|
4296
4361
|
name: e.name,
|
|
4297
4362
|
onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
|
|
4298
4363
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4299
|
-
|
|
4300
|
-
e.submissionState() === "error" ? (
|
|
4364
|
+
B(e.$slots, "default", {}, void 0, !0),
|
|
4365
|
+
e.submissionState() === "error" ? (u(), S(s, {
|
|
4301
4366
|
key: 0,
|
|
4302
4367
|
path: "errorMessage",
|
|
4303
4368
|
blocks: e.errorMessage,
|
|
4304
4369
|
context: e.builderContext
|
|
4305
|
-
}, null, 8, ["blocks", "context"])) :
|
|
4306
|
-
e.submissionState() === "sending" ? (
|
|
4370
|
+
}, null, 8, ["blocks", "context"])) : v("", !0),
|
|
4371
|
+
e.submissionState() === "sending" ? (u(), S(s, {
|
|
4307
4372
|
key: 1,
|
|
4308
4373
|
path: "sendingMessage",
|
|
4309
4374
|
blocks: e.sendingMessage,
|
|
4310
4375
|
context: e.builderContext
|
|
4311
|
-
}, null, 8, ["blocks", "context"])) :
|
|
4312
|
-
e.submissionState() === "error" && e.responseData ? (
|
|
4313
|
-
e.submissionState() === "success" ? (
|
|
4376
|
+
}, null, 8, ["blocks", "context"])) : v("", !0),
|
|
4377
|
+
e.submissionState() === "error" && e.responseData ? (u(), h("pre", Ai, he(e.errorResponse(e.responseData)), 1)) : v("", !0),
|
|
4378
|
+
e.submissionState() === "success" ? (u(), S(s, {
|
|
4314
4379
|
key: 3,
|
|
4315
4380
|
path: "successMessage",
|
|
4316
4381
|
blocks: e.successMessage,
|
|
4317
4382
|
context: e.builderContext
|
|
4318
|
-
}, null, 8, ["blocks", "context"])) :
|
|
4319
|
-
], 16,
|
|
4383
|
+
}, null, 8, ["blocks", "context"])) : v("", !0)
|
|
4384
|
+
], 16, Pi);
|
|
4320
4385
|
}
|
|
4321
|
-
const
|
|
4386
|
+
const Vi = /* @__PURE__ */ k($i, [["render", Bi], ["__scopeId", "data-v-d1f88a0c"]]), Oi = {
|
|
4322
4387
|
name: "Form:Input",
|
|
4323
4388
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4324
4389
|
inputs: [
|
|
@@ -4369,7 +4434,7 @@ const di = /* @__PURE__ */ v(si, [["render", ci], ["__scopeId", "data-v-77c7888c
|
|
|
4369
4434
|
borderStyle: "solid",
|
|
4370
4435
|
borderColor: "#ccc"
|
|
4371
4436
|
}
|
|
4372
|
-
},
|
|
4437
|
+
}, Ni = y({
|
|
4373
4438
|
name: "builder-form-input-component",
|
|
4374
4439
|
props: [
|
|
4375
4440
|
"attributes",
|
|
@@ -4381,11 +4446,11 @@ const di = /* @__PURE__ */ v(si, [["render", ci], ["__scopeId", "data-v-77c7888c
|
|
|
4381
4446
|
"required"
|
|
4382
4447
|
],
|
|
4383
4448
|
data() {
|
|
4384
|
-
return { isEditing:
|
|
4449
|
+
return { isEditing: P, filterAttrs: N };
|
|
4385
4450
|
}
|
|
4386
|
-
}),
|
|
4387
|
-
function
|
|
4388
|
-
return
|
|
4451
|
+
}), Wi = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4452
|
+
function Di(e, t, n, o, r, i) {
|
|
4453
|
+
return u(), h("input", R({
|
|
4389
4454
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4390
4455
|
placeholder: e.placeholder,
|
|
4391
4456
|
type: e.type,
|
|
@@ -4393,9 +4458,9 @@ function hi(e, t, n, o, r, i) {
|
|
|
4393
4458
|
value: e.value,
|
|
4394
4459
|
defaultValue: e.defaultValue,
|
|
4395
4460
|
required: e.required
|
|
4396
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
4461
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Wi);
|
|
4397
4462
|
}
|
|
4398
|
-
const
|
|
4463
|
+
const Ui = /* @__PURE__ */ k(Ni, [["render", Di]]), xi = {
|
|
4399
4464
|
name: "Form:Select",
|
|
4400
4465
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4401
4466
|
defaultStyles: {
|
|
@@ -4437,28 +4502,28 @@ const fi = /* @__PURE__ */ v(pi, [["render", hi]]), bi = {
|
|
|
4437
4502
|
}],
|
|
4438
4503
|
static: !0,
|
|
4439
4504
|
noWrap: !0
|
|
4440
|
-
},
|
|
4505
|
+
}, Li = y({
|
|
4441
4506
|
name: "builder-select-component",
|
|
4442
4507
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4443
4508
|
data() {
|
|
4444
|
-
return { isEditing:
|
|
4509
|
+
return { isEditing: P, filterAttrs: N };
|
|
4445
4510
|
}
|
|
4446
|
-
}),
|
|
4447
|
-
function
|
|
4448
|
-
return
|
|
4511
|
+
}), Fi = ["value", "defaultValue", "name", "required"], Mi = ["value"];
|
|
4512
|
+
function Hi(e, t, n, o, r, i) {
|
|
4513
|
+
return u(), h("select", R({
|
|
4449
4514
|
value: e.value,
|
|
4450
4515
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4451
4516
|
defaultValue: e.defaultValue,
|
|
4452
4517
|
name: e.name,
|
|
4453
4518
|
required: e.required
|
|
4454
4519
|
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4455
|
-
(
|
|
4520
|
+
(u(!0), h(w, null, L(e.options, (s, l) => (u(), h("option", {
|
|
4456
4521
|
key: `${s.name}-${l}`,
|
|
4457
4522
|
value: s.value
|
|
4458
|
-
},
|
|
4459
|
-
], 16,
|
|
4523
|
+
}, he(s.name || s.value), 9, Mi))), 128))
|
|
4524
|
+
], 16, Fi);
|
|
4460
4525
|
}
|
|
4461
|
-
const
|
|
4526
|
+
const ji = /* @__PURE__ */ k(Li, [["render", Hi]]), Ki = {
|
|
4462
4527
|
name: "Form:SubmitButton",
|
|
4463
4528
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4464
4529
|
defaultStyles: {
|
|
@@ -4483,17 +4548,17 @@ const ki = /* @__PURE__ */ v(gi, [["render", Si]]), Ci = {
|
|
|
4483
4548
|
// that only shows if advanced setting is flipped
|
|
4484
4549
|
// TODO: defaultChildren
|
|
4485
4550
|
// canHaveChildren: true,
|
|
4486
|
-
},
|
|
4551
|
+
}, zi = y({
|
|
4487
4552
|
name: "builder-submit-button",
|
|
4488
4553
|
props: ["attributes", "text"],
|
|
4489
4554
|
data() {
|
|
4490
|
-
return { filterAttrs:
|
|
4555
|
+
return { filterAttrs: N };
|
|
4491
4556
|
}
|
|
4492
4557
|
});
|
|
4493
|
-
function
|
|
4494
|
-
return
|
|
4558
|
+
function qi(e, t, n, o, r, i) {
|
|
4559
|
+
return u(), h("button", R({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), he(e.text), 17);
|
|
4495
4560
|
}
|
|
4496
|
-
const
|
|
4561
|
+
const Gi = /* @__PURE__ */ k(zi, [["render", qi]]), _i = {
|
|
4497
4562
|
name: "Form:TextArea",
|
|
4498
4563
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4499
4564
|
inputs: [{
|
|
@@ -4529,7 +4594,7 @@ const Ii = /* @__PURE__ */ v(Ti, [["render", wi]]), $i = {
|
|
|
4529
4594
|
},
|
|
4530
4595
|
static: !0,
|
|
4531
4596
|
noWrap: !0
|
|
4532
|
-
},
|
|
4597
|
+
}, Ji = y({
|
|
4533
4598
|
name: "builder-textarea",
|
|
4534
4599
|
props: [
|
|
4535
4600
|
"attributes",
|
|
@@ -4540,19 +4605,19 @@ const Ii = /* @__PURE__ */ v(Ti, [["render", wi]]), $i = {
|
|
|
4540
4605
|
"required"
|
|
4541
4606
|
],
|
|
4542
4607
|
data() {
|
|
4543
|
-
return { filterAttrs:
|
|
4608
|
+
return { filterAttrs: N };
|
|
4544
4609
|
}
|
|
4545
|
-
}),
|
|
4546
|
-
function
|
|
4547
|
-
return
|
|
4610
|
+
}), Qi = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4611
|
+
function Yi(e, t, n, o, r, i) {
|
|
4612
|
+
return u(), h("textarea", R({
|
|
4548
4613
|
placeholder: e.placeholder,
|
|
4549
4614
|
name: e.name,
|
|
4550
4615
|
value: e.value,
|
|
4551
4616
|
defaultValue: e.defaultValue,
|
|
4552
4617
|
required: e.required
|
|
4553
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
4618
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Qi);
|
|
4554
4619
|
}
|
|
4555
|
-
const
|
|
4620
|
+
const Xi = /* @__PURE__ */ k(Ji, [["render", Yi]]), Zi = {
|
|
4556
4621
|
name: "Raw:Img",
|
|
4557
4622
|
hideFromInsertMenu: !0,
|
|
4558
4623
|
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",
|
|
@@ -4560,7 +4625,7 @@ const Pi = /* @__PURE__ */ v(Ei, [["render", Ai]]), Bi = {
|
|
|
4560
4625
|
name: "image",
|
|
4561
4626
|
bubble: !0,
|
|
4562
4627
|
type: "file",
|
|
4563
|
-
allowedFileTypes:
|
|
4628
|
+
allowedFileTypes: Me,
|
|
4564
4629
|
required: !0
|
|
4565
4630
|
}, {
|
|
4566
4631
|
name: "backgroundSize",
|
|
@@ -4596,7 +4661,7 @@ const Pi = /* @__PURE__ */ v(Ei, [["render", Ai]]), Bi = {
|
|
|
4596
4661
|
defaultValue: 0.7041
|
|
4597
4662
|
}],
|
|
4598
4663
|
noWrap: !0
|
|
4599
|
-
},
|
|
4664
|
+
}, es = y({
|
|
4600
4665
|
name: "builder-img-component",
|
|
4601
4666
|
props: [
|
|
4602
4667
|
"imgSrc",
|
|
@@ -4609,27 +4674,27 @@ const Pi = /* @__PURE__ */ v(Ei, [["render", Ai]]), Bi = {
|
|
|
4609
4674
|
"aspectRatio"
|
|
4610
4675
|
],
|
|
4611
4676
|
data() {
|
|
4612
|
-
return { isEditing:
|
|
4677
|
+
return { isEditing: P };
|
|
4613
4678
|
},
|
|
4614
4679
|
computed: {
|
|
4615
4680
|
srcSetToUse() {
|
|
4616
4681
|
const e = this.imgSrc || this.image;
|
|
4617
4682
|
if (!(!e || typeof e != "string") && e.match(/builder\.io/))
|
|
4618
|
-
return
|
|
4683
|
+
return le(e);
|
|
4619
4684
|
},
|
|
4620
4685
|
imgAttrs() {
|
|
4621
4686
|
const e = {
|
|
4622
|
-
...
|
|
4623
|
-
...
|
|
4687
|
+
...N(this.attributes, "v-on:", !1),
|
|
4688
|
+
...N(this.attributes, "v-on:", !0),
|
|
4624
4689
|
[H()]: `builder-raw-img ${this.attributes[H()] || ""}`
|
|
4625
4690
|
};
|
|
4626
4691
|
return delete e.style, e;
|
|
4627
4692
|
}
|
|
4628
4693
|
}
|
|
4629
|
-
}),
|
|
4630
|
-
function
|
|
4694
|
+
}), ts = ["alt", "title", "src"];
|
|
4695
|
+
function ns(e, t, n, o, r, i) {
|
|
4631
4696
|
var s;
|
|
4632
|
-
return
|
|
4697
|
+
return u(), h("img", R({
|
|
4633
4698
|
loading: "lazy",
|
|
4634
4699
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
4635
4700
|
alt: e.altText,
|
|
@@ -4641,9 +4706,9 @@ function Oi(e, t, n, o, r, i) {
|
|
|
4641
4706
|
aspectRatio: e.aspectRatio || void 0,
|
|
4642
4707
|
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4643
4708
|
}
|
|
4644
|
-
}, e.imgAttrs), null, 16,
|
|
4709
|
+
}, e.imgAttrs), null, 16, ts);
|
|
4645
4710
|
}
|
|
4646
|
-
const
|
|
4711
|
+
const os = /* @__PURE__ */ k(es, [["render", ns]]), rs = {
|
|
4647
4712
|
name: "Video",
|
|
4648
4713
|
canHaveChildren: !0,
|
|
4649
4714
|
defaultStyles: {
|
|
@@ -4654,14 +4719,14 @@ const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
|
|
|
4654
4719
|
inputs: [{
|
|
4655
4720
|
name: "video",
|
|
4656
4721
|
type: "file",
|
|
4657
|
-
allowedFileTypes:
|
|
4722
|
+
allowedFileTypes: Kr,
|
|
4658
4723
|
bubble: !0,
|
|
4659
4724
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
4660
4725
|
required: !0
|
|
4661
4726
|
}, {
|
|
4662
4727
|
name: "posterImage",
|
|
4663
4728
|
type: "file",
|
|
4664
|
-
allowedFileTypes:
|
|
4729
|
+
allowedFileTypes: Me,
|
|
4665
4730
|
helperText: "Image to show before the video plays"
|
|
4666
4731
|
}, {
|
|
4667
4732
|
name: "autoPlay",
|
|
@@ -4727,7 +4792,7 @@ const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
|
|
|
4727
4792
|
shouldReceiveBuilderProps: {
|
|
4728
4793
|
builderBlock: !0
|
|
4729
4794
|
}
|
|
4730
|
-
},
|
|
4795
|
+
}, is = y({
|
|
4731
4796
|
name: "builder-video",
|
|
4732
4797
|
props: [
|
|
4733
4798
|
"lazyLoad",
|
|
@@ -4800,16 +4865,16 @@ const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
|
|
|
4800
4865
|
};
|
|
4801
4866
|
}
|
|
4802
4867
|
}
|
|
4803
|
-
}),
|
|
4868
|
+
}), ss = { style: {
|
|
4804
4869
|
position: "relative"
|
|
4805
|
-
} },
|
|
4870
|
+
} }, as = ["preload", "poster"], ls = {
|
|
4806
4871
|
key: 1,
|
|
4807
4872
|
style: {
|
|
4808
4873
|
display: "flex",
|
|
4809
4874
|
flexDirection: "column",
|
|
4810
4875
|
alignItems: "stretch"
|
|
4811
4876
|
}
|
|
4812
|
-
},
|
|
4877
|
+
}, cs = {
|
|
4813
4878
|
key: 2,
|
|
4814
4879
|
style: {
|
|
4815
4880
|
pointerEvents: "none",
|
|
@@ -4823,10 +4888,10 @@ const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
|
|
|
4823
4888
|
height: "100%"
|
|
4824
4889
|
}
|
|
4825
4890
|
};
|
|
4826
|
-
function
|
|
4827
|
-
var s, l, a,
|
|
4828
|
-
return
|
|
4829
|
-
G("video",
|
|
4891
|
+
function ds(e, t, n, o, r, i) {
|
|
4892
|
+
var s, l, a, d, p, b, c;
|
|
4893
|
+
return u(), h("div", ss, [
|
|
4894
|
+
G("video", R({
|
|
4830
4895
|
class: "builder-video",
|
|
4831
4896
|
ref: "videoRef",
|
|
4832
4897
|
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
@@ -4845,7 +4910,7 @@ function Hi(e, t, n, o, r, i) {
|
|
|
4845
4910
|
},
|
|
4846
4911
|
poster: e.posterImage
|
|
4847
4912
|
}, e.spreadProps), [
|
|
4848
|
-
G("source",
|
|
4913
|
+
G("source", R(
|
|
4849
4914
|
{ type: "video/mp4" },
|
|
4850
4915
|
e.lazyLoad ? {
|
|
4851
4916
|
"data-src": e.video
|
|
@@ -4853,8 +4918,8 @@ function Hi(e, t, n, o, r, i) {
|
|
|
4853
4918
|
src: e.video
|
|
4854
4919
|
}
|
|
4855
4920
|
), null, 16)
|
|
4856
|
-
], 16,
|
|
4857
|
-
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (
|
|
4921
|
+
], 16, as),
|
|
4922
|
+
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (u(), h("div", {
|
|
4858
4923
|
key: 0,
|
|
4859
4924
|
style: M({
|
|
4860
4925
|
width: "100%",
|
|
@@ -4862,76 +4927,78 @@ function Hi(e, t, n, o, r, i) {
|
|
|
4862
4927
|
pointerEvents: "none",
|
|
4863
4928
|
fontSize: "0px"
|
|
4864
4929
|
})
|
|
4865
|
-
}, null, 4)) :
|
|
4866
|
-
(p = (
|
|
4867
|
-
|
|
4868
|
-
])) :
|
|
4869
|
-
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (
|
|
4870
|
-
|
|
4871
|
-
])) :
|
|
4930
|
+
}, null, 4)) : v("", !0),
|
|
4931
|
+
(p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && e.fitContent ? (u(), h("div", ls, [
|
|
4932
|
+
B(e.$slots, "default")
|
|
4933
|
+
])) : v("", !0),
|
|
4934
|
+
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (u(), h("div", cs, [
|
|
4935
|
+
B(e.$slots, "default")
|
|
4936
|
+
])) : v("", !0)
|
|
4872
4937
|
]);
|
|
4873
4938
|
}
|
|
4874
|
-
const
|
|
4875
|
-
component:
|
|
4876
|
-
...
|
|
4939
|
+
const us = /* @__PURE__ */ k(is, [["render", ds]]), ps = () => [{
|
|
4940
|
+
component: gi,
|
|
4941
|
+
...mi
|
|
4877
4942
|
}, {
|
|
4878
|
-
component:
|
|
4879
|
-
...
|
|
4943
|
+
component: Ii,
|
|
4944
|
+
...yi
|
|
4880
4945
|
}, {
|
|
4881
|
-
component:
|
|
4882
|
-
...
|
|
4946
|
+
component: Vi,
|
|
4947
|
+
...wi
|
|
4883
4948
|
}, {
|
|
4884
|
-
component:
|
|
4885
|
-
...
|
|
4949
|
+
component: Ui,
|
|
4950
|
+
...Oi
|
|
4886
4951
|
}, {
|
|
4887
|
-
component:
|
|
4888
|
-
...
|
|
4952
|
+
component: Gi,
|
|
4953
|
+
...Ki
|
|
4889
4954
|
}, {
|
|
4890
|
-
component:
|
|
4891
|
-
...
|
|
4955
|
+
component: ji,
|
|
4956
|
+
...xi
|
|
4892
4957
|
}, {
|
|
4893
|
-
component:
|
|
4894
|
-
|
|
4958
|
+
component: Xi,
|
|
4959
|
+
..._i
|
|
4895
4960
|
}, {
|
|
4896
|
-
component:
|
|
4897
|
-
...
|
|
4961
|
+
component: os,
|
|
4962
|
+
...Zi
|
|
4898
4963
|
}, {
|
|
4899
|
-
component:
|
|
4900
|
-
...
|
|
4901
|
-
}]
|
|
4902
|
-
|
|
4903
|
-
|
|
4964
|
+
component: us,
|
|
4965
|
+
...rs
|
|
4966
|
+
}];
|
|
4967
|
+
let se;
|
|
4968
|
+
const ct = () => se || (se = [{
|
|
4969
|
+
component: dn,
|
|
4970
|
+
...Mr
|
|
4904
4971
|
}, {
|
|
4905
|
-
component:
|
|
4906
|
-
...
|
|
4972
|
+
component: lr,
|
|
4973
|
+
...Hr
|
|
4907
4974
|
}, {
|
|
4908
|
-
component:
|
|
4909
|
-
...
|
|
4975
|
+
component: ur,
|
|
4976
|
+
...jr
|
|
4910
4977
|
}, {
|
|
4911
|
-
component:
|
|
4912
|
-
...
|
|
4978
|
+
component: Sr,
|
|
4979
|
+
...zr
|
|
4913
4980
|
}, {
|
|
4914
|
-
component:
|
|
4915
|
-
...
|
|
4981
|
+
component: Cr,
|
|
4982
|
+
...Qr
|
|
4916
4983
|
}, {
|
|
4917
|
-
component:
|
|
4918
|
-
...
|
|
4984
|
+
component: ei,
|
|
4985
|
+
...Yr
|
|
4919
4986
|
}, {
|
|
4920
|
-
component:
|
|
4921
|
-
...
|
|
4987
|
+
component: ta,
|
|
4988
|
+
...ti
|
|
4922
4989
|
}, {
|
|
4923
|
-
component:
|
|
4924
|
-
...
|
|
4925
|
-
}, ...
|
|
4926
|
-
component:
|
|
4927
|
-
...
|
|
4990
|
+
component: pi,
|
|
4991
|
+
...li
|
|
4992
|
+
}, ...Fe.includes(E) ? [{
|
|
4993
|
+
component: Jr,
|
|
4994
|
+
...qr
|
|
4928
4995
|
}] : [], {
|
|
4929
|
-
component:
|
|
4930
|
-
...
|
|
4996
|
+
component: ai,
|
|
4997
|
+
...ni
|
|
4931
4998
|
}, {
|
|
4932
|
-
component:
|
|
4933
|
-
...
|
|
4934
|
-
}, ...
|
|
4999
|
+
component: Fr,
|
|
5000
|
+
...Wr
|
|
5001
|
+
}, ...ps()], se), ms = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4935
5002
|
function getAndSetVariantId() {
|
|
4936
5003
|
function setCookie(name, value, days) {
|
|
4937
5004
|
let expires = '';
|
|
@@ -4990,7 +5057,7 @@ const ji = /* @__PURE__ */ v(Ui, [["render", Hi]]), zi = () => [{
|
|
|
4990
5057
|
}).join('');
|
|
4991
5058
|
styleEl.innerHTML = newStyleStr;
|
|
4992
5059
|
}
|
|
4993
|
-
}`,
|
|
5060
|
+
}`, hs = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4994
5061
|
if (!navigator.cookieEnabled) {
|
|
4995
5062
|
return;
|
|
4996
5063
|
}
|
|
@@ -5024,37 +5091,37 @@ const ji = /* @__PURE__ */ v(Ui, [["render", Hi]]), zi = () => [{
|
|
|
5024
5091
|
thisScriptEl?.remove();
|
|
5025
5092
|
}
|
|
5026
5093
|
return;
|
|
5027
|
-
}`,
|
|
5094
|
+
}`, Ae = "builderIoAbTest", Be = "builderIoRenderContent", fs = ["react", "vue", "svelte", "solid", "qwik"], de = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
5028
5095
|
...t,
|
|
5029
5096
|
testVariationId: t.id,
|
|
5030
5097
|
id: e == null ? void 0 : e.id
|
|
5031
|
-
})),
|
|
5098
|
+
})), bs = ({
|
|
5032
5099
|
canTrack: e,
|
|
5033
5100
|
content: t
|
|
5034
|
-
}) => !(!(
|
|
5101
|
+
}) => !(!(de(t).length > 0) || !e), gs = (e) => e === "react" || e === "reactNative", ys = E === "angular", He = gs(E), Zt = () => `
|
|
5035
5102
|
(function() {
|
|
5036
|
-
if (!window.${
|
|
5037
|
-
window.${
|
|
5103
|
+
if (!window.${Ae}) {
|
|
5104
|
+
window.${Ae} = ${ms};
|
|
5038
5105
|
}
|
|
5039
|
-
if (!window.${
|
|
5040
|
-
window.${
|
|
5041
|
-
}${
|
|
5106
|
+
if (!window.${Be}) {
|
|
5107
|
+
window.${Be} = ${hs};
|
|
5108
|
+
}${He ? `
|
|
5042
5109
|
var thisScriptEl = document.currentScript;
|
|
5043
5110
|
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
5044
5111
|
})();
|
|
5045
|
-
`,
|
|
5046
|
-
window.${
|
|
5047
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
5048
|
-
)`,
|
|
5112
|
+
`, Ss = (e, t) => `
|
|
5113
|
+
window.${Ae}(
|
|
5114
|
+
"${t}",${JSON.stringify(e)}, ${He}, ${ys}
|
|
5115
|
+
)`, vs = ({
|
|
5049
5116
|
contentId: e,
|
|
5050
5117
|
variationId: t
|
|
5051
|
-
}) => `window.${
|
|
5052
|
-
"${t}", "${e}", ${
|
|
5053
|
-
)
|
|
5054
|
-
function
|
|
5118
|
+
}) => `window.${Be}(
|
|
5119
|
+
"${t}", "${e}", ${He}
|
|
5120
|
+
)`, ks = (e) => JSON.parse(JSON.stringify(e));
|
|
5121
|
+
function dt(e) {
|
|
5055
5122
|
return Math.round(e * 1e3) / 1e3;
|
|
5056
5123
|
}
|
|
5057
|
-
const
|
|
5124
|
+
const Cs = (e, t, n = !0) => {
|
|
5058
5125
|
if (!(e instanceof HTMLElement))
|
|
5059
5126
|
return null;
|
|
5060
5127
|
let o = n ? e : e.parentElement;
|
|
@@ -5065,35 +5132,35 @@ const Zi = (e, t, n = !0) => {
|
|
|
5065
5132
|
return o;
|
|
5066
5133
|
} while (o = o.parentElement);
|
|
5067
5134
|
return null;
|
|
5068
|
-
},
|
|
5135
|
+
}, Ts = (e) => Cs(e, (t) => {
|
|
5069
5136
|
const n = t.getAttribute("builder-id") || t.id;
|
|
5070
5137
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
5071
|
-
}),
|
|
5138
|
+
}), ut = ({
|
|
5072
5139
|
event: e,
|
|
5073
5140
|
target: t
|
|
5074
5141
|
}) => {
|
|
5075
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
5142
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = dt(o / n.width), s = dt(r / n.height);
|
|
5076
5143
|
return {
|
|
5077
5144
|
x: i,
|
|
5078
5145
|
y: s
|
|
5079
5146
|
};
|
|
5080
|
-
},
|
|
5081
|
-
const t = e.target, n = t &&
|
|
5147
|
+
}, Is = (e) => {
|
|
5148
|
+
const t = e.target, n = t && Ts(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
5082
5149
|
return {
|
|
5083
5150
|
targetBuilderElement: o || void 0,
|
|
5084
5151
|
metadata: {
|
|
5085
|
-
targetOffset: t ?
|
|
5152
|
+
targetOffset: t ? ut({
|
|
5086
5153
|
event: e,
|
|
5087
5154
|
target: t
|
|
5088
5155
|
}) : void 0,
|
|
5089
|
-
builderTargetOffset: n ?
|
|
5156
|
+
builderTargetOffset: n ? ut({
|
|
5090
5157
|
event: e,
|
|
5091
5158
|
target: n
|
|
5092
5159
|
}) : void 0,
|
|
5093
5160
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
5094
5161
|
}
|
|
5095
5162
|
};
|
|
5096
|
-
},
|
|
5163
|
+
}, ws = ["svelte", "qwik", "vue"], Es = () => ws.includes(E) && (P() || be()), Rs = (e) => {
|
|
5097
5164
|
var i;
|
|
5098
5165
|
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);
|
|
5099
5166
|
let r = "";
|
|
@@ -5119,16 +5186,16 @@ font-weight: ${s};
|
|
|
5119
5186
|
`.trim());
|
|
5120
5187
|
}
|
|
5121
5188
|
return r;
|
|
5122
|
-
},
|
|
5189
|
+
}, $s = ({
|
|
5123
5190
|
customFonts: e
|
|
5124
5191
|
}) => {
|
|
5125
5192
|
var t;
|
|
5126
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
5127
|
-
},
|
|
5193
|
+
return ((t = e == null ? void 0 : e.map((n) => Rs(n))) == null ? void 0 : t.join(" ")) || "";
|
|
5194
|
+
}, Ps = ({
|
|
5128
5195
|
cssCode: e,
|
|
5129
5196
|
contentId: t
|
|
5130
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
5131
|
-
.builder-button {
|
|
5197
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", As = `
|
|
5198
|
+
:where(.builder-button) {
|
|
5132
5199
|
all: unset;
|
|
5133
5200
|
}
|
|
5134
5201
|
|
|
@@ -5144,9 +5211,9 @@ font-weight: ${s};
|
|
|
5144
5211
|
text-align: inherit;
|
|
5145
5212
|
font-family: inherit;
|
|
5146
5213
|
}
|
|
5147
|
-
`,
|
|
5214
|
+
`, Bs = (e) => e ? "" : As, Vs = (e) => `variant-${e}`, Os = y({
|
|
5148
5215
|
name: "enable-editor",
|
|
5149
|
-
components: { DynamicDiv:
|
|
5216
|
+
components: { DynamicDiv: oe },
|
|
5150
5217
|
props: [
|
|
5151
5218
|
"isNestedRender",
|
|
5152
5219
|
"builderContextSignal",
|
|
@@ -5176,15 +5243,15 @@ font-weight: ${s};
|
|
|
5176
5243
|
httpReqsData: {},
|
|
5177
5244
|
httpReqsPending: {},
|
|
5178
5245
|
clicked: !1,
|
|
5179
|
-
builderContext:
|
|
5180
|
-
needsElementRefDivForEditing:
|
|
5181
|
-
getWrapperClassName:
|
|
5246
|
+
builderContext: Te,
|
|
5247
|
+
needsElementRefDivForEditing: Es,
|
|
5248
|
+
getWrapperClassName: Vs
|
|
5182
5249
|
};
|
|
5183
5250
|
},
|
|
5184
5251
|
provide() {
|
|
5185
5252
|
const e = this;
|
|
5186
5253
|
return {
|
|
5187
|
-
[
|
|
5254
|
+
[Te.key]: e.builderContextSignal
|
|
5188
5255
|
};
|
|
5189
5256
|
},
|
|
5190
5257
|
created() {
|
|
@@ -5192,17 +5259,17 @@ font-weight: ${s};
|
|
|
5192
5259
|
},
|
|
5193
5260
|
mounted() {
|
|
5194
5261
|
var e, t, n;
|
|
5195
|
-
if (
|
|
5196
|
-
|
|
5262
|
+
if (I()) {
|
|
5263
|
+
P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5197
5264
|
new CustomEvent("initeditingbldr")
|
|
5198
5265
|
);
|
|
5199
|
-
const o = this.builderContextSignal.content &&
|
|
5266
|
+
const o = this.builderContextSignal.content && _(this.canTrack), r = fe({
|
|
5200
5267
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
5201
5268
|
canTrack: !0
|
|
5202
5269
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
5203
5270
|
if (o && i === r) {
|
|
5204
5271
|
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
|
|
5205
|
-
|
|
5272
|
+
ue({
|
|
5206
5273
|
apiHost: this.apiHost,
|
|
5207
5274
|
type: "impression",
|
|
5208
5275
|
canTrack: !0,
|
|
@@ -5211,7 +5278,7 @@ font-weight: ${s};
|
|
|
5211
5278
|
variationId: r !== s ? r : void 0
|
|
5212
5279
|
});
|
|
5213
5280
|
}
|
|
5214
|
-
|
|
5281
|
+
be() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5215
5282
|
new CustomEvent("initpreviewingbldr")
|
|
5216
5283
|
);
|
|
5217
5284
|
}
|
|
@@ -5253,7 +5320,7 @@ font-weight: ${s};
|
|
|
5253
5320
|
}
|
|
5254
5321
|
},
|
|
5255
5322
|
unmounted() {
|
|
5256
|
-
|
|
5323
|
+
I() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
5257
5324
|
"builder:component:stateChangeListenerActivated",
|
|
5258
5325
|
this.emitStateUpdate
|
|
5259
5326
|
));
|
|
@@ -5313,7 +5380,7 @@ font-weight: ${s};
|
|
|
5313
5380
|
this.builderContextSignal.content = n;
|
|
5314
5381
|
},
|
|
5315
5382
|
processMessage(e) {
|
|
5316
|
-
return
|
|
5383
|
+
return xt({
|
|
5317
5384
|
model: this.model,
|
|
5318
5385
|
trustedHosts: this.trustedHosts,
|
|
5319
5386
|
callbacks: {
|
|
@@ -5327,7 +5394,7 @@ font-weight: ${s};
|
|
|
5327
5394
|
});
|
|
5328
5395
|
},
|
|
5329
5396
|
animation: (t) => {
|
|
5330
|
-
|
|
5397
|
+
zt(t);
|
|
5331
5398
|
},
|
|
5332
5399
|
contentUpdate: (t, n) => {
|
|
5333
5400
|
this.mergeNewContent(t, n);
|
|
@@ -5342,14 +5409,14 @@ font-weight: ${s};
|
|
|
5342
5409
|
var t, n;
|
|
5343
5410
|
if (this.builderContextSignal.content) {
|
|
5344
5411
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
5345
|
-
|
|
5412
|
+
ue({
|
|
5346
5413
|
apiHost: this.apiHost,
|
|
5347
5414
|
type: "click",
|
|
5348
|
-
canTrack:
|
|
5415
|
+
canTrack: _(this.canTrack),
|
|
5349
5416
|
contentId: r,
|
|
5350
5417
|
apiKey: this.apiKey,
|
|
5351
5418
|
variationId: o !== r ? o : void 0,
|
|
5352
|
-
...
|
|
5419
|
+
...Is(e),
|
|
5353
5420
|
unique: !this.clicked
|
|
5354
5421
|
});
|
|
5355
5422
|
}
|
|
@@ -5363,14 +5430,14 @@ font-weight: ${s};
|
|
|
5363
5430
|
if (!r)
|
|
5364
5431
|
return;
|
|
5365
5432
|
const i = typeof r == "object" && r["@type"] === "@builder.io/core:Request";
|
|
5366
|
-
if (this.httpReqsPending[o] || this.httpReqsData[o] && !
|
|
5433
|
+
if (this.httpReqsPending[o] || this.httpReqsData[o] && !P())
|
|
5367
5434
|
return;
|
|
5368
5435
|
const s = i ? r.request.url : r;
|
|
5369
5436
|
this.httpReqsPending[o] = !0;
|
|
5370
5437
|
const l = s.replace(
|
|
5371
5438
|
/{{([^}]+)}}/g,
|
|
5372
5439
|
(p, b) => String(
|
|
5373
|
-
|
|
5440
|
+
ne({
|
|
5374
5441
|
code: b,
|
|
5375
5442
|
context: this.context || {},
|
|
5376
5443
|
localState: void 0,
|
|
@@ -5387,13 +5454,13 @@ font-weight: ${s};
|
|
|
5387
5454
|
url: l,
|
|
5388
5455
|
method: "GET"
|
|
5389
5456
|
};
|
|
5390
|
-
|
|
5391
|
-
const
|
|
5457
|
+
Ne(JSON.stringify(a));
|
|
5458
|
+
const d = {
|
|
5392
5459
|
method: a.method,
|
|
5393
5460
|
headers: a.headers,
|
|
5394
5461
|
body: a.body
|
|
5395
5462
|
};
|
|
5396
|
-
a.method === "GET" && delete
|
|
5463
|
+
a.method === "GET" && delete d.body, fetch(a.url, d).then((p) => p.json()).then((p) => {
|
|
5397
5464
|
this.mergeNewRootState({
|
|
5398
5465
|
[o]: p
|
|
5399
5466
|
}), this.httpReqsData[o] = !0;
|
|
@@ -5410,12 +5477,12 @@ font-weight: ${s};
|
|
|
5410
5477
|
);
|
|
5411
5478
|
},
|
|
5412
5479
|
emitStateUpdate() {
|
|
5413
|
-
|
|
5480
|
+
P() && window.dispatchEvent(
|
|
5414
5481
|
new CustomEvent(
|
|
5415
5482
|
"builder:component:stateChange",
|
|
5416
5483
|
{
|
|
5417
5484
|
detail: {
|
|
5418
|
-
state:
|
|
5485
|
+
state: ks(this.builderContextSignal.rootState),
|
|
5419
5486
|
ref: {
|
|
5420
5487
|
name: this.model
|
|
5421
5488
|
}
|
|
@@ -5425,7 +5492,7 @@ font-weight: ${s};
|
|
|
5425
5492
|
);
|
|
5426
5493
|
},
|
|
5427
5494
|
elementRef_onIniteditingbldr(e) {
|
|
5428
|
-
window.addEventListener("message", this.processMessage),
|
|
5495
|
+
window.addEventListener("message", this.processMessage), Ut({
|
|
5429
5496
|
...this.locale ? {
|
|
5430
5497
|
locale: this.locale
|
|
5431
5498
|
} : {},
|
|
@@ -5445,7 +5512,7 @@ font-weight: ${s};
|
|
|
5445
5512
|
).forEach((t) => {
|
|
5446
5513
|
var n, o;
|
|
5447
5514
|
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
5448
|
-
const r =
|
|
5515
|
+
const r = to(t);
|
|
5449
5516
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
5450
5517
|
}
|
|
5451
5518
|
}), window.addEventListener(
|
|
@@ -5458,7 +5525,7 @@ font-weight: ${s};
|
|
|
5458
5525
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
5459
5526
|
`builder.overrides.${n}`
|
|
5460
5527
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
5461
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
5528
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && xe({
|
|
5462
5529
|
model: this.model,
|
|
5463
5530
|
apiKey: this.apiKey,
|
|
5464
5531
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -5473,72 +5540,123 @@ font-weight: ${s};
|
|
|
5473
5540
|
}
|
|
5474
5541
|
}
|
|
5475
5542
|
});
|
|
5476
|
-
function
|
|
5543
|
+
function Ns(e, t, n, o, r, i) {
|
|
5477
5544
|
var s, l, a;
|
|
5478
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (
|
|
5545
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (u(), S(Z(e.ContentWrapper), R({
|
|
5479
5546
|
key: 0,
|
|
5480
5547
|
ref: "elementRef",
|
|
5481
|
-
onClick: (
|
|
5548
|
+
onClick: (d) => e.onClick(d),
|
|
5482
5549
|
"builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
|
|
5483
5550
|
"builder-model": e.model,
|
|
5484
5551
|
className: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
|
|
5485
5552
|
style: {
|
|
5486
5553
|
display: !e.builderContextSignal.content && e.needsElementRefDivForEditing() ? "none" : void 0
|
|
5487
5554
|
},
|
|
5488
|
-
onIniteditingbldr: (
|
|
5489
|
-
onInitpreviewingbldr: (
|
|
5555
|
+
onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
|
|
5556
|
+
onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
|
|
5490
5557
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
5491
5558
|
default: D(() => [
|
|
5492
|
-
|
|
5559
|
+
B(e.$slots, "default")
|
|
5493
5560
|
]),
|
|
5494
5561
|
_: 3
|
|
5495
|
-
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) :
|
|
5562
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
|
|
5496
5563
|
}
|
|
5497
|
-
const
|
|
5564
|
+
const Ws = /* @__PURE__ */ k(Os, [["render", Ns]]), Ds = y({
|
|
5498
5565
|
name: "content-styles",
|
|
5499
|
-
components: { InlinedStyles:
|
|
5566
|
+
components: { InlinedStyles: ge },
|
|
5500
5567
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5501
5568
|
data() {
|
|
5502
5569
|
return {
|
|
5503
5570
|
injectedStyles: `
|
|
5504
|
-
${
|
|
5571
|
+
${Ps({
|
|
5505
5572
|
cssCode: this.cssCode,
|
|
5506
5573
|
contentId: this.contentId
|
|
5507
5574
|
})}
|
|
5508
|
-
${
|
|
5575
|
+
${$s({
|
|
5509
5576
|
customFonts: this.customFonts
|
|
5510
5577
|
})}
|
|
5511
|
-
${
|
|
5578
|
+
${Bs(this.isNestedRender)}
|
|
5512
5579
|
`.trim()
|
|
5513
5580
|
};
|
|
5514
5581
|
}
|
|
5515
5582
|
});
|
|
5516
|
-
function
|
|
5517
|
-
const s =
|
|
5518
|
-
return
|
|
5583
|
+
function Us(e, t, n, o, r, i) {
|
|
5584
|
+
const s = C("InlinedStyles");
|
|
5585
|
+
return u(), S(s, {
|
|
5519
5586
|
id: "builderio-content",
|
|
5520
5587
|
styles: e.injectedStyles,
|
|
5521
5588
|
nonce: e.nonce
|
|
5522
5589
|
}, null, 8, ["styles", "nonce"]);
|
|
5523
5590
|
}
|
|
5524
|
-
const
|
|
5591
|
+
const xs = /* @__PURE__ */ k(Ds, [["render", Us]]), me = (e, t = /* @__PURE__ */ new WeakMap()) => {
|
|
5592
|
+
if (e === null || typeof e != "object")
|
|
5593
|
+
return e;
|
|
5594
|
+
if (t.has(e))
|
|
5595
|
+
return t.get(e);
|
|
5596
|
+
if (Array.isArray(e)) {
|
|
5597
|
+
const r = [];
|
|
5598
|
+
t.set(e, r);
|
|
5599
|
+
for (let i = 0; i < e.length; i++)
|
|
5600
|
+
r[i] = me(e[i], t);
|
|
5601
|
+
return r;
|
|
5602
|
+
}
|
|
5603
|
+
const n = Object.getPrototypeOf(e);
|
|
5604
|
+
if (n !== Object.prototype && n !== null)
|
|
5605
|
+
return e;
|
|
5606
|
+
const o = {};
|
|
5607
|
+
t.set(e, o);
|
|
5608
|
+
for (const r of Object.keys(e)) {
|
|
5609
|
+
const i = me(e[r], t);
|
|
5610
|
+
r === "__proto__" ? Object.defineProperty(o, r, {
|
|
5611
|
+
value: i,
|
|
5612
|
+
enumerable: !0,
|
|
5613
|
+
writable: !0,
|
|
5614
|
+
configurable: !0
|
|
5615
|
+
}) : o[r] = i;
|
|
5616
|
+
}
|
|
5617
|
+
return o;
|
|
5618
|
+
}, pt = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), en = (e) => {
|
|
5619
|
+
const t = pt.get(e);
|
|
5620
|
+
if (t)
|
|
5621
|
+
return t;
|
|
5622
|
+
const {
|
|
5623
|
+
component: n,
|
|
5624
|
+
...o
|
|
5625
|
+
} = e, r = We(o);
|
|
5626
|
+
return pt.set(e, r), r;
|
|
5627
|
+
}, Ls = (e, t) => {
|
|
5628
|
+
const n = {};
|
|
5629
|
+
for (const o of e) {
|
|
5630
|
+
let r = mt.get(o);
|
|
5631
|
+
r || (r = {
|
|
5632
|
+
component: t(o.component),
|
|
5633
|
+
...en(o)
|
|
5634
|
+
}, mt.set(o, r)), n[o.name] = r;
|
|
5635
|
+
}
|
|
5636
|
+
return n;
|
|
5637
|
+
}, Fs = (e) => {
|
|
5638
|
+
const t = {};
|
|
5639
|
+
for (const n of e)
|
|
5640
|
+
t[n.name] = en(n);
|
|
5641
|
+
return t;
|
|
5642
|
+
}, Ms = ({
|
|
5525
5643
|
content: e,
|
|
5526
5644
|
data: t,
|
|
5527
5645
|
locale: n
|
|
5528
5646
|
}) => {
|
|
5529
|
-
var
|
|
5530
|
-
const o = {}, r = (
|
|
5531
|
-
return (
|
|
5532
|
-
|
|
5647
|
+
var s, l, a;
|
|
5648
|
+
const o = {}, r = /* @__PURE__ */ new WeakMap(), i = me(((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {}, r);
|
|
5649
|
+
return (a = (l = e == null ? void 0 : e.data) == null ? void 0 : l.inputs) == null || a.forEach((d) => {
|
|
5650
|
+
d.name && d.defaultValue !== void 0 && (o[d.name] = me(d.defaultValue, r));
|
|
5533
5651
|
}), {
|
|
5534
5652
|
...o,
|
|
5535
|
-
...
|
|
5653
|
+
...i,
|
|
5536
5654
|
...t,
|
|
5537
5655
|
...n ? {
|
|
5538
5656
|
locale: n
|
|
5539
5657
|
} : {}
|
|
5540
5658
|
};
|
|
5541
|
-
},
|
|
5659
|
+
}, Hs = ({
|
|
5542
5660
|
content: e,
|
|
5543
5661
|
data: t
|
|
5544
5662
|
}) => e ? {
|
|
@@ -5548,14 +5666,14 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
|
|
|
5548
5666
|
...t
|
|
5549
5667
|
},
|
|
5550
5668
|
meta: e == null ? void 0 : e.meta
|
|
5551
|
-
} : void 0,
|
|
5669
|
+
} : void 0, js = nn, Ks = y({
|
|
5552
5670
|
name: "content-component",
|
|
5553
5671
|
components: {
|
|
5554
|
-
EnableEditor:
|
|
5555
|
-
InlinedScript:
|
|
5556
|
-
ContentStyles:
|
|
5557
|
-
Blocks:
|
|
5558
|
-
DynamicDiv:
|
|
5672
|
+
EnableEditor: Ws,
|
|
5673
|
+
InlinedScript: ye,
|
|
5674
|
+
ContentStyles: xs,
|
|
5675
|
+
Blocks: z,
|
|
5676
|
+
DynamicDiv: oe
|
|
5559
5677
|
},
|
|
5560
5678
|
props: [
|
|
5561
5679
|
"content",
|
|
@@ -5584,32 +5702,23 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
|
|
|
5584
5702
|
data() {
|
|
5585
5703
|
var e, t;
|
|
5586
5704
|
return {
|
|
5587
|
-
scriptStr:
|
|
5705
|
+
scriptStr: vs({
|
|
5588
5706
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5589
5707
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5590
5708
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5591
5709
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5592
5710
|
}),
|
|
5593
|
-
registeredComponents:
|
|
5594
|
-
...
|
|
5595
|
-
|
|
5596
|
-
].reduce(
|
|
5597
|
-
(n, { component: o, ...r }) => ({
|
|
5598
|
-
...n,
|
|
5599
|
-
[r.name]: {
|
|
5600
|
-
component: ys(o),
|
|
5601
|
-
...de(r)
|
|
5602
|
-
}
|
|
5603
|
-
}),
|
|
5604
|
-
{}
|
|
5711
|
+
registeredComponents: Ls(
|
|
5712
|
+
[...ct(), ...this.customComponents || []],
|
|
5713
|
+
(n) => js(n)
|
|
5605
5714
|
),
|
|
5606
5715
|
builderContextSignal: {
|
|
5607
|
-
content:
|
|
5716
|
+
content: Hs({
|
|
5608
5717
|
content: this.content,
|
|
5609
5718
|
data: this.data
|
|
5610
5719
|
}),
|
|
5611
5720
|
localState: void 0,
|
|
5612
|
-
rootState:
|
|
5721
|
+
rootState: Ms({
|
|
5613
5722
|
content: this.content,
|
|
5614
5723
|
data: this.data,
|
|
5615
5724
|
locale: this.locale
|
|
@@ -5619,16 +5728,10 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
|
|
|
5619
5728
|
canTrack: this.canTrack,
|
|
5620
5729
|
apiKey: this.apiKey,
|
|
5621
5730
|
apiVersion: this.apiVersion,
|
|
5622
|
-
componentInfos: [
|
|
5623
|
-
...
|
|
5731
|
+
componentInfos: Fs([
|
|
5732
|
+
...ct(),
|
|
5624
5733
|
...this.customComponents || []
|
|
5625
|
-
]
|
|
5626
|
-
(n, { component: o, ...r }) => ({
|
|
5627
|
-
...n,
|
|
5628
|
-
[r.name]: de(r)
|
|
5629
|
-
}),
|
|
5630
|
-
{}
|
|
5631
|
-
),
|
|
5734
|
+
]),
|
|
5632
5735
|
inheritedStyles: {},
|
|
5633
5736
|
BlocksWrapper: this.blocksWrapper || "div",
|
|
5634
5737
|
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
@@ -5641,18 +5744,18 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
|
|
|
5641
5744
|
provide() {
|
|
5642
5745
|
const e = this;
|
|
5643
5746
|
return {
|
|
5644
|
-
[
|
|
5747
|
+
[ft.key]: {
|
|
5645
5748
|
registeredComponents: e.registeredComponents
|
|
5646
5749
|
}
|
|
5647
5750
|
};
|
|
5648
5751
|
},
|
|
5649
5752
|
created() {
|
|
5650
5753
|
var t, n;
|
|
5651
|
-
this.apiKey ||
|
|
5754
|
+
this.apiKey || V.error(
|
|
5652
5755
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
5653
5756
|
);
|
|
5654
5757
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
5655
|
-
e &&
|
|
5758
|
+
e && ne({
|
|
5656
5759
|
code: e,
|
|
5657
5760
|
context: this.context || {},
|
|
5658
5761
|
localState: void 0,
|
|
@@ -5685,9 +5788,9 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
|
|
|
5685
5788
|
}
|
|
5686
5789
|
}
|
|
5687
5790
|
});
|
|
5688
|
-
function
|
|
5689
|
-
const s =
|
|
5690
|
-
return
|
|
5791
|
+
function zs(e, t, n, o, r, i) {
|
|
5792
|
+
const s = C("InlinedScript"), l = C("ContentStyles"), a = C("Blocks"), d = C("EnableEditor");
|
|
5793
|
+
return u(), S(d, R({
|
|
5691
5794
|
apiHost: e.apiHost,
|
|
5692
5795
|
nonce: e.nonce,
|
|
5693
5796
|
content: e.content,
|
|
@@ -5707,24 +5810,24 @@ function Ss(e, t, n, o, r, i) {
|
|
|
5707
5810
|
isNestedRender: e.isNestedRender
|
|
5708
5811
|
}, {}), {
|
|
5709
5812
|
default: D(() => {
|
|
5710
|
-
var p, b, c, m, f, g,
|
|
5813
|
+
var p, b, c, m, f, g, A;
|
|
5711
5814
|
return [
|
|
5712
|
-
e.isSsrAbTest ? (
|
|
5815
|
+
e.isSsrAbTest ? (u(), S(s, {
|
|
5713
5816
|
key: 0,
|
|
5714
5817
|
id: "builderio-variant-visibility",
|
|
5715
5818
|
scriptStr: e.scriptStr,
|
|
5716
5819
|
nonce: e.nonce || ""
|
|
5717
|
-
}, null, 8, ["scriptStr", "nonce"])) :
|
|
5718
|
-
e.TARGET !== "reactNative" ? (
|
|
5820
|
+
}, null, 8, ["scriptStr", "nonce"])) : v("", !0),
|
|
5821
|
+
e.TARGET !== "reactNative" ? (u(), S(l, {
|
|
5719
5822
|
key: 1,
|
|
5720
5823
|
nonce: e.nonce || "",
|
|
5721
5824
|
isNestedRender: e.isNestedRender,
|
|
5722
5825
|
contentId: (p = e.builderContextSignal.content) == null ? void 0 : p.id,
|
|
5723
5826
|
cssCode: (c = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : c.cssCode,
|
|
5724
5827
|
customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
|
|
5725
|
-
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) :
|
|
5726
|
-
|
|
5727
|
-
blocks: (
|
|
5828
|
+
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
|
|
5829
|
+
$(a, {
|
|
5830
|
+
blocks: (A = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : A.blocks,
|
|
5728
5831
|
context: e.builderContextSignal,
|
|
5729
5832
|
registeredComponents: e.registeredComponents,
|
|
5730
5833
|
linkComponent: e.linkComponent
|
|
@@ -5734,16 +5837,17 @@ function Ss(e, t, n, o, r, i) {
|
|
|
5734
5837
|
_: 1
|
|
5735
5838
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5736
5839
|
}
|
|
5737
|
-
const
|
|
5840
|
+
const qs = /* @__PURE__ */ k(Ks, [["render", zs]]), Gs = y({
|
|
5738
5841
|
name: "content-variants",
|
|
5739
5842
|
components: {
|
|
5740
|
-
InlinedScript:
|
|
5741
|
-
InlinedStyles:
|
|
5742
|
-
ContentComponent:
|
|
5843
|
+
InlinedScript: ye,
|
|
5844
|
+
InlinedStyles: ge,
|
|
5845
|
+
ContentComponent: qs
|
|
5743
5846
|
},
|
|
5744
5847
|
props: [
|
|
5745
5848
|
"canTrack",
|
|
5746
5849
|
"content",
|
|
5850
|
+
"isContentInlinedInParent",
|
|
5747
5851
|
"nonce",
|
|
5748
5852
|
"apiHost",
|
|
5749
5853
|
"isNestedRender",
|
|
@@ -5765,25 +5869,28 @@ const ks = /* @__PURE__ */ v(vs, [["render", Ss]]), Cs = y({
|
|
|
5765
5869
|
],
|
|
5766
5870
|
data() {
|
|
5767
5871
|
return {
|
|
5768
|
-
shouldRenderVariants:
|
|
5769
|
-
canTrack:
|
|
5872
|
+
shouldRenderVariants: bs({
|
|
5873
|
+
canTrack: _(this.canTrack),
|
|
5770
5874
|
content: this.content
|
|
5771
5875
|
}),
|
|
5772
|
-
shouldEmitPersonalizationFns:
|
|
5773
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
5774
|
-
getInitPersonalizationVariantsFnsScriptString:
|
|
5876
|
+
shouldEmitPersonalizationFns: !this.isContentInlinedInParent && Br(this.content),
|
|
5877
|
+
SDKS_SUPPORTING_PERSONALIZATION: Fe,
|
|
5878
|
+
getInitPersonalizationVariantsFnsScriptString: Yt,
|
|
5775
5879
|
TARGET: E,
|
|
5776
|
-
getInitVariantsFnsScriptString:
|
|
5777
|
-
getVariants:
|
|
5880
|
+
getInitVariantsFnsScriptString: Zt,
|
|
5881
|
+
getVariants: de
|
|
5778
5882
|
};
|
|
5779
5883
|
},
|
|
5884
|
+
inject: {
|
|
5885
|
+
scriptsContext: Pe.key
|
|
5886
|
+
},
|
|
5780
5887
|
mounted() {
|
|
5781
5888
|
},
|
|
5782
5889
|
computed: {
|
|
5783
5890
|
updateCookieAndStylesScriptStr() {
|
|
5784
5891
|
var e;
|
|
5785
|
-
return
|
|
5786
|
-
|
|
5892
|
+
return Ss(
|
|
5893
|
+
de(this.content).map((t) => ({
|
|
5787
5894
|
id: t.testVariationId,
|
|
5788
5895
|
testRatio: t.testRatio
|
|
5789
5896
|
})),
|
|
@@ -5791,53 +5898,55 @@ const ks = /* @__PURE__ */ v(vs, [["render", Ss]]), Cs = y({
|
|
|
5791
5898
|
);
|
|
5792
5899
|
},
|
|
5793
5900
|
hideVariantsStyleString() {
|
|
5794
|
-
return
|
|
5901
|
+
return de(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
5795
5902
|
},
|
|
5796
5903
|
defaultContent() {
|
|
5797
5904
|
var e;
|
|
5798
5905
|
return this.shouldRenderVariants ? {
|
|
5799
5906
|
...this.content,
|
|
5800
5907
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5801
|
-
} :
|
|
5908
|
+
} : po({
|
|
5802
5909
|
item: this.content,
|
|
5803
|
-
canTrack:
|
|
5910
|
+
canTrack: _(this.canTrack)
|
|
5804
5911
|
});
|
|
5805
5912
|
}
|
|
5806
5913
|
}
|
|
5807
5914
|
});
|
|
5808
|
-
function
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5915
|
+
function _s(e, t, n, o, r, i) {
|
|
5916
|
+
var d, p;
|
|
5917
|
+
const s = C("InlinedScript"), l = C("InlinedStyles"), a = C("ContentComponent");
|
|
5918
|
+
return u(), h(w, null, [
|
|
5919
|
+
e.shouldEmitPersonalizationFns && !((d = e.scriptsContext) != null && d.scriptsEmitted) ? (u(), h(w, { key: 0 }, [
|
|
5920
|
+
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (u(), S(s, {
|
|
5813
5921
|
key: 0,
|
|
5814
5922
|
id: "builderio-init-personalization-variants-fns",
|
|
5815
5923
|
nonce: e.nonce || "",
|
|
5816
5924
|
scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
|
|
5817
|
-
}, null, 8, ["nonce", "scriptStr"])) :
|
|
5818
|
-
], 64)) :
|
|
5819
|
-
e.shouldRenderVariants ? (
|
|
5820
|
-
|
|
5925
|
+
}, null, 8, ["nonce", "scriptStr"])) : v("", !0)
|
|
5926
|
+
], 64)) : v("", !0),
|
|
5927
|
+
e.shouldRenderVariants ? (u(), h(w, { key: 1 }, [
|
|
5928
|
+
(p = e.scriptsContext) != null && p.scriptsEmitted ? v("", !0) : (u(), S(s, {
|
|
5929
|
+
key: 0,
|
|
5821
5930
|
id: "builderio-init-variants-fns",
|
|
5822
5931
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
5823
5932
|
nonce: e.nonce || ""
|
|
5824
|
-
}, null, 8, ["scriptStr", "nonce"]),
|
|
5825
|
-
|
|
5933
|
+
}, null, 8, ["scriptStr", "nonce"])),
|
|
5934
|
+
$(l, {
|
|
5826
5935
|
id: "builderio-variants",
|
|
5827
5936
|
styles: e.hideVariantsStyleString,
|
|
5828
5937
|
nonce: e.nonce || ""
|
|
5829
5938
|
}, null, 8, ["styles", "nonce"]),
|
|
5830
|
-
|
|
5939
|
+
$(s, {
|
|
5831
5940
|
id: "builderio-variants-visibility",
|
|
5832
5941
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
5833
5942
|
nonce: e.nonce || ""
|
|
5834
5943
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5835
|
-
(
|
|
5836
|
-
key:
|
|
5944
|
+
(u(!0), h(w, null, L(e.getVariants(e.content), (b, c) => (u(), S(a, R({
|
|
5945
|
+
key: b.testVariationId,
|
|
5837
5946
|
apiHost: e.apiHost,
|
|
5838
5947
|
isNestedRender: e.isNestedRender,
|
|
5839
5948
|
nonce: e.nonce,
|
|
5840
|
-
content:
|
|
5949
|
+
content: b,
|
|
5841
5950
|
showContent: !1,
|
|
5842
5951
|
model: e.model,
|
|
5843
5952
|
data: e.data,
|
|
@@ -5857,8 +5966,8 @@ function Ts(e, t, n, o, r, i) {
|
|
|
5857
5966
|
contentWrapperProps: e.contentWrapperProps,
|
|
5858
5967
|
trustedHosts: e.trustedHosts
|
|
5859
5968
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
5860
|
-
], 64)) :
|
|
5861
|
-
|
|
5969
|
+
], 64)) : v("", !0),
|
|
5970
|
+
$(a, R({
|
|
5862
5971
|
apiHost: e.apiHost,
|
|
5863
5972
|
nonce: e.nonce,
|
|
5864
5973
|
isNestedRender: e.isNestedRender,
|
|
@@ -5886,13 +5995,16 @@ function Ts(e, t, n, o, r, i) {
|
|
|
5886
5995
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5887
5996
|
], 64);
|
|
5888
5997
|
}
|
|
5889
|
-
const
|
|
5998
|
+
const Js = /* @__PURE__ */ k(Gs, [["render", _s]]), Qs = (e) => {
|
|
5999
|
+
const t = e.startsWith("component.") ? e.slice(10) : e;
|
|
6000
|
+
return t === "options.symbol" || t === "options.symbol.content" || t.startsWith("options.symbol.content.");
|
|
6001
|
+
}, Ys = (e, t) => !!(e != null && e.content) && !Object.keys(t || {}).some(Qs), Xs = async ({
|
|
5890
6002
|
builderContextValue: e,
|
|
5891
6003
|
symbol: t
|
|
5892
6004
|
}) => {
|
|
5893
6005
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5894
6006
|
(e != null && e.apiKey))
|
|
5895
|
-
return
|
|
6007
|
+
return xe({
|
|
5896
6008
|
model: t.model,
|
|
5897
6009
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
5898
6010
|
apiVersion: e.apiVersion,
|
|
@@ -5902,11 +6014,11 @@ const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
|
|
|
5902
6014
|
}
|
|
5903
6015
|
}
|
|
5904
6016
|
}).catch((n) => {
|
|
5905
|
-
|
|
6017
|
+
V.error("Could not fetch symbol content: ", n);
|
|
5906
6018
|
});
|
|
5907
|
-
},
|
|
6019
|
+
}, Zs = y({
|
|
5908
6020
|
name: "builder-symbol",
|
|
5909
|
-
components: { ContentVariants:
|
|
6021
|
+
components: { ContentVariants: Js, DynamicDiv: oe },
|
|
5910
6022
|
props: [
|
|
5911
6023
|
"symbol",
|
|
5912
6024
|
"builderComponents",
|
|
@@ -5921,7 +6033,8 @@ const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
|
|
|
5921
6033
|
return {
|
|
5922
6034
|
contentToUse: (e = this.symbol) == null ? void 0 : e.content,
|
|
5923
6035
|
symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
|
|
5924
|
-
filterAttrs:
|
|
6036
|
+
filterAttrs: N,
|
|
6037
|
+
isSymbolContentInlinedInParent: Ys
|
|
5925
6038
|
};
|
|
5926
6039
|
},
|
|
5927
6040
|
mounted() {
|
|
@@ -5963,7 +6076,7 @@ const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
|
|
|
5963
6076
|
methods: {
|
|
5964
6077
|
setContent() {
|
|
5965
6078
|
var e;
|
|
5966
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
6079
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || Xs({
|
|
5967
6080
|
symbol: this.symbol,
|
|
5968
6081
|
builderContextValue: this.builderContext
|
|
5969
6082
|
}).then((t) => {
|
|
@@ -5973,76 +6086,123 @@ const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
|
|
|
5973
6086
|
}
|
|
5974
6087
|
}
|
|
5975
6088
|
});
|
|
5976
|
-
function
|
|
5977
|
-
var l, a,
|
|
5978
|
-
const s =
|
|
5979
|
-
return
|
|
5980
|
-
|
|
6089
|
+
function ea(e, t, n, o, r, i) {
|
|
6090
|
+
var l, a, d, p, b, c, m, f;
|
|
6091
|
+
const s = C("ContentVariants");
|
|
6092
|
+
return u(), h("div", R({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
6093
|
+
$(s, {
|
|
5981
6094
|
nonce: e.builderContext.nonce,
|
|
5982
6095
|
isNestedRender: !0,
|
|
6096
|
+
isContentInlinedInParent: e.isSymbolContentInlinedInParent(e.symbol, (l = e.builderBlock) == null ? void 0 : l.bindings),
|
|
5983
6097
|
apiVersion: e.builderContext.apiVersion,
|
|
5984
|
-
apiKey: (
|
|
6098
|
+
apiKey: (a = e.symbol) != null && a.global && ((d = e.symbol) != null && d.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
|
|
5985
6099
|
context: {
|
|
5986
6100
|
...e.builderContext.context,
|
|
5987
|
-
symbolId: (
|
|
6101
|
+
symbolId: (p = e.builderBlock) == null ? void 0 : p.id
|
|
5988
6102
|
},
|
|
5989
6103
|
customComponents: e.customComponents,
|
|
5990
6104
|
data: {
|
|
5991
|
-
...(
|
|
6105
|
+
...(b = e.symbol) == null ? void 0 : b.data,
|
|
5992
6106
|
...e.builderContext.localState,
|
|
5993
|
-
...(
|
|
6107
|
+
...(m = (c = e.contentToUse) == null ? void 0 : c.data) == null ? void 0 : m.state
|
|
5994
6108
|
},
|
|
5995
6109
|
canTrack: e.builderContext.canTrack,
|
|
5996
|
-
model: ((
|
|
6110
|
+
model: ((f = e.symbol) == null ? void 0 : f.model) ?? "",
|
|
5997
6111
|
content: e.contentToUse,
|
|
5998
6112
|
linkComponent: e.builderLinkComponent,
|
|
5999
6113
|
blocksWrapper: e.blocksWrapper,
|
|
6000
6114
|
contentWrapper: e.contentWrapper
|
|
6001
|
-
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
6115
|
+
}, null, 8, ["nonce", "isContentInlinedInParent", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
6002
6116
|
], 16);
|
|
6003
6117
|
}
|
|
6004
|
-
const
|
|
6118
|
+
const ta = /* @__PURE__ */ k(Zs, [["render", ea]]), na = y({
|
|
6119
|
+
name: "builder-scripts",
|
|
6120
|
+
components: { InlinedScript: ye },
|
|
6121
|
+
props: ["nonce"],
|
|
6122
|
+
data() {
|
|
6123
|
+
return {
|
|
6124
|
+
isSupported: fs.includes(E),
|
|
6125
|
+
shouldRenderAbTestFns: E !== "react",
|
|
6126
|
+
getInitPersonalizationVariantsFnsScriptString: Yt,
|
|
6127
|
+
SDKS_SUPPORTING_PERSONALIZATION: Fe,
|
|
6128
|
+
TARGET: E,
|
|
6129
|
+
getInitVariantsFnsScriptString: Zt
|
|
6130
|
+
};
|
|
6131
|
+
},
|
|
6132
|
+
provide() {
|
|
6133
|
+
const e = this;
|
|
6134
|
+
return {
|
|
6135
|
+
[Pe.key]: { scriptsEmitted: e.isSupported }
|
|
6136
|
+
};
|
|
6137
|
+
},
|
|
6138
|
+
inject: {
|
|
6139
|
+
parentScriptsContext: Pe.key
|
|
6140
|
+
}
|
|
6141
|
+
});
|
|
6142
|
+
function oa(e, t, n, o, r, i) {
|
|
6143
|
+
var l;
|
|
6144
|
+
const s = C("InlinedScript");
|
|
6145
|
+
return u(), h(w, null, [
|
|
6146
|
+
e.isSupported && !((l = e.parentScriptsContext) != null && l.scriptsEmitted) ? (u(), h(w, { key: 0 }, [
|
|
6147
|
+
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (u(), S(s, {
|
|
6148
|
+
key: 0,
|
|
6149
|
+
id: "builderio-init-personalization-variants-fns",
|
|
6150
|
+
nonce: e.nonce || "",
|
|
6151
|
+
scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
|
|
6152
|
+
}, null, 8, ["nonce", "scriptStr"])) : v("", !0),
|
|
6153
|
+
e.shouldRenderAbTestFns ? (u(), S(s, {
|
|
6154
|
+
key: 1,
|
|
6155
|
+
id: "builderio-init-variants-fns",
|
|
6156
|
+
nonce: e.nonce || "",
|
|
6157
|
+
scriptStr: e.getInitVariantsFnsScriptString()
|
|
6158
|
+
}, null, 8, ["nonce", "scriptStr"])) : v("", !0)
|
|
6159
|
+
], 64)) : v("", !0),
|
|
6160
|
+
B(e.$slots, "default")
|
|
6161
|
+
], 64);
|
|
6162
|
+
}
|
|
6163
|
+
const Sa = /* @__PURE__ */ k(na, [["render", oa]]);
|
|
6005
6164
|
export {
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6165
|
+
Wt as A,
|
|
6166
|
+
Jt as B,
|
|
6167
|
+
lr as C,
|
|
6168
|
+
aa as D,
|
|
6169
|
+
ua as E,
|
|
6170
|
+
ur as F,
|
|
6171
|
+
ma as G,
|
|
6172
|
+
Ro as H,
|
|
6173
|
+
Sr as I,
|
|
6174
|
+
$o as J,
|
|
6175
|
+
xe as K,
|
|
6176
|
+
sa as L,
|
|
6177
|
+
ga as M,
|
|
6178
|
+
Cr as S,
|
|
6019
6179
|
E as T,
|
|
6020
|
-
|
|
6021
|
-
|
|
6180
|
+
us as V,
|
|
6181
|
+
k as _,
|
|
6022
6182
|
H as a,
|
|
6023
|
-
|
|
6024
|
-
|
|
6183
|
+
Te as b,
|
|
6184
|
+
ge as c,
|
|
6025
6185
|
j as d,
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6186
|
+
ne as e,
|
|
6187
|
+
ha as f,
|
|
6188
|
+
ba as g,
|
|
6189
|
+
rr as h,
|
|
6190
|
+
P as i,
|
|
6191
|
+
fa as j,
|
|
6192
|
+
ya as k,
|
|
6193
|
+
Le as l,
|
|
6194
|
+
eo as m,
|
|
6195
|
+
dn as n,
|
|
6196
|
+
ta as o,
|
|
6197
|
+
pi as p,
|
|
6198
|
+
z as q,
|
|
6199
|
+
Sa as r,
|
|
6200
|
+
Js as s,
|
|
6201
|
+
pa as t,
|
|
6202
|
+
be as u,
|
|
6203
|
+
to as v,
|
|
6204
|
+
js as w,
|
|
6205
|
+
la as x,
|
|
6206
|
+
ca as y,
|
|
6207
|
+
da as z
|
|
6048
6208
|
};
|