@builder.io/sdk-vue 5.2.15 → 5.3.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-2lM_rT3U.cjs → awaiter-2uzflb3S.cjs} +1 -1
- package/lib/browser/{awaiter-252HRRNi.js → awaiter-4aFQAEvG.js} +1 -1
- package/lib/browser/{block-wrapper-cfaTbC1n.cjs → block-wrapper-1ItsXF0j.cjs} +1 -1
- package/lib/browser/{block-wrapper-C1nlMTqm.js → block-wrapper-Uj0c_ct-.js} +3 -3
- package/lib/browser/{component-ref-Xhuf1e4j.js → component-ref-826ipClg.js} +4 -4
- package/lib/browser/{component-ref-d6ezDlQq.cjs → component-ref-U0GRcehd.cjs} +1 -1
- 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/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/constants/builder-registered-components.d.ts +1 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- 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-XhHpZEJX.cjs +1 -0
- package/lib/browser/{get-block-properties-ti8MfeDj.js → get-block-properties-u3S8CkNp.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-Su1HB7sT.js → index-Jf8hjJYZ.js} +1098 -998
- package/lib/browser/index-KofqhXXd.cjs +368 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-z4s9J22F.cjs → live-edit-BxSoS0rX.cjs} +1 -1
- package/lib/browser/{live-edit-CB5gYO0t.js → live-edit-uev5ovOr.js} +1 -1
- package/lib/browser/{repeated-block-Y6bY0Wng.cjs → repeated-block-Mj7AAxUa.cjs} +1 -1
- package/lib/browser/{repeated-block-xzflsmu_.js → repeated-block-s-uTJJ2l.js} +2 -2
- package/lib/browser/{style-wrapper-akXULsFD.cjs → style-wrapper-C17hpa9C.cjs} +1 -1
- package/lib/browser/{style-wrapper-0oQEXIZd.js → style-wrapper-WeOZ3wU5.js} +1 -1
- package/lib/edge/{awaiter-ILD5v_T5.js → awaiter-3P7HNK2U.js} +1 -1
- package/lib/edge/{awaiter-98XudUPT.cjs → awaiter-tL_1GDRg.cjs} +1 -1
- package/lib/edge/{block-wrapper-8HiqIpnM.cjs → block-wrapper-AJ9g81fv.cjs} +1 -1
- package/lib/{node/block-wrapper-rW0pbE89.js → edge/block-wrapper-W6_AJxdH.js} +3 -3
- package/lib/edge/{component-ref-iOnqc5Jy.js → component-ref-2H6t6CVL.js} +4 -4
- package/lib/edge/{component-ref-VMmpuF1Z.cjs → component-ref-kOTGaG_S.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/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/constants/builder-registered-components.d.ts +1 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- 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-Cf0JYe8s.cjs +1 -0
- package/lib/edge/{get-block-properties-uLvX_s0g.js → get-block-properties-yDy5CcoJ.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-n8ujdiJM.js → index-0OjD7npr.js} +1879 -1779
- package/lib/edge/{index-srIF83gr.cjs → index-Vo2N3MOA.cjs} +49 -49
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{live-edit-alyPFECH.js → live-edit-es0ntXpd.js} +1 -1
- package/lib/{node/live-edit-S1qfZXZ1.cjs → edge/live-edit-hyHdyjeL.cjs} +1 -1
- package/lib/edge/{repeated-block-iLuTUVQ1.js → repeated-block-UG8Sns3u.js} +2 -2
- package/lib/edge/{repeated-block-BbhF26Bz.cjs → repeated-block-d6gfiTTu.cjs} +1 -1
- package/lib/edge/{style-wrapper-EmhgSKHB.js → style-wrapper-UpCDtTSA.js} +1 -1
- package/lib/edge/{style-wrapper-YcHBIann.cjs → style-wrapper-pawaG9qF.cjs} +1 -1
- package/lib/node/{awaiter-9J3ijUCH.js → awaiter-AN3_pw27.js} +1 -1
- package/lib/node/{awaiter-NWae7gVL.cjs → awaiter-bGTvqMbD.cjs} +1 -1
- package/lib/{edge/block-wrapper-RE0mDatJ.js → node/block-wrapper-e5lqTjH4.js} +3 -3
- package/lib/node/{block-wrapper-qJrfCMGq.cjs → block-wrapper-uIhnB7Vo.cjs} +1 -1
- package/lib/node/{component-ref-DYOularh.cjs → component-ref-hWkVL5In.cjs} +1 -1
- package/lib/node/{component-ref-EUVN2TYe.js → component-ref-lBfIlbHs.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/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/constants/builder-registered-components.d.ts +1 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- 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-VD2nOy1H.cjs +1 -0
- package/lib/node/{get-block-properties-IJF6DYIj.js → get-block-properties-pMlEyIJy.js} +20 -17
- 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-jMlC_wZp.cjs → index-3pN6fdOW.cjs} +42 -42
- package/lib/node/{index-Jlkd4q2q.js → index-xfji5jj1.js} +1078 -1005
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +8 -8
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/node/{live-edit-xVy-DugY.js → live-edit-GfW2VTki.js} +1 -1
- package/lib/{edge/live-edit-eVRi7gn8.cjs → node/live-edit-iCnhUEuS.cjs} +1 -1
- package/lib/node/{repeated-block-qrXKn9Na.cjs → repeated-block-RuIC6FQv.cjs} +1 -1
- package/lib/node/{repeated-block-N4moJ_ma.js → repeated-block-hte-wY9-.js} +2 -2
- package/lib/node/should-force-browser-runtime-in-node-oNYv8BG3.cjs +56 -0
- package/lib/node/should-force-browser-runtime-in-node-r2oi-Y6E.js +725 -0
- package/lib/node/{style-wrapper-l93hb5Pq.cjs → style-wrapper-c9ma8_oR.cjs} +1 -1
- package/lib/node/{style-wrapper-ItVc2ksk.js → style-wrapper-y6_fa2q6.js} +8 -8
- package/package.json +1 -1
- package/lib/browser/get-block-properties-rnyASgT2.cjs +0 -1
- package/lib/browser/index-ut_ryl3Q.cjs +0 -368
- package/lib/edge/get-block-properties-enTU2L6v.cjs +0 -1
- package/lib/node/get-block-properties-7IX5w2pQ.cjs +0 -1
- package/lib/node/should-force-browser-runtime-in-node-EZPrW2gu.js +0 -503
- package/lib/node/should-force-browser-runtime-in-node-bKybXtCz.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 I, createBlock as v, resolveDynamicComponent as Z, mergeProps as E, toHandlers as U, withCtx as D, renderSlot as O, resolveComponent as k, createTextVNode as Xt, toDisplayString as he, defineAsyncComponent as Y, createVNode as $, renderList as L, createCommentVNode as T, h as pt, createElementVNode as G, normalizeStyle as M, normalizeClass as te, markRaw as Zt } from "vue";
|
|
3
|
+
const en = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tn = (e) => typeof e == "string" && en.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,38 +11,38 @@ function O(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const nn = y({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: tn };
|
|
19
19
|
}
|
|
20
|
-
}),
|
|
20
|
+
}), S = (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 on(e, t, n, o, r, i) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (u(), v(Z(e.TagName), E({ key: 1 }, e.attributes, U(e.actionAttributes)), null, 16)) : (u(), h(I, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (u(), v(Z(e.TagName), E({ key: 0 }, e.attributes, U(e.actionAttributes)), {
|
|
29
29
|
default: D(() => [
|
|
30
|
-
|
|
30
|
+
O(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (
|
|
33
|
+
}, 16)) : (u(), v(Z(e.TagName), E({ key: 1 }, e.attributes, U(e.actionAttributes)), {
|
|
34
34
|
default: D(() => [
|
|
35
|
-
|
|
35
|
+
O(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const Pe = /* @__PURE__ */ S(nn, [["render", on]]), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
45
|
-
switch (
|
|
43
|
+
default: Pe
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), R = "vue", H = () => {
|
|
45
|
+
switch (R) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
48
48
|
case "rsc":
|
|
@@ -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
|
+
}, rn = y({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: Pe },
|
|
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
|
|
86
|
+
function sn(e, t, n, o, r, i) {
|
|
87
87
|
const s = k("DynamicRenderer");
|
|
88
|
-
return
|
|
88
|
+
return u(), v(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
|
+
Xt(he(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const an = /* @__PURE__ */ S(rn, [["render", sn]]), ln = Symbol(), Ce = {
|
|
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: ln
|
|
117
|
+
}, cn = Symbol(), mt = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
|
-
key:
|
|
120
|
-
},
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
119
|
+
key: cn
|
|
120
|
+
}, ht = (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]: ", B = {
|
|
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
|
+
}, ft = (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
137
|
function w() {
|
|
130
138
|
return typeof window < "u" && typeof document < "u";
|
|
131
139
|
}
|
|
132
|
-
const
|
|
140
|
+
const dn = (e) => {
|
|
133
141
|
const t = {};
|
|
134
142
|
return e.forEach((n, o) => {
|
|
135
143
|
t[o] = n;
|
|
136
144
|
}), t;
|
|
137
|
-
},
|
|
138
|
-
function
|
|
145
|
+
}, bt = (e) => e instanceof URLSearchParams ? dn(e) : e, gt = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
146
|
+
function un() {
|
|
139
147
|
return w() && window.self !== window.top;
|
|
140
148
|
}
|
|
141
149
|
function A(e) {
|
|
142
|
-
return
|
|
143
|
-
|
|
150
|
+
return un() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
151
|
+
gt(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
144
152
|
}
|
|
145
|
-
const
|
|
153
|
+
const pn = () => {
|
|
146
154
|
if (w()) {
|
|
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
|
+
}, mn = () => typeof navigator == "object" && navigator.userAgent || "", yt = () => {
|
|
160
|
+
const e = mn(), t = {
|
|
153
161
|
Android() {
|
|
154
162
|
return e.match(/Android/i);
|
|
155
163
|
},
|
|
@@ -166,24 +174,24 @@ const Yt = () => {
|
|
|
166
174
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
167
175
|
},
|
|
168
176
|
any() {
|
|
169
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
177
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || R === "reactNative";
|
|
170
178
|
}
|
|
171
|
-
}, n = e.match(/Tablet|iPad/i), o =
|
|
179
|
+
}, n = e.match(/Tablet|iPad/i), o = pn();
|
|
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
|
-
},
|
|
178
|
-
"X-Builder-SDK":
|
|
185
|
+
}, St = "5.3.0", vt = () => ({
|
|
186
|
+
"X-Builder-SDK": R,
|
|
179
187
|
"X-Builder-SDK-GEN": "2",
|
|
180
|
-
"X-Builder-SDK-Version":
|
|
181
|
-
}), j = (e) => e != null,
|
|
188
|
+
"X-Builder-SDK-Version": St
|
|
189
|
+
}), j = (e) => e != null, hn = (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
|
}) => {
|
|
@@ -194,14 +202,14 @@ const Yt = () => {
|
|
|
194
202
|
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
195
203
|
return;
|
|
196
204
|
}
|
|
197
|
-
},
|
|
205
|
+
}, kt = async (e) => fe(e), fn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(j).join("; "), bn = [["secure", ""], ["SameSite", "None"]], gn = ({
|
|
198
206
|
name: e,
|
|
199
207
|
value: t,
|
|
200
208
|
expires: n
|
|
201
209
|
}) => {
|
|
202
|
-
const r = (w() ? location.protocol === "https:" : !0) ?
|
|
203
|
-
return
|
|
204
|
-
},
|
|
210
|
+
const r = (w() ? location.protocol === "https:" : !0) ? bn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", hn(window.location.hostname)], ...r];
|
|
211
|
+
return fn(s);
|
|
212
|
+
}, Be = async ({
|
|
205
213
|
name: e,
|
|
206
214
|
value: t,
|
|
207
215
|
expires: n,
|
|
@@ -210,7 +218,7 @@ const Yt = () => {
|
|
|
210
218
|
try {
|
|
211
219
|
if (!o)
|
|
212
220
|
return;
|
|
213
|
-
const r =
|
|
221
|
+
const r = gn({
|
|
214
222
|
name: e,
|
|
215
223
|
value: t,
|
|
216
224
|
expires: n
|
|
@@ -220,93 +228,93 @@ const Yt = () => {
|
|
|
220
228
|
B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
221
229
|
}
|
|
222
230
|
};
|
|
223
|
-
function
|
|
231
|
+
function yn() {
|
|
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 Ct() {
|
|
238
|
+
return yn().replace(/-/g, "");
|
|
231
239
|
}
|
|
232
|
-
const
|
|
240
|
+
const Tt = "builderSessionId", Sn = async ({
|
|
233
241
|
canTrack: e
|
|
234
242
|
}) => {
|
|
235
243
|
if (!e)
|
|
236
244
|
return;
|
|
237
|
-
const t = await
|
|
238
|
-
name:
|
|
245
|
+
const t = await kt({
|
|
246
|
+
name: Tt,
|
|
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 = vn();
|
|
253
|
+
return kn({
|
|
246
254
|
id: n,
|
|
247
255
|
canTrack: e
|
|
248
256
|
}), n;
|
|
249
257
|
}
|
|
250
|
-
},
|
|
258
|
+
}, vn = () => Ct(), kn = ({
|
|
251
259
|
id: e,
|
|
252
260
|
canTrack: t
|
|
253
|
-
}) =>
|
|
254
|
-
name:
|
|
261
|
+
}) => Be({
|
|
262
|
+
name: Tt,
|
|
255
263
|
value: e,
|
|
256
264
|
canTrack: t
|
|
257
|
-
}),
|
|
265
|
+
}), wt = () => w() && typeof localStorage < "u" ? localStorage : void 0, Cn = ({
|
|
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 = wt()) == 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
|
+
}, Tn = ({
|
|
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 = wt()) == null || o.setItem(e, n));
|
|
276
284
|
} catch (r) {
|
|
277
285
|
console.debug("[LocalStorage] SET error: ", r);
|
|
278
286
|
}
|
|
279
|
-
},
|
|
287
|
+
}, It = "builderVisitorId", wn = ({
|
|
280
288
|
canTrack: e
|
|
281
289
|
}) => {
|
|
282
290
|
if (!e)
|
|
283
291
|
return;
|
|
284
|
-
const t =
|
|
285
|
-
key:
|
|
292
|
+
const t = Cn({
|
|
293
|
+
key: It,
|
|
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 = In();
|
|
300
|
+
return En({
|
|
293
301
|
id: n,
|
|
294
302
|
canTrack: e
|
|
295
303
|
}), n;
|
|
296
304
|
}
|
|
297
|
-
},
|
|
305
|
+
}, In = () => Ct(), En = ({
|
|
298
306
|
id: e,
|
|
299
307
|
canTrack: t
|
|
300
|
-
}) =>
|
|
301
|
-
key:
|
|
308
|
+
}) => Tn({
|
|
309
|
+
key: It,
|
|
302
310
|
value: e,
|
|
303
311
|
canTrack: t
|
|
304
312
|
});
|
|
305
|
-
function
|
|
313
|
+
function Ve(e) {
|
|
306
314
|
var t;
|
|
307
315
|
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
|
|
308
316
|
}
|
|
309
|
-
const
|
|
317
|
+
const Rn = 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 Sn({
|
|
318
326
|
canTrack: e
|
|
319
|
-
}), n =
|
|
327
|
+
}), n = wn({
|
|
320
328
|
canTrack: e
|
|
321
329
|
});
|
|
322
330
|
return {
|
|
323
331
|
sessionId: t,
|
|
324
332
|
visitorId: n
|
|
325
333
|
};
|
|
326
|
-
},
|
|
334
|
+
}, $n = async ({
|
|
327
335
|
type: e,
|
|
328
336
|
canTrack: t,
|
|
329
337
|
apiKey: n,
|
|
@@ -337,14 +345,14 @@ const mn = async ({
|
|
|
337
345
|
url: location.href,
|
|
338
346
|
...o
|
|
339
347
|
},
|
|
340
|
-
...await
|
|
348
|
+
...await Rn({
|
|
341
349
|
canTrack: t
|
|
342
350
|
}),
|
|
343
|
-
userAttributes:
|
|
351
|
+
userAttributes: yt(),
|
|
344
352
|
ownerId: n
|
|
345
353
|
}
|
|
346
354
|
});
|
|
347
|
-
async function
|
|
355
|
+
async function ue({
|
|
348
356
|
apiHost: e,
|
|
349
357
|
...t
|
|
350
358
|
}) {
|
|
@@ -352,27 +360,27 @@ async function le({
|
|
|
352
360
|
B.error("Missing API key for track call. Please provide your API key.");
|
|
353
361
|
return;
|
|
354
362
|
}
|
|
355
|
-
if (!t.canTrack || A() || !(w() ||
|
|
363
|
+
if (!t.canTrack || A() || !(w() || R === "reactNative"))
|
|
356
364
|
return;
|
|
357
365
|
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
358
|
-
return
|
|
366
|
+
return Ve(o), fetch(o, {
|
|
359
367
|
method: "POST",
|
|
360
368
|
body: JSON.stringify({
|
|
361
|
-
events: [await
|
|
369
|
+
events: [await $n(t)]
|
|
362
370
|
}),
|
|
363
371
|
headers: {
|
|
364
372
|
"content-type": "application/json",
|
|
365
|
-
...
|
|
373
|
+
...vt()
|
|
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 ea = (e) => ue({
|
|
373
381
|
...e,
|
|
374
382
|
canTrack: !0
|
|
375
|
-
}),
|
|
383
|
+
}), An = ({
|
|
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
|
-
}),
|
|
395
|
+
}), Pn = (e) => ({
|
|
388
396
|
isEditing: A(),
|
|
389
397
|
isBrowser: w(),
|
|
390
398
|
isServer: !w(),
|
|
391
|
-
getUserAttributes: () =>
|
|
399
|
+
getUserAttributes: () => yt(),
|
|
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
|
+
}), Bn = (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 Et({
|
|
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 ? Et({
|
|
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 Vn = 5e3, He = ht(Vn), On = (e, t) => {
|
|
444
|
+
let n = He.get(t);
|
|
445
|
+
return n || (n = new Function(...e, t), He.set(t, n)), n;
|
|
446
|
+
}, je = ({
|
|
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 = An({
|
|
445
456
|
builder: t,
|
|
446
457
|
context: n,
|
|
447
458
|
event: o,
|
|
448
|
-
state:
|
|
459
|
+
state: Et({
|
|
449
460
|
rootState: s,
|
|
450
461
|
localState: r,
|
|
451
462
|
rootSetState: i
|
|
452
463
|
})
|
|
453
464
|
});
|
|
454
|
-
return
|
|
465
|
+
return On(l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
455
466
|
};
|
|
456
|
-
function
|
|
467
|
+
function Nn() {
|
|
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 Ke = !1;
|
|
472
|
+
const Wn = ({
|
|
461
473
|
shouldLogWarning: e
|
|
462
474
|
}) => {
|
|
463
475
|
var r;
|
|
464
|
-
if (!
|
|
476
|
+
if (!Nn())
|
|
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 && B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
468
|
-
},
|
|
479
|
+
return t && n && !o ? (e && !Ke && (Ke = !0, B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n ")), !0) : !1;
|
|
480
|
+
}, Dn = (e) => (w() || Wn({
|
|
469
481
|
shouldLogWarning: !0
|
|
470
|
-
}),
|
|
482
|
+
}), je(e)), xn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Un = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Ln = (e) => {
|
|
471
483
|
var t, n, o, r, i, s;
|
|
472
|
-
return ((o = (n = (t =
|
|
484
|
+
return ((o = (n = (t = xn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Un.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
485
|
+
}, Fn = 5e3, ze = ht(Fn), Mn = (e) => {
|
|
486
|
+
let t = ze.get(e);
|
|
487
|
+
return t === void 0 && (t = Ln(e) || null, ze.set(e, t)), t;
|
|
488
|
+
}, Hn = (e, t, n) => {
|
|
489
|
+
const o = n.split(".")[0], r = t && Object.prototype.hasOwnProperty.call(t, o) ? t : e;
|
|
490
|
+
return ft(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 = Mn(e.trim());
|
|
487
505
|
if (a)
|
|
488
|
-
return
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
}, a);
|
|
492
|
-
const u = {
|
|
493
|
-
code: gn(e, {
|
|
506
|
+
return Hn(o, n, a);
|
|
507
|
+
const d = {
|
|
508
|
+
code: Bn(e, {
|
|
494
509
|
isExpression: s
|
|
495
510
|
}),
|
|
496
|
-
builder:
|
|
511
|
+
builder: Pn(l),
|
|
497
512
|
context: t,
|
|
498
513
|
event: i,
|
|
499
514
|
rootSetState: r,
|
|
@@ -501,7 +516,7 @@ function te({
|
|
|
501
516
|
localState: n
|
|
502
517
|
};
|
|
503
518
|
try {
|
|
504
|
-
return
|
|
519
|
+
return Dn(d);
|
|
505
520
|
} catch (p) {
|
|
506
521
|
B.error("Failed code evaluation: " + p.message, {
|
|
507
522
|
code: e
|
|
@@ -509,20 +524,20 @@ function te({
|
|
|
509
524
|
return;
|
|
510
525
|
}
|
|
511
526
|
}
|
|
512
|
-
function
|
|
527
|
+
function jn(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
|
+
...Kn(e, t)
|
|
518
533
|
};
|
|
519
534
|
}
|
|
520
|
-
const
|
|
535
|
+
const Kn = (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 Rt(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 zn = (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 (Rt(e))
|
|
562
|
+
return ae(e[t] ?? void 0, t, n);
|
|
563
|
+
if (!zn(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 qn(e, t) {
|
|
585
|
+
var r;
|
|
586
|
+
const n = (r = e.component) == null ? void 0 : r.options;
|
|
587
|
+
if (!n || typeof n != "object" || Rt(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 || (w() ? window.location.search : void 0);
|
|
600
|
+
return t ? gt(t).indexOf("builder.preview=") !== -1 : !1;
|
|
579
601
|
}
|
|
580
|
-
const
|
|
602
|
+
const $t = () => A() || be(), At = (e) => e.toString().match(/[^.[\]]+/g), Pt = (e) => Math.abs(Number(e)) >> 0 === +e, Bt = (e) => e.some((t, n) => t === "__proto__" || n < e.length - 1 && (t === "constructor" || t === "prototype")), Vt = (e, t) => Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0, Gn = (e, t, n) => {
|
|
581
603
|
if (Object(e) !== e)
|
|
582
604
|
return e;
|
|
583
|
-
const o = Array.isArray(t) ? t : t
|
|
584
|
-
return o.slice(0, -1).reduce((r, i, s) =>
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
605
|
+
const o = Array.isArray(t) ? t : At(t);
|
|
606
|
+
return !o || Bt(o) || (o.slice(0, -1).reduce((r, i, s) => {
|
|
607
|
+
const l = Vt(r, i);
|
|
608
|
+
return Object(l) === l ? l : r[i] = Pt(o[s + 1]) ? [] : {};
|
|
609
|
+
}, e)[o[o.length - 1]] = n), e;
|
|
610
|
+
}, _n = (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 = At(t);
|
|
614
|
+
if (!r || Bt(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 = Vt(i, l);
|
|
621
|
+
Object(a) !== a ? (a = Pt(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 Jn = ({
|
|
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
|
+
_n(s, l, d, i);
|
|
643
655
|
}
|
|
644
|
-
return
|
|
656
|
+
return s;
|
|
657
|
+
}, qe = /* @__PURE__ */ new WeakMap(), Qn = (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 Yn({
|
|
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 = !Qn(e) && typeof e == "object" && e !== null && !$t(), l = i ?? "";
|
|
672
|
+
if (s) {
|
|
673
|
+
const d = qe.get(e);
|
|
674
|
+
if (d && d.locale === l)
|
|
675
|
+
return d.block;
|
|
676
|
+
}
|
|
677
|
+
let a = e;
|
|
678
|
+
return a = Jn({
|
|
679
|
+
block: a,
|
|
656
680
|
localState: n,
|
|
657
681
|
rootState: o,
|
|
658
682
|
rootSetState: r,
|
|
659
683
|
context: t
|
|
660
|
-
}),
|
|
684
|
+
}), a = qn(a, i), s && qe.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 Xn = (e) => ({
|
|
667
690
|
type: "builder.registerComponent",
|
|
668
|
-
data:
|
|
669
|
-
}),
|
|
691
|
+
data: Oe(e)
|
|
692
|
+
}), Zn = (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 Oe(e) {
|
|
697
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Zn(n) : n));
|
|
675
698
|
}
|
|
676
|
-
const
|
|
677
|
-
function
|
|
678
|
-
e === "plugin" && (t =
|
|
679
|
-
let n =
|
|
680
|
-
if (n || (n =
|
|
699
|
+
const Ge = {};
|
|
700
|
+
function ta(e, t) {
|
|
701
|
+
e === "plugin" && (t = Oe(t));
|
|
702
|
+
let n = Ge[e];
|
|
703
|
+
if (n || (n = Ge[e] = []), n.push(t), w()) {
|
|
681
704
|
const o = {
|
|
682
705
|
type: "builder.register",
|
|
683
706
|
data: {
|
|
@@ -692,7 +715,7 @@ function Ns(e, t) {
|
|
|
692
715
|
}
|
|
693
716
|
}
|
|
694
717
|
}
|
|
695
|
-
function
|
|
718
|
+
function na(e) {
|
|
696
719
|
var t;
|
|
697
720
|
if (w()) {
|
|
698
721
|
const n = JSON.parse(JSON.stringify(e));
|
|
@@ -702,50 +725,50 @@ function Os(e) {
|
|
|
702
725
|
}, "*");
|
|
703
726
|
}
|
|
704
727
|
}
|
|
705
|
-
const
|
|
706
|
-
function
|
|
728
|
+
const _e = {};
|
|
729
|
+
function oa(e) {
|
|
707
730
|
if (w()) {
|
|
708
|
-
Object.assign(
|
|
731
|
+
Object.assign(_e, e);
|
|
709
732
|
const t = {
|
|
710
733
|
type: "builder.settingsChange",
|
|
711
|
-
data:
|
|
734
|
+
data: _e
|
|
712
735
|
};
|
|
713
736
|
parent.postMessage(t, "*");
|
|
714
737
|
}
|
|
715
738
|
}
|
|
716
|
-
const
|
|
739
|
+
const Je = "builder.", eo = "options.", Ot = (e) => {
|
|
717
740
|
if (!e)
|
|
718
741
|
return {};
|
|
719
|
-
const t =
|
|
742
|
+
const t = bt(e), n = {};
|
|
720
743
|
return Object.keys(t).forEach((o) => {
|
|
721
|
-
if (o.startsWith(
|
|
722
|
-
const r = o.replace(
|
|
744
|
+
if (o.startsWith(Je)) {
|
|
745
|
+
const r = o.replace(Je, "").replace(eo, "");
|
|
723
746
|
n[r] = t[o];
|
|
724
747
|
}
|
|
725
748
|
}), n;
|
|
726
|
-
},
|
|
749
|
+
}, to = () => {
|
|
727
750
|
if (!w())
|
|
728
751
|
return {};
|
|
729
752
|
const e = new URLSearchParams(window.location.search);
|
|
730
|
-
return
|
|
731
|
-
},
|
|
732
|
-
function
|
|
753
|
+
return Ot(e);
|
|
754
|
+
}, no = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
755
|
+
function Nt(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 || no).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
|
|
740
763
|
}
|
|
741
|
-
let
|
|
742
|
-
const
|
|
764
|
+
let Qe = !1;
|
|
765
|
+
const Wt = (e) => {
|
|
743
766
|
var t, n;
|
|
744
|
-
|
|
767
|
+
Qe || (Qe = !0, w() && ((t = window.parent) == null || t.postMessage({
|
|
745
768
|
type: "builder.sdkInfo",
|
|
746
769
|
data: {
|
|
747
|
-
target:
|
|
748
|
-
version:
|
|
770
|
+
target: R,
|
|
771
|
+
version: St,
|
|
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 (!Nt(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
|
+
}, Dt = ({
|
|
808
831
|
model: e,
|
|
809
832
|
trustedHosts: t,
|
|
810
833
|
callbacks: n
|
|
811
834
|
}) => (o) => {
|
|
812
|
-
if (!
|
|
835
|
+
if (!Nt(t, o))
|
|
813
836
|
return;
|
|
814
837
|
const {
|
|
815
838
|
data: r
|
|
@@ -835,7 +858,7 @@ const kt = (e) => {
|
|
|
835
858
|
break;
|
|
836
859
|
}
|
|
837
860
|
}
|
|
838
|
-
},
|
|
861
|
+
}, ra = ({
|
|
839
862
|
model: e,
|
|
840
863
|
apiKey: t,
|
|
841
864
|
callback: n,
|
|
@@ -844,11 +867,11 @@ const kt = (e) => {
|
|
|
844
867
|
if (!w)
|
|
845
868
|
return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
846
869
|
};
|
|
847
|
-
|
|
870
|
+
Wt({
|
|
848
871
|
modelName: e,
|
|
849
872
|
apiKey: t
|
|
850
873
|
});
|
|
851
|
-
const r =
|
|
874
|
+
const r = Dt({
|
|
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
|
+
}, oo = "builder.tests", Ne = (e) => `${oo}.${e}`, ro = ({
|
|
868
891
|
contentId: e
|
|
869
|
-
}) =>
|
|
892
|
+
}) => kt({
|
|
870
893
|
name: Ne(e),
|
|
871
894
|
canTrack: !0
|
|
872
|
-
}),
|
|
895
|
+
}), io = ({
|
|
873
896
|
contentId: e
|
|
874
|
-
}) =>
|
|
897
|
+
}) => fe({
|
|
875
898
|
name: Ne(e),
|
|
876
899
|
canTrack: !0
|
|
877
|
-
}),
|
|
900
|
+
}), so = ({
|
|
878
901
|
contentId: e,
|
|
879
902
|
value: t
|
|
880
|
-
}) =>
|
|
903
|
+
}) => Be({
|
|
881
904
|
name: Ne(e),
|
|
882
905
|
value: t,
|
|
883
906
|
canTrack: !0
|
|
884
|
-
}),
|
|
907
|
+
}), xt = (e) => j(e.id) && j(e.variations) && Object.keys(e.variations).length > 0, ao = ({
|
|
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
|
+
}, Ut = (e) => {
|
|
921
|
+
const t = ao(e);
|
|
922
|
+
return so({
|
|
900
923
|
contentId: e.id,
|
|
901
924
|
value: t
|
|
902
925
|
}).catch((n) => {
|
|
903
926
|
B.error("could not store A/B test variation: ", n);
|
|
904
927
|
}), t;
|
|
905
|
-
},
|
|
928
|
+
}, Lt = ({
|
|
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
|
+
}, lo = ({
|
|
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 (!xt(e))
|
|
928
951
|
return e;
|
|
929
|
-
const n =
|
|
952
|
+
const n = io({
|
|
930
953
|
contentId: e.id
|
|
931
|
-
}) ||
|
|
954
|
+
}) || Ut({
|
|
932
955
|
variations: e.variations,
|
|
933
956
|
id: e.id
|
|
934
|
-
}), o =
|
|
957
|
+
}), o = Lt({
|
|
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
|
+
}, co = async ({
|
|
943
966
|
item: e,
|
|
944
967
|
canTrack: t
|
|
945
968
|
}) => {
|
|
946
|
-
if (!t || !
|
|
969
|
+
if (!t || !xt(e))
|
|
947
970
|
return e;
|
|
948
|
-
const o = await
|
|
971
|
+
const o = await ro({
|
|
949
972
|
contentId: e.id
|
|
950
|
-
}) ||
|
|
973
|
+
}) || Ut({
|
|
951
974
|
variations: e.variations,
|
|
952
975
|
id: e.id
|
|
953
|
-
}), r =
|
|
976
|
+
}), r = Lt({
|
|
954
977
|
item: e,
|
|
955
978
|
testGroupId: o
|
|
956
979
|
});
|
|
@@ -959,22 +982,22 @@ const kt = (e) => {
|
|
|
959
982
|
...r
|
|
960
983
|
};
|
|
961
984
|
};
|
|
962
|
-
const
|
|
985
|
+
const uo = "builder.preview", po = "BUILDER_STUDIO", Ye = "builder.userAttributes.", mo = (e) => e === "true" ? !0 : e === "false" ? !1 : e, Xe = () => {
|
|
963
986
|
if (!w())
|
|
964
987
|
return {};
|
|
965
988
|
const e = new URLSearchParams(window.location.search);
|
|
966
|
-
if (e.get(
|
|
989
|
+
if (e.get(uo) !== po)
|
|
967
990
|
return {};
|
|
968
991
|
const t = {};
|
|
969
992
|
return e.forEach((n, o) => {
|
|
970
|
-
o.startsWith(
|
|
993
|
+
o.startsWith(Ye) && (t[o.slice(Ye.length)] = mo(n));
|
|
971
994
|
}), t;
|
|
972
|
-
},
|
|
973
|
-
function
|
|
995
|
+
}, Ze = "builder.userAttributes";
|
|
996
|
+
function et() {
|
|
974
997
|
let e = !0;
|
|
975
998
|
const t = /* @__PURE__ */ new Set(), n = () => {
|
|
976
|
-
const o =
|
|
977
|
-
name:
|
|
999
|
+
const o = fe({
|
|
1000
|
+
name: Ze,
|
|
978
1001
|
canTrack: e
|
|
979
1002
|
});
|
|
980
1003
|
return o ? JSON.parse(o) : {};
|
|
@@ -987,12 +1010,12 @@ function Qe() {
|
|
|
987
1010
|
...n(),
|
|
988
1011
|
...o
|
|
989
1012
|
};
|
|
990
|
-
|
|
991
|
-
name:
|
|
1013
|
+
Be({
|
|
1014
|
+
name: Ze,
|
|
992
1015
|
value: JSON.stringify(r),
|
|
993
1016
|
canTrack: e
|
|
994
1017
|
});
|
|
995
|
-
const i =
|
|
1018
|
+
const i = Xe();
|
|
996
1019
|
t.forEach((s) => s({
|
|
997
1020
|
...r,
|
|
998
1021
|
...i
|
|
@@ -1001,7 +1024,7 @@ function Qe() {
|
|
|
1001
1024
|
getUserAttributes() {
|
|
1002
1025
|
return w() ? {
|
|
1003
1026
|
...n(),
|
|
1004
|
-
...
|
|
1027
|
+
...Xe()
|
|
1005
1028
|
} : {};
|
|
1006
1029
|
},
|
|
1007
1030
|
subscribeOnUserAttributesChange(o, {
|
|
@@ -1016,45 +1039,45 @@ function Qe() {
|
|
|
1016
1039
|
}
|
|
1017
1040
|
};
|
|
1018
1041
|
}
|
|
1019
|
-
let
|
|
1020
|
-
w() &&
|
|
1021
|
-
const
|
|
1022
|
-
|
|
1023
|
-
},
|
|
1042
|
+
let Te;
|
|
1043
|
+
w() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = et()), Te = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : Te = et();
|
|
1044
|
+
const pe = Te, ia = (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 ho() {
|
|
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 fo() {
|
|
1054
|
+
const e = ho().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 bo = fo();
|
|
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 Ft(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("$")) ? Ft(r, i, n) : n[i] = r;
|
|
1054
1077
|
}
|
|
1055
1078
|
return n;
|
|
1056
1079
|
}
|
|
1057
|
-
function
|
|
1080
|
+
function go(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 yo = "v3", tt = (e) => typeof e == "number" && !isNaN(e) && e >= 0, We = (e) => {
|
|
1070
1093
|
const {
|
|
1071
1094
|
limit: t = 30,
|
|
1072
1095
|
userAttributes: n,
|
|
@@ -1076,7 +1099,7 @@ const Zn = "v3", _e = (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 = yo,
|
|
1080
1103
|
fields: p,
|
|
1081
1104
|
omit: b,
|
|
1082
1105
|
offset: c,
|
|
@@ -1084,87 +1107,87 @@ const Zn = "v3", _e = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Oe = (
|
|
|
1084
1107
|
staleCacheSeconds: f,
|
|
1085
1108
|
sort: g,
|
|
1086
1109
|
includeUnpublished: P,
|
|
1087
|
-
apiHost:
|
|
1110
|
+
apiHost: x
|
|
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 V = t !== 1, q =
|
|
1114
|
+
if (!["v3"].includes(d))
|
|
1115
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${d}'`);
|
|
1116
|
+
const V = t !== 1, q = x || "https://cdn.builder.io", C = new URL(`${q}/api/${d}/content/${r}`);
|
|
1094
1117
|
C.searchParams.set("apiKey", i), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(V)), C.searchParams.set("includeRefs", String(!0)), a && C.searchParams.set("locale", a);
|
|
1095
|
-
let
|
|
1096
|
-
if (s && C.searchParams.set("enrich", String(s)), s && l && C.searchParams.set("enrichOptions", JSON.stringify(l)), C.searchParams.set("omit", b ?? "meta.componentsUsed"), p && C.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof P == "boolean" && C.searchParams.set("includeUnpublished", String(P)), m &&
|
|
1097
|
-
const W =
|
|
1118
|
+
let K = n || {};
|
|
1119
|
+
if (s && C.searchParams.set("enrich", String(s)), s && l && C.searchParams.set("enrichOptions", JSON.stringify(l)), C.searchParams.set("omit", b ?? "meta.componentsUsed"), p && C.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof P == "boolean" && C.searchParams.set("includeUnpublished", String(P)), m && tt(m) && C.searchParams.set("cacheSeconds", String(m)), f && tt(f) && C.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
|
C.searchParams.set(F, JSON.stringify(W[F]));
|
|
1102
1125
|
}
|
|
1103
|
-
const
|
|
1104
|
-
...
|
|
1105
|
-
...
|
|
1126
|
+
const J = {
|
|
1127
|
+
...to(),
|
|
1128
|
+
...bt(e.options || {})
|
|
1106
1129
|
};
|
|
1107
|
-
|
|
1108
|
-
...
|
|
1109
|
-
...
|
|
1130
|
+
K = {
|
|
1131
|
+
...K,
|
|
1132
|
+
...ko(J)
|
|
1110
1133
|
};
|
|
1111
|
-
const
|
|
1112
|
-
for (const W in
|
|
1113
|
-
W !== "apiKey" && C.searchParams.set(W, String(
|
|
1114
|
-
if (Object.keys(
|
|
1115
|
-
const W =
|
|
1134
|
+
const Q = we(J);
|
|
1135
|
+
for (const W in Q)
|
|
1136
|
+
W !== "apiKey" && C.searchParams.set(W, String(Q[W]));
|
|
1137
|
+
if (Object.keys(K).length > 0 && C.searchParams.set("userAttributes", JSON.stringify(K)), o) {
|
|
1138
|
+
const W = Ft({
|
|
1116
1139
|
query: o
|
|
1117
1140
|
});
|
|
1118
1141
|
for (const F in W)
|
|
1119
1142
|
C.searchParams.set(F, JSON.stringify(W[F]));
|
|
1120
1143
|
}
|
|
1121
1144
|
return C;
|
|
1122
|
-
},
|
|
1145
|
+
}, So = (e) => e === "true" ? !0 : e === "false" ? !1 : e, vo = (e) => {
|
|
1123
1146
|
const t = {};
|
|
1124
1147
|
for (const n in e)
|
|
1125
|
-
n.startsWith("userAttributes.") && (t[n] =
|
|
1148
|
+
n.startsWith("userAttributes.") && (t[n] = So(e[n]), delete e[n]);
|
|
1126
1149
|
return t;
|
|
1127
|
-
},
|
|
1150
|
+
}, ko = (e) => {
|
|
1128
1151
|
if (w() && e.preview === "BUILDER_STUDIO") {
|
|
1129
1152
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
1130
|
-
const t =
|
|
1153
|
+
const t = vo(e), {
|
|
1131
1154
|
userAttributes: n
|
|
1132
|
-
} =
|
|
1155
|
+
} = go(t);
|
|
1133
1156
|
return n;
|
|
1134
1157
|
}
|
|
1135
1158
|
return {};
|
|
1136
|
-
},
|
|
1137
|
-
async function
|
|
1159
|
+
}, Co = (e) => "results" in e;
|
|
1160
|
+
async function De(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 Io({
|
|
1145
1168
|
...e,
|
|
1146
1169
|
limit: 1
|
|
1147
1170
|
});
|
|
1148
1171
|
return n && n[0] || null;
|
|
1149
1172
|
}
|
|
1150
|
-
const
|
|
1173
|
+
const To = async (e) => {
|
|
1151
1174
|
var s;
|
|
1152
|
-
const t =
|
|
1175
|
+
const t = We(e), n = e.fetch ?? bo, o = {
|
|
1153
1176
|
...e.fetchOptions,
|
|
1154
1177
|
headers: {
|
|
1155
1178
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
1156
|
-
...
|
|
1179
|
+
...vt()
|
|
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 || !(w() ||
|
|
1183
|
+
}, wo = async (e, t, n = We(e)) => {
|
|
1184
|
+
const o = _(e.canTrack);
|
|
1185
|
+
if (n.search.includes("preview="), !o || !(w() || R === "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 co({
|
|
1168
1191
|
item: i,
|
|
1169
1192
|
canTrack: o
|
|
1170
1193
|
}));
|
|
@@ -1174,17 +1197,17 @@ const ro = async (e) => {
|
|
|
1174
1197
|
}
|
|
1175
1198
|
return t.results;
|
|
1176
1199
|
};
|
|
1177
|
-
async function
|
|
1178
|
-
const t =
|
|
1179
|
-
if (!
|
|
1200
|
+
async function Io(e) {
|
|
1201
|
+
const t = We(e), n = await To(e);
|
|
1202
|
+
if (!Co(n))
|
|
1180
1203
|
throw B.error("Error fetching data. ", {
|
|
1181
1204
|
url: t,
|
|
1182
1205
|
content: n,
|
|
1183
1206
|
options: e
|
|
1184
1207
|
}), n;
|
|
1185
|
-
return
|
|
1208
|
+
return wo(e, n);
|
|
1186
1209
|
}
|
|
1187
|
-
const
|
|
1210
|
+
const sa = 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: Ot(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 De(n)
|
|
1205
1228
|
};
|
|
1206
|
-
},
|
|
1207
|
-
function
|
|
1229
|
+
}, xe = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1230
|
+
function Eo(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 Ro(e) {
|
|
1230
1253
|
for (const t of e)
|
|
1231
1254
|
switch (t.trigger) {
|
|
1232
1255
|
case "pageLoad":
|
|
1233
|
-
|
|
1256
|
+
jt(t);
|
|
1234
1257
|
break;
|
|
1235
1258
|
case "scrollInView":
|
|
1236
|
-
|
|
1259
|
+
Ao(t);
|
|
1237
1260
|
break;
|
|
1238
1261
|
}
|
|
1239
1262
|
}
|
|
1240
|
-
function
|
|
1263
|
+
function Mt(e) {
|
|
1241
1264
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1242
1265
|
}
|
|
1243
|
-
function
|
|
1244
|
-
const n =
|
|
1266
|
+
function Ht(e, t) {
|
|
1267
|
+
const n = $o(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 $o(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 jt(e) {
|
|
1257
1280
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1258
1281
|
if (!t.length) {
|
|
1259
|
-
|
|
1282
|
+
Mt(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
|
+
Ht(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 ${xe(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 Ao(e) {
|
|
1271
1294
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1272
1295
|
if (!t.length) {
|
|
1273
|
-
|
|
1296
|
+
Mt(e.elementId || e.id || "");
|
|
1274
1297
|
return;
|
|
1275
1298
|
}
|
|
1276
1299
|
Array.from(t).forEach((n) => {
|
|
1277
|
-
|
|
1300
|
+
Ht(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 = Eo(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 ${xe(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
|
+
}, aa = (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, Kt = (e) => Object.entries(e).map(([n, o]) => {
|
|
1318
1341
|
if (typeof o == "string")
|
|
1319
|
-
return `${
|
|
1320
|
-
}).filter(j),
|
|
1321
|
-
`),
|
|
1342
|
+
return `${xe(n)}: ${o};`;
|
|
1343
|
+
}).filter(j), Po = (e) => Kt(e).join(`
|
|
1344
|
+
`), la = ({
|
|
1322
1345
|
mediaQuery: e,
|
|
1323
1346
|
className: t,
|
|
1324
1347
|
styles: n
|
|
1325
1348
|
}) => {
|
|
1326
1349
|
const o = `.${t} {
|
|
1327
|
-
${
|
|
1350
|
+
${Po(n)}
|
|
1328
1351
|
}`;
|
|
1329
1352
|
return e ? `${e} {
|
|
1330
1353
|
${o}
|
|
1331
1354
|
}` : o;
|
|
1332
1355
|
};
|
|
1333
|
-
function
|
|
1356
|
+
function Bo({
|
|
1334
1357
|
style: e
|
|
1335
1358
|
}) {
|
|
1336
1359
|
return e;
|
|
1337
1360
|
}
|
|
1338
|
-
const
|
|
1361
|
+
const ca = ({
|
|
1339
1362
|
block: e,
|
|
1340
1363
|
context: t
|
|
1341
|
-
}) =>
|
|
1364
|
+
}) => zt(Bo({
|
|
1342
1365
|
style: e.style || {},
|
|
1343
1366
|
context: t,
|
|
1344
1367
|
block: e
|
|
1345
1368
|
}));
|
|
1346
|
-
function
|
|
1347
|
-
switch (
|
|
1369
|
+
function zt(e) {
|
|
1370
|
+
switch (R) {
|
|
1348
1371
|
case "svelte":
|
|
1349
1372
|
case "vue":
|
|
1350
1373
|
case "solid":
|
|
1351
1374
|
case "angular":
|
|
1352
|
-
return
|
|
1375
|
+
return Kt(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 qt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Vo = ({
|
|
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 || qt(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
|
+
}, nt = /* @__PURE__ */ new WeakMap(), Oo = (e) => {
|
|
1401
|
+
if ($t()) {
|
|
1402
|
+
const {
|
|
1403
|
+
repeat: n,
|
|
1404
|
+
...o
|
|
1405
|
+
} = e;
|
|
1406
|
+
return o;
|
|
1407
|
+
}
|
|
1408
|
+
let t = nt.get(e);
|
|
1409
|
+
if (!t) {
|
|
1410
|
+
const {
|
|
1411
|
+
repeat: n,
|
|
1412
|
+
...o
|
|
1413
|
+
} = e;
|
|
1414
|
+
t = o, nt.set(e, t);
|
|
1415
|
+
}
|
|
1416
|
+
return t;
|
|
1417
|
+
}, No = ({
|
|
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 = Oo(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
|
+
}, Wo = (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
|
+
}, ot = /* @__PURE__ */ new WeakMap(), Do = (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 = ot.get(t);
|
|
1458
|
+
r || (r = /* @__PURE__ */ new Map(), ot.set(t, r));
|
|
1459
|
+
let i = r.get(n);
|
|
1460
|
+
return i || (i = Object.fromEntries(Object.entries(t).filter(([s, l]) => !qt(l, n))), r.set(n, i)), {
|
|
1461
|
+
builderComponents: i
|
|
1462
|
+
};
|
|
1463
|
+
}
|
|
1464
|
+
return {};
|
|
1465
|
+
}, xo = (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
|
+
}, Uo = (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
|
+
}, Lo = (e) => e.toString(), Fo = () => Promise.resolve().then(() => er).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
|
+
}), Mo = () => import("./block-wrapper-Uj0c_ct-.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
|
+
}), Ho = () => import("./component-ref-826ipClg.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
|
+
}), jo = () => import("./repeated-block-s-uTJJ2l.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
|
+
}), Ko = () => import("./style-wrapper-WeOZ3wU5.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
|
+
}), zo = 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(Ko),
|
|
1504
|
+
RepeatedBlock: Y(jo),
|
|
1505
|
+
ComponentRef: Y(Ho),
|
|
1506
|
+
BlockWrapper: Y(Mo),
|
|
1507
|
+
DynamicDiv: Y(Fo)
|
|
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: Lo
|
|
1472
1521
|
};
|
|
1473
1522
|
},
|
|
1474
1523
|
mounted() {
|
|
1475
1524
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1476
|
-
t && e &&
|
|
1525
|
+
t && e && Ro(
|
|
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 No({
|
|
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 : Yn({
|
|
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 Vo({
|
|
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
|
+
...jn(this.processedBlock, this.context),
|
|
1580
|
+
...xo(this.blockComponent, this.processedBlock),
|
|
1581
|
+
...Uo(this.blockComponent, this.context),
|
|
1582
|
+
...Wo(this.blockComponent, this.linkComponent),
|
|
1583
|
+
...Do(
|
|
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 && R === "rsc")
|
|
1546
1595
|
};
|
|
1547
1596
|
}
|
|
1548
1597
|
}
|
|
1549
1598
|
});
|
|
1550
|
-
function
|
|
1599
|
+
function qo(e, t, n, o, r, i) {
|
|
1551
1600
|
var b;
|
|
1552
|
-
const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0),
|
|
1553
|
-
return e.canShowBlock ? (
|
|
1554
|
-
|
|
1601
|
+
const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), d = k("BlockWrapper"), p = k("RepeatedBlock");
|
|
1602
|
+
return e.canShowBlock ? (u(), h(I, { 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(I, { key: 1 }, [
|
|
1609
|
+
e.repeatItem ? (u(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (u(), v(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(), v(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(I, { key: 0 }, [
|
|
1628
|
+
e.repeatItem ? (u(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (u(), v(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(), v(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(I, null, L(e.childrenWithoutParentComponent, (c, m) => (u(), v(a, {
|
|
1604
1653
|
key: c.id,
|
|
1605
1654
|
block: c,
|
|
1606
1655
|
registeredComponents: e.registeredComponents,
|
|
@@ -1613,10 +1662,10 @@ function Eo(e, t, n, o, r, i) {
|
|
|
1613
1662
|
], 64))
|
|
1614
1663
|
], 64)) : T("", !0);
|
|
1615
1664
|
}
|
|
1616
|
-
const
|
|
1665
|
+
const Gt = /* @__PURE__ */ S(zo, [["render", qo]]), da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1617
1666
|
__proto__: null,
|
|
1618
|
-
default:
|
|
1619
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1667
|
+
default: Gt
|
|
1668
|
+
}, Symbol.toStringTag, { value: "Module" })), Go = y({
|
|
1620
1669
|
name: "builder-blocks-wrapper",
|
|
1621
1670
|
props: [
|
|
1622
1671
|
"blocks",
|
|
@@ -1686,8 +1735,8 @@ const Nt = /* @__PURE__ */ v($o, [["render", Eo]]), Hs = /* @__PURE__ */ Object.
|
|
|
1686
1735
|
}
|
|
1687
1736
|
}
|
|
1688
1737
|
});
|
|
1689
|
-
function
|
|
1690
|
-
return
|
|
1738
|
+
function _o(e, t, n, o, r, i) {
|
|
1739
|
+
return u(), v(Z(e.BlocksWrapper), E({
|
|
1691
1740
|
ref: "blocksWrapperRef",
|
|
1692
1741
|
class: e.className + " component-5vz8uirn7sc",
|
|
1693
1742
|
"builder-path": e.dataPath,
|
|
@@ -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
|
+
O(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 Jo = /* @__PURE__ */ S(Go, [["render", _o], ["__scopeId", "data-v-82fc93d6"]]), Qo = y({
|
|
1707
1756
|
name: "builder-blocks",
|
|
1708
|
-
components: { BlocksWrapper:
|
|
1757
|
+
components: { BlocksWrapper: Jo, Block: Gt },
|
|
1709
1758
|
props: [
|
|
1710
1759
|
"blocks",
|
|
1711
1760
|
"parent",
|
|
@@ -1718,27 +1767,27 @@ 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: Ce.key,
|
|
1771
|
+
componentsContext: mt.key
|
|
1723
1772
|
}
|
|
1724
1773
|
});
|
|
1725
|
-
function
|
|
1726
|
-
var a,
|
|
1774
|
+
function Yo(e, t, n, o, r, i) {
|
|
1775
|
+
var a, d, p, b;
|
|
1727
1776
|
const s = k("Block"), l = k("BlocksWrapper");
|
|
1728
|
-
return
|
|
1777
|
+
return u(), v(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
|
+
O(e.$slots, "default"),
|
|
1788
|
+
e.blocks ? (u(!0), h(I, { key: 0 }, L(e.blocks, (c, m) => {
|
|
1740
1789
|
var f;
|
|
1741
|
-
return
|
|
1790
|
+
return u(), v(s, {
|
|
1742
1791
|
key: c.id,
|
|
1743
1792
|
block: c,
|
|
1744
1793
|
linkComponent: e.linkComponent,
|
|
@@ -1750,21 +1799,21 @@ function Vo(e, t, n, o, r, i) {
|
|
|
1750
1799
|
_: 3
|
|
1751
1800
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
1752
1801
|
}
|
|
1753
|
-
const
|
|
1802
|
+
const z = /* @__PURE__ */ S(Qo, [["render", Yo]]), Xo = y({
|
|
1754
1803
|
name: "dynamic-div",
|
|
1755
1804
|
props: []
|
|
1756
1805
|
});
|
|
1757
|
-
function
|
|
1758
|
-
return
|
|
1759
|
-
|
|
1806
|
+
function Zo(e, t, n, o, r, i) {
|
|
1807
|
+
return u(), h("div", null, [
|
|
1808
|
+
O(e.$slots, "default")
|
|
1760
1809
|
]);
|
|
1761
1810
|
}
|
|
1762
|
-
const
|
|
1811
|
+
const oe = /* @__PURE__ */ S(Xo, [["render", Zo]]), er = /* @__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 pt("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
|
+
}, ua = (e, t = X) => `@media (max-width: ${t[e].max}px)`, tr = (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
|
+
}, nr = (e) => `builder-columns ${e}-breakpoints`, or = y({
|
|
1835
1897
|
name: "builder-columns",
|
|
1836
1898
|
components: {
|
|
1837
|
-
InlinedStyles:
|
|
1838
|
-
DynamicRenderer:
|
|
1839
|
-
Blocks:
|
|
1840
|
-
DynamicDiv:
|
|
1899
|
+
InlinedStyles: ge,
|
|
1900
|
+
DynamicRenderer: Pe,
|
|
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:
|
|
1915
|
+
return { TARGET: R, getColumnsClass: nr };
|
|
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 tr(
|
|
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: zt(this.columnCssVars(t))
|
|
1971
2033
|
};
|
|
1972
2034
|
}
|
|
1973
2035
|
}
|
|
1974
2036
|
});
|
|
1975
|
-
function
|
|
1976
|
-
var
|
|
2037
|
+
function rr(e, t, n, o, r, i) {
|
|
2038
|
+
var d;
|
|
1977
2039
|
const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1978
|
-
return
|
|
1979
|
-
class: e.getColumnsClass((
|
|
2040
|
+
return u(), h("div", E({
|
|
2041
|
+
class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-1be3j8m9ewb",
|
|
1980
2042
|
style: e.columnsCssVars()
|
|
1981
2043
|
}, {}), [
|
|
1982
|
-
e.TARGET !== "reactNative" ? (
|
|
2044
|
+
e.TARGET !== "reactNative" ? (u(), v(s, {
|
|
1983
2045
|
key: 0,
|
|
1984
2046
|
id: "builderio-columns",
|
|
1985
2047
|
styles: e.columnsStyles(),
|
|
1986
2048
|
nonce: e.builderContext.nonce
|
|
1987
2049
|
}, null, 8, ["styles", "nonce"])) : T("", !0),
|
|
1988
|
-
(
|
|
2050
|
+
(u(!0), h(I, null, L(e.columns, (p, b) => (u(), v(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 ir = /* @__PURE__ */ S(or, [["render", rr], ["__scopeId", "data-v-ab15749a"]]), sr = y({
|
|
2012
2074
|
name: "builder-fragment-component",
|
|
2013
2075
|
props: []
|
|
2014
2076
|
});
|
|
2015
|
-
function
|
|
2016
|
-
return
|
|
2017
|
-
|
|
2077
|
+
function ar(e, t, n, o, r, i) {
|
|
2078
|
+
return u(), h("span", null, [
|
|
2079
|
+
O(e.$slots, "default")
|
|
2018
2080
|
]);
|
|
2019
2081
|
}
|
|
2020
|
-
const
|
|
2021
|
-
function
|
|
2082
|
+
const lr = /* @__PURE__ */ S(sr, [["render", ar]]);
|
|
2083
|
+
function rt(e) {
|
|
2022
2084
|
return e.replace(/http(s)?:/, "");
|
|
2023
2085
|
}
|
|
2024
|
-
function
|
|
2086
|
+
function cr(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 dr(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 rt(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 rt(`${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) => `${cr(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) => [dr(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
2050
2112
|
}
|
|
2051
|
-
const
|
|
2113
|
+
const ur = 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
|
+
}), pr = ["srcset", "sizes"], mr = ["loading", "fetchpriority", "alt", "title", "src", "srcset", "sizes"], hr = {
|
|
2106
2168
|
key: 2,
|
|
2107
2169
|
class: "div-t43jfuqn6g-2"
|
|
2108
2170
|
};
|
|
2109
|
-
function
|
|
2110
|
-
var s, l, a,
|
|
2111
|
-
return
|
|
2171
|
+
function fr(e, t, n, o, r, i) {
|
|
2172
|
+
var s, l, a, d, p, b;
|
|
2173
|
+
return u(), h(I, 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, pr)) : T("", !0),
|
|
2119
2181
|
G("img", {
|
|
2120
2182
|
loading: e.highPriority ? "eager" : "lazy",
|
|
2121
2183
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
@@ -2126,36 +2188,36 @@ function _o(e, t, n, o, r, i) {
|
|
|
2126
2188
|
objectFit: e.backgroundSize || "cover",
|
|
2127
2189
|
...e.aspectRatioCss
|
|
2128
2190
|
}),
|
|
2129
|
-
class:
|
|
2191
|
+
class: te(
|
|
2130
2192
|
"builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
|
|
2131
2193
|
),
|
|
2132
2194
|
src: e.image,
|
|
2133
2195
|
srcset: e.srcSetToUse,
|
|
2134
2196
|
sizes: e.sizesToUse
|
|
2135
|
-
}, null, 14,
|
|
2197
|
+
}, null, 14, mr)
|
|
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
2201
|
class: "builder-image-sizer div-t43jfuqn6g",
|
|
2140
2202
|
style: M({
|
|
2141
2203
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
2142
2204
|
})
|
|
2143
2205
|
}, null, 4)) : T("", !0),
|
|
2144
|
-
(
|
|
2145
|
-
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (
|
|
2146
|
-
|
|
2206
|
+
(d = (a = e.builderBlock) == null ? void 0 : a.children) != null && d.length && e.fitContent ? O(e.$slots, "default", { key: 1 }, void 0, !0) : T("", !0),
|
|
2207
|
+
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (u(), h("div", hr, [
|
|
2208
|
+
O(e.$slots, "default", {}, void 0, !0)
|
|
2147
2209
|
])) : T("", !0)
|
|
2148
2210
|
], 64);
|
|
2149
2211
|
}
|
|
2150
|
-
const
|
|
2212
|
+
const br = /* @__PURE__ */ S(ur, [["render", fr], ["__scopeId", "data-v-8fff0ea5"]]), gr = 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 yr(e, t, n, o, r, i) {
|
|
2220
|
+
return u(), h("section", E({
|
|
2159
2221
|
style: {
|
|
2160
2222
|
width: "100%",
|
|
2161
2223
|
alignSelf: "stretch",
|
|
@@ -2168,35 +2230,35 @@ function Zo(e, t, n, o, r, i) {
|
|
|
2168
2230
|
marginLeft: "auto",
|
|
2169
2231
|
marginRight: "auto"
|
|
2170
2232
|
}
|
|
2171
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
2172
|
-
|
|
2233
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
2234
|
+
O(e.$slots, "default")
|
|
2173
2235
|
], 16);
|
|
2174
2236
|
}
|
|
2175
|
-
const
|
|
2176
|
-
function
|
|
2177
|
-
function r(
|
|
2178
|
-
return typeof
|
|
2237
|
+
const Sr = /* @__PURE__ */ S(gr, [["render", yr]]);
|
|
2238
|
+
function vr(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((P) => s(
|
|
2252
|
+
return m === "isNot" ? f.every((P) => s(d, {
|
|
2191
2253
|
property: c,
|
|
2192
2254
|
operator: m,
|
|
2193
2255
|
value: P
|
|
2194
|
-
})) : !!f.find((P) => s(
|
|
2256
|
+
})) : !!f.find((P) => s(d, {
|
|
2195
2257
|
property: c,
|
|
2196
2258
|
operator: m,
|
|
2197
2259
|
value: P
|
|
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 kr = `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
|
+
}`, Cr = `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
|
+
}`, Tr = `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
|
+
}`, wr = `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", it = "filterWithCustomTargeting", Ie = "builderIoPersonalization", Ee = "updateVisibilityStylesScript", st = "builderIoStudioUserAttributes", Ir = "PersonalizationContainer", _t = ["react", "vue", "svelte", "qwik"], Jt = ["vue", "svelte", "qwik"];
|
|
2472
|
+
function Er(e, t) {
|
|
2473
|
+
return !(e && e.length > 0) || !t ? !1 : Jt.includes(R) ? !0 : !w();
|
|
2412
2474
|
}
|
|
2413
|
-
function
|
|
2475
|
+
function Rr({
|
|
2414
2476
|
variants: e,
|
|
2415
2477
|
previewingIndex: t,
|
|
2416
2478
|
isHydrated: n,
|
|
@@ -2420,7 +2482,7 @@ function lr({
|
|
|
2420
2482
|
const i = {
|
|
2421
2483
|
blocks: r ?? [],
|
|
2422
2484
|
path: "this.children",
|
|
2423
|
-
index:
|
|
2485
|
+
index: ce
|
|
2424
2486
|
};
|
|
2425
2487
|
if (n && A()) {
|
|
2426
2488
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
@@ -2448,25 +2510,25 @@ function lr({
|
|
|
2448
2510
|
}
|
|
2449
2511
|
return i;
|
|
2450
2512
|
}
|
|
2451
|
-
const
|
|
2513
|
+
const Re = (e) => {
|
|
2452
2514
|
var t;
|
|
2453
|
-
return Array.isArray(e) ? e.some(
|
|
2454
|
-
},
|
|
2515
|
+
return Array.isArray(e) ? e.some(Re) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === Ir ? !0 : Object.values(e).some(Re);
|
|
2516
|
+
}, $r = (e) => Re(e), Ar = () => `
|
|
2455
2517
|
(function() {
|
|
2456
|
-
if (!window.${
|
|
2457
|
-
window.${
|
|
2518
|
+
if (!window.${st}) {
|
|
2519
|
+
window.${st} = ${kr};
|
|
2458
2520
|
}
|
|
2459
|
-
if (!window.${
|
|
2460
|
-
window.${
|
|
2521
|
+
if (!window.${it}) {
|
|
2522
|
+
window.${it} = ${Tr};
|
|
2461
2523
|
}
|
|
2462
|
-
if (!window.${
|
|
2463
|
-
window.${
|
|
2524
|
+
if (!window.${Ie}) {
|
|
2525
|
+
window.${Ie} = ${Cr};
|
|
2464
2526
|
}
|
|
2465
|
-
if (!window.${
|
|
2466
|
-
window.${
|
|
2527
|
+
if (!window.${Ee}) {
|
|
2528
|
+
window.${Ee} = ${wr};
|
|
2467
2529
|
}
|
|
2468
2530
|
})();
|
|
2469
|
-
`,
|
|
2531
|
+
`, Qt = R === "react", Pr = (e, t, n) => `window.${Ie}(${JSON.stringify(e)}, "${t}", ${Qt}${n ? `, "${n}"` : ""})`, Br = (e, t, n) => `window.${Ee}(${JSON.stringify(e)}, "${t}", ${Qt}${n ? `, "${n}"` : ""})`, ye = {
|
|
2470
2532
|
"@type": "@builder.io/sdk:Element",
|
|
2471
2533
|
layerName: "Accordion item title",
|
|
2472
2534
|
responsiveStyles: {
|
|
@@ -2495,7 +2557,7 @@ const Ie = (e) => {
|
|
|
2495
2557
|
}
|
|
2496
2558
|
}
|
|
2497
2559
|
}]
|
|
2498
|
-
},
|
|
2560
|
+
}, Se = {
|
|
2499
2561
|
"@type": "@builder.io/sdk:Element",
|
|
2500
2562
|
layerName: "Accordion item detail",
|
|
2501
2563
|
responsiveStyles: {
|
|
@@ -2526,7 +2588,7 @@ const Ie = (e) => {
|
|
|
2526
2588
|
}
|
|
2527
2589
|
}
|
|
2528
2590
|
}]
|
|
2529
|
-
},
|
|
2591
|
+
}, Vr = {
|
|
2530
2592
|
name: "Builder:Accordion",
|
|
2531
2593
|
canHaveChildren: !0,
|
|
2532
2594
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2543,19 +2605,19 @@ const Ie = (e) => {
|
|
|
2543
2605
|
name: "title",
|
|
2544
2606
|
type: "uiBlocks",
|
|
2545
2607
|
hideFromUI: !0,
|
|
2546
|
-
defaultValue: [
|
|
2608
|
+
defaultValue: [ye]
|
|
2547
2609
|
}, {
|
|
2548
2610
|
name: "detail",
|
|
2549
2611
|
type: "uiBlocks",
|
|
2550
2612
|
hideFromUI: !0,
|
|
2551
|
-
defaultValue: [
|
|
2613
|
+
defaultValue: [Se]
|
|
2552
2614
|
}],
|
|
2553
2615
|
defaultValue: [{
|
|
2554
|
-
title: [
|
|
2555
|
-
detail: [
|
|
2616
|
+
title: [ye],
|
|
2617
|
+
detail: [Se]
|
|
2556
2618
|
}, {
|
|
2557
|
-
title: [
|
|
2558
|
-
detail: [
|
|
2619
|
+
title: [ye],
|
|
2620
|
+
detail: [Se]
|
|
2559
2621
|
}],
|
|
2560
2622
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2561
2623
|
}, {
|
|
@@ -2590,9 +2652,9 @@ const Ie = (e) => {
|
|
|
2590
2652
|
builderComponents: !0,
|
|
2591
2653
|
builderLinkComponent: !0
|
|
2592
2654
|
}
|
|
2593
|
-
},
|
|
2655
|
+
}, Or = (e) => e.toString(), Nr = y({
|
|
2594
2656
|
name: "builder-accordion",
|
|
2595
|
-
components: { Blocks:
|
|
2657
|
+
components: { Blocks: z },
|
|
2596
2658
|
props: [
|
|
2597
2659
|
"grid",
|
|
2598
2660
|
"oneAtATime",
|
|
@@ -2604,7 +2666,7 @@ const Ie = (e) => {
|
|
|
2604
2666
|
"builderLinkComponent"
|
|
2605
2667
|
],
|
|
2606
2668
|
data() {
|
|
2607
|
-
return { open: [], convertOrderNumberToString:
|
|
2669
|
+
return { open: [], convertOrderNumberToString: Or };
|
|
2608
2670
|
},
|
|
2609
2671
|
computed: {
|
|
2610
2672
|
onlyOneAtATime() {
|
|
@@ -2685,16 +2747,16 @@ const Ie = (e) => {
|
|
|
2685
2747
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2686
2748
|
}
|
|
2687
2749
|
}
|
|
2688
|
-
}),
|
|
2689
|
-
function
|
|
2750
|
+
}), Wr = ["data-index", "onClick"];
|
|
2751
|
+
function Dr(e, t, n, o, r, i) {
|
|
2690
2752
|
const s = k("Blocks");
|
|
2691
|
-
return
|
|
2753
|
+
return u(), h("div", {
|
|
2692
2754
|
class: "builder-accordion",
|
|
2693
2755
|
style: M(e.accordionStyles)
|
|
2694
2756
|
}, [
|
|
2695
|
-
(
|
|
2757
|
+
(u(!0), h(I, null, L(e.items, (l, a) => (u(), h(I, { key: a }, [
|
|
2696
2758
|
G("div", {
|
|
2697
|
-
class:
|
|
2759
|
+
class: te(e.getAccordionTitleClassName(a)),
|
|
2698
2760
|
style: M({
|
|
2699
2761
|
...e.accordionTitleStyles,
|
|
2700
2762
|
...e.grid && {
|
|
@@ -2703,9 +2765,9 @@ function gr(e, t, n, o, r, i) {
|
|
|
2703
2765
|
}
|
|
2704
2766
|
}),
|
|
2705
2767
|
"data-index": a,
|
|
2706
|
-
onClick: async (
|
|
2768
|
+
onClick: async (d) => e.onClick(a)
|
|
2707
2769
|
}, [
|
|
2708
|
-
|
|
2770
|
+
$(s, {
|
|
2709
2771
|
blocks: l.title,
|
|
2710
2772
|
path: `items.${a}.title`,
|
|
2711
2773
|
parent: e.builderBlock.id,
|
|
@@ -2713,13 +2775,13 @@ function gr(e, t, n, o, r, i) {
|
|
|
2713
2775
|
registeredComponents: e.builderComponents,
|
|
2714
2776
|
linkComponent: e.builderLinkComponent
|
|
2715
2777
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2716
|
-
], 14,
|
|
2717
|
-
e.open.includes(a) ? (
|
|
2778
|
+
], 14, Wr),
|
|
2779
|
+
e.open.includes(a) ? (u(), h("div", {
|
|
2718
2780
|
key: 0,
|
|
2719
|
-
class:
|
|
2781
|
+
class: te(e.getAccordionDetailClassName(a)),
|
|
2720
2782
|
style: M(e.accordionDetailStyles)
|
|
2721
2783
|
}, [
|
|
2722
|
-
|
|
2784
|
+
$(s, {
|
|
2723
2785
|
blocks: l.detail,
|
|
2724
2786
|
path: `items.${a}.detail`,
|
|
2725
2787
|
parent: e.builderBlock.id,
|
|
@@ -2731,7 +2793,7 @@ function gr(e, t, n, o, r, i) {
|
|
|
2731
2793
|
], 64))), 128))
|
|
2732
2794
|
], 4);
|
|
2733
2795
|
}
|
|
2734
|
-
const
|
|
2796
|
+
const xr = /* @__PURE__ */ S(Nr, [["render", Dr]]), Ur = {
|
|
2735
2797
|
name: "Core:Button",
|
|
2736
2798
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2737
2799
|
defaultStyles: {
|
|
@@ -2767,7 +2829,7 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
2767
2829
|
shouldReceiveBuilderProps: {
|
|
2768
2830
|
builderLinkComponent: !0
|
|
2769
2831
|
}
|
|
2770
|
-
},
|
|
2832
|
+
}, Lr = {
|
|
2771
2833
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2772
2834
|
name: "Columns",
|
|
2773
2835
|
isRSC: !0,
|
|
@@ -2974,13 +3036,13 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
2974
3036
|
builderComponents: !0,
|
|
2975
3037
|
builderLinkComponent: !0
|
|
2976
3038
|
}
|
|
2977
|
-
},
|
|
3039
|
+
}, Fr = {
|
|
2978
3040
|
name: "Fragment",
|
|
2979
3041
|
static: !0,
|
|
2980
3042
|
hidden: !0,
|
|
2981
3043
|
canHaveChildren: !0,
|
|
2982
3044
|
noWrap: !0
|
|
2983
|
-
}, Ue = ["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"],
|
|
3045
|
+
}, Ue = ["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"], Mr = ["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"], Hr = {
|
|
2984
3046
|
name: "Image",
|
|
2985
3047
|
static: !0,
|
|
2986
3048
|
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",
|
|
@@ -3001,15 +3063,15 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3001
3063
|
onChange: (e) => {
|
|
3002
3064
|
e.delete("srcset"), e.delete("noWebp");
|
|
3003
3065
|
function n(s, l = 6e4) {
|
|
3004
|
-
return new Promise((a,
|
|
3066
|
+
return new Promise((a, d) => {
|
|
3005
3067
|
const p = document.createElement("img");
|
|
3006
3068
|
let b = !1;
|
|
3007
3069
|
p.onload = () => {
|
|
3008
3070
|
b = !0, a(p);
|
|
3009
3071
|
}, p.addEventListener("error", (c) => {
|
|
3010
|
-
console.warn("Image load failed", c.error),
|
|
3072
|
+
console.warn("Image load failed", c.error), d(c.error);
|
|
3011
3073
|
}), p.src = s, setTimeout(() => {
|
|
3012
|
-
b ||
|
|
3074
|
+
b || d(new Error("Image load timed out"));
|
|
3013
3075
|
}, l);
|
|
3014
3076
|
});
|
|
3015
3077
|
}
|
|
@@ -3093,7 +3155,7 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3093
3155
|
shouldReceiveBuilderProps: {
|
|
3094
3156
|
builderBlock: !0
|
|
3095
3157
|
}
|
|
3096
|
-
},
|
|
3158
|
+
}, jr = {
|
|
3097
3159
|
name: "PersonalizationContainer",
|
|
3098
3160
|
shouldReceiveBuilderProps: {
|
|
3099
3161
|
builderBlock: !0,
|
|
@@ -3129,9 +3191,9 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3129
3191
|
defaultValue: []
|
|
3130
3192
|
}]
|
|
3131
3193
|
}]
|
|
3132
|
-
},
|
|
3194
|
+
}, Le = y({
|
|
3133
3195
|
render() {
|
|
3134
|
-
return
|
|
3196
|
+
return pt("script", {
|
|
3135
3197
|
innerHTML: this.scriptStr,
|
|
3136
3198
|
"data-id": this.id,
|
|
3137
3199
|
nonce: this.nonce
|
|
@@ -3139,12 +3201,12 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3139
3201
|
},
|
|
3140
3202
|
name: "inlined-script",
|
|
3141
3203
|
props: ["scriptStr", "id", "nonce"]
|
|
3142
|
-
}),
|
|
3204
|
+
}), Kr = y({
|
|
3143
3205
|
name: "builder-personalization-container",
|
|
3144
3206
|
components: {
|
|
3145
|
-
Blocks:
|
|
3146
|
-
InlinedStyles:
|
|
3147
|
-
InlinedScript:
|
|
3207
|
+
Blocks: z,
|
|
3208
|
+
InlinedStyles: ge,
|
|
3209
|
+
InlinedScript: Le
|
|
3148
3210
|
},
|
|
3149
3211
|
props: [
|
|
3150
3212
|
"builderContext",
|
|
@@ -3157,45 +3219,45 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3157
3219
|
data() {
|
|
3158
3220
|
var e, t, n, o, r, i, s;
|
|
3159
3221
|
return {
|
|
3160
|
-
userAttributes:
|
|
3161
|
-
scriptStr:
|
|
3222
|
+
userAttributes: pe.getUserAttributes(),
|
|
3223
|
+
scriptStr: Pr(
|
|
3162
3224
|
this.variants,
|
|
3163
3225
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
3164
3226
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
3165
3227
|
),
|
|
3166
|
-
updateVisibilityStylesScript:
|
|
3228
|
+
updateVisibilityStylesScript: Br(
|
|
3167
3229
|
this.variants,
|
|
3168
3230
|
((o = this.builderBlock) == null ? void 0 : o.id) || "none",
|
|
3169
3231
|
(i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
|
|
3170
3232
|
),
|
|
3171
3233
|
unsubscribers: [],
|
|
3172
|
-
shouldRenderVariants:
|
|
3234
|
+
shouldRenderVariants: Er(
|
|
3173
3235
|
this.variants,
|
|
3174
|
-
|
|
3236
|
+
_((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
3175
3237
|
),
|
|
3176
3238
|
shouldResetVariants: !1,
|
|
3177
|
-
TARGET:
|
|
3178
|
-
DEFAULT_INDEX:
|
|
3179
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
3239
|
+
TARGET: R,
|
|
3240
|
+
DEFAULT_INDEX: ce,
|
|
3241
|
+
SDKS_REQUIRING_RESET_APPROACH: Jt
|
|
3180
3242
|
};
|
|
3181
3243
|
},
|
|
3182
3244
|
mounted() {
|
|
3183
3245
|
var t;
|
|
3184
3246
|
this.shouldResetVariants = !0;
|
|
3185
|
-
const e =
|
|
3247
|
+
const e = pe.subscribeOnUserAttributesChange(
|
|
3186
3248
|
(n) => {
|
|
3187
3249
|
this.userAttributes = n;
|
|
3188
3250
|
},
|
|
3189
3251
|
{
|
|
3190
|
-
fireImmediately:
|
|
3252
|
+
fireImmediately: R === "qwik"
|
|
3191
3253
|
}
|
|
3192
3254
|
);
|
|
3193
|
-
if (!(A() ||
|
|
3255
|
+
if (!(A() || be())) {
|
|
3194
3256
|
const n = this.filteredVariants[0];
|
|
3195
3257
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
3196
3258
|
new CustomEvent("builder.variantLoaded", {
|
|
3197
3259
|
detail: {
|
|
3198
|
-
variant: n ||
|
|
3260
|
+
variant: n || ce,
|
|
3199
3261
|
content: (t = this.builderContext) == null ? void 0 : t.content
|
|
3200
3262
|
},
|
|
3201
3263
|
bubbles: !0
|
|
@@ -3206,7 +3268,7 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3206
3268
|
i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
|
|
3207
3269
|
new CustomEvent("builder.variantDisplayed", {
|
|
3208
3270
|
detail: {
|
|
3209
|
-
variant: n ||
|
|
3271
|
+
variant: n || ce,
|
|
3210
3272
|
content: (s = this.builderContext) == null ? void 0 : s.content
|
|
3211
3273
|
},
|
|
3212
3274
|
bubbles: !0
|
|
@@ -3223,15 +3285,15 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3223
3285
|
computed: {
|
|
3224
3286
|
attrs() {
|
|
3225
3287
|
return {
|
|
3226
|
-
...
|
|
3227
|
-
...
|
|
3288
|
+
...N(this.attributes, "v-on:", !1),
|
|
3289
|
+
...N(this.attributes, "v-on:", !0),
|
|
3228
3290
|
[H()]: `builder-personalization-container ${this.attributes[H()] || ""}`
|
|
3229
3291
|
};
|
|
3230
3292
|
},
|
|
3231
3293
|
filteredVariants() {
|
|
3232
3294
|
return (this.variants || []).filter((e) => {
|
|
3233
3295
|
var t, n, o, r;
|
|
3234
|
-
return
|
|
3296
|
+
return vr(
|
|
3235
3297
|
{
|
|
3236
3298
|
...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
|
|
3237
3299
|
locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
|
|
@@ -3246,7 +3308,7 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3246
3308
|
},
|
|
3247
3309
|
blocksToRender() {
|
|
3248
3310
|
var e;
|
|
3249
|
-
return
|
|
3311
|
+
return Rr({
|
|
3250
3312
|
variants: this.variants,
|
|
3251
3313
|
fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
|
|
3252
3314
|
isHydrated: this.shouldResetVariants,
|
|
@@ -3264,14 +3326,14 @@ const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
|
3264
3326
|
}
|
|
3265
3327
|
}
|
|
3266
3328
|
});
|
|
3267
|
-
function
|
|
3268
|
-
var
|
|
3329
|
+
function zr(e, t, n, o, r, i) {
|
|
3330
|
+
var d, p, b, c, m, f, g, P, x, V;
|
|
3269
3331
|
const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
|
|
3270
|
-
return
|
|
3271
|
-
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (
|
|
3332
|
+
return u(), h("div", E({ ref: "rootRef" }, e.attrs), [
|
|
3333
|
+
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), v(s, {
|
|
3272
3334
|
key: 0,
|
|
3273
3335
|
blocks: e.blocksToRender.blocks,
|
|
3274
|
-
parent: (
|
|
3336
|
+
parent: (d = e.builderBlock) == null ? void 0 : d.id,
|
|
3275
3337
|
path: e.blocksToRender.path,
|
|
3276
3338
|
context: e.builderContext,
|
|
3277
3339
|
registeredComponents: e.builderComponents,
|
|
@@ -3280,27 +3342,27 @@ function $r(e, t, n, o, r, i) {
|
|
|
3280
3342
|
"data-variant-id": `${(b = e.builderBlock) == null ? void 0 : b.id}-${e.blocksToRender.index}`
|
|
3281
3343
|
}
|
|
3282
3344
|
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : T("", !0),
|
|
3283
|
-
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (
|
|
3284
|
-
e.shouldRenderVariants ? (
|
|
3285
|
-
|
|
3345
|
+
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (u(), h(I, { key: 1 }, [
|
|
3346
|
+
e.shouldRenderVariants ? (u(), h(I, { key: 0 }, [
|
|
3347
|
+
$(l, {
|
|
3286
3348
|
nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
|
|
3287
3349
|
styles: e.hideVariantsStyleString,
|
|
3288
3350
|
id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
|
|
3289
3351
|
}, null, 8, ["nonce", "styles", "id"]),
|
|
3290
|
-
|
|
3352
|
+
$(a, {
|
|
3291
3353
|
nonce: ((f = e.builderContext) == null ? void 0 : f.nonce) || "",
|
|
3292
3354
|
scriptStr: e.updateVisibilityStylesScript,
|
|
3293
3355
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
3294
3356
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
3295
|
-
(
|
|
3296
|
-
var
|
|
3297
|
-
return
|
|
3298
|
-
key: `${(
|
|
3357
|
+
(u(!0), h(I, null, L(e.variants, (q, C) => {
|
|
3358
|
+
var K, J, Q, W;
|
|
3359
|
+
return u(), v(s, {
|
|
3360
|
+
key: `${(K = e.builderBlock) == null ? void 0 : K.id}-${C}`,
|
|
3299
3361
|
BlocksWrapperProps: {
|
|
3300
|
-
...(
|
|
3362
|
+
...(J = e.builderContext) == null ? void 0 : J.BlocksWrapperProps,
|
|
3301
3363
|
"aria-hidden": !0,
|
|
3302
3364
|
hidden: !0,
|
|
3303
|
-
"data-variant-id": `${(
|
|
3365
|
+
"data-variant-id": `${(Q = e.builderBlock) == null ? void 0 : Q.id}-${C}`
|
|
3304
3366
|
},
|
|
3305
3367
|
blocks: q.blocks,
|
|
3306
3368
|
parent: (W = e.builderBlock) == null ? void 0 : W.id,
|
|
@@ -3309,12 +3371,12 @@ function $r(e, t, n, o, r, i) {
|
|
|
3309
3371
|
registeredComponents: e.builderComponents
|
|
3310
3372
|
}, {
|
|
3311
3373
|
default: D(() => {
|
|
3312
|
-
var F,
|
|
3374
|
+
var F, Me;
|
|
3313
3375
|
return [
|
|
3314
|
-
|
|
3376
|
+
$(a, {
|
|
3315
3377
|
nonce: ((F = e.builderContext) == null ? void 0 : F.nonce) || "",
|
|
3316
3378
|
scriptStr: e.scriptStr,
|
|
3317
|
-
id: `variants-script-${(
|
|
3379
|
+
id: `variants-script-${(Me = e.builderBlock) == null ? void 0 : Me.id}-${C}`
|
|
3318
3380
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
3319
3381
|
];
|
|
3320
3382
|
}),
|
|
@@ -3322,21 +3384,21 @@ function $r(e, t, n, o, r, i) {
|
|
|
3322
3384
|
}, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
|
|
3323
3385
|
}), 128))
|
|
3324
3386
|
], 64)) : T("", !0),
|
|
3325
|
-
|
|
3387
|
+
$(s, {
|
|
3326
3388
|
blocks: e.blocksToRender.blocks,
|
|
3327
3389
|
parent: (P = e.builderBlock) == null ? void 0 : P.id,
|
|
3328
3390
|
path: e.blocksToRender.path,
|
|
3329
3391
|
context: e.builderContext,
|
|
3330
3392
|
registeredComponents: e.builderComponents,
|
|
3331
3393
|
BlocksWrapperProps: {
|
|
3332
|
-
...(
|
|
3394
|
+
...(x = e.builderContext) == null ? void 0 : x.BlocksWrapperProps,
|
|
3333
3395
|
"data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${e.blocksToRender.index}`
|
|
3334
3396
|
}
|
|
3335
3397
|
}, {
|
|
3336
3398
|
default: D(() => {
|
|
3337
3399
|
var q, C;
|
|
3338
3400
|
return [
|
|
3339
|
-
e.shouldRenderVariants ? (
|
|
3401
|
+
e.shouldRenderVariants ? (u(), v(a, {
|
|
3340
3402
|
key: 0,
|
|
3341
3403
|
nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
|
|
3342
3404
|
scriptStr: e.scriptStr,
|
|
@@ -3349,7 +3411,7 @@ function $r(e, t, n, o, r, i) {
|
|
|
3349
3411
|
], 64)) : T("", !0)
|
|
3350
3412
|
], 16);
|
|
3351
3413
|
}
|
|
3352
|
-
const
|
|
3414
|
+
const qr = /* @__PURE__ */ S(Kr, [["render", zr]]), Gr = {
|
|
3353
3415
|
name: "Core:Section",
|
|
3354
3416
|
static: !0,
|
|
3355
3417
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3388,7 +3450,7 @@ const Er = /* @__PURE__ */ v(Ir, [["render", $r]]), Rr = {
|
|
|
3388
3450
|
}
|
|
3389
3451
|
}
|
|
3390
3452
|
}]
|
|
3391
|
-
},
|
|
3453
|
+
}, _r = {
|
|
3392
3454
|
name: "Slot",
|
|
3393
3455
|
isRSC: !0,
|
|
3394
3456
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3405,15 +3467,15 @@ const Er = /* @__PURE__ */ v(Ir, [["render", $r]]), Rr = {
|
|
|
3405
3467
|
builderContext: !0,
|
|
3406
3468
|
builderComponents: !0
|
|
3407
3469
|
}
|
|
3408
|
-
},
|
|
3470
|
+
}, Jr = y({
|
|
3409
3471
|
name: "builder-slot",
|
|
3410
|
-
components: { Blocks:
|
|
3472
|
+
components: { Blocks: z },
|
|
3411
3473
|
props: ["builderContext", "name", "builderComponents"]
|
|
3412
3474
|
});
|
|
3413
|
-
function
|
|
3414
|
-
var l, a,
|
|
3475
|
+
function Qr(e, t, n, o, r, i) {
|
|
3476
|
+
var l, a, d;
|
|
3415
3477
|
const s = k("Blocks");
|
|
3416
|
-
return
|
|
3478
|
+
return u(), h("div", E(
|
|
3417
3479
|
{ style: {
|
|
3418
3480
|
pointerEvents: "auto"
|
|
3419
3481
|
} },
|
|
@@ -3421,16 +3483,16 @@ function Br(e, t, n, o, r, i) {
|
|
|
3421
3483
|
"builder-slot": e.name
|
|
3422
3484
|
}
|
|
3423
3485
|
), [
|
|
3424
|
-
|
|
3486
|
+
$(s, {
|
|
3425
3487
|
parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
|
|
3426
3488
|
path: `symbol.data.${e.name}`,
|
|
3427
3489
|
context: e.builderContext,
|
|
3428
3490
|
registeredComponents: e.builderComponents,
|
|
3429
|
-
blocks: (
|
|
3491
|
+
blocks: (d = e.builderContext.rootState) == null ? void 0 : d[e.name]
|
|
3430
3492
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
3431
3493
|
], 16);
|
|
3432
3494
|
}
|
|
3433
|
-
const
|
|
3495
|
+
const Yr = /* @__PURE__ */ S(Jr, [["render", Qr]]), Xr = {
|
|
3434
3496
|
name: "Symbol",
|
|
3435
3497
|
noWrap: !0,
|
|
3436
3498
|
static: !0,
|
|
@@ -3469,7 +3531,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3469
3531
|
builderComponents: !0,
|
|
3470
3532
|
builderLinkComponent: !0
|
|
3471
3533
|
}
|
|
3472
|
-
},
|
|
3534
|
+
}, ve = {
|
|
3473
3535
|
"@type": "@builder.io/sdk:Element",
|
|
3474
3536
|
responsiveStyles: {
|
|
3475
3537
|
large: {
|
|
@@ -3491,7 +3553,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3491
3553
|
text: "New tab"
|
|
3492
3554
|
}
|
|
3493
3555
|
}
|
|
3494
|
-
},
|
|
3556
|
+
}, ke = {
|
|
3495
3557
|
"@type": "@builder.io/sdk:Element",
|
|
3496
3558
|
responsiveStyles: {
|
|
3497
3559
|
large: {
|
|
@@ -3507,7 +3569,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3507
3569
|
text: "New tab content "
|
|
3508
3570
|
}
|
|
3509
3571
|
}
|
|
3510
|
-
},
|
|
3572
|
+
}, Zr = {
|
|
3511
3573
|
name: "Builder: Tabs",
|
|
3512
3574
|
inputs: [{
|
|
3513
3575
|
name: "tabs",
|
|
@@ -3517,16 +3579,16 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3517
3579
|
name: "label",
|
|
3518
3580
|
type: "uiBlocks",
|
|
3519
3581
|
hideFromUI: !0,
|
|
3520
|
-
defaultValue: [
|
|
3582
|
+
defaultValue: [ve]
|
|
3521
3583
|
}, {
|
|
3522
3584
|
name: "content",
|
|
3523
3585
|
type: "uiBlocks",
|
|
3524
3586
|
hideFromUI: !0,
|
|
3525
|
-
defaultValue: [
|
|
3587
|
+
defaultValue: [ke]
|
|
3526
3588
|
}],
|
|
3527
3589
|
defaultValue: [{
|
|
3528
3590
|
label: [{
|
|
3529
|
-
...
|
|
3591
|
+
...ve,
|
|
3530
3592
|
component: {
|
|
3531
3593
|
name: "Text",
|
|
3532
3594
|
options: {
|
|
@@ -3535,7 +3597,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3535
3597
|
}
|
|
3536
3598
|
}],
|
|
3537
3599
|
content: [{
|
|
3538
|
-
...
|
|
3600
|
+
...ke,
|
|
3539
3601
|
component: {
|
|
3540
3602
|
name: "Text",
|
|
3541
3603
|
options: {
|
|
@@ -3545,7 +3607,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3545
3607
|
}]
|
|
3546
3608
|
}, {
|
|
3547
3609
|
label: [{
|
|
3548
|
-
...
|
|
3610
|
+
...ve,
|
|
3549
3611
|
component: {
|
|
3550
3612
|
name: "Text",
|
|
3551
3613
|
options: {
|
|
@@ -3554,7 +3616,7 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3554
3616
|
}
|
|
3555
3617
|
}],
|
|
3556
3618
|
content: [{
|
|
3557
|
-
...
|
|
3619
|
+
...ke,
|
|
3558
3620
|
component: {
|
|
3559
3621
|
name: "Text",
|
|
3560
3622
|
options: {
|
|
@@ -3610,9 +3672,9 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3610
3672
|
builderComponents: !0,
|
|
3611
3673
|
builderLinkComponent: !0
|
|
3612
3674
|
}
|
|
3613
|
-
},
|
|
3675
|
+
}, ei = y({
|
|
3614
3676
|
name: "builder-tabs",
|
|
3615
|
-
components: { Blocks:
|
|
3677
|
+
components: { Blocks: z },
|
|
3616
3678
|
props: [
|
|
3617
3679
|
"defaultActiveTab",
|
|
3618
3680
|
"tabs",
|
|
@@ -3638,10 +3700,10 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
3638
3700
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3639
3701
|
}
|
|
3640
3702
|
}
|
|
3641
|
-
}),
|
|
3642
|
-
function
|
|
3703
|
+
}), ti = ["onClick"], ni = { key: 0 };
|
|
3704
|
+
function oi(e, t, n, o, r, i) {
|
|
3643
3705
|
const s = k("Blocks");
|
|
3644
|
-
return
|
|
3706
|
+
return u(), h("div", null, [
|
|
3645
3707
|
G("div", {
|
|
3646
3708
|
class: "builder-tabs-wrap",
|
|
3647
3709
|
style: M({
|
|
@@ -3651,13 +3713,13 @@ function xr(e, t, n, o, r, i) {
|
|
|
3651
3713
|
overflow: "auto"
|
|
3652
3714
|
})
|
|
3653
3715
|
}, [
|
|
3654
|
-
(
|
|
3716
|
+
(u(!0), h(I, null, L(e.tabs, (l, a) => (u(), h("span", {
|
|
3655
3717
|
key: a,
|
|
3656
|
-
class:
|
|
3718
|
+
class: te(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
3657
3719
|
style: M(e.getTabStyle(a)),
|
|
3658
|
-
onClick: async (
|
|
3720
|
+
onClick: async (d) => e.onClick(a)
|
|
3659
3721
|
}, [
|
|
3660
|
-
|
|
3722
|
+
$(s, {
|
|
3661
3723
|
parent: e.builderBlock.id,
|
|
3662
3724
|
path: `tabs.${a}.label`,
|
|
3663
3725
|
blocks: l.label,
|
|
@@ -3665,10 +3727,10 @@ function xr(e, t, n, o, r, i) {
|
|
|
3665
3727
|
registeredComponents: e.builderComponents,
|
|
3666
3728
|
linkComponent: e.builderLinkComponent
|
|
3667
3729
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3668
|
-
], 14,
|
|
3730
|
+
], 14, ti))), 128))
|
|
3669
3731
|
], 4),
|
|
3670
|
-
e.activeTabContent(e.activeTab) ? (
|
|
3671
|
-
|
|
3732
|
+
e.activeTabContent(e.activeTab) ? (u(), h("div", ni, [
|
|
3733
|
+
$(s, {
|
|
3672
3734
|
parent: e.builderBlock.id,
|
|
3673
3735
|
path: `tabs.${e.activeTab}.content`,
|
|
3674
3736
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -3679,7 +3741,7 @@ function xr(e, t, n, o, r, i) {
|
|
|
3679
3741
|
])) : T("", !0)
|
|
3680
3742
|
]);
|
|
3681
3743
|
}
|
|
3682
|
-
const
|
|
3744
|
+
const ri = /* @__PURE__ */ S(ei, [["render", oi]]), ii = {
|
|
3683
3745
|
shouldReceiveBuilderProps: {},
|
|
3684
3746
|
name: "Text",
|
|
3685
3747
|
static: !0,
|
|
@@ -3697,21 +3759,21 @@ const Lr = /* @__PURE__ */ v(Wr, [["render", xr]]), Fr = {
|
|
|
3697
3759
|
height: "auto",
|
|
3698
3760
|
textAlign: "center"
|
|
3699
3761
|
}
|
|
3700
|
-
},
|
|
3762
|
+
}, si = y({
|
|
3701
3763
|
name: "builder-text",
|
|
3702
3764
|
props: ["text"]
|
|
3703
|
-
}),
|
|
3704
|
-
function
|
|
3765
|
+
}), ai = ["innerHTML"];
|
|
3766
|
+
function li(e, t, n, o, r, i) {
|
|
3705
3767
|
var s;
|
|
3706
|
-
return
|
|
3768
|
+
return u(), h("div", {
|
|
3707
3769
|
class: "builder-text",
|
|
3708
3770
|
innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
|
|
3709
3771
|
style: {
|
|
3710
3772
|
outline: "none"
|
|
3711
3773
|
}
|
|
3712
|
-
}, null, 8,
|
|
3774
|
+
}, null, 8, ai);
|
|
3713
3775
|
}
|
|
3714
|
-
const
|
|
3776
|
+
const ci = /* @__PURE__ */ S(si, [["render", li]]), di = {
|
|
3715
3777
|
name: "Custom Code",
|
|
3716
3778
|
static: !0,
|
|
3717
3779
|
requiredPermissions: ["editCode"],
|
|
@@ -3733,7 +3795,7 @@ const zr = /* @__PURE__ */ v(Mr, [["render", jr]]), Kr = {
|
|
|
3733
3795
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3734
3796
|
advanced: !0
|
|
3735
3797
|
}]
|
|
3736
|
-
},
|
|
3798
|
+
}, ui = y({
|
|
3737
3799
|
name: "builder-custom-code",
|
|
3738
3800
|
props: ["code", "replaceNodes"],
|
|
3739
3801
|
data() {
|
|
@@ -3792,15 +3854,15 @@ const zr = /* @__PURE__ */ v(Mr, [["render", jr]]), Kr = {
|
|
|
3792
3854
|
}
|
|
3793
3855
|
}
|
|
3794
3856
|
}
|
|
3795
|
-
}),
|
|
3796
|
-
function
|
|
3797
|
-
return
|
|
3857
|
+
}), pi = ["innerHTML"];
|
|
3858
|
+
function mi(e, t, n, o, r, i) {
|
|
3859
|
+
return u(), h("div", {
|
|
3798
3860
|
ref: "elementRef",
|
|
3799
|
-
class:
|
|
3861
|
+
class: te("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3800
3862
|
innerHTML: e.code
|
|
3801
|
-
}, null, 10,
|
|
3863
|
+
}, null, 10, pi);
|
|
3802
3864
|
}
|
|
3803
|
-
const
|
|
3865
|
+
const hi = /* @__PURE__ */ S(ui, [["render", mi]]), fi = {
|
|
3804
3866
|
name: "Embed",
|
|
3805
3867
|
static: !0,
|
|
3806
3868
|
inputs: [{
|
|
@@ -3815,7 +3877,7 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), _r = {
|
|
|
3815
3877
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3816
3878
|
hideFromUI: !0
|
|
3817
3879
|
}]
|
|
3818
|
-
},
|
|
3880
|
+
}, bi = ["text/javascript", "application/javascript", "application/ecmascript"], gi = (e) => bi.includes(e.type), yi = y({
|
|
3819
3881
|
name: "builder-embed",
|
|
3820
3882
|
props: ["content"],
|
|
3821
3883
|
data() {
|
|
@@ -3848,7 +3910,7 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), _r = {
|
|
|
3848
3910
|
this.scriptsInserted.push(n.src);
|
|
3849
3911
|
const o = document.createElement("script");
|
|
3850
3912
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3851
|
-
} else if (
|
|
3913
|
+
} else if (gi(n) && !this.scriptsRun.includes(n.innerText))
|
|
3852
3914
|
try {
|
|
3853
3915
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3854
3916
|
} catch (o) {
|
|
@@ -3857,15 +3919,15 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), _r = {
|
|
|
3857
3919
|
}
|
|
3858
3920
|
}
|
|
3859
3921
|
}
|
|
3860
|
-
}),
|
|
3861
|
-
function
|
|
3862
|
-
return
|
|
3922
|
+
}), Si = ["innerHTML"];
|
|
3923
|
+
function vi(e, t, n, o, r, i) {
|
|
3924
|
+
return u(), h("div", {
|
|
3863
3925
|
class: "builder-embed",
|
|
3864
3926
|
ref: "elem",
|
|
3865
3927
|
innerHTML: e.content
|
|
3866
|
-
}, null, 8,
|
|
3928
|
+
}, null, 8, Si);
|
|
3867
3929
|
}
|
|
3868
|
-
const
|
|
3930
|
+
const ki = /* @__PURE__ */ S(yi, [["render", vi]]), Ci = {
|
|
3869
3931
|
name: "Form:Form",
|
|
3870
3932
|
// editableTags: ['builder-form-error']
|
|
3871
3933
|
defaults: {
|
|
@@ -4102,12 +4164,12 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
|
4102
4164
|
builderComponents: !0,
|
|
4103
4165
|
builderLinkComponent: !0
|
|
4104
4166
|
}
|
|
4105
|
-
},
|
|
4167
|
+
}, Ti = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], wi = () => {
|
|
4106
4168
|
const e = process.env.NODE_ENV || "production";
|
|
4107
|
-
return
|
|
4108
|
-
},
|
|
4169
|
+
return Ti.includes(e) ? e : "production";
|
|
4170
|
+
}, Ii = y({
|
|
4109
4171
|
name: "builder-form-component",
|
|
4110
|
-
components: { Blocks:
|
|
4172
|
+
components: { Blocks: z },
|
|
4111
4173
|
props: [
|
|
4112
4174
|
"builderContext",
|
|
4113
4175
|
"previewState",
|
|
@@ -4133,7 +4195,7 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
|
4133
4195
|
formState: "unsubmitted",
|
|
4134
4196
|
responseData: null,
|
|
4135
4197
|
formErrorMessage: "",
|
|
4136
|
-
filterAttrs:
|
|
4198
|
+
filterAttrs: N
|
|
4137
4199
|
};
|
|
4138
4200
|
},
|
|
4139
4201
|
methods: {
|
|
@@ -4198,16 +4260,16 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
|
4198
4260
|
else {
|
|
4199
4261
|
const c = {};
|
|
4200
4262
|
Array.from(l).forEach(({ value: m, key: f }) => {
|
|
4201
|
-
|
|
4263
|
+
Gn(c, f, m);
|
|
4202
4264
|
}), i = JSON.stringify(c);
|
|
4203
4265
|
}
|
|
4204
4266
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
4205
|
-
const
|
|
4267
|
+
const d = new CustomEvent("presubmit", {
|
|
4206
4268
|
detail: {
|
|
4207
4269
|
body: i
|
|
4208
4270
|
}
|
|
4209
4271
|
});
|
|
4210
|
-
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(
|
|
4272
|
+
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
|
|
4211
4273
|
return;
|
|
4212
4274
|
if (this.formState = "sending", this.sendSubmissionsTo === "email" && (this.sendSubmissionsToEmail === "your@email.com" || !this.sendSubmissionsToEmail)) {
|
|
4213
4275
|
const c = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
@@ -4216,10 +4278,10 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
|
4216
4278
|
});
|
|
4217
4279
|
return;
|
|
4218
4280
|
}
|
|
4219
|
-
const p = `${
|
|
4281
|
+
const p = `${wi() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
4220
4282
|
this.sendSubmissionsToEmail || ""
|
|
4221
4283
|
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
4222
|
-
|
|
4284
|
+
Ve(b), fetch(b, {
|
|
4223
4285
|
body: i,
|
|
4224
4286
|
headers: r,
|
|
4225
4287
|
method: this.method || "post"
|
|
@@ -4229,32 +4291,32 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
|
4229
4291
|
let m;
|
|
4230
4292
|
const f = c.headers.get("content-type");
|
|
4231
4293
|
if (f && f.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
|
|
4232
|
-
const
|
|
4294
|
+
const x = new CustomEvent("submit:error", {
|
|
4233
4295
|
detail: {
|
|
4234
4296
|
error: m,
|
|
4235
4297
|
status: c.status
|
|
4236
4298
|
}
|
|
4237
4299
|
});
|
|
4238
4300
|
if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
|
|
4239
|
-
|
|
4240
|
-
),
|
|
4301
|
+
x
|
|
4302
|
+
), x.defaultPrevented))
|
|
4241
4303
|
return;
|
|
4242
4304
|
this.responseData = m, this.formState = "error";
|
|
4243
|
-
let V = this.errorMessagePath ?
|
|
4305
|
+
let V = this.errorMessagePath ? ft(m, this.errorMessagePath) : m.message || m.error || m;
|
|
4244
4306
|
typeof V != "string" && (V = JSON.stringify(V)), this.formErrorMessage = V, this.mergeNewRootState({
|
|
4245
4307
|
formErrorMessage: V
|
|
4246
4308
|
});
|
|
4247
4309
|
return;
|
|
4248
4310
|
}
|
|
4249
4311
|
if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
|
|
4250
|
-
const
|
|
4312
|
+
const x = new CustomEvent("submit:success", {
|
|
4251
4313
|
detail: {
|
|
4252
4314
|
res: c,
|
|
4253
4315
|
body: m
|
|
4254
4316
|
}
|
|
4255
4317
|
});
|
|
4256
4318
|
if (this.$refs.formRef) {
|
|
4257
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
4319
|
+
if (this.$refs.formRef.dispatchEvent(x), x.defaultPrevented)
|
|
4258
4320
|
return;
|
|
4259
4321
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
4260
4322
|
}
|
|
@@ -4282,43 +4344,43 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
|
4282
4344
|
}
|
|
4283
4345
|
}
|
|
4284
4346
|
}
|
|
4285
|
-
}),
|
|
4347
|
+
}), Ei = ["validate", "action", "method", "name"], Ri = {
|
|
4286
4348
|
key: 2,
|
|
4287
4349
|
class: "builder-form-error-text pre-2oa2wtipkzk"
|
|
4288
4350
|
};
|
|
4289
|
-
function
|
|
4351
|
+
function $i(e, t, n, o, r, i) {
|
|
4290
4352
|
const s = k("Blocks");
|
|
4291
|
-
return
|
|
4353
|
+
return u(), h("form", E({
|
|
4292
4354
|
validate: e.validate,
|
|
4293
4355
|
ref: "formRef",
|
|
4294
4356
|
action: !e.sendWithJs && e.action,
|
|
4295
4357
|
method: e.method,
|
|
4296
4358
|
name: e.name,
|
|
4297
4359
|
onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
|
|
4298
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
4299
|
-
|
|
4300
|
-
e.submissionState() === "error" ? (
|
|
4360
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4361
|
+
O(e.$slots, "default", {}, void 0, !0),
|
|
4362
|
+
e.submissionState() === "error" ? (u(), v(s, {
|
|
4301
4363
|
key: 0,
|
|
4302
4364
|
path: "errorMessage",
|
|
4303
4365
|
blocks: e.errorMessage,
|
|
4304
4366
|
context: e.builderContext
|
|
4305
4367
|
}, null, 8, ["blocks", "context"])) : T("", !0),
|
|
4306
|
-
e.submissionState() === "sending" ? (
|
|
4368
|
+
e.submissionState() === "sending" ? (u(), v(s, {
|
|
4307
4369
|
key: 1,
|
|
4308
4370
|
path: "sendingMessage",
|
|
4309
4371
|
blocks: e.sendingMessage,
|
|
4310
4372
|
context: e.builderContext
|
|
4311
4373
|
}, null, 8, ["blocks", "context"])) : T("", !0),
|
|
4312
|
-
e.submissionState() === "error" && e.responseData ? (
|
|
4313
|
-
e.submissionState() === "success" ? (
|
|
4374
|
+
e.submissionState() === "error" && e.responseData ? (u(), h("pre", Ri, he(e.errorResponse(e.responseData)), 1)) : T("", !0),
|
|
4375
|
+
e.submissionState() === "success" ? (u(), v(s, {
|
|
4314
4376
|
key: 3,
|
|
4315
4377
|
path: "successMessage",
|
|
4316
4378
|
blocks: e.successMessage,
|
|
4317
4379
|
context: e.builderContext
|
|
4318
4380
|
}, null, 8, ["blocks", "context"])) : T("", !0)
|
|
4319
|
-
], 16,
|
|
4381
|
+
], 16, Ei);
|
|
4320
4382
|
}
|
|
4321
|
-
const
|
|
4383
|
+
const Ai = /* @__PURE__ */ S(Ii, [["render", $i], ["__scopeId", "data-v-77c7888c"]]), Pi = {
|
|
4322
4384
|
name: "Form:Input",
|
|
4323
4385
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4324
4386
|
inputs: [
|
|
@@ -4369,7 +4431,7 @@ const di = /* @__PURE__ */ v(si, [["render", ci], ["__scopeId", "data-v-77c7888c
|
|
|
4369
4431
|
borderStyle: "solid",
|
|
4370
4432
|
borderColor: "#ccc"
|
|
4371
4433
|
}
|
|
4372
|
-
},
|
|
4434
|
+
}, Bi = y({
|
|
4373
4435
|
name: "builder-form-input-component",
|
|
4374
4436
|
props: [
|
|
4375
4437
|
"attributes",
|
|
@@ -4381,11 +4443,11 @@ const di = /* @__PURE__ */ v(si, [["render", ci], ["__scopeId", "data-v-77c7888c
|
|
|
4381
4443
|
"required"
|
|
4382
4444
|
],
|
|
4383
4445
|
data() {
|
|
4384
|
-
return { isEditing: A, filterAttrs:
|
|
4446
|
+
return { isEditing: A, filterAttrs: N };
|
|
4385
4447
|
}
|
|
4386
|
-
}),
|
|
4387
|
-
function
|
|
4388
|
-
return
|
|
4448
|
+
}), Vi = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4449
|
+
function Oi(e, t, n, o, r, i) {
|
|
4450
|
+
return u(), h("input", E({
|
|
4389
4451
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4390
4452
|
placeholder: e.placeholder,
|
|
4391
4453
|
type: e.type,
|
|
@@ -4393,9 +4455,9 @@ function hi(e, t, n, o, r, i) {
|
|
|
4393
4455
|
value: e.value,
|
|
4394
4456
|
defaultValue: e.defaultValue,
|
|
4395
4457
|
required: e.required
|
|
4396
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4458
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Vi);
|
|
4397
4459
|
}
|
|
4398
|
-
const
|
|
4460
|
+
const Ni = /* @__PURE__ */ S(Bi, [["render", Oi]]), Wi = {
|
|
4399
4461
|
name: "Form:Select",
|
|
4400
4462
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4401
4463
|
defaultStyles: {
|
|
@@ -4437,28 +4499,28 @@ const fi = /* @__PURE__ */ v(pi, [["render", hi]]), bi = {
|
|
|
4437
4499
|
}],
|
|
4438
4500
|
static: !0,
|
|
4439
4501
|
noWrap: !0
|
|
4440
|
-
},
|
|
4502
|
+
}, Di = y({
|
|
4441
4503
|
name: "builder-select-component",
|
|
4442
4504
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4443
4505
|
data() {
|
|
4444
|
-
return { isEditing: A, filterAttrs:
|
|
4506
|
+
return { isEditing: A, filterAttrs: N };
|
|
4445
4507
|
}
|
|
4446
|
-
}),
|
|
4447
|
-
function
|
|
4448
|
-
return
|
|
4508
|
+
}), xi = ["value", "defaultValue", "name", "required"], Ui = ["value"];
|
|
4509
|
+
function Li(e, t, n, o, r, i) {
|
|
4510
|
+
return u(), h("select", E({
|
|
4449
4511
|
value: e.value,
|
|
4450
4512
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4451
4513
|
defaultValue: e.defaultValue,
|
|
4452
4514
|
name: e.name,
|
|
4453
4515
|
required: e.required
|
|
4454
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4455
|
-
(
|
|
4516
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4517
|
+
(u(!0), h(I, null, L(e.options, (s, l) => (u(), h("option", {
|
|
4456
4518
|
key: `${s.name}-${l}`,
|
|
4457
4519
|
value: s.value
|
|
4458
|
-
},
|
|
4459
|
-
], 16,
|
|
4520
|
+
}, he(s.name || s.value), 9, Ui))), 128))
|
|
4521
|
+
], 16, xi);
|
|
4460
4522
|
}
|
|
4461
|
-
const
|
|
4523
|
+
const Fi = /* @__PURE__ */ S(Di, [["render", Li]]), Mi = {
|
|
4462
4524
|
name: "Form:SubmitButton",
|
|
4463
4525
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4464
4526
|
defaultStyles: {
|
|
@@ -4483,17 +4545,17 @@ const ki = /* @__PURE__ */ v(gi, [["render", Si]]), Ci = {
|
|
|
4483
4545
|
// that only shows if advanced setting is flipped
|
|
4484
4546
|
// TODO: defaultChildren
|
|
4485
4547
|
// canHaveChildren: true,
|
|
4486
|
-
},
|
|
4548
|
+
}, Hi = y({
|
|
4487
4549
|
name: "builder-submit-button",
|
|
4488
4550
|
props: ["attributes", "text"],
|
|
4489
4551
|
data() {
|
|
4490
|
-
return { filterAttrs:
|
|
4552
|
+
return { filterAttrs: N };
|
|
4491
4553
|
}
|
|
4492
4554
|
});
|
|
4493
|
-
function
|
|
4494
|
-
return
|
|
4555
|
+
function ji(e, t, n, o, r, i) {
|
|
4556
|
+
return u(), h("button", E({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), he(e.text), 17);
|
|
4495
4557
|
}
|
|
4496
|
-
const
|
|
4558
|
+
const Ki = /* @__PURE__ */ S(Hi, [["render", ji]]), zi = {
|
|
4497
4559
|
name: "Form:TextArea",
|
|
4498
4560
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4499
4561
|
inputs: [{
|
|
@@ -4529,7 +4591,7 @@ const Ii = /* @__PURE__ */ v(Ti, [["render", wi]]), $i = {
|
|
|
4529
4591
|
},
|
|
4530
4592
|
static: !0,
|
|
4531
4593
|
noWrap: !0
|
|
4532
|
-
},
|
|
4594
|
+
}, qi = y({
|
|
4533
4595
|
name: "builder-textarea",
|
|
4534
4596
|
props: [
|
|
4535
4597
|
"attributes",
|
|
@@ -4540,19 +4602,19 @@ const Ii = /* @__PURE__ */ v(Ti, [["render", wi]]), $i = {
|
|
|
4540
4602
|
"required"
|
|
4541
4603
|
],
|
|
4542
4604
|
data() {
|
|
4543
|
-
return { filterAttrs:
|
|
4605
|
+
return { filterAttrs: N };
|
|
4544
4606
|
}
|
|
4545
|
-
}),
|
|
4546
|
-
function
|
|
4547
|
-
return
|
|
4607
|
+
}), Gi = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4608
|
+
function _i(e, t, n, o, r, i) {
|
|
4609
|
+
return u(), h("textarea", E({
|
|
4548
4610
|
placeholder: e.placeholder,
|
|
4549
4611
|
name: e.name,
|
|
4550
4612
|
value: e.value,
|
|
4551
4613
|
defaultValue: e.defaultValue,
|
|
4552
4614
|
required: e.required
|
|
4553
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4615
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Gi);
|
|
4554
4616
|
}
|
|
4555
|
-
const
|
|
4617
|
+
const Ji = /* @__PURE__ */ S(qi, [["render", _i]]), Qi = {
|
|
4556
4618
|
name: "Raw:Img",
|
|
4557
4619
|
hideFromInsertMenu: !0,
|
|
4558
4620
|
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",
|
|
@@ -4596,7 +4658,7 @@ const Pi = /* @__PURE__ */ v(Ei, [["render", Ai]]), Bi = {
|
|
|
4596
4658
|
defaultValue: 0.7041
|
|
4597
4659
|
}],
|
|
4598
4660
|
noWrap: !0
|
|
4599
|
-
},
|
|
4661
|
+
}, Yi = y({
|
|
4600
4662
|
name: "builder-img-component",
|
|
4601
4663
|
props: [
|
|
4602
4664
|
"imgSrc",
|
|
@@ -4615,21 +4677,21 @@ const Pi = /* @__PURE__ */ v(Ei, [["render", Ai]]), Bi = {
|
|
|
4615
4677
|
srcSetToUse() {
|
|
4616
4678
|
const e = this.imgSrc || this.image;
|
|
4617
4679
|
if (!(!e || typeof e != "string") && e.match(/builder\.io/))
|
|
4618
|
-
return
|
|
4680
|
+
return le(e);
|
|
4619
4681
|
},
|
|
4620
4682
|
imgAttrs() {
|
|
4621
4683
|
const e = {
|
|
4622
|
-
...
|
|
4623
|
-
...
|
|
4684
|
+
...N(this.attributes, "v-on:", !1),
|
|
4685
|
+
...N(this.attributes, "v-on:", !0),
|
|
4624
4686
|
[H()]: `builder-raw-img ${this.attributes[H()] || ""}`
|
|
4625
4687
|
};
|
|
4626
4688
|
return delete e.style, e;
|
|
4627
4689
|
}
|
|
4628
4690
|
}
|
|
4629
|
-
}),
|
|
4630
|
-
function
|
|
4691
|
+
}), Xi = ["alt", "title", "src"];
|
|
4692
|
+
function Zi(e, t, n, o, r, i) {
|
|
4631
4693
|
var s;
|
|
4632
|
-
return
|
|
4694
|
+
return u(), h("img", E({
|
|
4633
4695
|
loading: "lazy",
|
|
4634
4696
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
4635
4697
|
alt: e.altText,
|
|
@@ -4641,9 +4703,9 @@ function Oi(e, t, n, o, r, i) {
|
|
|
4641
4703
|
aspectRatio: e.aspectRatio || void 0,
|
|
4642
4704
|
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4643
4705
|
}
|
|
4644
|
-
}, e.imgAttrs), null, 16,
|
|
4706
|
+
}, e.imgAttrs), null, 16, Xi);
|
|
4645
4707
|
}
|
|
4646
|
-
const
|
|
4708
|
+
const es = /* @__PURE__ */ S(Yi, [["render", Zi]]), ts = {
|
|
4647
4709
|
name: "Video",
|
|
4648
4710
|
canHaveChildren: !0,
|
|
4649
4711
|
defaultStyles: {
|
|
@@ -4654,7 +4716,7 @@ const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
|
|
|
4654
4716
|
inputs: [{
|
|
4655
4717
|
name: "video",
|
|
4656
4718
|
type: "file",
|
|
4657
|
-
allowedFileTypes:
|
|
4719
|
+
allowedFileTypes: Mr,
|
|
4658
4720
|
bubble: !0,
|
|
4659
4721
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
4660
4722
|
required: !0
|
|
@@ -4727,7 +4789,7 @@ const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
|
|
|
4727
4789
|
shouldReceiveBuilderProps: {
|
|
4728
4790
|
builderBlock: !0
|
|
4729
4791
|
}
|
|
4730
|
-
},
|
|
4792
|
+
}, ns = y({
|
|
4731
4793
|
name: "builder-video",
|
|
4732
4794
|
props: [
|
|
4733
4795
|
"lazyLoad",
|
|
@@ -4800,16 +4862,16 @@ const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
|
|
|
4800
4862
|
};
|
|
4801
4863
|
}
|
|
4802
4864
|
}
|
|
4803
|
-
}),
|
|
4865
|
+
}), os = { style: {
|
|
4804
4866
|
position: "relative"
|
|
4805
|
-
} },
|
|
4867
|
+
} }, rs = ["preload", "poster"], is = {
|
|
4806
4868
|
key: 1,
|
|
4807
4869
|
style: {
|
|
4808
4870
|
display: "flex",
|
|
4809
4871
|
flexDirection: "column",
|
|
4810
4872
|
alignItems: "stretch"
|
|
4811
4873
|
}
|
|
4812
|
-
},
|
|
4874
|
+
}, ss = {
|
|
4813
4875
|
key: 2,
|
|
4814
4876
|
style: {
|
|
4815
4877
|
pointerEvents: "none",
|
|
@@ -4823,10 +4885,10 @@ const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
|
|
|
4823
4885
|
height: "100%"
|
|
4824
4886
|
}
|
|
4825
4887
|
};
|
|
4826
|
-
function
|
|
4827
|
-
var s, l, a,
|
|
4828
|
-
return
|
|
4829
|
-
G("video",
|
|
4888
|
+
function as(e, t, n, o, r, i) {
|
|
4889
|
+
var s, l, a, d, p, b, c;
|
|
4890
|
+
return u(), h("div", os, [
|
|
4891
|
+
G("video", E({
|
|
4830
4892
|
class: "builder-video",
|
|
4831
4893
|
ref: "videoRef",
|
|
4832
4894
|
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
@@ -4845,7 +4907,7 @@ function Hi(e, t, n, o, r, i) {
|
|
|
4845
4907
|
},
|
|
4846
4908
|
poster: e.posterImage
|
|
4847
4909
|
}, e.spreadProps), [
|
|
4848
|
-
G("source",
|
|
4910
|
+
G("source", E(
|
|
4849
4911
|
{ type: "video/mp4" },
|
|
4850
4912
|
e.lazyLoad ? {
|
|
4851
4913
|
"data-src": e.video
|
|
@@ -4853,8 +4915,8 @@ function Hi(e, t, n, o, r, i) {
|
|
|
4853
4915
|
src: e.video
|
|
4854
4916
|
}
|
|
4855
4917
|
), null, 16)
|
|
4856
|
-
], 16,
|
|
4857
|
-
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (
|
|
4918
|
+
], 16, rs),
|
|
4919
|
+
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (u(), h("div", {
|
|
4858
4920
|
key: 0,
|
|
4859
4921
|
style: M({
|
|
4860
4922
|
width: "100%",
|
|
@@ -4863,75 +4925,77 @@ function Hi(e, t, n, o, r, i) {
|
|
|
4863
4925
|
fontSize: "0px"
|
|
4864
4926
|
})
|
|
4865
4927
|
}, null, 4)) : T("", !0),
|
|
4866
|
-
(p = (
|
|
4867
|
-
|
|
4928
|
+
(p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && e.fitContent ? (u(), h("div", is, [
|
|
4929
|
+
O(e.$slots, "default")
|
|
4868
4930
|
])) : T("", !0),
|
|
4869
|
-
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (
|
|
4870
|
-
|
|
4931
|
+
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (u(), h("div", ss, [
|
|
4932
|
+
O(e.$slots, "default")
|
|
4871
4933
|
])) : T("", !0)
|
|
4872
4934
|
]);
|
|
4873
4935
|
}
|
|
4874
|
-
const
|
|
4875
|
-
component:
|
|
4876
|
-
...
|
|
4936
|
+
const ls = /* @__PURE__ */ S(ns, [["render", as]]), cs = () => [{
|
|
4937
|
+
component: hi,
|
|
4938
|
+
...di
|
|
4877
4939
|
}, {
|
|
4878
|
-
component:
|
|
4879
|
-
...
|
|
4940
|
+
component: ki,
|
|
4941
|
+
...fi
|
|
4880
4942
|
}, {
|
|
4881
|
-
component:
|
|
4882
|
-
...
|
|
4943
|
+
component: Ai,
|
|
4944
|
+
...Ci
|
|
4883
4945
|
}, {
|
|
4884
|
-
component:
|
|
4885
|
-
...
|
|
4946
|
+
component: Ni,
|
|
4947
|
+
...Pi
|
|
4886
4948
|
}, {
|
|
4887
|
-
component:
|
|
4888
|
-
...
|
|
4949
|
+
component: Ki,
|
|
4950
|
+
...Mi
|
|
4889
4951
|
}, {
|
|
4890
|
-
component:
|
|
4891
|
-
...
|
|
4952
|
+
component: Fi,
|
|
4953
|
+
...Wi
|
|
4892
4954
|
}, {
|
|
4893
|
-
component:
|
|
4894
|
-
|
|
4955
|
+
component: Ji,
|
|
4956
|
+
...zi
|
|
4895
4957
|
}, {
|
|
4896
|
-
component:
|
|
4897
|
-
...
|
|
4958
|
+
component: es,
|
|
4959
|
+
...Qi
|
|
4898
4960
|
}, {
|
|
4899
|
-
component:
|
|
4900
|
-
...
|
|
4901
|
-
}]
|
|
4902
|
-
|
|
4903
|
-
|
|
4961
|
+
component: ls,
|
|
4962
|
+
...ts
|
|
4963
|
+
}];
|
|
4964
|
+
let se;
|
|
4965
|
+
const at = () => se || (se = [{
|
|
4966
|
+
component: an,
|
|
4967
|
+
...Ur
|
|
4904
4968
|
}, {
|
|
4905
|
-
component:
|
|
4906
|
-
...
|
|
4969
|
+
component: ir,
|
|
4970
|
+
...Lr
|
|
4907
4971
|
}, {
|
|
4908
|
-
component:
|
|
4909
|
-
...
|
|
4972
|
+
component: lr,
|
|
4973
|
+
...Fr
|
|
4910
4974
|
}, {
|
|
4911
|
-
component:
|
|
4912
|
-
...
|
|
4975
|
+
component: br,
|
|
4976
|
+
...Hr
|
|
4913
4977
|
}, {
|
|
4914
|
-
component:
|
|
4915
|
-
...
|
|
4978
|
+
component: Sr,
|
|
4979
|
+
...Gr
|
|
4916
4980
|
}, {
|
|
4917
|
-
component:
|
|
4918
|
-
...
|
|
4981
|
+
component: Yr,
|
|
4982
|
+
..._r
|
|
4919
4983
|
}, {
|
|
4920
|
-
component:
|
|
4921
|
-
...
|
|
4984
|
+
component: Qs,
|
|
4985
|
+
...Xr
|
|
4922
4986
|
}, {
|
|
4923
|
-
component:
|
|
4924
|
-
...
|
|
4925
|
-
}, ...
|
|
4926
|
-
component:
|
|
4927
|
-
...
|
|
4987
|
+
component: ci,
|
|
4988
|
+
...ii
|
|
4989
|
+
}, ..._t.includes(R) ? [{
|
|
4990
|
+
component: qr,
|
|
4991
|
+
...jr
|
|
4928
4992
|
}] : [], {
|
|
4929
|
-
component:
|
|
4930
|
-
...
|
|
4993
|
+
component: ri,
|
|
4994
|
+
...Zr
|
|
4931
4995
|
}, {
|
|
4932
|
-
component:
|
|
4933
|
-
...
|
|
4934
|
-
}, ...
|
|
4996
|
+
component: xr,
|
|
4997
|
+
...Vr
|
|
4998
|
+
}, ...cs()], se), ds = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4935
4999
|
function getAndSetVariantId() {
|
|
4936
5000
|
function setCookie(name, value, days) {
|
|
4937
5001
|
let expires = '';
|
|
@@ -4990,7 +5054,7 @@ const ji = /* @__PURE__ */ v(Ui, [["render", Hi]]), zi = () => [{
|
|
|
4990
5054
|
}).join('');
|
|
4991
5055
|
styleEl.innerHTML = newStyleStr;
|
|
4992
5056
|
}
|
|
4993
|
-
}`,
|
|
5057
|
+
}`, us = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4994
5058
|
if (!navigator.cookieEnabled) {
|
|
4995
5059
|
return;
|
|
4996
5060
|
}
|
|
@@ -5024,37 +5088,37 @@ const ji = /* @__PURE__ */ v(Ui, [["render", Hi]]), zi = () => [{
|
|
|
5024
5088
|
thisScriptEl?.remove();
|
|
5025
5089
|
}
|
|
5026
5090
|
return;
|
|
5027
|
-
}`, $e = "builderIoAbTest",
|
|
5091
|
+
}`, $e = "builderIoAbTest", Ae = "builderIoRenderContent", de = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
5028
5092
|
...t,
|
|
5029
5093
|
testVariationId: t.id,
|
|
5030
5094
|
id: e == null ? void 0 : e.id
|
|
5031
|
-
})),
|
|
5095
|
+
})), ps = ({
|
|
5032
5096
|
canTrack: e,
|
|
5033
5097
|
content: t
|
|
5034
|
-
}) => !(!(
|
|
5098
|
+
}) => !(!(de(t).length > 0) || !e), ms = (e) => e === "react" || e === "reactNative", hs = R === "angular", Fe = ms(R), fs = () => `
|
|
5035
5099
|
(function() {
|
|
5036
5100
|
if (!window.${$e}) {
|
|
5037
|
-
window.${$e} = ${
|
|
5101
|
+
window.${$e} = ${ds};
|
|
5038
5102
|
}
|
|
5039
|
-
if (!window.${
|
|
5040
|
-
window.${
|
|
5041
|
-
}${
|
|
5103
|
+
if (!window.${Ae}) {
|
|
5104
|
+
window.${Ae} = ${us};
|
|
5105
|
+
}${Fe ? `
|
|
5042
5106
|
var thisScriptEl = document.currentScript;
|
|
5043
5107
|
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
5044
5108
|
})();
|
|
5045
|
-
`,
|
|
5109
|
+
`, bs = (e, t) => `
|
|
5046
5110
|
window.${$e}(
|
|
5047
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
5048
|
-
)`,
|
|
5111
|
+
"${t}",${JSON.stringify(e)}, ${Fe}, ${hs}
|
|
5112
|
+
)`, gs = ({
|
|
5049
5113
|
contentId: e,
|
|
5050
5114
|
variationId: t
|
|
5051
|
-
}) => `window.${
|
|
5052
|
-
"${t}", "${e}", ${
|
|
5053
|
-
)
|
|
5054
|
-
function
|
|
5115
|
+
}) => `window.${Ae}(
|
|
5116
|
+
"${t}", "${e}", ${Fe}
|
|
5117
|
+
)`, ys = (e) => JSON.parse(JSON.stringify(e));
|
|
5118
|
+
function lt(e) {
|
|
5055
5119
|
return Math.round(e * 1e3) / 1e3;
|
|
5056
5120
|
}
|
|
5057
|
-
const
|
|
5121
|
+
const Ss = (e, t, n = !0) => {
|
|
5058
5122
|
if (!(e instanceof HTMLElement))
|
|
5059
5123
|
return null;
|
|
5060
5124
|
let o = n ? e : e.parentElement;
|
|
@@ -5065,35 +5129,35 @@ const Zi = (e, t, n = !0) => {
|
|
|
5065
5129
|
return o;
|
|
5066
5130
|
} while (o = o.parentElement);
|
|
5067
5131
|
return null;
|
|
5068
|
-
},
|
|
5132
|
+
}, vs = (e) => Ss(e, (t) => {
|
|
5069
5133
|
const n = t.getAttribute("builder-id") || t.id;
|
|
5070
5134
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
5071
|
-
}),
|
|
5135
|
+
}), ct = ({
|
|
5072
5136
|
event: e,
|
|
5073
5137
|
target: t
|
|
5074
5138
|
}) => {
|
|
5075
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
5139
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = lt(o / n.width), s = lt(r / n.height);
|
|
5076
5140
|
return {
|
|
5077
5141
|
x: i,
|
|
5078
5142
|
y: s
|
|
5079
5143
|
};
|
|
5080
|
-
},
|
|
5081
|
-
const t = e.target, n = t &&
|
|
5144
|
+
}, ks = (e) => {
|
|
5145
|
+
const t = e.target, n = t && vs(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
5082
5146
|
return {
|
|
5083
5147
|
targetBuilderElement: o || void 0,
|
|
5084
5148
|
metadata: {
|
|
5085
|
-
targetOffset: t ?
|
|
5149
|
+
targetOffset: t ? ct({
|
|
5086
5150
|
event: e,
|
|
5087
5151
|
target: t
|
|
5088
5152
|
}) : void 0,
|
|
5089
|
-
builderTargetOffset: n ?
|
|
5153
|
+
builderTargetOffset: n ? ct({
|
|
5090
5154
|
event: e,
|
|
5091
5155
|
target: n
|
|
5092
5156
|
}) : void 0,
|
|
5093
5157
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
5094
5158
|
}
|
|
5095
5159
|
};
|
|
5096
|
-
},
|
|
5160
|
+
}, Cs = ["svelte", "qwik", "vue"], Ts = () => Cs.includes(R) && (A() || be()), ws = (e) => {
|
|
5097
5161
|
var i;
|
|
5098
5162
|
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
5163
|
let r = "";
|
|
@@ -5119,16 +5183,16 @@ font-weight: ${s};
|
|
|
5119
5183
|
`.trim());
|
|
5120
5184
|
}
|
|
5121
5185
|
return r;
|
|
5122
|
-
},
|
|
5186
|
+
}, Is = ({
|
|
5123
5187
|
customFonts: e
|
|
5124
5188
|
}) => {
|
|
5125
5189
|
var t;
|
|
5126
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
5127
|
-
},
|
|
5190
|
+
return ((t = e == null ? void 0 : e.map((n) => ws(n))) == null ? void 0 : t.join(" ")) || "";
|
|
5191
|
+
}, Es = ({
|
|
5128
5192
|
cssCode: e,
|
|
5129
5193
|
contentId: t
|
|
5130
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
5131
|
-
.builder-button {
|
|
5194
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Rs = `
|
|
5195
|
+
:where(.builder-button) {
|
|
5132
5196
|
all: unset;
|
|
5133
5197
|
}
|
|
5134
5198
|
|
|
@@ -5144,9 +5208,9 @@ font-weight: ${s};
|
|
|
5144
5208
|
text-align: inherit;
|
|
5145
5209
|
font-family: inherit;
|
|
5146
5210
|
}
|
|
5147
|
-
`,
|
|
5211
|
+
`, $s = (e) => e ? "" : Rs, As = (e) => `variant-${e}`, Ps = y({
|
|
5148
5212
|
name: "enable-editor",
|
|
5149
|
-
components: { DynamicDiv:
|
|
5213
|
+
components: { DynamicDiv: oe },
|
|
5150
5214
|
props: [
|
|
5151
5215
|
"isNestedRender",
|
|
5152
5216
|
"builderContextSignal",
|
|
@@ -5176,15 +5240,15 @@ font-weight: ${s};
|
|
|
5176
5240
|
httpReqsData: {},
|
|
5177
5241
|
httpReqsPending: {},
|
|
5178
5242
|
clicked: !1,
|
|
5179
|
-
builderContext:
|
|
5180
|
-
needsElementRefDivForEditing:
|
|
5181
|
-
getWrapperClassName:
|
|
5243
|
+
builderContext: Ce,
|
|
5244
|
+
needsElementRefDivForEditing: Ts,
|
|
5245
|
+
getWrapperClassName: As
|
|
5182
5246
|
};
|
|
5183
5247
|
},
|
|
5184
5248
|
provide() {
|
|
5185
5249
|
const e = this;
|
|
5186
5250
|
return {
|
|
5187
|
-
[
|
|
5251
|
+
[Ce.key]: e.builderContextSignal
|
|
5188
5252
|
};
|
|
5189
5253
|
},
|
|
5190
5254
|
created() {
|
|
@@ -5196,13 +5260,13 @@ font-weight: ${s};
|
|
|
5196
5260
|
A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5197
5261
|
new CustomEvent("initeditingbldr")
|
|
5198
5262
|
);
|
|
5199
|
-
const o = this.builderContextSignal.content &&
|
|
5263
|
+
const o = this.builderContextSignal.content && _(this.canTrack), r = fe({
|
|
5200
5264
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
5201
5265
|
canTrack: !0
|
|
5202
5266
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
5203
5267
|
if (o && i === r) {
|
|
5204
5268
|
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
|
|
5205
|
-
|
|
5269
|
+
ue({
|
|
5206
5270
|
apiHost: this.apiHost,
|
|
5207
5271
|
type: "impression",
|
|
5208
5272
|
canTrack: !0,
|
|
@@ -5211,7 +5275,7 @@ font-weight: ${s};
|
|
|
5211
5275
|
variationId: r !== s ? r : void 0
|
|
5212
5276
|
});
|
|
5213
5277
|
}
|
|
5214
|
-
|
|
5278
|
+
be() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5215
5279
|
new CustomEvent("initpreviewingbldr")
|
|
5216
5280
|
);
|
|
5217
5281
|
}
|
|
@@ -5313,7 +5377,7 @@ font-weight: ${s};
|
|
|
5313
5377
|
this.builderContextSignal.content = n;
|
|
5314
5378
|
},
|
|
5315
5379
|
processMessage(e) {
|
|
5316
|
-
return
|
|
5380
|
+
return Dt({
|
|
5317
5381
|
model: this.model,
|
|
5318
5382
|
trustedHosts: this.trustedHosts,
|
|
5319
5383
|
callbacks: {
|
|
@@ -5327,7 +5391,7 @@ font-weight: ${s};
|
|
|
5327
5391
|
});
|
|
5328
5392
|
},
|
|
5329
5393
|
animation: (t) => {
|
|
5330
|
-
|
|
5394
|
+
jt(t);
|
|
5331
5395
|
},
|
|
5332
5396
|
contentUpdate: (t, n) => {
|
|
5333
5397
|
this.mergeNewContent(t, n);
|
|
@@ -5342,14 +5406,14 @@ font-weight: ${s};
|
|
|
5342
5406
|
var t, n;
|
|
5343
5407
|
if (this.builderContextSignal.content) {
|
|
5344
5408
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
5345
|
-
|
|
5409
|
+
ue({
|
|
5346
5410
|
apiHost: this.apiHost,
|
|
5347
5411
|
type: "click",
|
|
5348
|
-
canTrack:
|
|
5412
|
+
canTrack: _(this.canTrack),
|
|
5349
5413
|
contentId: r,
|
|
5350
5414
|
apiKey: this.apiKey,
|
|
5351
5415
|
variationId: o !== r ? o : void 0,
|
|
5352
|
-
...
|
|
5416
|
+
...ks(e),
|
|
5353
5417
|
unique: !this.clicked
|
|
5354
5418
|
});
|
|
5355
5419
|
}
|
|
@@ -5370,7 +5434,7 @@ font-weight: ${s};
|
|
|
5370
5434
|
const l = s.replace(
|
|
5371
5435
|
/{{([^}]+)}}/g,
|
|
5372
5436
|
(p, b) => String(
|
|
5373
|
-
|
|
5437
|
+
ne({
|
|
5374
5438
|
code: b,
|
|
5375
5439
|
context: this.context || {},
|
|
5376
5440
|
localState: void 0,
|
|
@@ -5387,13 +5451,13 @@ font-weight: ${s};
|
|
|
5387
5451
|
url: l,
|
|
5388
5452
|
method: "GET"
|
|
5389
5453
|
};
|
|
5390
|
-
|
|
5391
|
-
const
|
|
5454
|
+
Ve(JSON.stringify(a));
|
|
5455
|
+
const d = {
|
|
5392
5456
|
method: a.method,
|
|
5393
5457
|
headers: a.headers,
|
|
5394
5458
|
body: a.body
|
|
5395
5459
|
};
|
|
5396
|
-
a.method === "GET" && delete
|
|
5460
|
+
a.method === "GET" && delete d.body, fetch(a.url, d).then((p) => p.json()).then((p) => {
|
|
5397
5461
|
this.mergeNewRootState({
|
|
5398
5462
|
[o]: p
|
|
5399
5463
|
}), this.httpReqsData[o] = !0;
|
|
@@ -5415,7 +5479,7 @@ font-weight: ${s};
|
|
|
5415
5479
|
"builder:component:stateChange",
|
|
5416
5480
|
{
|
|
5417
5481
|
detail: {
|
|
5418
|
-
state:
|
|
5482
|
+
state: ys(this.builderContextSignal.rootState),
|
|
5419
5483
|
ref: {
|
|
5420
5484
|
name: this.model
|
|
5421
5485
|
}
|
|
@@ -5425,7 +5489,7 @@ font-weight: ${s};
|
|
|
5425
5489
|
);
|
|
5426
5490
|
},
|
|
5427
5491
|
elementRef_onIniteditingbldr(e) {
|
|
5428
|
-
window.addEventListener("message", this.processMessage),
|
|
5492
|
+
window.addEventListener("message", this.processMessage), Wt({
|
|
5429
5493
|
...this.locale ? {
|
|
5430
5494
|
locale: this.locale
|
|
5431
5495
|
} : {},
|
|
@@ -5445,7 +5509,7 @@ font-weight: ${s};
|
|
|
5445
5509
|
).forEach((t) => {
|
|
5446
5510
|
var n, o;
|
|
5447
5511
|
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
5448
|
-
const r =
|
|
5512
|
+
const r = Xn(t);
|
|
5449
5513
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
5450
5514
|
}
|
|
5451
5515
|
}), window.addEventListener(
|
|
@@ -5458,7 +5522,7 @@ font-weight: ${s};
|
|
|
5458
5522
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
5459
5523
|
`builder.overrides.${n}`
|
|
5460
5524
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
5461
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
5525
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && De({
|
|
5462
5526
|
model: this.model,
|
|
5463
5527
|
apiKey: this.apiKey,
|
|
5464
5528
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -5473,72 +5537,123 @@ font-weight: ${s};
|
|
|
5473
5537
|
}
|
|
5474
5538
|
}
|
|
5475
5539
|
});
|
|
5476
|
-
function
|
|
5540
|
+
function Bs(e, t, n, o, r, i) {
|
|
5477
5541
|
var s, l, a;
|
|
5478
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (
|
|
5542
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (u(), v(Z(e.ContentWrapper), E({
|
|
5479
5543
|
key: 0,
|
|
5480
5544
|
ref: "elementRef",
|
|
5481
|
-
onClick: (
|
|
5545
|
+
onClick: (d) => e.onClick(d),
|
|
5482
5546
|
"builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
|
|
5483
5547
|
"builder-model": e.model,
|
|
5484
5548
|
className: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
|
|
5485
5549
|
style: {
|
|
5486
5550
|
display: !e.builderContextSignal.content && e.needsElementRefDivForEditing() ? "none" : void 0
|
|
5487
5551
|
},
|
|
5488
|
-
onIniteditingbldr: (
|
|
5489
|
-
onInitpreviewingbldr: (
|
|
5552
|
+
onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
|
|
5553
|
+
onInitpreviewingbldr: (d) => e.elementRef_onInitpreviewingbldr(d)
|
|
5490
5554
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
5491
5555
|
default: D(() => [
|
|
5492
|
-
|
|
5556
|
+
O(e.$slots, "default")
|
|
5493
5557
|
]),
|
|
5494
5558
|
_: 3
|
|
5495
5559
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : T("", !0);
|
|
5496
5560
|
}
|
|
5497
|
-
const
|
|
5561
|
+
const Vs = /* @__PURE__ */ S(Ps, [["render", Bs]]), Os = y({
|
|
5498
5562
|
name: "content-styles",
|
|
5499
|
-
components: { InlinedStyles:
|
|
5563
|
+
components: { InlinedStyles: ge },
|
|
5500
5564
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5501
5565
|
data() {
|
|
5502
5566
|
return {
|
|
5503
5567
|
injectedStyles: `
|
|
5504
|
-
${
|
|
5568
|
+
${Es({
|
|
5505
5569
|
cssCode: this.cssCode,
|
|
5506
5570
|
contentId: this.contentId
|
|
5507
5571
|
})}
|
|
5508
|
-
${
|
|
5572
|
+
${Is({
|
|
5509
5573
|
customFonts: this.customFonts
|
|
5510
5574
|
})}
|
|
5511
|
-
${
|
|
5575
|
+
${$s(this.isNestedRender)}
|
|
5512
5576
|
`.trim()
|
|
5513
5577
|
};
|
|
5514
5578
|
}
|
|
5515
5579
|
});
|
|
5516
|
-
function
|
|
5580
|
+
function Ns(e, t, n, o, r, i) {
|
|
5517
5581
|
const s = k("InlinedStyles");
|
|
5518
|
-
return
|
|
5582
|
+
return u(), v(s, {
|
|
5519
5583
|
id: "builderio-content",
|
|
5520
5584
|
styles: e.injectedStyles,
|
|
5521
5585
|
nonce: e.nonce
|
|
5522
5586
|
}, null, 8, ["styles", "nonce"]);
|
|
5523
5587
|
}
|
|
5524
|
-
const
|
|
5588
|
+
const Ws = /* @__PURE__ */ S(Os, [["render", Ns]]), me = (e, t = /* @__PURE__ */ new WeakMap()) => {
|
|
5589
|
+
if (e === null || typeof e != "object")
|
|
5590
|
+
return e;
|
|
5591
|
+
if (t.has(e))
|
|
5592
|
+
return t.get(e);
|
|
5593
|
+
if (Array.isArray(e)) {
|
|
5594
|
+
const r = [];
|
|
5595
|
+
t.set(e, r);
|
|
5596
|
+
for (let i = 0; i < e.length; i++)
|
|
5597
|
+
r[i] = me(e[i], t);
|
|
5598
|
+
return r;
|
|
5599
|
+
}
|
|
5600
|
+
const n = Object.getPrototypeOf(e);
|
|
5601
|
+
if (n !== Object.prototype && n !== null)
|
|
5602
|
+
return e;
|
|
5603
|
+
const o = {};
|
|
5604
|
+
t.set(e, o);
|
|
5605
|
+
for (const r of Object.keys(e)) {
|
|
5606
|
+
const i = me(e[r], t);
|
|
5607
|
+
r === "__proto__" ? Object.defineProperty(o, r, {
|
|
5608
|
+
value: i,
|
|
5609
|
+
enumerable: !0,
|
|
5610
|
+
writable: !0,
|
|
5611
|
+
configurable: !0
|
|
5612
|
+
}) : o[r] = i;
|
|
5613
|
+
}
|
|
5614
|
+
return o;
|
|
5615
|
+
}, dt = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), Yt = (e) => {
|
|
5616
|
+
const t = dt.get(e);
|
|
5617
|
+
if (t)
|
|
5618
|
+
return t;
|
|
5619
|
+
const {
|
|
5620
|
+
component: n,
|
|
5621
|
+
...o
|
|
5622
|
+
} = e, r = Oe(o);
|
|
5623
|
+
return dt.set(e, r), r;
|
|
5624
|
+
}, Ds = (e, t) => {
|
|
5625
|
+
const n = {};
|
|
5626
|
+
for (const o of e) {
|
|
5627
|
+
let r = ut.get(o);
|
|
5628
|
+
r || (r = {
|
|
5629
|
+
component: t(o.component),
|
|
5630
|
+
...Yt(o)
|
|
5631
|
+
}, ut.set(o, r)), n[o.name] = r;
|
|
5632
|
+
}
|
|
5633
|
+
return n;
|
|
5634
|
+
}, xs = (e) => {
|
|
5635
|
+
const t = {};
|
|
5636
|
+
for (const n of e)
|
|
5637
|
+
t[n.name] = Yt(n);
|
|
5638
|
+
return t;
|
|
5639
|
+
}, Us = ({
|
|
5525
5640
|
content: e,
|
|
5526
5641
|
data: t,
|
|
5527
5642
|
locale: n
|
|
5528
5643
|
}) => {
|
|
5529
|
-
var
|
|
5530
|
-
const o = {}, r = (
|
|
5531
|
-
return (
|
|
5532
|
-
|
|
5644
|
+
var s, l, a;
|
|
5645
|
+
const o = {}, r = /* @__PURE__ */ new WeakMap(), i = me(((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {}, r);
|
|
5646
|
+
return (a = (l = e == null ? void 0 : e.data) == null ? void 0 : l.inputs) == null || a.forEach((d) => {
|
|
5647
|
+
d.name && d.defaultValue !== void 0 && (o[d.name] = me(d.defaultValue, r));
|
|
5533
5648
|
}), {
|
|
5534
5649
|
...o,
|
|
5535
|
-
...
|
|
5650
|
+
...i,
|
|
5536
5651
|
...t,
|
|
5537
5652
|
...n ? {
|
|
5538
5653
|
locale: n
|
|
5539
5654
|
} : {}
|
|
5540
5655
|
};
|
|
5541
|
-
},
|
|
5656
|
+
}, Ls = ({
|
|
5542
5657
|
content: e,
|
|
5543
5658
|
data: t
|
|
5544
5659
|
}) => e ? {
|
|
@@ -5548,14 +5663,14 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
|
|
|
5548
5663
|
...t
|
|
5549
5664
|
},
|
|
5550
5665
|
meta: e == null ? void 0 : e.meta
|
|
5551
|
-
} : void 0,
|
|
5666
|
+
} : void 0, Fs = Zt, Ms = y({
|
|
5552
5667
|
name: "content-component",
|
|
5553
5668
|
components: {
|
|
5554
|
-
EnableEditor:
|
|
5555
|
-
InlinedScript:
|
|
5556
|
-
ContentStyles:
|
|
5557
|
-
Blocks:
|
|
5558
|
-
DynamicDiv:
|
|
5669
|
+
EnableEditor: Vs,
|
|
5670
|
+
InlinedScript: Le,
|
|
5671
|
+
ContentStyles: Ws,
|
|
5672
|
+
Blocks: z,
|
|
5673
|
+
DynamicDiv: oe
|
|
5559
5674
|
},
|
|
5560
5675
|
props: [
|
|
5561
5676
|
"content",
|
|
@@ -5584,32 +5699,23 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
|
|
|
5584
5699
|
data() {
|
|
5585
5700
|
var e, t;
|
|
5586
5701
|
return {
|
|
5587
|
-
scriptStr:
|
|
5702
|
+
scriptStr: gs({
|
|
5588
5703
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5589
5704
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5590
5705
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5591
5706
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5592
5707
|
}),
|
|
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
|
-
{}
|
|
5708
|
+
registeredComponents: Ds(
|
|
5709
|
+
[...at(), ...this.customComponents || []],
|
|
5710
|
+
(n) => Fs(n)
|
|
5605
5711
|
),
|
|
5606
5712
|
builderContextSignal: {
|
|
5607
|
-
content:
|
|
5713
|
+
content: Ls({
|
|
5608
5714
|
content: this.content,
|
|
5609
5715
|
data: this.data
|
|
5610
5716
|
}),
|
|
5611
5717
|
localState: void 0,
|
|
5612
|
-
rootState:
|
|
5718
|
+
rootState: Us({
|
|
5613
5719
|
content: this.content,
|
|
5614
5720
|
data: this.data,
|
|
5615
5721
|
locale: this.locale
|
|
@@ -5619,29 +5725,23 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
|
|
|
5619
5725
|
canTrack: this.canTrack,
|
|
5620
5726
|
apiKey: this.apiKey,
|
|
5621
5727
|
apiVersion: this.apiVersion,
|
|
5622
|
-
componentInfos: [
|
|
5623
|
-
...
|
|
5728
|
+
componentInfos: xs([
|
|
5729
|
+
...at(),
|
|
5624
5730
|
...this.customComponents || []
|
|
5625
|
-
]
|
|
5626
|
-
(n, { component: o, ...r }) => ({
|
|
5627
|
-
...n,
|
|
5628
|
-
[r.name]: de(r)
|
|
5629
|
-
}),
|
|
5630
|
-
{}
|
|
5631
|
-
),
|
|
5731
|
+
]),
|
|
5632
5732
|
inheritedStyles: {},
|
|
5633
5733
|
BlocksWrapper: this.blocksWrapper || "div",
|
|
5634
5734
|
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
5635
5735
|
nonce: this.nonce || "",
|
|
5636
5736
|
model: this.model
|
|
5637
5737
|
},
|
|
5638
|
-
TARGET:
|
|
5738
|
+
TARGET: R
|
|
5639
5739
|
};
|
|
5640
5740
|
},
|
|
5641
5741
|
provide() {
|
|
5642
5742
|
const e = this;
|
|
5643
5743
|
return {
|
|
5644
|
-
[
|
|
5744
|
+
[mt.key]: {
|
|
5645
5745
|
registeredComponents: e.registeredComponents
|
|
5646
5746
|
}
|
|
5647
5747
|
};
|
|
@@ -5652,7 +5752,7 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
|
|
|
5652
5752
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
5653
5753
|
);
|
|
5654
5754
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
5655
|
-
e &&
|
|
5755
|
+
e && ne({
|
|
5656
5756
|
code: e,
|
|
5657
5757
|
context: this.context || {},
|
|
5658
5758
|
localState: void 0,
|
|
@@ -5685,9 +5785,9 @@ const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
|
|
|
5685
5785
|
}
|
|
5686
5786
|
}
|
|
5687
5787
|
});
|
|
5688
|
-
function
|
|
5689
|
-
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"),
|
|
5690
|
-
return
|
|
5788
|
+
function Hs(e, t, n, o, r, i) {
|
|
5789
|
+
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), d = k("EnableEditor");
|
|
5790
|
+
return u(), v(d, E({
|
|
5691
5791
|
apiHost: e.apiHost,
|
|
5692
5792
|
nonce: e.nonce,
|
|
5693
5793
|
content: e.content,
|
|
@@ -5709,13 +5809,13 @@ function Ss(e, t, n, o, r, i) {
|
|
|
5709
5809
|
default: D(() => {
|
|
5710
5810
|
var p, b, c, m, f, g, P;
|
|
5711
5811
|
return [
|
|
5712
|
-
e.isSsrAbTest ? (
|
|
5812
|
+
e.isSsrAbTest ? (u(), v(s, {
|
|
5713
5813
|
key: 0,
|
|
5714
5814
|
id: "builderio-variant-visibility",
|
|
5715
5815
|
scriptStr: e.scriptStr,
|
|
5716
5816
|
nonce: e.nonce || ""
|
|
5717
5817
|
}, null, 8, ["scriptStr", "nonce"])) : T("", !0),
|
|
5718
|
-
e.TARGET !== "reactNative" ? (
|
|
5818
|
+
e.TARGET !== "reactNative" ? (u(), v(l, {
|
|
5719
5819
|
key: 1,
|
|
5720
5820
|
nonce: e.nonce || "",
|
|
5721
5821
|
isNestedRender: e.isNestedRender,
|
|
@@ -5723,7 +5823,7 @@ function Ss(e, t, n, o, r, i) {
|
|
|
5723
5823
|
cssCode: (c = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : c.cssCode,
|
|
5724
5824
|
customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
|
|
5725
5825
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : T("", !0),
|
|
5726
|
-
|
|
5826
|
+
$(a, {
|
|
5727
5827
|
blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
|
|
5728
5828
|
context: e.builderContextSignal,
|
|
5729
5829
|
registeredComponents: e.registeredComponents,
|
|
@@ -5734,12 +5834,12 @@ function Ss(e, t, n, o, r, i) {
|
|
|
5734
5834
|
_: 1
|
|
5735
5835
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5736
5836
|
}
|
|
5737
|
-
const
|
|
5837
|
+
const js = /* @__PURE__ */ S(Ms, [["render", Hs]]), Ks = y({
|
|
5738
5838
|
name: "content-variants",
|
|
5739
5839
|
components: {
|
|
5740
|
-
InlinedScript:
|
|
5741
|
-
InlinedStyles:
|
|
5742
|
-
ContentComponent:
|
|
5840
|
+
InlinedScript: Le,
|
|
5841
|
+
InlinedStyles: ge,
|
|
5842
|
+
ContentComponent: js
|
|
5743
5843
|
},
|
|
5744
5844
|
props: [
|
|
5745
5845
|
"canTrack",
|
|
@@ -5765,16 +5865,16 @@ const ks = /* @__PURE__ */ v(vs, [["render", Ss]]), Cs = y({
|
|
|
5765
5865
|
],
|
|
5766
5866
|
data() {
|
|
5767
5867
|
return {
|
|
5768
|
-
shouldRenderVariants:
|
|
5769
|
-
canTrack:
|
|
5868
|
+
shouldRenderVariants: ps({
|
|
5869
|
+
canTrack: _(this.canTrack),
|
|
5770
5870
|
content: this.content
|
|
5771
5871
|
}),
|
|
5772
|
-
shouldEmitPersonalizationFns:
|
|
5773
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
5774
|
-
getInitPersonalizationVariantsFnsScriptString:
|
|
5775
|
-
TARGET:
|
|
5776
|
-
getInitVariantsFnsScriptString:
|
|
5777
|
-
getVariants:
|
|
5872
|
+
shouldEmitPersonalizationFns: $r(this.content),
|
|
5873
|
+
SDKS_SUPPORTING_PERSONALIZATION: _t,
|
|
5874
|
+
getInitPersonalizationVariantsFnsScriptString: Ar,
|
|
5875
|
+
TARGET: R,
|
|
5876
|
+
getInitVariantsFnsScriptString: fs,
|
|
5877
|
+
getVariants: de
|
|
5778
5878
|
};
|
|
5779
5879
|
},
|
|
5780
5880
|
mounted() {
|
|
@@ -5782,8 +5882,8 @@ const ks = /* @__PURE__ */ v(vs, [["render", Ss]]), Cs = y({
|
|
|
5782
5882
|
computed: {
|
|
5783
5883
|
updateCookieAndStylesScriptStr() {
|
|
5784
5884
|
var e;
|
|
5785
|
-
return
|
|
5786
|
-
|
|
5885
|
+
return bs(
|
|
5886
|
+
de(this.content).map((t) => ({
|
|
5787
5887
|
id: t.testVariationId,
|
|
5788
5888
|
testRatio: t.testRatio
|
|
5789
5889
|
})),
|
|
@@ -5791,53 +5891,53 @@ const ks = /* @__PURE__ */ v(vs, [["render", Ss]]), Cs = y({
|
|
|
5791
5891
|
);
|
|
5792
5892
|
},
|
|
5793
5893
|
hideVariantsStyleString() {
|
|
5794
|
-
return
|
|
5894
|
+
return de(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
5795
5895
|
},
|
|
5796
5896
|
defaultContent() {
|
|
5797
5897
|
var e;
|
|
5798
5898
|
return this.shouldRenderVariants ? {
|
|
5799
5899
|
...this.content,
|
|
5800
5900
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5801
|
-
} :
|
|
5901
|
+
} : lo({
|
|
5802
5902
|
item: this.content,
|
|
5803
|
-
canTrack:
|
|
5903
|
+
canTrack: _(this.canTrack)
|
|
5804
5904
|
});
|
|
5805
5905
|
}
|
|
5806
5906
|
}
|
|
5807
5907
|
});
|
|
5808
|
-
function
|
|
5908
|
+
function zs(e, t, n, o, r, i) {
|
|
5809
5909
|
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5810
|
-
return
|
|
5811
|
-
e.shouldEmitPersonalizationFns ? (
|
|
5812
|
-
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (
|
|
5910
|
+
return u(), h(I, null, [
|
|
5911
|
+
e.shouldEmitPersonalizationFns ? (u(), h(I, { key: 0 }, [
|
|
5912
|
+
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (u(), v(s, {
|
|
5813
5913
|
key: 0,
|
|
5814
5914
|
id: "builderio-init-personalization-variants-fns",
|
|
5815
5915
|
nonce: e.nonce || "",
|
|
5816
5916
|
scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
|
|
5817
5917
|
}, null, 8, ["nonce", "scriptStr"])) : T("", !0)
|
|
5818
5918
|
], 64)) : T("", !0),
|
|
5819
|
-
e.shouldRenderVariants ? (
|
|
5820
|
-
|
|
5919
|
+
e.shouldRenderVariants ? (u(), h(I, { key: 1 }, [
|
|
5920
|
+
$(s, {
|
|
5821
5921
|
id: "builderio-init-variants-fns",
|
|
5822
5922
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
5823
5923
|
nonce: e.nonce || ""
|
|
5824
5924
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5825
|
-
|
|
5925
|
+
$(l, {
|
|
5826
5926
|
id: "builderio-variants",
|
|
5827
5927
|
styles: e.hideVariantsStyleString,
|
|
5828
5928
|
nonce: e.nonce || ""
|
|
5829
5929
|
}, null, 8, ["styles", "nonce"]),
|
|
5830
|
-
|
|
5930
|
+
$(s, {
|
|
5831
5931
|
id: "builderio-variants-visibility",
|
|
5832
5932
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
5833
5933
|
nonce: e.nonce || ""
|
|
5834
5934
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5835
|
-
(
|
|
5836
|
-
key:
|
|
5935
|
+
(u(!0), h(I, null, L(e.getVariants(e.content), (d, p) => (u(), v(a, E({
|
|
5936
|
+
key: d.testVariationId,
|
|
5837
5937
|
apiHost: e.apiHost,
|
|
5838
5938
|
isNestedRender: e.isNestedRender,
|
|
5839
5939
|
nonce: e.nonce,
|
|
5840
|
-
content:
|
|
5940
|
+
content: d,
|
|
5841
5941
|
showContent: !1,
|
|
5842
5942
|
model: e.model,
|
|
5843
5943
|
data: e.data,
|
|
@@ -5858,7 +5958,7 @@ function Ts(e, t, n, o, r, i) {
|
|
|
5858
5958
|
trustedHosts: e.trustedHosts
|
|
5859
5959
|
}, {}), 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
5960
|
], 64)) : T("", !0),
|
|
5861
|
-
|
|
5961
|
+
$(a, E({
|
|
5862
5962
|
apiHost: e.apiHost,
|
|
5863
5963
|
nonce: e.nonce,
|
|
5864
5964
|
isNestedRender: e.isNestedRender,
|
|
@@ -5886,13 +5986,13 @@ function Ts(e, t, n, o, r, i) {
|
|
|
5886
5986
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5887
5987
|
], 64);
|
|
5888
5988
|
}
|
|
5889
|
-
const
|
|
5989
|
+
const qs = /* @__PURE__ */ S(Ks, [["render", zs]]), Gs = async ({
|
|
5890
5990
|
builderContextValue: e,
|
|
5891
5991
|
symbol: t
|
|
5892
5992
|
}) => {
|
|
5893
5993
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5894
5994
|
(e != null && e.apiKey))
|
|
5895
|
-
return
|
|
5995
|
+
return De({
|
|
5896
5996
|
model: t.model,
|
|
5897
5997
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
5898
5998
|
apiVersion: e.apiVersion,
|
|
@@ -5904,9 +6004,9 @@ const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
|
|
|
5904
6004
|
}).catch((n) => {
|
|
5905
6005
|
B.error("Could not fetch symbol content: ", n);
|
|
5906
6006
|
});
|
|
5907
|
-
},
|
|
6007
|
+
}, _s = y({
|
|
5908
6008
|
name: "builder-symbol",
|
|
5909
|
-
components: { ContentVariants:
|
|
6009
|
+
components: { ContentVariants: qs, DynamicDiv: oe },
|
|
5910
6010
|
props: [
|
|
5911
6011
|
"symbol",
|
|
5912
6012
|
"builderComponents",
|
|
@@ -5921,7 +6021,7 @@ const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
|
|
|
5921
6021
|
return {
|
|
5922
6022
|
contentToUse: (e = this.symbol) == null ? void 0 : e.content,
|
|
5923
6023
|
symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
|
|
5924
|
-
filterAttrs:
|
|
6024
|
+
filterAttrs: N
|
|
5925
6025
|
};
|
|
5926
6026
|
},
|
|
5927
6027
|
mounted() {
|
|
@@ -5963,7 +6063,7 @@ const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
|
|
|
5963
6063
|
methods: {
|
|
5964
6064
|
setContent() {
|
|
5965
6065
|
var e;
|
|
5966
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
6066
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || Gs({
|
|
5967
6067
|
symbol: this.symbol,
|
|
5968
6068
|
builderContextValue: this.builderContext
|
|
5969
6069
|
}).then((t) => {
|
|
@@ -5973,18 +6073,18 @@ const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
|
|
|
5973
6073
|
}
|
|
5974
6074
|
}
|
|
5975
6075
|
});
|
|
5976
|
-
function
|
|
5977
|
-
var l, a,
|
|
6076
|
+
function Js(e, t, n, o, r, i) {
|
|
6077
|
+
var l, a, d, p, b, c, m;
|
|
5978
6078
|
const s = k("ContentVariants");
|
|
5979
|
-
return
|
|
5980
|
-
|
|
6079
|
+
return u(), h("div", E({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
6080
|
+
$(s, {
|
|
5981
6081
|
nonce: e.builderContext.nonce,
|
|
5982
6082
|
isNestedRender: !0,
|
|
5983
6083
|
apiVersion: e.builderContext.apiVersion,
|
|
5984
6084
|
apiKey: (l = e.symbol) != null && l.global && ((a = e.symbol) != null && a.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
|
|
5985
6085
|
context: {
|
|
5986
6086
|
...e.builderContext.context,
|
|
5987
|
-
symbolId: (
|
|
6087
|
+
symbolId: (d = e.builderBlock) == null ? void 0 : d.id
|
|
5988
6088
|
},
|
|
5989
6089
|
customComponents: e.customComponents,
|
|
5990
6090
|
data: {
|
|
@@ -6001,48 +6101,48 @@ function Es(e, t, n, o, r, i) {
|
|
|
6001
6101
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
6002
6102
|
], 16);
|
|
6003
6103
|
}
|
|
6004
|
-
const
|
|
6104
|
+
const Qs = /* @__PURE__ */ S(_s, [["render", Js]]);
|
|
6005
6105
|
export {
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6106
|
+
ea as A,
|
|
6107
|
+
Gt as B,
|
|
6108
|
+
ir as C,
|
|
6109
|
+
ra as D,
|
|
6110
|
+
sa as E,
|
|
6111
|
+
lr as F,
|
|
6112
|
+
wo as G,
|
|
6113
|
+
Io as H,
|
|
6114
|
+
br as I,
|
|
6115
|
+
De as J,
|
|
6116
|
+
Zs as K,
|
|
6117
|
+
da as L,
|
|
6118
|
+
Sr as S,
|
|
6119
|
+
R as T,
|
|
6120
|
+
ls as V,
|
|
6121
|
+
S as _,
|
|
6022
6122
|
H as a,
|
|
6023
|
-
|
|
6024
|
-
|
|
6123
|
+
Ce as b,
|
|
6124
|
+
ge as c,
|
|
6025
6125
|
j as d,
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6126
|
+
ne as e,
|
|
6127
|
+
aa as f,
|
|
6128
|
+
ca as g,
|
|
6129
|
+
tr as h,
|
|
6030
6130
|
A as i,
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6131
|
+
la as j,
|
|
6132
|
+
ua as k,
|
|
6133
|
+
xe as l,
|
|
6134
|
+
Yn as m,
|
|
6135
|
+
an as n,
|
|
6136
|
+
Qs as o,
|
|
6137
|
+
ci as p,
|
|
6138
|
+
z as q,
|
|
6139
|
+
qs as r,
|
|
6140
|
+
ia as s,
|
|
6141
|
+
be as t,
|
|
6142
|
+
Xn as u,
|
|
6143
|
+
ta as v,
|
|
6144
|
+
Fs as w,
|
|
6145
|
+
na as x,
|
|
6146
|
+
oa as y,
|
|
6147
|
+
Ot as z
|
|
6048
6148
|
};
|