@builder.io/sdk-vue 2.0.17 → 2.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/awaiter-63wFxDc-.cjs +1 -0
- package/lib/browser/awaiter-wFAQUD8u.js +16 -0
- package/lib/browser/{block-styles-XATffH3k.js → block-styles-e9UJWxRw.js} +1 -1
- package/lib/browser/{block-styles-Zh_uY_9J.cjs → block-styles-w3CYR9qS.cjs} +1 -1
- package/lib/browser/{block-wrapper-3zieXizb.js → block-wrapper-BBK1LMQ8.js} +3 -3
- package/lib/browser/{block-wrapper-qyvezpeU.cjs → block-wrapper-KE-bUIi7.cjs} +1 -1
- package/lib/browser/component-ref-cecMbUuX.js +135 -0
- package/lib/browser/component-ref-e6CG1TqL.cjs +1 -0
- package/lib/browser/components/awaiter.vue.d.ts +2 -0
- package/lib/browser/components/block/components/interactive-element.vue.d.ts +3 -3
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +0 -7
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/context/component-reference-types.d.ts +4 -0
- package/lib/browser/context/types.d.ts +2 -1
- package/lib/browser/functions/evaluate/browser-runtime/browser.d.ts +0 -6
- package/lib/browser/functions/evaluate/helpers.d.ts +5 -0
- package/lib/browser/{get-block-properties-fBYHk4bI.cjs → get-block-properties-8qBDZMKr.cjs} +1 -1
- package/lib/browser/{get-block-properties-pPWign8y.js → get-block-properties-JZrAY1r_.js} +1 -1
- package/lib/browser/{index-BOG8Hl1M.js → index-ei0E4zOL.js} +259 -280
- package/lib/browser/{index-1YjkT_sc.cjs → index-uR3yr3o2.cjs} +15 -15
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-zS917EGl.js → repeated-block-4KouNbyE.js} +2 -2
- package/lib/browser/{repeated-block-0DDJP8Gf.cjs → repeated-block-5kGcO6DI.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/awaiter-aq8paHrs.cjs +1 -0
- package/lib/edge/awaiter-byTF6qeD.js +15 -0
- package/lib/edge/{block-styles-42NfQ-QZ.js → block-styles-8MRmenjP.js} +1 -1
- package/lib/edge/{block-styles-XqNJ134U.cjs → block-styles-sHjSbOMY.cjs} +1 -1
- package/lib/edge/{block-wrapper-rnfy_SCM.cjs → block-wrapper-ilLh_PHh.cjs} +1 -1
- package/lib/edge/{block-wrapper-ir-wF7K0.js → block-wrapper-rzB4thH4.js} +3 -3
- package/lib/edge/component-ref-FJL2g6D2.cjs +1 -0
- package/lib/edge/component-ref-hkYDlUjG.js +134 -0
- package/lib/edge/components/awaiter.vue.d.ts +2 -0
- package/lib/edge/components/block/components/interactive-element.vue.d.ts +3 -3
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +0 -7
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/context/component-reference-types.d.ts +4 -0
- package/lib/edge/context/types.d.ts +2 -1
- package/lib/edge/functions/evaluate/browser-runtime/browser.d.ts +0 -6
- package/lib/edge/functions/evaluate/helpers.d.ts +5 -0
- package/lib/edge/{get-block-properties-eb2d5_4Q.cjs → get-block-properties-aM96dauJ.cjs} +1 -1
- package/lib/edge/{get-block-properties-ALNjeTqz.js → get-block-properties-cbYhtG2B.js} +1 -1
- package/lib/edge/index-Nw62yGCU.cjs +184 -0
- package/lib/edge/{index-v3LhePEX.js → index-s36DlX8g.js} +1382 -1385
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/repeated-block-npWRvHlT.cjs → edge/repeated-block-wdJ005G3.cjs} +1 -1
- package/lib/edge/{repeated-block-Uq0TRwkZ.js → repeated-block-zOlg6ACd.js} +2 -2
- package/lib/edge/style.css +1 -1
- package/lib/node/awaiter-Fsn-BZdK.cjs +1 -0
- package/lib/node/awaiter-c00-BKl8.js +15 -0
- package/lib/node/{block-styles-Su4n0sEi.cjs → block-styles-dNkK6XUk.cjs} +1 -1
- package/lib/node/{block-styles-vHF5sPG1.js → block-styles-y32fRgui.js} +2 -2
- package/lib/node/{block-wrapper-Txf-PVII.cjs → block-wrapper-9SHqyGhh.cjs} +1 -1
- package/lib/node/{block-wrapper-IDLu_rNS.js → block-wrapper-Gb1-_hO0.js} +3 -3
- package/lib/node/component-ref-9ri0cWhO.js +134 -0
- package/lib/node/component-ref-LAJelZZi.cjs +1 -0
- package/lib/node/components/awaiter.vue.d.ts +2 -0
- package/lib/node/components/block/components/interactive-element.vue.d.ts +3 -3
- package/lib/node/components/content/components/enable-editor.vue.d.ts +0 -7
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/context/component-reference-types.d.ts +4 -0
- package/lib/node/context/types.d.ts +2 -1
- package/lib/node/functions/evaluate/browser-runtime/browser.d.ts +0 -6
- package/lib/node/functions/evaluate/helpers.d.ts +5 -0
- package/lib/node/{get-block-properties-ddqamR0O.cjs → get-block-properties-XKVJQeGu.cjs} +1 -1
- package/lib/node/{get-block-properties-Ofwbz2xI.js → get-block-properties-hbwsLjcS.js} +2 -2
- package/lib/node/{index-DIvgU3ms.cjs → index-eLulgxIT.cjs} +25 -25
- package/lib/node/{index-3yXRUxo9.js → index-owOkjqS8.js} +499 -546
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +7 -7
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/repeated-block-n_hytrP5.cjs → node/repeated-block-keRWtfEG.cjs} +1 -1
- package/lib/node/{repeated-block-e-lz3FXu.js → repeated-block-xs28_Dw4.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-cm1lg4FM.cjs → should-force-browser-runtime-in-node-k58tZzl7.cjs} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-Hy3G5eB4.js → should-force-browser-runtime-in-node-o45oecPI.js} +61 -34
- package/lib/node/style.css +1 -1
- package/nuxt.js +1 -1
- package/package.json +1 -2
- package/lib/browser/component-ref-7Yms_kIr.cjs +0 -1
- package/lib/browser/component-ref-Y4ahpku0.js +0 -114
- package/lib/edge/component-ref-BZN6oNTF.cjs +0 -1
- package/lib/edge/component-ref-RIUPYjj6.js +0 -113
- package/lib/edge/index-0XQ5XNP7.cjs +0 -186
- package/lib/node/component-ref-UXGJDqnl.js +0 -113
- package/lib/node/component-ref-Wtcz1Bo2.cjs +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ne = (e, t, n) => (
|
|
4
|
-
import { defineComponent as f, openBlock as c, createElementBlock as m, Fragment as T, createBlock as g, resolveDynamicComponent as K, mergeProps as
|
|
5
|
-
import { T as x, g as
|
|
6
|
-
const
|
|
1
|
+
var st = Object.defineProperty;
|
|
2
|
+
var at = (e, t, n) => t in e ? st(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var ne = (e, t, n) => (at(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
import { defineComponent as f, openBlock as c, createElementBlock as m, Fragment as T, createBlock as g, resolveDynamicComponent as K, mergeProps as C, toHandlers as B, withCtx as N, renderSlot as E, resolveComponent as y, createTextVNode as lt, toDisplayString as te, defineAsyncComponent as H, createVNode as I, renderList as V, createCommentVNode as S, h as Pe, createElementVNode as z, normalizeStyle as D, normalizeClass as J, markRaw as ct } from "vue";
|
|
5
|
+
import { T as x, g as dt, f as ut, i as $, s as pt, r as mt, p as ht, a as ft, l as P, b as xe, c as pe, d as bt, n as Ve, e as L, h as R, j as gt } from "./should-force-browser-runtime-in-node-o45oecPI.js";
|
|
6
|
+
const yt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), kt = (e) => typeof e == "string" && yt.has(e.toLowerCase());
|
|
7
7
|
function A(e = {}, t, n) {
|
|
8
8
|
const o = {};
|
|
9
9
|
for (const r in e) {
|
|
10
10
|
if (!e[r] || n && !r.startsWith(t))
|
|
11
11
|
continue;
|
|
12
|
-
const
|
|
13
|
-
o[
|
|
12
|
+
const s = n ? r.replace(t, "") : r;
|
|
13
|
+
o[s] = e[r];
|
|
14
14
|
}
|
|
15
15
|
return o;
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const vt = f({
|
|
18
18
|
name: "dynamic-renderer",
|
|
19
19
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
20
20
|
data() {
|
|
21
|
-
return { isEmptyElement:
|
|
21
|
+
return { isEmptyElement: kt };
|
|
22
22
|
}
|
|
23
23
|
}), b = (e, t) => {
|
|
24
24
|
const n = e.__vccOpts || e;
|
|
@@ -26,14 +26,14 @@ const Ct = f({
|
|
|
26
26
|
n[o] = r;
|
|
27
27
|
return n;
|
|
28
28
|
};
|
|
29
|
-
function St(e, t, n, o, r,
|
|
30
|
-
return e.isEmptyElement(e.TagName) ? (c(), g(K(e.TagName),
|
|
31
|
-
typeof e.TagName == "string" ? (c(), g(K(e.TagName),
|
|
29
|
+
function St(e, t, n, o, r, s) {
|
|
30
|
+
return e.isEmptyElement(e.TagName) ? (c(), g(K(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), null, 16)) : (c(), m(T, { key: 0 }, [
|
|
31
|
+
typeof e.TagName == "string" ? (c(), g(K(e.TagName), C({ key: 0 }, e.attributes, B(e.actionAttributes)), {
|
|
32
32
|
default: N(() => [
|
|
33
33
|
E(e.$slots, "default")
|
|
34
34
|
]),
|
|
35
35
|
_: 3
|
|
36
|
-
}, 16)) : (c(), g(K(e.TagName),
|
|
36
|
+
}, 16)) : (c(), g(K(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), {
|
|
37
37
|
default: N(() => [
|
|
38
38
|
E(e.$slots, "default")
|
|
39
39
|
]),
|
|
@@ -41,7 +41,7 @@ function St(e, t, n, o, r, i) {
|
|
|
41
41
|
}, 16))
|
|
42
42
|
], 64));
|
|
43
43
|
}
|
|
44
|
-
const me = /* @__PURE__ */ b(
|
|
44
|
+
const me = /* @__PURE__ */ b(vt, [["render", St]]), Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
45
45
|
__proto__: null,
|
|
46
46
|
default: me
|
|
47
47
|
}, Symbol.toStringTag, { value: "Module" })), _ = () => {
|
|
@@ -57,7 +57,7 @@ const me = /* @__PURE__ */ b(Ct, [["render", St]]), Bi = /* @__PURE__ */ Object.
|
|
|
57
57
|
case "angular":
|
|
58
58
|
return "class";
|
|
59
59
|
}
|
|
60
|
-
},
|
|
60
|
+
}, Ct = f({
|
|
61
61
|
name: "builder-button",
|
|
62
62
|
components: { DynamicRenderer: me },
|
|
63
63
|
props: [
|
|
@@ -86,20 +86,20 @@ const me = /* @__PURE__ */ b(Ct, [["render", St]]), Bi = /* @__PURE__ */ Object.
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
|
-
function
|
|
90
|
-
const
|
|
91
|
-
return c(), g(
|
|
89
|
+
function Tt(e, t, n, o, r, s) {
|
|
90
|
+
const i = y("DynamicRenderer");
|
|
91
|
+
return c(), g(i, {
|
|
92
92
|
attributes: e.attrs(),
|
|
93
93
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
94
94
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
95
95
|
}, {
|
|
96
96
|
default: N(() => [
|
|
97
|
-
|
|
97
|
+
lt(te(e.text), 1)
|
|
98
98
|
]),
|
|
99
99
|
_: 1
|
|
100
100
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
101
101
|
}
|
|
102
|
-
const
|
|
102
|
+
const wt = /* @__PURE__ */ b(Ct, [["render", Tt]]), It = Symbol(), le = {
|
|
103
103
|
Builder: {
|
|
104
104
|
content: null,
|
|
105
105
|
context: {},
|
|
@@ -115,73 +115,47 @@ const It = /* @__PURE__ */ b(Tt, [["render", wt]]), $t = Symbol(), le = {
|
|
|
115
115
|
BlocksWrapperProps: {},
|
|
116
116
|
nonce: ""
|
|
117
117
|
},
|
|
118
|
-
key:
|
|
119
|
-
},
|
|
118
|
+
key: It
|
|
119
|
+
}, $t = Symbol(), Ae = {
|
|
120
120
|
Components: { registeredComponents: {} },
|
|
121
|
-
key:
|
|
121
|
+
key: $t
|
|
122
122
|
};
|
|
123
|
-
function
|
|
123
|
+
function Rt(e) {
|
|
124
124
|
var t;
|
|
125
125
|
return {
|
|
126
126
|
...(t = e.component) == null ? void 0 : t.options,
|
|
127
127
|
...e.options
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function Bt(e, ...t) {
|
|
131
131
|
const n = Object.assign({}, e);
|
|
132
132
|
for (const o of t)
|
|
133
133
|
delete n[o];
|
|
134
134
|
return n;
|
|
135
135
|
}
|
|
136
|
-
const
|
|
136
|
+
const Et = ({
|
|
137
137
|
code: e,
|
|
138
138
|
builder: t,
|
|
139
139
|
context: n,
|
|
140
140
|
event: o,
|
|
141
141
|
localState: r,
|
|
142
|
-
rootSetState:
|
|
143
|
-
rootState:
|
|
142
|
+
rootSetState: s,
|
|
143
|
+
rootState: i
|
|
144
144
|
}) => {
|
|
145
|
-
const l =
|
|
145
|
+
const l = dt({
|
|
146
146
|
builder: t,
|
|
147
147
|
context: n,
|
|
148
148
|
event: o,
|
|
149
|
-
state:
|
|
150
|
-
rootState:
|
|
149
|
+
state: ut({
|
|
150
|
+
rootState: i,
|
|
151
151
|
localState: r,
|
|
152
|
-
rootSetState:
|
|
152
|
+
rootSetState: s
|
|
153
153
|
})
|
|
154
154
|
});
|
|
155
155
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
156
|
-
}
|
|
157
|
-
function We({
|
|
158
|
-
rootState: e,
|
|
159
|
-
localState: t,
|
|
160
|
-
rootSetState: n
|
|
161
|
-
}) {
|
|
162
|
-
return new Proxy(e, {
|
|
163
|
-
get: (o, r) => {
|
|
164
|
-
if (t && r in t)
|
|
165
|
-
return t[r];
|
|
166
|
-
const i = o[r];
|
|
167
|
-
return typeof i == "object" && i !== null ? We({
|
|
168
|
-
rootState: i,
|
|
169
|
-
localState: void 0,
|
|
170
|
-
rootSetState: n ? (s) => {
|
|
171
|
-
o[r] = s, n(o);
|
|
172
|
-
} : void 0
|
|
173
|
-
}) : i;
|
|
174
|
-
},
|
|
175
|
-
set: (o, r, i) => {
|
|
176
|
-
if (t && r in t)
|
|
177
|
-
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
178
|
-
return o[r] = i, n == null || n(o), !0;
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
const xt = (e) => $() || mt({
|
|
156
|
+
}, Pt = (e) => $() || pt({
|
|
183
157
|
shouldLogWarning: !0
|
|
184
|
-
}) ?
|
|
158
|
+
}) ? Et(e) : mt(e), xt = !0, W = class W {
|
|
185
159
|
static getCacheKey(t) {
|
|
186
160
|
return JSON.stringify({
|
|
187
161
|
...t,
|
|
@@ -201,36 +175,36 @@ const xt = (e) => $() || mt({
|
|
|
201
175
|
};
|
|
202
176
|
ne(W, "cacheLimit", 20), ne(W, "cache", /* @__PURE__ */ new Map());
|
|
203
177
|
let U = W;
|
|
204
|
-
function
|
|
178
|
+
function Y({
|
|
205
179
|
code: e,
|
|
206
180
|
context: t,
|
|
207
181
|
localState: n,
|
|
208
182
|
rootState: o,
|
|
209
183
|
rootSetState: r,
|
|
210
|
-
event:
|
|
211
|
-
isExpression:
|
|
184
|
+
event: s,
|
|
185
|
+
isExpression: i = !0,
|
|
212
186
|
enableCache: l
|
|
213
187
|
}) {
|
|
214
188
|
if (e === "")
|
|
215
189
|
return;
|
|
216
190
|
const a = {
|
|
217
|
-
code:
|
|
218
|
-
isExpression:
|
|
191
|
+
code: ht(e, {
|
|
192
|
+
isExpression: i
|
|
219
193
|
}),
|
|
220
|
-
builder:
|
|
194
|
+
builder: ft(),
|
|
221
195
|
context: t,
|
|
222
|
-
event:
|
|
196
|
+
event: s,
|
|
223
197
|
rootSetState: r,
|
|
224
198
|
rootState: o,
|
|
225
199
|
localState: n
|
|
226
200
|
};
|
|
227
|
-
if (l && !
|
|
201
|
+
if (l && !xt) {
|
|
228
202
|
const u = U.getCacheKey(a), h = U.getCachedValue(u);
|
|
229
203
|
if (h)
|
|
230
204
|
return h.value;
|
|
231
205
|
}
|
|
232
206
|
try {
|
|
233
|
-
const u =
|
|
207
|
+
const u = Pt(a);
|
|
234
208
|
if (l) {
|
|
235
209
|
const h = U.getCacheKey(a);
|
|
236
210
|
U.setCachedValue(h, u);
|
|
@@ -255,8 +229,8 @@ function ce(e) {
|
|
|
255
229
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
|
|
256
230
|
return t;
|
|
257
231
|
}
|
|
258
|
-
const
|
|
259
|
-
if (
|
|
232
|
+
const Vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(x), At = (e) => {
|
|
233
|
+
if (Vt) {
|
|
260
234
|
const t = pe(e);
|
|
261
235
|
return {
|
|
262
236
|
...t,
|
|
@@ -268,7 +242,7 @@ const At = ["svelte", "vue", "angular", "qwik", "solid"].includes(x), Wt = (e) =
|
|
|
268
242
|
}
|
|
269
243
|
};
|
|
270
244
|
} else {
|
|
271
|
-
const t = ce(
|
|
245
|
+
const t = ce(Bt(e, "children", "meta"));
|
|
272
246
|
return {
|
|
273
247
|
...t,
|
|
274
248
|
properties: {
|
|
@@ -281,7 +255,7 @@ const At = ["svelte", "vue", "angular", "qwik", "solid"].includes(x), Wt = (e) =
|
|
|
281
255
|
meta: e.meta
|
|
282
256
|
};
|
|
283
257
|
}
|
|
284
|
-
},
|
|
258
|
+
}, Wt = ({
|
|
285
259
|
block: e,
|
|
286
260
|
context: t,
|
|
287
261
|
localState: n,
|
|
@@ -290,9 +264,9 @@ const At = ["svelte", "vue", "angular", "qwik", "solid"].includes(x), Wt = (e) =
|
|
|
290
264
|
}) => {
|
|
291
265
|
if (!e.bindings)
|
|
292
266
|
return e;
|
|
293
|
-
const
|
|
294
|
-
for (const
|
|
295
|
-
const l = e.bindings[
|
|
267
|
+
const s = At(e);
|
|
268
|
+
for (const i in e.bindings) {
|
|
269
|
+
const l = e.bindings[i], a = Y({
|
|
296
270
|
code: l,
|
|
297
271
|
localState: n,
|
|
298
272
|
rootState: o,
|
|
@@ -300,46 +274,46 @@ const At = ["svelte", "vue", "angular", "qwik", "solid"].includes(x), Wt = (e) =
|
|
|
300
274
|
context: t,
|
|
301
275
|
enableCache: !0
|
|
302
276
|
});
|
|
303
|
-
xe(
|
|
277
|
+
xe(s, i, a);
|
|
304
278
|
}
|
|
305
|
-
return
|
|
279
|
+
return s;
|
|
306
280
|
};
|
|
307
|
-
function
|
|
281
|
+
function Nt({
|
|
308
282
|
block: e,
|
|
309
283
|
context: t,
|
|
310
284
|
shouldEvaluateBindings: n,
|
|
311
285
|
localState: o,
|
|
312
286
|
rootState: r,
|
|
313
|
-
rootSetState:
|
|
287
|
+
rootSetState: s
|
|
314
288
|
}) {
|
|
315
|
-
const
|
|
316
|
-
return n ?
|
|
317
|
-
block:
|
|
289
|
+
const i = e;
|
|
290
|
+
return n ? Wt({
|
|
291
|
+
block: i,
|
|
318
292
|
localState: o,
|
|
319
293
|
rootState: r,
|
|
320
|
-
rootSetState:
|
|
294
|
+
rootSetState: s,
|
|
321
295
|
context: t
|
|
322
|
-
}) :
|
|
296
|
+
}) : i;
|
|
323
297
|
}
|
|
324
|
-
function
|
|
298
|
+
function Ft(e) {
|
|
325
299
|
const t = e || ($() ? window.location.search : void 0);
|
|
326
|
-
return t ?
|
|
300
|
+
return t ? bt(t).indexOf("builder.preview=") !== -1 : !1;
|
|
327
301
|
}
|
|
328
|
-
const
|
|
302
|
+
const Ot = (e) => ({
|
|
329
303
|
type: "builder.registerComponent",
|
|
330
304
|
data: ee(e)
|
|
331
|
-
}),
|
|
305
|
+
}), Dt = (e) => {
|
|
332
306
|
const t = e.toString().trim();
|
|
333
307
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
334
308
|
};
|
|
335
309
|
function ee(e) {
|
|
336
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
310
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Dt(n) : n));
|
|
337
311
|
}
|
|
338
|
-
const
|
|
339
|
-
function
|
|
312
|
+
const Se = {};
|
|
313
|
+
function Lt(e, t) {
|
|
340
314
|
e === "plugin" && (t = ee(t));
|
|
341
|
-
let n =
|
|
342
|
-
if (n || (n =
|
|
315
|
+
let n = Se[e];
|
|
316
|
+
if (n || (n = Se[e] = []), n.push(t), $()) {
|
|
343
317
|
const o = {
|
|
344
318
|
type: "builder.register",
|
|
345
319
|
data: {
|
|
@@ -354,38 +328,38 @@ function Ut(e, t) {
|
|
|
354
328
|
}
|
|
355
329
|
}
|
|
356
330
|
}
|
|
357
|
-
const
|
|
331
|
+
const Ce = {};
|
|
358
332
|
function Ei(e) {
|
|
359
333
|
if ($()) {
|
|
360
|
-
Object.assign(
|
|
334
|
+
Object.assign(Ce, e);
|
|
361
335
|
const t = {
|
|
362
336
|
type: "builder.settingsChange",
|
|
363
|
-
data:
|
|
337
|
+
data: Ce
|
|
364
338
|
};
|
|
365
339
|
parent.postMessage(t, "*");
|
|
366
340
|
}
|
|
367
341
|
}
|
|
368
|
-
const Te = "builder.",
|
|
342
|
+
const Te = "builder.", Ut = "options.", We = (e) => {
|
|
369
343
|
if (!e)
|
|
370
344
|
return {};
|
|
371
345
|
const t = Ve(e), n = {};
|
|
372
346
|
return Object.keys(t).forEach((o) => {
|
|
373
347
|
if (o.startsWith(Te)) {
|
|
374
|
-
const r = o.replace(Te, "").replace(
|
|
348
|
+
const r = o.replace(Te, "").replace(Ut, "");
|
|
375
349
|
n[r] = t[o];
|
|
376
350
|
}
|
|
377
351
|
}), n;
|
|
378
|
-
},
|
|
352
|
+
}, Mt = () => {
|
|
379
353
|
if (!$())
|
|
380
354
|
return {};
|
|
381
355
|
const e = new URLSearchParams(window.location.search);
|
|
382
|
-
return
|
|
356
|
+
return We(e);
|
|
383
357
|
}, jt = (e) => {
|
|
384
358
|
if (e === "localhost" || e === "127.0.0.1")
|
|
385
359
|
return e;
|
|
386
360
|
const t = e.split(".");
|
|
387
361
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
388
|
-
},
|
|
362
|
+
}, Ne = ({
|
|
389
363
|
name: e,
|
|
390
364
|
canTrack: t
|
|
391
365
|
}) => {
|
|
@@ -396,14 +370,14 @@ const Te = "builder.", Mt = "options.", Ne = (e) => {
|
|
|
396
370
|
P.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
397
371
|
return;
|
|
398
372
|
}
|
|
399
|
-
},
|
|
373
|
+
}, Fe = async (e) => Ne(e), Ht = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(L).join("; "), Kt = [["secure", ""], ["SameSite", "None"]], qt = ({
|
|
400
374
|
name: e,
|
|
401
375
|
value: t,
|
|
402
376
|
expires: n
|
|
403
377
|
}) => {
|
|
404
|
-
const r = ($() ? location.protocol === "https:" : !0) ?
|
|
405
|
-
return
|
|
406
|
-
},
|
|
378
|
+
const r = ($() ? location.protocol === "https:" : !0) ? Kt : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", jt(window.location.hostname)], ...r];
|
|
379
|
+
return Ht(i);
|
|
380
|
+
}, Oe = async ({
|
|
407
381
|
name: e,
|
|
408
382
|
value: t,
|
|
409
383
|
expires: n,
|
|
@@ -412,7 +386,7 @@ const Te = "builder.", Mt = "options.", Ne = (e) => {
|
|
|
412
386
|
try {
|
|
413
387
|
if (!o)
|
|
414
388
|
return;
|
|
415
|
-
const r =
|
|
389
|
+
const r = qt({
|
|
416
390
|
name: e,
|
|
417
391
|
value: t,
|
|
418
392
|
expires: n
|
|
@@ -422,88 +396,88 @@ const Te = "builder.", Mt = "options.", Ne = (e) => {
|
|
|
422
396
|
P.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
423
397
|
}
|
|
424
398
|
};
|
|
425
|
-
function
|
|
399
|
+
function zt() {
|
|
426
400
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
427
401
|
const t = Math.random() * 16 | 0;
|
|
428
402
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
429
403
|
});
|
|
430
404
|
}
|
|
431
|
-
function
|
|
432
|
-
return
|
|
405
|
+
function De() {
|
|
406
|
+
return zt().replace(/-/g, "");
|
|
433
407
|
}
|
|
434
|
-
const
|
|
408
|
+
const Le = "builderSessionId", Jt = async ({
|
|
435
409
|
canTrack: e
|
|
436
410
|
}) => {
|
|
437
411
|
if (!e)
|
|
438
412
|
return;
|
|
439
|
-
const t = await
|
|
440
|
-
name:
|
|
413
|
+
const t = await Fe({
|
|
414
|
+
name: Le,
|
|
441
415
|
canTrack: e
|
|
442
416
|
});
|
|
443
417
|
if (L(t))
|
|
444
418
|
return t;
|
|
445
419
|
{
|
|
446
|
-
const n =
|
|
447
|
-
return
|
|
420
|
+
const n = Gt();
|
|
421
|
+
return Yt({
|
|
448
422
|
id: n,
|
|
449
423
|
canTrack: e
|
|
450
424
|
}), n;
|
|
451
425
|
}
|
|
452
|
-
},
|
|
426
|
+
}, Gt = () => De(), Yt = ({
|
|
453
427
|
id: e,
|
|
454
428
|
canTrack: t
|
|
455
|
-
}) =>
|
|
456
|
-
name:
|
|
429
|
+
}) => Oe({
|
|
430
|
+
name: Le,
|
|
457
431
|
value: e,
|
|
458
432
|
canTrack: t
|
|
459
|
-
}),
|
|
433
|
+
}), Ue = () => $() && typeof localStorage < "u" ? localStorage : void 0, Qt = ({
|
|
460
434
|
key: e,
|
|
461
435
|
canTrack: t
|
|
462
436
|
}) => {
|
|
463
437
|
var n;
|
|
464
438
|
try {
|
|
465
|
-
return t ? (n =
|
|
439
|
+
return t ? (n = Ue()) == null ? void 0 : n.getItem(e) : void 0;
|
|
466
440
|
} catch (o) {
|
|
467
441
|
console.debug("[LocalStorage] GET error: ", o);
|
|
468
442
|
return;
|
|
469
443
|
}
|
|
470
|
-
},
|
|
444
|
+
}, Xt = ({
|
|
471
445
|
key: e,
|
|
472
446
|
canTrack: t,
|
|
473
447
|
value: n
|
|
474
448
|
}) => {
|
|
475
449
|
var o;
|
|
476
450
|
try {
|
|
477
|
-
t && ((o =
|
|
451
|
+
t && ((o = Ue()) == null || o.setItem(e, n));
|
|
478
452
|
} catch (r) {
|
|
479
453
|
console.debug("[LocalStorage] SET error: ", r);
|
|
480
454
|
}
|
|
481
|
-
},
|
|
455
|
+
}, Me = "builderVisitorId", Zt = ({
|
|
482
456
|
canTrack: e
|
|
483
457
|
}) => {
|
|
484
458
|
if (!e)
|
|
485
459
|
return;
|
|
486
|
-
const t =
|
|
487
|
-
key:
|
|
460
|
+
const t = Qt({
|
|
461
|
+
key: Me,
|
|
488
462
|
canTrack: e
|
|
489
463
|
});
|
|
490
464
|
if (L(t))
|
|
491
465
|
return t;
|
|
492
466
|
{
|
|
493
|
-
const n =
|
|
494
|
-
return
|
|
467
|
+
const n = _t();
|
|
468
|
+
return en({
|
|
495
469
|
id: n,
|
|
496
470
|
canTrack: e
|
|
497
471
|
}), n;
|
|
498
472
|
}
|
|
499
|
-
},
|
|
473
|
+
}, _t = () => De(), en = ({
|
|
500
474
|
id: e,
|
|
501
475
|
canTrack: t
|
|
502
|
-
}) =>
|
|
503
|
-
key:
|
|
476
|
+
}) => Xt({
|
|
477
|
+
key: Me,
|
|
504
478
|
value: e,
|
|
505
479
|
canTrack: t
|
|
506
|
-
}),
|
|
480
|
+
}), tn = async ({
|
|
507
481
|
canTrack: e
|
|
508
482
|
}) => {
|
|
509
483
|
if (!e)
|
|
@@ -511,16 +485,16 @@ const Ue = "builderSessionId", Gt = async ({
|
|
|
511
485
|
visitorId: void 0,
|
|
512
486
|
sessionId: void 0
|
|
513
487
|
};
|
|
514
|
-
const t = await
|
|
488
|
+
const t = await Jt({
|
|
515
489
|
canTrack: e
|
|
516
|
-
}), n =
|
|
490
|
+
}), n = Zt({
|
|
517
491
|
canTrack: e
|
|
518
492
|
});
|
|
519
493
|
return {
|
|
520
494
|
sessionId: t,
|
|
521
495
|
visitorId: n
|
|
522
496
|
};
|
|
523
|
-
},
|
|
497
|
+
}, nn = async ({
|
|
524
498
|
type: e,
|
|
525
499
|
canTrack: t,
|
|
526
500
|
apiKey: n,
|
|
@@ -534,10 +508,10 @@ const Ue = "builderSessionId", Gt = async ({
|
|
|
534
508
|
url: location.href,
|
|
535
509
|
...o
|
|
536
510
|
},
|
|
537
|
-
...await
|
|
511
|
+
...await tn({
|
|
538
512
|
canTrack: t
|
|
539
513
|
}),
|
|
540
|
-
userAttributes:
|
|
514
|
+
userAttributes: gt(),
|
|
541
515
|
ownerId: n
|
|
542
516
|
}
|
|
543
517
|
});
|
|
@@ -550,7 +524,7 @@ async function de(e) {
|
|
|
550
524
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
551
525
|
method: "POST",
|
|
552
526
|
body: JSON.stringify({
|
|
553
|
-
events: [await
|
|
527
|
+
events: [await nn(e)]
|
|
554
528
|
}),
|
|
555
529
|
headers: {
|
|
556
530
|
"content-type": "application/json"
|
|
@@ -563,15 +537,15 @@ async function de(e) {
|
|
|
563
537
|
const Pi = (e) => de({
|
|
564
538
|
...e,
|
|
565
539
|
canTrack: !0
|
|
566
|
-
}),
|
|
540
|
+
}), on = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
567
541
|
function je(e, t) {
|
|
568
542
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
569
543
|
return !1;
|
|
570
544
|
const n = new URL(t.origin), o = n.hostname;
|
|
571
|
-
return (e ||
|
|
545
|
+
return (e || on).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
572
546
|
}
|
|
573
|
-
const
|
|
574
|
-
|
|
547
|
+
const rn = "2.0.21", sn = () => {
|
|
548
|
+
Lt("insertMenu", {
|
|
575
549
|
name: "_default",
|
|
576
550
|
default: !0,
|
|
577
551
|
items: [{
|
|
@@ -594,13 +568,13 @@ const sn = "2.0.17", an = () => {
|
|
|
594
568
|
});
|
|
595
569
|
};
|
|
596
570
|
let we = !1;
|
|
597
|
-
const
|
|
571
|
+
const He = (e = {}) => {
|
|
598
572
|
var t, n;
|
|
599
573
|
we || (we = !0, $() && ((t = window.parent) == null || t.postMessage({
|
|
600
574
|
type: "builder.sdkInfo",
|
|
601
575
|
data: {
|
|
602
576
|
target: x,
|
|
603
|
-
version:
|
|
577
|
+
version: rn,
|
|
604
578
|
supportsPatchUpdates: !1,
|
|
605
579
|
// Supports builder-model="..." attribute which is needed to
|
|
606
580
|
// scope our '+ add block' button styling
|
|
@@ -613,7 +587,7 @@ const Ke = (e = {}) => {
|
|
|
613
587
|
options: e
|
|
614
588
|
}
|
|
615
589
|
}, "*"), window.addEventListener("message", (o) => {
|
|
616
|
-
var
|
|
590
|
+
var s, i;
|
|
617
591
|
if (!je(e.trustedHosts, o))
|
|
618
592
|
return;
|
|
619
593
|
const {
|
|
@@ -629,7 +603,7 @@ const Ke = (e = {}) => {
|
|
|
629
603
|
} catch (k) {
|
|
630
604
|
p = k;
|
|
631
605
|
}
|
|
632
|
-
p ? (
|
|
606
|
+
p ? (s = window.parent) == null || s.postMessage({
|
|
633
607
|
type: "builder.evaluateError",
|
|
634
608
|
data: {
|
|
635
609
|
id: u,
|
|
@@ -644,7 +618,7 @@ const Ke = (e = {}) => {
|
|
|
644
618
|
result: k
|
|
645
619
|
}
|
|
646
620
|
}, "*");
|
|
647
|
-
}).catch(console.error) : (
|
|
621
|
+
}).catch(console.error) : (i = window.parent) == null || i.postMessage({
|
|
648
622
|
type: "builder.evaluateResult",
|
|
649
623
|
data: {
|
|
650
624
|
result: d,
|
|
@@ -655,7 +629,7 @@ const Ke = (e = {}) => {
|
|
|
655
629
|
}
|
|
656
630
|
}
|
|
657
631
|
})));
|
|
658
|
-
},
|
|
632
|
+
}, Ke = ({
|
|
659
633
|
model: e,
|
|
660
634
|
trustedHosts: t,
|
|
661
635
|
callbacks: n
|
|
@@ -676,8 +650,8 @@ const Ke = (e = {}) => {
|
|
|
676
650
|
break;
|
|
677
651
|
}
|
|
678
652
|
case "builder.contentUpdate": {
|
|
679
|
-
const
|
|
680
|
-
|
|
653
|
+
const s = r.data, i = s.key || s.alias || s.entry || s.modelName, l = s.data;
|
|
654
|
+
i === e && n.contentUpdate(l);
|
|
681
655
|
break;
|
|
682
656
|
}
|
|
683
657
|
}
|
|
@@ -685,8 +659,8 @@ const Ke = (e = {}) => {
|
|
|
685
659
|
if (!$)
|
|
686
660
|
return P.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
687
661
|
};
|
|
688
|
-
|
|
689
|
-
const o =
|
|
662
|
+
He();
|
|
663
|
+
const o = Ke({
|
|
690
664
|
callbacks: {
|
|
691
665
|
contentUpdate: t,
|
|
692
666
|
animation: () => {
|
|
@@ -700,45 +674,45 @@ const Ke = (e = {}) => {
|
|
|
700
674
|
return window.addEventListener("message", o), () => {
|
|
701
675
|
window.removeEventListener("message", o);
|
|
702
676
|
};
|
|
703
|
-
},
|
|
677
|
+
}, an = "builder.tests", he = (e) => `${an}.${e}`, ln = ({
|
|
704
678
|
contentId: e
|
|
705
|
-
}) =>
|
|
679
|
+
}) => Fe({
|
|
706
680
|
name: he(e),
|
|
707
681
|
canTrack: !0
|
|
708
|
-
}),
|
|
682
|
+
}), cn = ({
|
|
709
683
|
contentId: e
|
|
710
|
-
}) =>
|
|
684
|
+
}) => Ne({
|
|
711
685
|
name: he(e),
|
|
712
686
|
canTrack: !0
|
|
713
|
-
}),
|
|
687
|
+
}), dn = ({
|
|
714
688
|
contentId: e,
|
|
715
689
|
value: t
|
|
716
|
-
}) =>
|
|
690
|
+
}) => Oe({
|
|
717
691
|
name: he(e),
|
|
718
692
|
value: t,
|
|
719
693
|
canTrack: !0
|
|
720
|
-
}),
|
|
694
|
+
}), qe = (e) => L(e.id) && L(e.variations) && Object.keys(e.variations).length > 0, un = ({
|
|
721
695
|
id: e,
|
|
722
696
|
variations: t
|
|
723
697
|
}) => {
|
|
724
698
|
var r;
|
|
725
699
|
let n = 0;
|
|
726
700
|
const o = Math.random();
|
|
727
|
-
for (const
|
|
728
|
-
const
|
|
729
|
-
if (n +=
|
|
730
|
-
return
|
|
701
|
+
for (const s in t) {
|
|
702
|
+
const i = (r = t[s]) == null ? void 0 : r.testRatio;
|
|
703
|
+
if (n += i, o < n)
|
|
704
|
+
return s;
|
|
731
705
|
}
|
|
732
706
|
return e;
|
|
733
|
-
},
|
|
734
|
-
const t =
|
|
735
|
-
return
|
|
707
|
+
}, ze = (e) => {
|
|
708
|
+
const t = un(e);
|
|
709
|
+
return dn({
|
|
736
710
|
contentId: e.id,
|
|
737
711
|
value: t
|
|
738
712
|
}).catch((n) => {
|
|
739
713
|
P.error("could not store A/B test variation: ", n);
|
|
740
714
|
}), t;
|
|
741
|
-
},
|
|
715
|
+
}, Je = ({
|
|
742
716
|
item: e,
|
|
743
717
|
testGroupId: t
|
|
744
718
|
}) => {
|
|
@@ -752,7 +726,7 @@ const Ke = (e = {}) => {
|
|
|
752
726
|
testVariationId: n.id,
|
|
753
727
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
754
728
|
};
|
|
755
|
-
},
|
|
729
|
+
}, pn = ({
|
|
756
730
|
item: e,
|
|
757
731
|
canTrack: t
|
|
758
732
|
}) => {
|
|
@@ -760,14 +734,14 @@ const Ke = (e = {}) => {
|
|
|
760
734
|
return e;
|
|
761
735
|
if (!e)
|
|
762
736
|
return;
|
|
763
|
-
if (!
|
|
737
|
+
if (!qe(e))
|
|
764
738
|
return e;
|
|
765
|
-
const n =
|
|
739
|
+
const n = cn({
|
|
766
740
|
contentId: e.id
|
|
767
|
-
}) ||
|
|
741
|
+
}) || ze({
|
|
768
742
|
variations: e.variations,
|
|
769
743
|
id: e.id
|
|
770
|
-
}), o =
|
|
744
|
+
}), o = Je({
|
|
771
745
|
item: e,
|
|
772
746
|
testGroupId: n
|
|
773
747
|
});
|
|
@@ -775,18 +749,18 @@ const Ke = (e = {}) => {
|
|
|
775
749
|
...e,
|
|
776
750
|
...o
|
|
777
751
|
};
|
|
778
|
-
},
|
|
752
|
+
}, mn = async ({
|
|
779
753
|
item: e,
|
|
780
754
|
canTrack: t
|
|
781
755
|
}) => {
|
|
782
|
-
if (!t || !
|
|
756
|
+
if (!t || !qe(e))
|
|
783
757
|
return e;
|
|
784
|
-
const o = await
|
|
758
|
+
const o = await ln({
|
|
785
759
|
contentId: e.id
|
|
786
|
-
}) ||
|
|
760
|
+
}) || ze({
|
|
787
761
|
variations: e.variations,
|
|
788
762
|
id: e.id
|
|
789
|
-
}), r =
|
|
763
|
+
}), r = Je({
|
|
790
764
|
item: e,
|
|
791
765
|
testGroupId: o
|
|
792
766
|
});
|
|
@@ -794,34 +768,34 @@ const Ke = (e = {}) => {
|
|
|
794
768
|
...e,
|
|
795
769
|
...r
|
|
796
770
|
};
|
|
797
|
-
},
|
|
798
|
-
function
|
|
771
|
+
}, G = (e) => L(e) ? e : !0;
|
|
772
|
+
function hn() {
|
|
799
773
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
800
774
|
}
|
|
801
|
-
function
|
|
802
|
-
const e =
|
|
775
|
+
function fn() {
|
|
776
|
+
const e = hn().fetch;
|
|
803
777
|
if (typeof e > "u")
|
|
804
778
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
805
779
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
806
780
|
return e;
|
|
807
781
|
}
|
|
808
|
-
const
|
|
782
|
+
const bn = fn();
|
|
809
783
|
function ue(e, t = null, n = ".") {
|
|
810
784
|
return Object.keys(e).reduce((o, r) => {
|
|
811
|
-
const
|
|
812
|
-
return [typeof
|
|
785
|
+
const s = e[r], i = [t, r].filter(Boolean).join(n);
|
|
786
|
+
return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
|
|
813
787
|
...o,
|
|
814
|
-
...ue(
|
|
788
|
+
...ue(s, i, n)
|
|
815
789
|
} : {
|
|
816
790
|
...o,
|
|
817
|
-
[
|
|
791
|
+
[i]: s
|
|
818
792
|
};
|
|
819
793
|
}, {});
|
|
820
794
|
}
|
|
821
|
-
function
|
|
795
|
+
function Ge(e, t, n = {}) {
|
|
822
796
|
for (const o in e) {
|
|
823
|
-
const r = e[o],
|
|
824
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((
|
|
797
|
+
const r = e[o], s = t ? t + "." + o : o;
|
|
798
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? Ge(r, s, n) : n[s] = r;
|
|
825
799
|
}
|
|
826
800
|
return n;
|
|
827
801
|
}
|
|
@@ -831,8 +805,8 @@ const gn = "v3", Ie = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fe = (
|
|
|
831
805
|
userAttributes: n,
|
|
832
806
|
query: o,
|
|
833
807
|
model: r,
|
|
834
|
-
apiKey:
|
|
835
|
-
enrich:
|
|
808
|
+
apiKey: s,
|
|
809
|
+
enrich: i,
|
|
836
810
|
locale: l,
|
|
837
811
|
apiVersion: a = gn,
|
|
838
812
|
fields: u,
|
|
@@ -843,35 +817,35 @@ const gn = "v3", Ie = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fe = (
|
|
|
843
817
|
sort: v,
|
|
844
818
|
includeUnpublished: F
|
|
845
819
|
} = e;
|
|
846
|
-
if (!
|
|
820
|
+
if (!s)
|
|
847
821
|
throw new Error("Missing API key");
|
|
848
822
|
if (!["v3"].includes(a))
|
|
849
823
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
850
824
|
const X = t !== 1, w = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
|
|
851
|
-
if (w.searchParams.set("apiKey",
|
|
825
|
+
if (w.searchParams.set("apiKey", s), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(X)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l), i && w.searchParams.set("enrich", String(i)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(d) && d > -1 && w.searchParams.set("offset", String(Math.floor(d))), typeof F == "boolean" && w.searchParams.set("includeUnpublished", String(F)), p && Ie(p) && w.searchParams.set("cacheSeconds", String(p)), k && Ie(k) && w.searchParams.set("staleCacheSeconds", String(k)), v) {
|
|
852
826
|
const O = ue({
|
|
853
827
|
sort: v
|
|
854
828
|
});
|
|
855
|
-
for (const
|
|
856
|
-
w.searchParams.set(
|
|
829
|
+
for (const j in O)
|
|
830
|
+
w.searchParams.set(j, JSON.stringify(O[j]));
|
|
857
831
|
}
|
|
858
|
-
const
|
|
859
|
-
...
|
|
832
|
+
const it = {
|
|
833
|
+
...Mt(),
|
|
860
834
|
...Ve(e.options || {})
|
|
861
|
-
}, ve = ue(
|
|
835
|
+
}, ve = ue(it);
|
|
862
836
|
for (const O in ve)
|
|
863
837
|
w.searchParams.set(O, String(ve[O]));
|
|
864
838
|
if (n && w.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
865
|
-
const O =
|
|
839
|
+
const O = Ge({
|
|
866
840
|
query: o
|
|
867
841
|
});
|
|
868
|
-
for (const
|
|
869
|
-
w.searchParams.set(
|
|
842
|
+
for (const j in O)
|
|
843
|
+
w.searchParams.set(j, JSON.stringify(O[j]));
|
|
870
844
|
}
|
|
871
845
|
return w;
|
|
872
846
|
}, yn = (e) => "results" in e;
|
|
873
847
|
async function be(e) {
|
|
874
|
-
const t = await
|
|
848
|
+
const t = await Sn({
|
|
875
849
|
...e,
|
|
876
850
|
limit: 1
|
|
877
851
|
});
|
|
@@ -879,16 +853,16 @@ async function be(e) {
|
|
|
879
853
|
}
|
|
880
854
|
const kn = async (e) => {
|
|
881
855
|
const t = fe(e);
|
|
882
|
-
return await (await (e.fetch ??
|
|
856
|
+
return await (await (e.fetch ?? bn)(t.href, e.fetchOptions)).json();
|
|
883
857
|
}, vn = async (e, t, n = fe(e)) => {
|
|
884
|
-
const o =
|
|
858
|
+
const o = G(e.canTrack);
|
|
885
859
|
if (n.search.includes("preview="), !o || !($() || x === "reactNative"))
|
|
886
860
|
return t.results;
|
|
887
861
|
try {
|
|
888
862
|
const r = [];
|
|
889
|
-
for (const
|
|
890
|
-
r.push(await
|
|
891
|
-
item:
|
|
863
|
+
for (const s of t.results)
|
|
864
|
+
r.push(await mn({
|
|
865
|
+
item: s,
|
|
892
866
|
canTrack: o
|
|
893
867
|
}));
|
|
894
868
|
t.results = r;
|
|
@@ -897,7 +871,7 @@ const kn = async (e) => {
|
|
|
897
871
|
}
|
|
898
872
|
return t.results;
|
|
899
873
|
};
|
|
900
|
-
async function
|
|
874
|
+
async function Sn(e) {
|
|
901
875
|
try {
|
|
902
876
|
const t = fe(e), n = await kn(e);
|
|
903
877
|
return yn(n) ? vn(e, n) : (P.error("Error fetching data. ", {
|
|
@@ -910,7 +884,7 @@ async function Cn(e) {
|
|
|
910
884
|
}
|
|
911
885
|
}
|
|
912
886
|
const Vi = async (e) => {
|
|
913
|
-
var o, r,
|
|
887
|
+
var o, r, s;
|
|
914
888
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
915
889
|
...e,
|
|
916
890
|
apiKey: e.apiKey,
|
|
@@ -921,7 +895,7 @@ const Vi = async (e) => {
|
|
|
921
895
|
urlPath: t
|
|
922
896
|
} : {}
|
|
923
897
|
},
|
|
924
|
-
options:
|
|
898
|
+
options: We(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
|
|
925
899
|
};
|
|
926
900
|
return {
|
|
927
901
|
apiKey: n.apiKey,
|
|
@@ -929,16 +903,16 @@ const Vi = async (e) => {
|
|
|
929
903
|
content: await be(n)
|
|
930
904
|
};
|
|
931
905
|
}, ge = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
932
|
-
function
|
|
933
|
-
let o, r,
|
|
906
|
+
function Cn(e, t, n = {}) {
|
|
907
|
+
let o, r, s, i = null, l = 0;
|
|
934
908
|
const a = function() {
|
|
935
|
-
l = n.leading === !1 ? 0 : Date.now(),
|
|
909
|
+
l = n.leading === !1 ? 0 : Date.now(), i = null, s = e.apply(o, r), i || (o = r = null);
|
|
936
910
|
};
|
|
937
911
|
return function() {
|
|
938
912
|
const u = Date.now();
|
|
939
913
|
!l && n.leading === !1 && (l = u);
|
|
940
914
|
const h = t - (u - l);
|
|
941
|
-
return o = this, r = arguments, h <= 0 || h > t ? (
|
|
915
|
+
return o = this, r = arguments, h <= 0 || h > t ? (i && (clearTimeout(i), i = null), l = u, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(a, h)), s;
|
|
942
916
|
};
|
|
943
917
|
}
|
|
944
918
|
function q(e, ...t) {
|
|
@@ -946,8 +920,8 @@ function q(e, ...t) {
|
|
|
946
920
|
for (let o = 1; o < arguments.length; o++) {
|
|
947
921
|
const r = arguments[o];
|
|
948
922
|
if (r != null)
|
|
949
|
-
for (const
|
|
950
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
923
|
+
for (const s in r)
|
|
924
|
+
Object.prototype.hasOwnProperty.call(r, s) && (n[s] = r[s]);
|
|
951
925
|
}
|
|
952
926
|
return n;
|
|
953
927
|
}
|
|
@@ -955,19 +929,19 @@ function Tn(e) {
|
|
|
955
929
|
for (const t of e)
|
|
956
930
|
switch (t.trigger) {
|
|
957
931
|
case "pageLoad":
|
|
958
|
-
|
|
932
|
+
Xe(t);
|
|
959
933
|
break;
|
|
960
934
|
case "scrollInView":
|
|
961
935
|
In(t);
|
|
962
936
|
break;
|
|
963
937
|
}
|
|
964
938
|
}
|
|
965
|
-
function
|
|
939
|
+
function Ye(e) {
|
|
966
940
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
967
941
|
}
|
|
968
|
-
function
|
|
969
|
-
const n = wn(e), o = getComputedStyle(t), r = e.steps[0].styles,
|
|
970
|
-
for (const l of
|
|
942
|
+
function Qe(e, t) {
|
|
943
|
+
const n = wn(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
|
|
944
|
+
for (const l of i)
|
|
971
945
|
for (const a of n)
|
|
972
946
|
a in l || (l[a] = o[a]);
|
|
973
947
|
}
|
|
@@ -978,14 +952,14 @@ function wn(e) {
|
|
|
978
952
|
t.indexOf(o) === -1 && t.push(o);
|
|
979
953
|
return t;
|
|
980
954
|
}
|
|
981
|
-
function
|
|
955
|
+
function Xe(e) {
|
|
982
956
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
983
957
|
if (!t.length) {
|
|
984
|
-
|
|
958
|
+
Ye(e.elementId || e.id || "");
|
|
985
959
|
return;
|
|
986
960
|
}
|
|
987
961
|
Array.from(t).forEach((n) => {
|
|
988
|
-
|
|
962
|
+
Qe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
|
|
989
963
|
n.style.transition = `all ${e.duration}s ${ge(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
|
|
990
964
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
991
965
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
@@ -995,20 +969,20 @@ function _e(e) {
|
|
|
995
969
|
function In(e) {
|
|
996
970
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
997
971
|
if (!t.length) {
|
|
998
|
-
|
|
972
|
+
Ye(e.elementId || e.id || "");
|
|
999
973
|
return;
|
|
1000
974
|
}
|
|
1001
975
|
Array.from(t).forEach((n) => {
|
|
1002
|
-
|
|
976
|
+
Qe(e, n);
|
|
1003
977
|
let o = !1, r = !1;
|
|
1004
|
-
function
|
|
978
|
+
function s() {
|
|
1005
979
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
1006
|
-
q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll",
|
|
980
|
+
q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
|
|
1007
981
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
1008
982
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1009
983
|
})) : e.repeat && o && !r && !l(n) && (o = !1, q(n.style, e.steps[0].styles));
|
|
1010
984
|
}
|
|
1011
|
-
const
|
|
985
|
+
const i = Cn(s, 200, {
|
|
1012
986
|
leading: !1
|
|
1013
987
|
});
|
|
1014
988
|
function l(h) {
|
|
@@ -1021,16 +995,16 @@ function In(e) {
|
|
|
1021
995
|
}
|
|
1022
996
|
u(), setTimeout(() => {
|
|
1023
997
|
n.style.transition = `all ${e.duration}s ${ge(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
1024
|
-
}), document.addEventListener("scroll",
|
|
998
|
+
}), document.addEventListener("scroll", i, {
|
|
1025
999
|
capture: !0,
|
|
1026
1000
|
passive: !0
|
|
1027
|
-
}),
|
|
1001
|
+
}), s();
|
|
1028
1002
|
});
|
|
1029
1003
|
}
|
|
1030
|
-
const
|
|
1004
|
+
const Ze = (e) => Object.entries(e).map(([n, o]) => {
|
|
1031
1005
|
if (typeof o == "string")
|
|
1032
1006
|
return `${ge(n)}: ${o};`;
|
|
1033
|
-
}).filter(L), $n = (e) =>
|
|
1007
|
+
}).filter(L), $n = (e) => Ze(e).join(`
|
|
1034
1008
|
`), Ai = ({
|
|
1035
1009
|
mediaQuery: e,
|
|
1036
1010
|
className: t,
|
|
@@ -1051,18 +1025,18 @@ function Rn({
|
|
|
1051
1025
|
const Wi = ({
|
|
1052
1026
|
block: e,
|
|
1053
1027
|
context: t
|
|
1054
|
-
}) =>
|
|
1028
|
+
}) => _e(Rn({
|
|
1055
1029
|
style: e.style || {},
|
|
1056
1030
|
context: t,
|
|
1057
1031
|
block: e
|
|
1058
1032
|
}));
|
|
1059
|
-
function
|
|
1033
|
+
function _e(e) {
|
|
1060
1034
|
switch (x) {
|
|
1061
1035
|
case "svelte":
|
|
1062
1036
|
case "vue":
|
|
1063
1037
|
case "solid":
|
|
1064
1038
|
case "angular":
|
|
1065
|
-
return
|
|
1039
|
+
return Ze(e).join(" ");
|
|
1066
1040
|
case "qwik":
|
|
1067
1041
|
case "reactNative":
|
|
1068
1042
|
case "react":
|
|
@@ -1094,7 +1068,7 @@ const Bn = ({
|
|
|
1094
1068
|
} = e;
|
|
1095
1069
|
if (!(n != null && n.collection))
|
|
1096
1070
|
return;
|
|
1097
|
-
const r =
|
|
1071
|
+
const r = Y({
|
|
1098
1072
|
code: n.collection,
|
|
1099
1073
|
localState: t.localState,
|
|
1100
1074
|
rootState: t.rootState,
|
|
@@ -1104,7 +1078,7 @@ const Bn = ({
|
|
|
1104
1078
|
});
|
|
1105
1079
|
if (!Array.isArray(r))
|
|
1106
1080
|
return;
|
|
1107
|
-
const
|
|
1081
|
+
const s = n.collection.split(".").pop(), i = n.itemName || (s ? s + "Item" : "item");
|
|
1108
1082
|
return r.map((a, u) => ({
|
|
1109
1083
|
context: {
|
|
1110
1084
|
...t,
|
|
@@ -1112,8 +1086,8 @@ const Bn = ({
|
|
|
1112
1086
|
...t.localState,
|
|
1113
1087
|
$index: u,
|
|
1114
1088
|
$item: a,
|
|
1115
|
-
[
|
|
1116
|
-
[`$${
|
|
1089
|
+
[i]: a,
|
|
1090
|
+
[`$${i}Index`]: u
|
|
1117
1091
|
}
|
|
1118
1092
|
},
|
|
1119
1093
|
block: o
|
|
@@ -1143,22 +1117,22 @@ const Bn = ({
|
|
|
1143
1117
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1144
1118
|
e
|
|
1145
1119
|
), e;
|
|
1146
|
-
}), Nn = () => import("./block-styles-
|
|
1120
|
+
}), Nn = () => import("./block-styles-y32fRgui.js").then((e) => e.default).catch((e) => {
|
|
1147
1121
|
throw console.error(
|
|
1148
1122
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1149
1123
|
e
|
|
1150
1124
|
), e;
|
|
1151
|
-
}), Fn = () => import("./block-wrapper-
|
|
1125
|
+
}), Fn = () => import("./block-wrapper-Gb1-_hO0.js").then((e) => e.default).catch((e) => {
|
|
1152
1126
|
throw console.error(
|
|
1153
1127
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1154
1128
|
e
|
|
1155
1129
|
), e;
|
|
1156
|
-
}), On = () => import("./component-ref-
|
|
1130
|
+
}), On = () => import("./component-ref-9ri0cWhO.js").then((e) => e.default).catch((e) => {
|
|
1157
1131
|
throw console.error(
|
|
1158
1132
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1159
1133
|
e
|
|
1160
1134
|
), e;
|
|
1161
|
-
}), Dn = () => import("./repeated-block-
|
|
1135
|
+
}), Dn = () => import("./repeated-block-xs28_Dw4.js").then((e) => e.default).catch((e) => {
|
|
1162
1136
|
throw console.error(
|
|
1163
1137
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1164
1138
|
e
|
|
@@ -1166,11 +1140,11 @@ const Bn = ({
|
|
|
1166
1140
|
}), Ln = f({
|
|
1167
1141
|
name: "block",
|
|
1168
1142
|
components: {
|
|
1169
|
-
BlockStyles:
|
|
1170
|
-
RepeatedBlock:
|
|
1171
|
-
ComponentRef:
|
|
1172
|
-
BlockWrapper:
|
|
1173
|
-
DynamicDiv:
|
|
1143
|
+
BlockStyles: H(Nn),
|
|
1144
|
+
RepeatedBlock: H(Dn),
|
|
1145
|
+
ComponentRef: H(On),
|
|
1146
|
+
BlockWrapper: H(Fn),
|
|
1147
|
+
DynamicDiv: H(Wn)
|
|
1174
1148
|
},
|
|
1175
1149
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1176
1150
|
data() {
|
|
@@ -1201,7 +1175,7 @@ const Bn = ({
|
|
|
1201
1175
|
},
|
|
1202
1176
|
processedBlock() {
|
|
1203
1177
|
var t;
|
|
1204
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1178
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : Nt({
|
|
1205
1179
|
block: this.block,
|
|
1206
1180
|
localState: this.context.localState,
|
|
1207
1181
|
rootState: this.context.rootState,
|
|
@@ -1237,7 +1211,7 @@ const Bn = ({
|
|
|
1237
1211
|
blockChildren: this.processedBlock.children ?? [],
|
|
1238
1212
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1239
1213
|
componentOptions: {
|
|
1240
|
-
...
|
|
1214
|
+
...Rt(this.processedBlock),
|
|
1241
1215
|
...Vn(this.blockComponent, this.processedBlock),
|
|
1242
1216
|
...An(this.blockComponent, this.context),
|
|
1243
1217
|
...Pn(this.blockComponent, this.linkComponent),
|
|
@@ -1256,11 +1230,11 @@ const Bn = ({
|
|
|
1256
1230
|
}
|
|
1257
1231
|
}
|
|
1258
1232
|
});
|
|
1259
|
-
function Un(e, t, n, o, r,
|
|
1233
|
+
function Un(e, t, n, o, r, s) {
|
|
1260
1234
|
var d;
|
|
1261
|
-
const
|
|
1235
|
+
const i = y("BlockStyles"), l = y("ComponentRef"), a = y("Block", !0), u = y("BlockWrapper"), h = y("RepeatedBlock");
|
|
1262
1236
|
return e.canShowBlock ? (c(), m(T, { key: 0 }, [
|
|
1263
|
-
I(
|
|
1237
|
+
I(i, {
|
|
1264
1238
|
block: e.processedBlock,
|
|
1265
1239
|
context: e.context
|
|
1266
1240
|
}, null, 8, ["block", "context"]),
|
|
@@ -1319,7 +1293,7 @@ function Un(e, t, n, o, r, i) {
|
|
|
1319
1293
|
_: 1
|
|
1320
1294
|
}, 8, ["Wrapper", "block", "context"]))
|
|
1321
1295
|
], 64))
|
|
1322
|
-
], 64)) :
|
|
1296
|
+
], 64)) : S("", !0);
|
|
1323
1297
|
}
|
|
1324
1298
|
const ye = /* @__PURE__ */ b(Ln, [["render", Un]]), Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1325
1299
|
__proto__: null,
|
|
@@ -1371,16 +1345,16 @@ const ye = /* @__PURE__ */ b(Ln, [["render", Un]]), Ni = /* @__PURE__ */ Object.
|
|
|
1371
1345
|
}
|
|
1372
1346
|
}
|
|
1373
1347
|
});
|
|
1374
|
-
function
|
|
1375
|
-
return c(), g(K(e.BlocksWrapper),
|
|
1348
|
+
function jn(e, t, n, o, r, s) {
|
|
1349
|
+
return c(), g(K(e.BlocksWrapper), C({
|
|
1376
1350
|
ref: "blocksWrapperRef",
|
|
1377
|
-
class: e.className + " component-
|
|
1351
|
+
class: e.className + " component-1k2igrjdg3x",
|
|
1378
1352
|
"builder-path": e.path,
|
|
1379
1353
|
"builder-parent-id": e.parent,
|
|
1380
1354
|
style: e.styleProp,
|
|
1381
|
-
onClick: (
|
|
1382
|
-
onMouseEnter: (
|
|
1383
|
-
onKeyPress: (
|
|
1355
|
+
onClick: (i) => e.onClick(),
|
|
1356
|
+
onMouseEnter: (i) => e.onMouseEnter(),
|
|
1357
|
+
onKeyPress: (i) => e.onClick()
|
|
1384
1358
|
}, { ...e.BlocksWrapperProps }), {
|
|
1385
1359
|
default: N(() => [
|
|
1386
1360
|
E(e.$slots, "default", {}, void 0, !0)
|
|
@@ -1388,9 +1362,9 @@ function Hn(e, t, n, o, r, i) {
|
|
|
1388
1362
|
_: 3
|
|
1389
1363
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1390
1364
|
}
|
|
1391
|
-
const
|
|
1365
|
+
const Hn = /* @__PURE__ */ b(Mn, [["render", jn], ["__scopeId", "data-v-162df12b"]]), Kn = f({
|
|
1392
1366
|
name: "builder-blocks",
|
|
1393
|
-
components: { BlocksWrapper:
|
|
1367
|
+
components: { BlocksWrapper: Hn, Block: ye },
|
|
1394
1368
|
props: [
|
|
1395
1369
|
"blocks",
|
|
1396
1370
|
"parent",
|
|
@@ -1405,9 +1379,9 @@ const jn = /* @__PURE__ */ b(Mn, [["render", Hn], ["__scopeId", "data-v-824f09a8
|
|
|
1405
1379
|
componentsContext: Ae.key
|
|
1406
1380
|
}
|
|
1407
1381
|
});
|
|
1408
|
-
function qn(e, t, n, o, r,
|
|
1382
|
+
function qn(e, t, n, o, r, s) {
|
|
1409
1383
|
var a, u;
|
|
1410
|
-
const
|
|
1384
|
+
const i = y("Block"), l = y("BlocksWrapper");
|
|
1411
1385
|
return c(), g(l, {
|
|
1412
1386
|
blocks: e.blocks,
|
|
1413
1387
|
parent: e.parent,
|
|
@@ -1417,13 +1391,13 @@ function qn(e, t, n, o, r, i) {
|
|
|
1417
1391
|
BlocksWrapperProps: ((u = e.context) == null ? void 0 : u.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
|
|
1418
1392
|
}, {
|
|
1419
1393
|
default: N(() => [
|
|
1420
|
-
e.blocks ? (c(!0), m(T, { key: 0 }, V(e.blocks, (h, d) => (c(), g(
|
|
1394
|
+
e.blocks ? (c(!0), m(T, { key: 0 }, V(e.blocks, (h, d) => (c(), g(i, {
|
|
1421
1395
|
key: h.id,
|
|
1422
1396
|
block: h,
|
|
1423
1397
|
linkComponent: e.linkComponent,
|
|
1424
1398
|
context: e.context || e.builderContext,
|
|
1425
1399
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
1426
|
-
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) :
|
|
1400
|
+
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) : S("", !0)
|
|
1427
1401
|
]),
|
|
1428
1402
|
_: 1
|
|
1429
1403
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
@@ -1432,7 +1406,7 @@ const M = /* @__PURE__ */ b(Kn, [["render", qn]]), zn = f({
|
|
|
1432
1406
|
name: "dynamic-div",
|
|
1433
1407
|
props: []
|
|
1434
1408
|
});
|
|
1435
|
-
function Jn(e, t, n, o, r,
|
|
1409
|
+
function Jn(e, t, n, o, r, s) {
|
|
1436
1410
|
return c(), m("div", null, [
|
|
1437
1411
|
E(e.$slots, "default")
|
|
1438
1412
|
]);
|
|
@@ -1450,7 +1424,7 @@ const Q = /* @__PURE__ */ b(zn, [["render", Jn]]), Gn = /* @__PURE__ */ Object.f
|
|
|
1450
1424
|
},
|
|
1451
1425
|
name: "inlined-styles",
|
|
1452
1426
|
props: ["styles", "id", "nonce"]
|
|
1453
|
-
}),
|
|
1427
|
+
}), et = {
|
|
1454
1428
|
small: {
|
|
1455
1429
|
min: 320,
|
|
1456
1430
|
default: 321,
|
|
@@ -1466,11 +1440,11 @@ const Q = /* @__PURE__ */ b(zn, [["render", Jn]]), Gn = /* @__PURE__ */ Object.f
|
|
|
1466
1440
|
default: 991,
|
|
1467
1441
|
max: 1200
|
|
1468
1442
|
}
|
|
1469
|
-
}, Fi = (e, t =
|
|
1443
|
+
}, Fi = (e, t = et) => `@media (max-width: ${t[e].max}px)`, Yn = ({
|
|
1470
1444
|
small: e,
|
|
1471
1445
|
medium: t
|
|
1472
1446
|
}) => {
|
|
1473
|
-
const n = pe(
|
|
1447
|
+
const n = pe(et);
|
|
1474
1448
|
if (!e || !t)
|
|
1475
1449
|
return n;
|
|
1476
1450
|
const o = Math.floor(e / 2);
|
|
@@ -1485,12 +1459,12 @@ const Q = /* @__PURE__ */ b(zn, [["render", Jn]]), Gn = /* @__PURE__ */ Object.f
|
|
|
1485
1459
|
min: r,
|
|
1486
1460
|
default: r + 1
|
|
1487
1461
|
};
|
|
1488
|
-
const
|
|
1462
|
+
const s = n.medium.max + 1;
|
|
1489
1463
|
return n.large = {
|
|
1490
1464
|
max: 2e3,
|
|
1491
1465
|
// TODO: decide upper limit
|
|
1492
|
-
min:
|
|
1493
|
-
default:
|
|
1466
|
+
min: s,
|
|
1467
|
+
default: s + 1
|
|
1494
1468
|
}, n;
|
|
1495
1469
|
}, Qn = (e) => `builder-columns ${e}-breakpoints`, Xn = f({
|
|
1496
1470
|
name: "builder-columns",
|
|
@@ -1554,7 +1528,7 @@ const Q = /* @__PURE__ */ b(zn, [["render", Jn]]), Gn = /* @__PURE__ */ Object.f
|
|
|
1554
1528
|
};
|
|
1555
1529
|
},
|
|
1556
1530
|
columnCssVars(e) {
|
|
1557
|
-
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%",
|
|
1531
|
+
const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", s = 0;
|
|
1558
1532
|
return {
|
|
1559
1533
|
...{
|
|
1560
1534
|
display: "flex",
|
|
@@ -1568,7 +1542,7 @@ const Q = /* @__PURE__ */ b(zn, [["render", Jn]]), Gn = /* @__PURE__ */ Object.f
|
|
|
1568
1542
|
desktopStyle: n
|
|
1569
1543
|
}),
|
|
1570
1544
|
"--column-margin-left-mobile": this.getMobileStyle({
|
|
1571
|
-
stackedStyle:
|
|
1545
|
+
stackedStyle: s,
|
|
1572
1546
|
desktopStyle: o
|
|
1573
1547
|
}),
|
|
1574
1548
|
"--column-width-tablet": this.getTabletStyle({
|
|
@@ -1576,7 +1550,7 @@ const Q = /* @__PURE__ */ b(zn, [["render", Jn]]), Gn = /* @__PURE__ */ Object.f
|
|
|
1576
1550
|
desktopStyle: n
|
|
1577
1551
|
}),
|
|
1578
1552
|
"--column-margin-left-tablet": this.getTabletStyle({
|
|
1579
|
-
stackedStyle:
|
|
1553
|
+
stackedStyle: s,
|
|
1580
1554
|
desktopStyle: o
|
|
1581
1555
|
})
|
|
1582
1556
|
};
|
|
@@ -1621,24 +1595,24 @@ const Q = /* @__PURE__ */ b(zn, [["render", Jn]]), Gn = /* @__PURE__ */ Object.f
|
|
|
1621
1595
|
href: e.link
|
|
1622
1596
|
} : {},
|
|
1623
1597
|
[_()]: "builder-column",
|
|
1624
|
-
style:
|
|
1598
|
+
style: _e(this.columnCssVars(t))
|
|
1625
1599
|
};
|
|
1626
1600
|
}
|
|
1627
1601
|
}
|
|
1628
1602
|
});
|
|
1629
|
-
function Zn(e, t, n, o, r,
|
|
1603
|
+
function Zn(e, t, n, o, r, s) {
|
|
1630
1604
|
var u;
|
|
1631
|
-
const
|
|
1632
|
-
return c(), m("div",
|
|
1633
|
-
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-
|
|
1605
|
+
const i = y("InlinedStyles"), l = y("Blocks"), a = y("DynamicRenderer");
|
|
1606
|
+
return c(), m("div", C({
|
|
1607
|
+
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
|
|
1634
1608
|
style: e.columnsCssVars()
|
|
1635
1609
|
}, {}), [
|
|
1636
|
-
e.TARGET !== "reactNative" ? (c(), g(
|
|
1610
|
+
e.TARGET !== "reactNative" ? (c(), g(i, {
|
|
1637
1611
|
key: 0,
|
|
1638
1612
|
id: "builderio-columns",
|
|
1639
1613
|
styles: e.columnsStyles(),
|
|
1640
1614
|
nonce: e.builderContext.nonce
|
|
1641
|
-
}, null, 8, ["styles", "nonce"])) :
|
|
1615
|
+
}, null, 8, ["styles", "nonce"])) : S("", !0),
|
|
1642
1616
|
(c(!0), m(T, null, V(e.columns, (h, d) => (c(), g(a, {
|
|
1643
1617
|
key: d,
|
|
1644
1618
|
TagName: e.getTagName(h),
|
|
@@ -1662,11 +1636,11 @@ function Zn(e, t, n, o, r, i) {
|
|
|
1662
1636
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1663
1637
|
], 16);
|
|
1664
1638
|
}
|
|
1665
|
-
const _n = /* @__PURE__ */ b(Xn, [["render", Zn], ["__scopeId", "data-v-
|
|
1639
|
+
const _n = /* @__PURE__ */ b(Xn, [["render", Zn], ["__scopeId", "data-v-adc066fc"]]), eo = f({
|
|
1666
1640
|
name: "builder-fragment-component",
|
|
1667
1641
|
props: []
|
|
1668
1642
|
});
|
|
1669
|
-
function to(e, t, n, o, r,
|
|
1643
|
+
function to(e, t, n, o, r, s) {
|
|
1670
1644
|
return c(), m("span", null, [
|
|
1671
1645
|
E(e.$slots, "default")
|
|
1672
1646
|
]);
|
|
@@ -1686,8 +1660,8 @@ function ro(e, t) {
|
|
|
1686
1660
|
return $e(e);
|
|
1687
1661
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1688
1662
|
if (n) {
|
|
1689
|
-
const o = e.split(n[0]), r = n[3],
|
|
1690
|
-
return $e(`${o[0]}_${
|
|
1663
|
+
const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
|
|
1664
|
+
return $e(`${o[0]}_${s}${r}`);
|
|
1691
1665
|
}
|
|
1692
1666
|
return null;
|
|
1693
1667
|
}
|
|
@@ -1755,17 +1729,17 @@ const io = f({
|
|
|
1755
1729
|
}
|
|
1756
1730
|
}), so = ["srcset"], ao = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], lo = {
|
|
1757
1731
|
key: 2,
|
|
1758
|
-
class: "div-
|
|
1732
|
+
class: "div-29wpyomtntv-2"
|
|
1759
1733
|
};
|
|
1760
|
-
function co(e, t, n, o, r,
|
|
1761
|
-
var
|
|
1734
|
+
function co(e, t, n, o, r, s) {
|
|
1735
|
+
var i, l, a, u, h, d;
|
|
1762
1736
|
return c(), m(T, null, [
|
|
1763
1737
|
z("picture", null, [
|
|
1764
1738
|
e.webpSrcSet ? (c(), m("source", {
|
|
1765
1739
|
key: 0,
|
|
1766
1740
|
type: "image/webp",
|
|
1767
1741
|
srcset: e.webpSrcSet
|
|
1768
|
-
}, null, 8, so)) :
|
|
1742
|
+
}, null, 8, so)) : S("", !0),
|
|
1769
1743
|
z("img", {
|
|
1770
1744
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1771
1745
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
@@ -1777,35 +1751,35 @@ function co(e, t, n, o, r, i) {
|
|
|
1777
1751
|
...e.aspectRatioCss
|
|
1778
1752
|
}),
|
|
1779
1753
|
class: J(
|
|
1780
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1754
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
|
|
1781
1755
|
),
|
|
1782
1756
|
src: e.image,
|
|
1783
1757
|
srcset: e.srcSetToUse,
|
|
1784
1758
|
sizes: e.sizes
|
|
1785
1759
|
}, null, 14, ao)
|
|
1786
1760
|
]),
|
|
1787
|
-
e.aspectRatio && !((l = (
|
|
1761
|
+
e.aspectRatio && !((l = (i = e.builderBlock) == null ? void 0 : i.children) != null && l.length && e.fitContent) ? (c(), m("div", {
|
|
1788
1762
|
key: 0,
|
|
1789
|
-
class: "builder-image-sizer div-
|
|
1763
|
+
class: "builder-image-sizer div-29wpyomtntv",
|
|
1790
1764
|
style: D({
|
|
1791
1765
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1792
1766
|
})
|
|
1793
|
-
}, null, 4)) :
|
|
1794
|
-
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? E(e.$slots, "default", { key: 1 }, void 0, !0) :
|
|
1767
|
+
}, null, 4)) : S("", !0),
|
|
1768
|
+
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? E(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
|
|
1795
1769
|
!e.fitContent && ((d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length) ? (c(), m("div", lo, [
|
|
1796
1770
|
E(e.$slots, "default", {}, void 0, !0)
|
|
1797
|
-
])) :
|
|
1771
|
+
])) : S("", !0)
|
|
1798
1772
|
], 64);
|
|
1799
1773
|
}
|
|
1800
|
-
const uo = /* @__PURE__ */ b(io, [["render", co], ["__scopeId", "data-v-
|
|
1774
|
+
const uo = /* @__PURE__ */ b(io, [["render", co], ["__scopeId", "data-v-77f8a6c4"]]), po = f({
|
|
1801
1775
|
name: "builder-section-component",
|
|
1802
1776
|
props: ["attributes", "maxWidth"],
|
|
1803
1777
|
data() {
|
|
1804
1778
|
return { filterAttrs: A };
|
|
1805
1779
|
}
|
|
1806
1780
|
});
|
|
1807
|
-
function mo(e, t, n, o, r,
|
|
1808
|
-
return c(), m("section",
|
|
1781
|
+
function mo(e, t, n, o, r, s) {
|
|
1782
|
+
return c(), m("section", C({
|
|
1809
1783
|
style: {
|
|
1810
1784
|
width: "100%",
|
|
1811
1785
|
alignSelf: "stretch",
|
|
@@ -1999,18 +1973,18 @@ const ho = /* @__PURE__ */ b(po, [["render", mo]]), re = {
|
|
|
1999
1973
|
`.builder-accordion-title[data-index="${n}"]`
|
|
2000
1974
|
);
|
|
2001
1975
|
if (e = n, r) {
|
|
2002
|
-
let
|
|
1976
|
+
let s = r.getBoundingClientRect();
|
|
2003
1977
|
for (; r = r && r.nextElementSibling; )
|
|
2004
1978
|
if (r) {
|
|
2005
1979
|
if (r.classList.contains("builder-accordion-detail"))
|
|
2006
1980
|
continue;
|
|
2007
|
-
const
|
|
2008
|
-
if (
|
|
1981
|
+
const i = r.getBoundingClientRect();
|
|
1982
|
+
if (i.left > s.left) {
|
|
2009
1983
|
const l = parseInt(
|
|
2010
1984
|
r.getAttribute("data-index") || "",
|
|
2011
1985
|
10
|
|
2012
1986
|
);
|
|
2013
|
-
isNaN(l) || (
|
|
1987
|
+
isNaN(l) || (s = i, e = l);
|
|
2014
1988
|
} else
|
|
2015
1989
|
break;
|
|
2016
1990
|
}
|
|
@@ -2042,8 +2016,8 @@ const ho = /* @__PURE__ */ b(po, [["render", mo]]), re = {
|
|
|
2042
2016
|
}
|
|
2043
2017
|
}
|
|
2044
2018
|
}), yo = ["data-index", "onClick"];
|
|
2045
|
-
function ko(e, t, n, o, r,
|
|
2046
|
-
const
|
|
2019
|
+
function ko(e, t, n, o, r, s) {
|
|
2020
|
+
const i = y("Blocks");
|
|
2047
2021
|
return c(), m("div", {
|
|
2048
2022
|
class: "builder-accordion",
|
|
2049
2023
|
style: D(e.accordionStyles)
|
|
@@ -2059,7 +2033,7 @@ function ko(e, t, n, o, r, i) {
|
|
|
2059
2033
|
"data-index": a,
|
|
2060
2034
|
onClick: (u) => e.onClick(a)
|
|
2061
2035
|
}, [
|
|
2062
|
-
I(
|
|
2036
|
+
I(i, {
|
|
2063
2037
|
blocks: l.title,
|
|
2064
2038
|
path: `items.${a}.title`,
|
|
2065
2039
|
parent: e.builderBlock.id,
|
|
@@ -2073,7 +2047,7 @@ function ko(e, t, n, o, r, i) {
|
|
|
2073
2047
|
class: J(e.getAccordionDetailClassName(a)),
|
|
2074
2048
|
style: D(e.accordionDetailStyles)
|
|
2075
2049
|
}, [
|
|
2076
|
-
I(
|
|
2050
|
+
I(i, {
|
|
2077
2051
|
blocks: l.detail,
|
|
2078
2052
|
path: `items.${a}.detail`,
|
|
2079
2053
|
parent: e.builderBlock.id,
|
|
@@ -2081,11 +2055,11 @@ function ko(e, t, n, o, r, i) {
|
|
|
2081
2055
|
registeredComponents: e.builderComponents,
|
|
2082
2056
|
linkComponent: e.builderLinkComponent
|
|
2083
2057
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2084
|
-
], 6)) :
|
|
2058
|
+
], 6)) : S("", !0)
|
|
2085
2059
|
], 64))), 128))
|
|
2086
2060
|
], 4);
|
|
2087
2061
|
}
|
|
2088
|
-
const vo = /* @__PURE__ */ b(go, [["render", ko]]),
|
|
2062
|
+
const vo = /* @__PURE__ */ b(go, [["render", ko]]), So = {
|
|
2089
2063
|
name: "Core:Button",
|
|
2090
2064
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2091
2065
|
defaultStyles: {
|
|
@@ -2121,7 +2095,7 @@ const vo = /* @__PURE__ */ b(go, [["render", ko]]), Co = {
|
|
|
2121
2095
|
shouldReceiveBuilderProps: {
|
|
2122
2096
|
builderLinkComponent: !0
|
|
2123
2097
|
}
|
|
2124
|
-
},
|
|
2098
|
+
}, Co = {
|
|
2125
2099
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2126
2100
|
name: "Columns",
|
|
2127
2101
|
isRSC: !0,
|
|
@@ -2300,7 +2274,7 @@ const vo = /* @__PURE__ */ b(go, [["render", ko]]), Co = {
|
|
|
2300
2274
|
});
|
|
2301
2275
|
}
|
|
2302
2276
|
const n = e.get("columns");
|
|
2303
|
-
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((
|
|
2277
|
+
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((s) => !s.get("width")) || n.reduce((l, a) => l + a.get("width"), 0) !== 100) && t();
|
|
2304
2278
|
}
|
|
2305
2279
|
}, {
|
|
2306
2280
|
name: "space",
|
|
@@ -2354,7 +2328,7 @@ const vo = /* @__PURE__ */ b(go, [["render", ko]]), Co = {
|
|
|
2354
2328
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2355
2329
|
onChange: (e) => {
|
|
2356
2330
|
e.delete("srcset"), e.delete("noWebp");
|
|
2357
|
-
function n(
|
|
2331
|
+
function n(i, l = 6e4) {
|
|
2358
2332
|
return new Promise((a, u) => {
|
|
2359
2333
|
const h = document.createElement("img");
|
|
2360
2334
|
let d = !1;
|
|
@@ -2362,21 +2336,21 @@ const vo = /* @__PURE__ */ b(go, [["render", ko]]), Co = {
|
|
|
2362
2336
|
d = !0, a(h);
|
|
2363
2337
|
}, h.addEventListener("error", (p) => {
|
|
2364
2338
|
console.warn("Image load failed", p.error), u(p.error);
|
|
2365
|
-
}), h.src =
|
|
2339
|
+
}), h.src = i, setTimeout(() => {
|
|
2366
2340
|
d || u(new Error("Image load timed out"));
|
|
2367
2341
|
}, l);
|
|
2368
2342
|
});
|
|
2369
2343
|
}
|
|
2370
|
-
function o(
|
|
2371
|
-
return Math.round(
|
|
2344
|
+
function o(i) {
|
|
2345
|
+
return Math.round(i * 1e3) / 1e3;
|
|
2372
2346
|
}
|
|
2373
|
-
const r = e.get("image"),
|
|
2374
|
-
if (fetch(r).then((
|
|
2375
|
-
|
|
2376
|
-
}), r && (!
|
|
2377
|
-
return n(r).then((
|
|
2347
|
+
const r = e.get("image"), s = e.get("aspectRatio");
|
|
2348
|
+
if (fetch(r).then((i) => i.blob()).then((i) => {
|
|
2349
|
+
i.type.includes("svg") && e.set("noWebp", !0);
|
|
2350
|
+
}), r && (!s || s === 0.7041))
|
|
2351
|
+
return n(r).then((i) => {
|
|
2378
2352
|
const l = e.get("aspectRatio");
|
|
2379
|
-
e.get("image") === r && (!l || l === 0.7041) &&
|
|
2353
|
+
e.get("image") === r && (!l || l === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
2380
2354
|
});
|
|
2381
2355
|
}
|
|
2382
2356
|
}, {
|
|
@@ -2503,10 +2477,10 @@ const vo = /* @__PURE__ */ b(go, [["render", ko]]), Co = {
|
|
|
2503
2477
|
components: { Blocks: M },
|
|
2504
2478
|
props: ["builderContext", "name", "builderComponents"]
|
|
2505
2479
|
});
|
|
2506
|
-
function Bo(e, t, n, o, r,
|
|
2480
|
+
function Bo(e, t, n, o, r, s) {
|
|
2507
2481
|
var l, a, u;
|
|
2508
|
-
const
|
|
2509
|
-
return c(), m("div",
|
|
2482
|
+
const i = y("Blocks");
|
|
2483
|
+
return c(), m("div", C(
|
|
2510
2484
|
{ style: {
|
|
2511
2485
|
pointerEvents: "auto"
|
|
2512
2486
|
} },
|
|
@@ -2514,7 +2488,7 @@ function Bo(e, t, n, o, r, i) {
|
|
|
2514
2488
|
"builder-slot": e.name
|
|
2515
2489
|
}
|
|
2516
2490
|
), [
|
|
2517
|
-
I(
|
|
2491
|
+
I(i, {
|
|
2518
2492
|
parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
|
|
2519
2493
|
path: `symbol.data.${e.name}`,
|
|
2520
2494
|
context: e.builderContext,
|
|
@@ -2729,8 +2703,8 @@ const Eo = /* @__PURE__ */ b(Ro, [["render", Bo]]), Po = {
|
|
|
2729
2703
|
}
|
|
2730
2704
|
}
|
|
2731
2705
|
}), Ao = ["onClick"], Wo = { key: 0 };
|
|
2732
|
-
function No(e, t, n, o, r,
|
|
2733
|
-
const
|
|
2706
|
+
function No(e, t, n, o, r, s) {
|
|
2707
|
+
const i = y("Blocks");
|
|
2734
2708
|
return c(), m("div", null, [
|
|
2735
2709
|
z("div", {
|
|
2736
2710
|
class: "builder-tabs-wrap",
|
|
@@ -2749,7 +2723,7 @@ function No(e, t, n, o, r, i) {
|
|
|
2749
2723
|
}),
|
|
2750
2724
|
onClick: (u) => e.onClick(a)
|
|
2751
2725
|
}, [
|
|
2752
|
-
I(
|
|
2726
|
+
I(i, {
|
|
2753
2727
|
parent: e.builderBlock.id,
|
|
2754
2728
|
path: `component.options.tabs.${a}.label`,
|
|
2755
2729
|
blocks: l.label,
|
|
@@ -2760,7 +2734,7 @@ function No(e, t, n, o, r, i) {
|
|
|
2760
2734
|
], 14, Ao))), 128))
|
|
2761
2735
|
], 4),
|
|
2762
2736
|
e.activeTabContent(e.activeTab) ? (c(), m("div", Wo, [
|
|
2763
|
-
I(
|
|
2737
|
+
I(i, {
|
|
2764
2738
|
parent: e.builderBlock.id,
|
|
2765
2739
|
path: `component.options.tabs.${e.activeTab}.content`,
|
|
2766
2740
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -2768,7 +2742,7 @@ function No(e, t, n, o, r, i) {
|
|
|
2768
2742
|
registeredComponents: e.builderComponents,
|
|
2769
2743
|
linkComponent: e.builderLinkComponent
|
|
2770
2744
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2771
|
-
])) :
|
|
2745
|
+
])) : S("", !0)
|
|
2772
2746
|
]);
|
|
2773
2747
|
}
|
|
2774
2748
|
const Fo = /* @__PURE__ */ b(Vo, [["render", No]]), Oo = {
|
|
@@ -2798,16 +2772,16 @@ const Fo = /* @__PURE__ */ b(Vo, [["render", No]]), Oo = {
|
|
|
2798
2772
|
props: ["builderContext", "text"],
|
|
2799
2773
|
computed: {
|
|
2800
2774
|
processedText() {
|
|
2801
|
-
var
|
|
2775
|
+
var s;
|
|
2802
2776
|
const e = this.builderContext, {
|
|
2803
2777
|
context: t,
|
|
2804
2778
|
localState: n,
|
|
2805
2779
|
rootState: o,
|
|
2806
2780
|
rootSetState: r
|
|
2807
2781
|
} = e;
|
|
2808
|
-
return String(((
|
|
2782
|
+
return String(((s = this.text) == null ? void 0 : s.toString()) || "").replace(
|
|
2809
2783
|
/{{([^}]+)}}/g,
|
|
2810
|
-
(
|
|
2784
|
+
(i, l) => Y({
|
|
2811
2785
|
code: l,
|
|
2812
2786
|
context: t,
|
|
2813
2787
|
localState: n,
|
|
@@ -2819,7 +2793,7 @@ const Fo = /* @__PURE__ */ b(Vo, [["render", No]]), Oo = {
|
|
|
2819
2793
|
}
|
|
2820
2794
|
}
|
|
2821
2795
|
}), Lo = ["innerHTML"];
|
|
2822
|
-
function Uo(e, t, n, o, r,
|
|
2796
|
+
function Uo(e, t, n, o, r, s) {
|
|
2823
2797
|
return c(), m("div", {
|
|
2824
2798
|
class: "builder-text",
|
|
2825
2799
|
innerHTML: e.processedText,
|
|
@@ -2828,7 +2802,7 @@ function Uo(e, t, n, o, r, i) {
|
|
|
2828
2802
|
}
|
|
2829
2803
|
}, null, 8, Lo);
|
|
2830
2804
|
}
|
|
2831
|
-
const Mo = /* @__PURE__ */ b(Do, [["render", Uo]]),
|
|
2805
|
+
const Mo = /* @__PURE__ */ b(Do, [["render", Uo]]), jo = {
|
|
2832
2806
|
name: "Custom Code",
|
|
2833
2807
|
static: !0,
|
|
2834
2808
|
requiredPermissions: ["editCode"],
|
|
@@ -2850,7 +2824,7 @@ const Mo = /* @__PURE__ */ b(Do, [["render", Uo]]), Ho = {
|
|
|
2850
2824
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
2851
2825
|
advanced: !0
|
|
2852
2826
|
}]
|
|
2853
|
-
},
|
|
2827
|
+
}, Ho = f({
|
|
2854
2828
|
name: "builder-custom-code",
|
|
2855
2829
|
props: ["replaceNodes", "code"],
|
|
2856
2830
|
data() {
|
|
@@ -2885,14 +2859,14 @@ const Mo = /* @__PURE__ */ b(Do, [["render", Uo]]), Ho = {
|
|
|
2885
2859
|
}
|
|
2886
2860
|
}
|
|
2887
2861
|
}), Ko = ["innerHTML"];
|
|
2888
|
-
function qo(e, t, n, o, r,
|
|
2862
|
+
function qo(e, t, n, o, r, s) {
|
|
2889
2863
|
return c(), m("div", {
|
|
2890
2864
|
ref: "elementRef",
|
|
2891
2865
|
class: J("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
2892
2866
|
innerHTML: e.code
|
|
2893
2867
|
}, null, 10, Ko);
|
|
2894
2868
|
}
|
|
2895
|
-
const zo = /* @__PURE__ */ b(
|
|
2869
|
+
const zo = /* @__PURE__ */ b(Ho, [["render", qo]]), Jo = {
|
|
2896
2870
|
name: "Embed",
|
|
2897
2871
|
static: !0,
|
|
2898
2872
|
inputs: [{
|
|
@@ -2950,7 +2924,7 @@ const zo = /* @__PURE__ */ b(jo, [["render", qo]]), Jo = {
|
|
|
2950
2924
|
}
|
|
2951
2925
|
}
|
|
2952
2926
|
}), Xo = ["innerHTML"];
|
|
2953
|
-
function Zo(e, t, n, o, r,
|
|
2927
|
+
function Zo(e, t, n, o, r, s) {
|
|
2954
2928
|
return c(), m("div", {
|
|
2955
2929
|
class: "builder-embed",
|
|
2956
2930
|
ref: "elem",
|
|
@@ -3198,7 +3172,7 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
|
|
|
3198
3172
|
const e = process.env.NODE_ENV || "production";
|
|
3199
3173
|
return tr.includes(e) ? e : "production";
|
|
3200
3174
|
}, or = (e, t, n) => {
|
|
3201
|
-
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r,
|
|
3175
|
+
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : r, e);
|
|
3202
3176
|
return o === void 0 || o === e ? n : o;
|
|
3203
3177
|
}, rr = f({
|
|
3204
3178
|
name: "builder-form-component",
|
|
@@ -3258,8 +3232,8 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
|
|
|
3258
3232
|
}
|
|
3259
3233
|
e.preventDefault();
|
|
3260
3234
|
const o = e.currentTarget || e.target, r = this.customHeaders || {};
|
|
3261
|
-
let
|
|
3262
|
-
const
|
|
3235
|
+
let s;
|
|
3236
|
+
const i = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((d) => !!d.name).map((d) => {
|
|
3263
3237
|
let p;
|
|
3264
3238
|
const k = d.name;
|
|
3265
3239
|
if (d instanceof HTMLInputElement)
|
|
@@ -3287,17 +3261,17 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
|
|
|
3287
3261
|
if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: d }) => {
|
|
3288
3262
|
(d instanceof File || Array.isArray(d) && d[0] instanceof File || d instanceof FileList) && (a = "multipart/form-data");
|
|
3289
3263
|
}), a !== "application/json")
|
|
3290
|
-
|
|
3264
|
+
s = i;
|
|
3291
3265
|
else {
|
|
3292
3266
|
const d = {};
|
|
3293
3267
|
Array.from(l).forEach(({ value: p, key: k }) => {
|
|
3294
3268
|
xe(d, k, p);
|
|
3295
|
-
}),
|
|
3269
|
+
}), s = JSON.stringify(d);
|
|
3296
3270
|
}
|
|
3297
3271
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
3298
3272
|
const u = new CustomEvent("presubmit", {
|
|
3299
3273
|
detail: {
|
|
3300
|
-
body:
|
|
3274
|
+
body: s
|
|
3301
3275
|
}
|
|
3302
3276
|
});
|
|
3303
3277
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
|
|
@@ -3309,7 +3283,7 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
|
|
|
3309
3283
|
fetch(
|
|
3310
3284
|
this.sendSubmissionsTo === "email" ? h : this.action,
|
|
3311
3285
|
{
|
|
3312
|
-
body:
|
|
3286
|
+
body: s,
|
|
3313
3287
|
headers: r,
|
|
3314
3288
|
method: this.method || "post"
|
|
3315
3289
|
}
|
|
@@ -3361,12 +3335,12 @@ const _o = /* @__PURE__ */ b(Qo, [["render", Zo]]), er = {
|
|
|
3361
3335
|
}
|
|
3362
3336
|
}), ir = ["validate", "action", "method", "name"], sr = {
|
|
3363
3337
|
key: 3,
|
|
3364
|
-
class: "builder-form-error-text pre-
|
|
3338
|
+
class: "builder-form-error-text pre-3q96myty4lk"
|
|
3365
3339
|
};
|
|
3366
|
-
function ar(e, t, n, o, r,
|
|
3340
|
+
function ar(e, t, n, o, r, s) {
|
|
3367
3341
|
var a;
|
|
3368
|
-
const
|
|
3369
|
-
return c(), m("form",
|
|
3342
|
+
const i = y("Block"), l = y("Blocks");
|
|
3343
|
+
return c(), m("form", C({
|
|
3370
3344
|
validate: e.validate,
|
|
3371
3345
|
ref: "formRef",
|
|
3372
3346
|
action: !e.sendWithJs && e.action,
|
|
@@ -3374,35 +3348,35 @@ function ar(e, t, n, o, r, i) {
|
|
|
3374
3348
|
name: e.name,
|
|
3375
3349
|
onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
|
|
3376
3350
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3377
|
-
e.builderBlock && e.builderBlock.children ? (c(!0), m(T, { key: 0 }, V((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (c(), g(
|
|
3351
|
+
e.builderBlock && e.builderBlock.children ? (c(!0), m(T, { key: 0 }, V((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (c(), g(i, {
|
|
3378
3352
|
key: `form-block-${e.idx}`,
|
|
3379
3353
|
block: u,
|
|
3380
3354
|
context: e.builderContext,
|
|
3381
3355
|
registeredComponents: e.builderComponents,
|
|
3382
3356
|
linkComponent: e.builderLinkComponent
|
|
3383
|
-
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) :
|
|
3357
|
+
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : S("", !0),
|
|
3384
3358
|
e.submissionState() === "error" ? (c(), g(l, {
|
|
3385
3359
|
key: 1,
|
|
3386
3360
|
path: "errorMessage",
|
|
3387
3361
|
blocks: e.errorMessage,
|
|
3388
3362
|
context: e.builderContext
|
|
3389
|
-
}, null, 8, ["blocks", "context"])) :
|
|
3363
|
+
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
3390
3364
|
e.submissionState() === "sending" ? (c(), g(l, {
|
|
3391
3365
|
key: 2,
|
|
3392
3366
|
path: "sendingMessage",
|
|
3393
3367
|
blocks: e.sendingMessage,
|
|
3394
3368
|
context: e.builderContext
|
|
3395
|
-
}, null, 8, ["blocks", "context"])) :
|
|
3396
|
-
e.submissionState() === "error" && e.responseData ? (c(), m("pre", sr, te(JSON.stringify(e.responseData, null, 2)), 1)) :
|
|
3369
|
+
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
3370
|
+
e.submissionState() === "error" && e.responseData ? (c(), m("pre", sr, te(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
|
|
3397
3371
|
e.submissionState() === "success" ? (c(), g(l, {
|
|
3398
3372
|
key: 4,
|
|
3399
3373
|
path: "successMessage",
|
|
3400
3374
|
blocks: e.successMessage,
|
|
3401
3375
|
context: e.builderContext
|
|
3402
|
-
}, null, 8, ["blocks", "context"])) :
|
|
3376
|
+
}, null, 8, ["blocks", "context"])) : S("", !0)
|
|
3403
3377
|
], 16, ir);
|
|
3404
3378
|
}
|
|
3405
|
-
const lr = /* @__PURE__ */ b(rr, [["render", ar], ["__scopeId", "data-v-
|
|
3379
|
+
const lr = /* @__PURE__ */ b(rr, [["render", ar], ["__scopeId", "data-v-6e18f21b"]]), cr = {
|
|
3406
3380
|
name: "Form:Input",
|
|
3407
3381
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3408
3382
|
inputs: [
|
|
@@ -3468,8 +3442,8 @@ const lr = /* @__PURE__ */ b(rr, [["render", ar], ["__scopeId", "data-v-489330f7
|
|
|
3468
3442
|
return { isEditing: R, filterAttrs: A };
|
|
3469
3443
|
}
|
|
3470
3444
|
}), ur = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3471
|
-
function pr(e, t, n, o, r,
|
|
3472
|
-
return c(), m("input",
|
|
3445
|
+
function pr(e, t, n, o, r, s) {
|
|
3446
|
+
return c(), m("input", C({
|
|
3473
3447
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3474
3448
|
placeholder: e.placeholder,
|
|
3475
3449
|
type: e.type,
|
|
@@ -3528,18 +3502,18 @@ const mr = /* @__PURE__ */ b(dr, [["render", pr]]), hr = {
|
|
|
3528
3502
|
return { isEditing: R, filterAttrs: A };
|
|
3529
3503
|
}
|
|
3530
3504
|
}), br = ["value", "defaultValue", "name", "required"], gr = ["value"];
|
|
3531
|
-
function yr(e, t, n, o, r,
|
|
3532
|
-
return c(), m("select",
|
|
3505
|
+
function yr(e, t, n, o, r, s) {
|
|
3506
|
+
return c(), m("select", C({
|
|
3533
3507
|
value: e.value,
|
|
3534
3508
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3535
3509
|
defaultValue: e.defaultValue,
|
|
3536
3510
|
name: e.name,
|
|
3537
3511
|
required: e.required
|
|
3538
3512
|
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3539
|
-
(c(!0), m(T, null, V(e.options, (
|
|
3540
|
-
key: `${
|
|
3541
|
-
value:
|
|
3542
|
-
}, te(
|
|
3513
|
+
(c(!0), m(T, null, V(e.options, (i, l) => (c(), m("option", {
|
|
3514
|
+
key: `${i.name}-${l}`,
|
|
3515
|
+
value: i.value
|
|
3516
|
+
}, te(i.name || i.value), 9, gr))), 128))
|
|
3543
3517
|
], 16, br);
|
|
3544
3518
|
}
|
|
3545
3519
|
const kr = /* @__PURE__ */ b(fr, [["render", yr]]), vr = {
|
|
@@ -3567,17 +3541,17 @@ const kr = /* @__PURE__ */ b(fr, [["render", yr]]), vr = {
|
|
|
3567
3541
|
// that only shows if advanced setting is flipped
|
|
3568
3542
|
// TODO: defaultChildren
|
|
3569
3543
|
// canHaveChildren: true,
|
|
3570
|
-
},
|
|
3544
|
+
}, Sr = f({
|
|
3571
3545
|
name: "builder-submit-button",
|
|
3572
3546
|
props: ["attributes", "text"],
|
|
3573
3547
|
data() {
|
|
3574
3548
|
return { filterAttrs: A };
|
|
3575
3549
|
}
|
|
3576
3550
|
});
|
|
3577
|
-
function
|
|
3578
|
-
return c(), m("button",
|
|
3551
|
+
function Cr(e, t, n, o, r, s) {
|
|
3552
|
+
return c(), m("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), te(e.text), 17);
|
|
3579
3553
|
}
|
|
3580
|
-
const Tr = /* @__PURE__ */ b(
|
|
3554
|
+
const Tr = /* @__PURE__ */ b(Sr, [["render", Cr]]), wr = {
|
|
3581
3555
|
name: "Form:TextArea",
|
|
3582
3556
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3583
3557
|
inputs: [{
|
|
@@ -3627,8 +3601,8 @@ const Tr = /* @__PURE__ */ b(Cr, [["render", Sr]]), wr = {
|
|
|
3627
3601
|
return { filterAttrs: A };
|
|
3628
3602
|
}
|
|
3629
3603
|
}), $r = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
3630
|
-
function Rr(e, t, n, o, r,
|
|
3631
|
-
return c(), m("textarea",
|
|
3604
|
+
function Rr(e, t, n, o, r, s) {
|
|
3605
|
+
return c(), m("textarea", C({
|
|
3632
3606
|
placeholder: e.placeholder,
|
|
3633
3607
|
name: e.name,
|
|
3634
3608
|
value: e.value,
|
|
@@ -3664,8 +3638,8 @@ const Br = /* @__PURE__ */ b(Ir, [["render", Rr]]), Er = {
|
|
|
3664
3638
|
return { isEditing: R, filterAttrs: A };
|
|
3665
3639
|
}
|
|
3666
3640
|
}), xr = ["alt", "src"];
|
|
3667
|
-
function Vr(e, t, n, o, r,
|
|
3668
|
-
return c(), m("img",
|
|
3641
|
+
function Vr(e, t, n, o, r, s) {
|
|
3642
|
+
return c(), m("img", C({
|
|
3669
3643
|
style: {
|
|
3670
3644
|
objectFit: e.backgroundSize || "cover",
|
|
3671
3645
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -3827,16 +3801,16 @@ const Ar = /* @__PURE__ */ b(Pr, [["render", Vr]]), Wr = {
|
|
|
3827
3801
|
height: "100%"
|
|
3828
3802
|
}
|
|
3829
3803
|
};
|
|
3830
|
-
function Mr(e, t, n, o, r,
|
|
3831
|
-
var
|
|
3804
|
+
function Mr(e, t, n, o, r, s) {
|
|
3805
|
+
var i, l, a, u, h, d, p;
|
|
3832
3806
|
return c(), m("div", Fr, [
|
|
3833
|
-
z("video",
|
|
3807
|
+
z("video", C({
|
|
3834
3808
|
class: "builder-video",
|
|
3835
3809
|
preload: e.preload || "metadata",
|
|
3836
3810
|
style: {
|
|
3837
3811
|
width: "100%",
|
|
3838
3812
|
height: "100%",
|
|
3839
|
-
...(
|
|
3813
|
+
...(i = e.attributes) == null ? void 0 : i.style,
|
|
3840
3814
|
objectFit: e.fit,
|
|
3841
3815
|
objectPosition: e.position,
|
|
3842
3816
|
// Hack to get object fit to work as expected and
|
|
@@ -3850,7 +3824,7 @@ function Mr(e, t, n, o, r, i) {
|
|
|
3850
3824
|
src: e.video || "no-src",
|
|
3851
3825
|
poster: e.posterImage
|
|
3852
3826
|
}, e.spreadProps), [
|
|
3853
|
-
e.lazyLoad ?
|
|
3827
|
+
e.lazyLoad ? S("", !0) : (c(), m("source", {
|
|
3854
3828
|
key: 0,
|
|
3855
3829
|
type: "video/mp4",
|
|
3856
3830
|
src: e.video
|
|
@@ -3864,18 +3838,18 @@ function Mr(e, t, n, o, r, i) {
|
|
|
3864
3838
|
pointerEvents: "none",
|
|
3865
3839
|
fontSize: "0px"
|
|
3866
3840
|
})
|
|
3867
|
-
}, null, 4)) :
|
|
3841
|
+
}, null, 4)) : S("", !0),
|
|
3868
3842
|
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), m("div", Lr, [
|
|
3869
3843
|
E(e.$slots, "default")
|
|
3870
|
-
])) :
|
|
3844
|
+
])) : S("", !0),
|
|
3871
3845
|
(p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && !e.fitContent ? (c(), m("div", Ur, [
|
|
3872
3846
|
E(e.$slots, "default")
|
|
3873
|
-
])) :
|
|
3847
|
+
])) : S("", !0)
|
|
3874
3848
|
]);
|
|
3875
3849
|
}
|
|
3876
|
-
const
|
|
3850
|
+
const jr = /* @__PURE__ */ b(Nr, [["render", Mr]]), Hr = () => [{
|
|
3877
3851
|
component: zo,
|
|
3878
|
-
...
|
|
3852
|
+
...jo
|
|
3879
3853
|
}, {
|
|
3880
3854
|
component: _o,
|
|
3881
3855
|
...Jo
|
|
@@ -3898,14 +3872,14 @@ const Hr = /* @__PURE__ */ b(Nr, [["render", Mr]]), jr = () => [{
|
|
|
3898
3872
|
component: Ar,
|
|
3899
3873
|
...Er
|
|
3900
3874
|
}, {
|
|
3901
|
-
component:
|
|
3875
|
+
component: jr,
|
|
3902
3876
|
...Wr
|
|
3903
3877
|
}], Re = () => [{
|
|
3904
|
-
component:
|
|
3905
|
-
...
|
|
3878
|
+
component: wt,
|
|
3879
|
+
...So
|
|
3906
3880
|
}, {
|
|
3907
3881
|
component: _n,
|
|
3908
|
-
...
|
|
3882
|
+
...Co
|
|
3909
3883
|
}, {
|
|
3910
3884
|
component: no,
|
|
3911
3885
|
...To
|
|
@@ -3930,7 +3904,7 @@ const Hr = /* @__PURE__ */ b(Nr, [["render", Mr]]), jr = () => [{
|
|
|
3930
3904
|
}, {
|
|
3931
3905
|
component: vo,
|
|
3932
3906
|
...fo
|
|
3933
|
-
}, ...
|
|
3907
|
+
}, ...Hr()], Kr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3934
3908
|
function getAndSetVariantId() {
|
|
3935
3909
|
function setCookie(name, value, days) {
|
|
3936
3910
|
let expires = '';
|
|
@@ -4020,25 +3994,25 @@ const Hr = /* @__PURE__ */ b(Nr, [["render", Mr]]), jr = () => [{
|
|
|
4020
3994
|
thisScriptEl?.remove();
|
|
4021
3995
|
}
|
|
4022
3996
|
return;
|
|
4023
|
-
}`,
|
|
3997
|
+
}`, tt = "builderIoAbTest", nt = "builderIoRenderContent", Z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4024
3998
|
...t,
|
|
4025
3999
|
testVariationId: t.id,
|
|
4026
4000
|
id: e == null ? void 0 : e.id
|
|
4027
4001
|
})), zr = ({
|
|
4028
4002
|
canTrack: e,
|
|
4029
4003
|
content: t
|
|
4030
|
-
}) => !(!(Z(t).length > 0) || !e), Jr = (e) => e === "react" || e === "reactNative",
|
|
4031
|
-
window.${
|
|
4032
|
-
window.${
|
|
4004
|
+
}) => !(!(Z(t).length > 0) || !e), Jr = (e) => e === "react" || e === "reactNative", ot = Jr(x), Gr = () => `
|
|
4005
|
+
window.${tt} = ${Kr}
|
|
4006
|
+
window.${nt} = ${qr}
|
|
4033
4007
|
`, Yr = (e, t) => `
|
|
4034
|
-
window.${
|
|
4035
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4008
|
+
window.${tt}(
|
|
4009
|
+
"${t}",${JSON.stringify(e)}, ${ot}
|
|
4036
4010
|
)`, Qr = ({
|
|
4037
4011
|
contentId: e,
|
|
4038
4012
|
variationId: t
|
|
4039
|
-
}) => `window.${
|
|
4040
|
-
"${t}", "${e}", ${
|
|
4041
|
-
)`,
|
|
4013
|
+
}) => `window.${nt}(
|
|
4014
|
+
"${t}", "${e}", ${ot}
|
|
4015
|
+
)`, rt = f({
|
|
4042
4016
|
render() {
|
|
4043
4017
|
return Pe("script", {
|
|
4044
4018
|
innerHTML: this.scriptStr,
|
|
@@ -4070,10 +4044,10 @@ const Xr = (e, t, n = !0) => {
|
|
|
4070
4044
|
event: e,
|
|
4071
4045
|
target: t
|
|
4072
4046
|
}) => {
|
|
4073
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top,
|
|
4047
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = Be(o / n.width), i = Be(r / n.height);
|
|
4074
4048
|
return {
|
|
4075
|
-
x:
|
|
4076
|
-
y:
|
|
4049
|
+
x: s,
|
|
4050
|
+
y: i
|
|
4077
4051
|
};
|
|
4078
4052
|
}, _r = (e) => {
|
|
4079
4053
|
const t = e.target, n = t && Zr(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
@@ -4092,8 +4066,8 @@ const Xr = (e, t, n = !0) => {
|
|
|
4092
4066
|
}
|
|
4093
4067
|
};
|
|
4094
4068
|
}, ei = (e) => {
|
|
4095
|
-
var
|
|
4096
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((
|
|
4069
|
+
var s;
|
|
4070
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((s = e == null ? void 0 : e.files) == null ? void 0 : s.regular);
|
|
4097
4071
|
let r = "";
|
|
4098
4072
|
if (o && t && n && (r += `
|
|
4099
4073
|
@font-face {
|
|
@@ -4103,16 +4077,16 @@ font-display: fallback;
|
|
|
4103
4077
|
font-weight: 400;
|
|
4104
4078
|
}
|
|
4105
4079
|
`.trim()), e.files)
|
|
4106
|
-
for (const
|
|
4107
|
-
if (!(String(Number(
|
|
4080
|
+
for (const i in e.files) {
|
|
4081
|
+
if (!(String(Number(i)) === i))
|
|
4108
4082
|
continue;
|
|
4109
|
-
const a = e.files[
|
|
4083
|
+
const a = e.files[i];
|
|
4110
4084
|
a && a !== o && (r += `
|
|
4111
4085
|
@font-face {
|
|
4112
4086
|
font-family: "${t}";
|
|
4113
4087
|
src: url('${a}') format('woff2');
|
|
4114
4088
|
font-display: fallback;
|
|
4115
|
-
font-weight: ${
|
|
4089
|
+
font-weight: ${i};
|
|
4116
4090
|
}
|
|
4117
4091
|
`.trim());
|
|
4118
4092
|
}
|
|
@@ -4176,31 +4150,28 @@ font-weight: ${s};
|
|
|
4176
4150
|
[le.key]: e.builderContextSignal
|
|
4177
4151
|
};
|
|
4178
4152
|
},
|
|
4153
|
+
created() {
|
|
4154
|
+
this.runHttpRequests(), this.emitStateUpdate();
|
|
4155
|
+
},
|
|
4179
4156
|
mounted() {
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
if (
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
});
|
|
4194
|
-
}
|
|
4195
|
-
Ot() && !R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4196
|
-
new CustomEvent("initpreviewingbldr")
|
|
4197
|
-
);
|
|
4157
|
+
var e, t;
|
|
4158
|
+
if ($()) {
|
|
4159
|
+
if (R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4160
|
+
new CustomEvent("initeditingbldr")
|
|
4161
|
+
), this.builderContextSignal.content && G(this.canTrack)) {
|
|
4162
|
+
const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id, s = this.apiKey;
|
|
4163
|
+
de({
|
|
4164
|
+
type: "impression",
|
|
4165
|
+
canTrack: !0,
|
|
4166
|
+
contentId: r,
|
|
4167
|
+
apiKey: s,
|
|
4168
|
+
variationId: o !== r ? o : void 0
|
|
4169
|
+
});
|
|
4198
4170
|
}
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
})();
|
|
4171
|
+
Ft() && !R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4172
|
+
new CustomEvent("initpreviewingbldr")
|
|
4173
|
+
);
|
|
4174
|
+
}
|
|
4204
4175
|
},
|
|
4205
4176
|
watch: {
|
|
4206
4177
|
onUpdateHook0: {
|
|
@@ -4210,30 +4181,18 @@ font-weight: ${s};
|
|
|
4210
4181
|
immediate: !0
|
|
4211
4182
|
},
|
|
4212
4183
|
onUpdateHook1: {
|
|
4213
|
-
handler() {
|
|
4214
|
-
this.evaluateJsCode();
|
|
4215
|
-
},
|
|
4216
|
-
immediate: !0
|
|
4217
|
-
},
|
|
4218
|
-
onUpdateHook2: {
|
|
4219
|
-
handler() {
|
|
4220
|
-
this.runHttpRequests();
|
|
4221
|
-
},
|
|
4222
|
-
immediate: !0
|
|
4223
|
-
},
|
|
4224
|
-
onUpdateHook3: {
|
|
4225
4184
|
handler() {
|
|
4226
4185
|
this.emitStateUpdate();
|
|
4227
4186
|
},
|
|
4228
4187
|
immediate: !0
|
|
4229
4188
|
},
|
|
4230
|
-
|
|
4189
|
+
onUpdateHook2: {
|
|
4231
4190
|
handler() {
|
|
4232
4191
|
this.data && this.mergeNewRootState(this.data);
|
|
4233
4192
|
},
|
|
4234
4193
|
immediate: !0
|
|
4235
4194
|
},
|
|
4236
|
-
|
|
4195
|
+
onUpdateHook3: {
|
|
4237
4196
|
handler() {
|
|
4238
4197
|
this.locale && this.mergeNewRootState({
|
|
4239
4198
|
locale: this.locale
|
|
@@ -4261,28 +4220,16 @@ font-weight: ${s};
|
|
|
4261
4220
|
};
|
|
4262
4221
|
},
|
|
4263
4222
|
onUpdateHook1() {
|
|
4264
|
-
var e, t;
|
|
4265
|
-
return {
|
|
4266
|
-
0: (t = (e = this.builderContextSignal.content) == null ? void 0 : e.data) == null ? void 0 : t.jsCode
|
|
4267
|
-
};
|
|
4268
|
-
},
|
|
4269
|
-
onUpdateHook2() {
|
|
4270
|
-
var e, t;
|
|
4271
|
-
return {
|
|
4272
|
-
0: (t = (e = this.builderContextSignal.content) == null ? void 0 : e.data) == null ? void 0 : t.httpRequests
|
|
4273
|
-
};
|
|
4274
|
-
},
|
|
4275
|
-
onUpdateHook3() {
|
|
4276
4223
|
return {
|
|
4277
4224
|
0: this.builderContextSignal.rootState
|
|
4278
4225
|
};
|
|
4279
4226
|
},
|
|
4280
|
-
|
|
4227
|
+
onUpdateHook2() {
|
|
4281
4228
|
return {
|
|
4282
4229
|
0: this.data
|
|
4283
4230
|
};
|
|
4284
4231
|
},
|
|
4285
|
-
|
|
4232
|
+
onUpdateHook3() {
|
|
4286
4233
|
return {
|
|
4287
4234
|
0: this.locale
|
|
4288
4235
|
};
|
|
@@ -4298,7 +4245,7 @@ font-weight: ${s};
|
|
|
4298
4245
|
this.builderContextSignal.rootSetState ? (o = (n = this.builderContextSignal).rootSetState) == null || o.call(n, t) : this.builderContextSignal.rootState = t;
|
|
4299
4246
|
},
|
|
4300
4247
|
mergeNewContent(e) {
|
|
4301
|
-
var n, o, r,
|
|
4248
|
+
var n, o, r, s, i;
|
|
4302
4249
|
const t = {
|
|
4303
4250
|
...this.builderContextSignal.content,
|
|
4304
4251
|
...e,
|
|
@@ -4309,13 +4256,13 @@ font-weight: ${s};
|
|
|
4309
4256
|
meta: {
|
|
4310
4257
|
...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
|
|
4311
4258
|
...e == null ? void 0 : e.meta,
|
|
4312
|
-
breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((
|
|
4259
|
+
breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((i = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : i.breakpoints)
|
|
4313
4260
|
}
|
|
4314
4261
|
};
|
|
4315
4262
|
this.builderContextSignal.content = t;
|
|
4316
4263
|
},
|
|
4317
4264
|
processMessage(e) {
|
|
4318
|
-
return
|
|
4265
|
+
return Ke({
|
|
4319
4266
|
model: this.model,
|
|
4320
4267
|
trustedHosts: this.trustedHosts,
|
|
4321
4268
|
callbacks: {
|
|
@@ -4329,7 +4276,7 @@ font-weight: ${s};
|
|
|
4329
4276
|
});
|
|
4330
4277
|
},
|
|
4331
4278
|
animation: (t) => {
|
|
4332
|
-
|
|
4279
|
+
Xe(t);
|
|
4333
4280
|
},
|
|
4334
4281
|
contentUpdate: (t) => {
|
|
4335
4282
|
this.mergeNewContent(t);
|
|
@@ -4337,28 +4284,13 @@ font-weight: ${s};
|
|
|
4337
4284
|
}
|
|
4338
4285
|
})(e);
|
|
4339
4286
|
},
|
|
4340
|
-
evaluateJsCode() {
|
|
4341
|
-
var t, n;
|
|
4342
|
-
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
4343
|
-
e && G({
|
|
4344
|
-
code: e,
|
|
4345
|
-
context: this.context || {},
|
|
4346
|
-
localState: void 0,
|
|
4347
|
-
rootState: this.builderContextSignal.rootState,
|
|
4348
|
-
rootSetState: this.builderContextSignal.rootSetState,
|
|
4349
|
-
/**
|
|
4350
|
-
* We don't want to cache the result of the JS code, since it's arbitrary side effect code.
|
|
4351
|
-
*/
|
|
4352
|
-
enableCache: !1
|
|
4353
|
-
});
|
|
4354
|
-
},
|
|
4355
4287
|
onClick(e) {
|
|
4356
4288
|
var t, n;
|
|
4357
4289
|
if (this.builderContextSignal.content) {
|
|
4358
4290
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
4359
4291
|
de({
|
|
4360
4292
|
type: "click",
|
|
4361
|
-
canTrack:
|
|
4293
|
+
canTrack: G(this.canTrack),
|
|
4362
4294
|
contentId: r,
|
|
4363
4295
|
apiKey: this.apiKey,
|
|
4364
4296
|
variationId: o !== r ? o : void 0,
|
|
@@ -4375,10 +4307,10 @@ font-weight: ${s};
|
|
|
4375
4307
|
if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !R())
|
|
4376
4308
|
return;
|
|
4377
4309
|
this.httpReqsPending[o] = !0;
|
|
4378
|
-
const
|
|
4310
|
+
const s = r.replace(
|
|
4379
4311
|
/{{([^}]+)}}/g,
|
|
4380
|
-
(
|
|
4381
|
-
|
|
4312
|
+
(i, l) => String(
|
|
4313
|
+
Y({
|
|
4382
4314
|
code: l,
|
|
4383
4315
|
context: this.context || {},
|
|
4384
4316
|
localState: void 0,
|
|
@@ -4388,12 +4320,12 @@ font-weight: ${s};
|
|
|
4388
4320
|
})
|
|
4389
4321
|
)
|
|
4390
4322
|
);
|
|
4391
|
-
|
|
4323
|
+
fetch(s).then((i) => i.json()).then((i) => {
|
|
4392
4324
|
this.mergeNewRootState({
|
|
4393
|
-
[o]:
|
|
4325
|
+
[o]: i
|
|
4394
4326
|
}), this.httpReqsData[o] = !0;
|
|
4395
|
-
}).catch((
|
|
4396
|
-
console.error("error fetching dynamic data", r,
|
|
4327
|
+
}).catch((i) => {
|
|
4328
|
+
console.error("error fetching dynamic data", r, i);
|
|
4397
4329
|
}).finally(() => {
|
|
4398
4330
|
this.httpReqsPending[o] = !1;
|
|
4399
4331
|
});
|
|
@@ -4415,7 +4347,7 @@ font-weight: ${s};
|
|
|
4415
4347
|
);
|
|
4416
4348
|
},
|
|
4417
4349
|
elementRef_onIniteditingbldr(e) {
|
|
4418
|
-
window.addEventListener("message", this.processMessage),
|
|
4350
|
+
window.addEventListener("message", this.processMessage), sn(), He({
|
|
4419
4351
|
...this.locale ? {
|
|
4420
4352
|
locale: this.locale
|
|
4421
4353
|
} : {},
|
|
@@ -4429,7 +4361,7 @@ font-weight: ${s};
|
|
|
4429
4361
|
this.builderContextSignal.componentInfos
|
|
4430
4362
|
).forEach((t) => {
|
|
4431
4363
|
var o;
|
|
4432
|
-
const n =
|
|
4364
|
+
const n = Ot(t);
|
|
4433
4365
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
4434
4366
|
}), window.addEventListener(
|
|
4435
4367
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -4444,21 +4376,21 @@ font-weight: ${s};
|
|
|
4444
4376
|
model: this.model,
|
|
4445
4377
|
apiKey: this.apiKey,
|
|
4446
4378
|
apiVersion: this.builderContextSignal.apiVersion
|
|
4447
|
-
}).then((
|
|
4448
|
-
|
|
4379
|
+
}).then((s) => {
|
|
4380
|
+
s && this.mergeNewContent(s);
|
|
4449
4381
|
});
|
|
4450
4382
|
}
|
|
4451
4383
|
}
|
|
4452
4384
|
});
|
|
4453
|
-
function ai(e, t, n, o, r,
|
|
4454
|
-
var
|
|
4455
|
-
return e.builderContextSignal.content ? (c(), g(K(e.ContentWrapper),
|
|
4385
|
+
function ai(e, t, n, o, r, s) {
|
|
4386
|
+
var i, l, a;
|
|
4387
|
+
return e.builderContextSignal.content ? (c(), g(K(e.ContentWrapper), C({
|
|
4456
4388
|
key: 0,
|
|
4457
4389
|
ref: "elementRef",
|
|
4458
4390
|
onClick: (u) => e.onClick(u),
|
|
4459
|
-
"builder-content-id": (
|
|
4391
|
+
"builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
|
|
4460
4392
|
"builder-model": e.model,
|
|
4461
|
-
|
|
4393
|
+
className: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
|
|
4462
4394
|
onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
|
|
4463
4395
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
4464
4396
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
@@ -4466,7 +4398,7 @@ function ai(e, t, n, o, r, i) {
|
|
|
4466
4398
|
E(e.$slots, "default")
|
|
4467
4399
|
]),
|
|
4468
4400
|
_: 3
|
|
4469
|
-
}, 16, ["onClick", "builder-content-id", "builder-model", "
|
|
4401
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
|
|
4470
4402
|
}
|
|
4471
4403
|
const li = /* @__PURE__ */ b(si, [["render", ai]]), ci = f({
|
|
4472
4404
|
name: "content-styles",
|
|
@@ -4487,9 +4419,9 @@ ${ri(this.isNestedRender)}
|
|
|
4487
4419
|
};
|
|
4488
4420
|
}
|
|
4489
4421
|
});
|
|
4490
|
-
function di(e, t, n, o, r,
|
|
4491
|
-
const
|
|
4492
|
-
return c(), g(
|
|
4422
|
+
function di(e, t, n, o, r, s) {
|
|
4423
|
+
const i = y("InlinedStyles");
|
|
4424
|
+
return c(), g(i, {
|
|
4493
4425
|
id: "builderio-content",
|
|
4494
4426
|
styles: e.injectedStyles,
|
|
4495
4427
|
nonce: e.nonce
|
|
@@ -4500,9 +4432,9 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
|
|
|
4500
4432
|
data: t,
|
|
4501
4433
|
locale: n
|
|
4502
4434
|
}) => {
|
|
4503
|
-
var
|
|
4504
|
-
const o = {}, r = ((
|
|
4505
|
-
return (l = (
|
|
4435
|
+
var s, i, l;
|
|
4436
|
+
const o = {}, r = ((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {};
|
|
4437
|
+
return (l = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || l.forEach((a) => {
|
|
4506
4438
|
a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
|
|
4507
4439
|
}), {
|
|
4508
4440
|
...o,
|
|
@@ -4522,24 +4454,24 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
|
|
|
4522
4454
|
...t
|
|
4523
4455
|
},
|
|
4524
4456
|
meta: e == null ? void 0 : e.meta
|
|
4525
|
-
} : void 0, hi =
|
|
4457
|
+
} : void 0, hi = ct, fi = f({
|
|
4526
4458
|
name: "content-component",
|
|
4527
4459
|
components: {
|
|
4528
4460
|
EnableEditor: li,
|
|
4529
|
-
InlinedScript:
|
|
4461
|
+
InlinedScript: rt,
|
|
4530
4462
|
ContentStyles: ui,
|
|
4531
4463
|
Blocks: M,
|
|
4532
4464
|
DynamicDiv: Q
|
|
4533
4465
|
},
|
|
4534
4466
|
props: [
|
|
4467
|
+
"apiKey",
|
|
4468
|
+
"context",
|
|
4535
4469
|
"content",
|
|
4536
4470
|
"customComponents",
|
|
4537
4471
|
"model",
|
|
4538
4472
|
"data",
|
|
4539
4473
|
"locale",
|
|
4540
|
-
"context",
|
|
4541
4474
|
"canTrack",
|
|
4542
|
-
"apiKey",
|
|
4543
4475
|
"apiVersion",
|
|
4544
4476
|
"blocksWrapper",
|
|
4545
4477
|
"blocksWrapperProps",
|
|
@@ -4566,11 +4498,11 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
|
|
|
4566
4498
|
...Re(),
|
|
4567
4499
|
...((n = this.customComponents) == null ? void 0 : n.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
|
|
4568
4500
|
].reduce(
|
|
4569
|
-
(r, { component:
|
|
4501
|
+
(r, { component: s, ...i }) => ({
|
|
4570
4502
|
...r,
|
|
4571
|
-
[
|
|
4572
|
-
component: hi(
|
|
4573
|
-
...ee(
|
|
4503
|
+
[i.name]: {
|
|
4504
|
+
component: hi(s),
|
|
4505
|
+
...ee(i)
|
|
4574
4506
|
}
|
|
4575
4507
|
}),
|
|
4576
4508
|
{}
|
|
@@ -4595,9 +4527,9 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
|
|
|
4595
4527
|
...Re(),
|
|
4596
4528
|
...((o = this.customComponents) == null ? void 0 : o.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
|
|
4597
4529
|
].reduce(
|
|
4598
|
-
(r, { component:
|
|
4530
|
+
(r, { component: s, ...i }) => ({
|
|
4599
4531
|
...r,
|
|
4600
|
-
[
|
|
4532
|
+
[i.name]: ee(i)
|
|
4601
4533
|
}),
|
|
4602
4534
|
{}
|
|
4603
4535
|
),
|
|
@@ -4617,15 +4549,36 @@ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
|
|
|
4617
4549
|
}
|
|
4618
4550
|
};
|
|
4619
4551
|
},
|
|
4552
|
+
created() {
|
|
4553
|
+
var t, n;
|
|
4554
|
+
this.apiKey || P.error(
|
|
4555
|
+
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4556
|
+
);
|
|
4557
|
+
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
4558
|
+
e && Y({
|
|
4559
|
+
code: e,
|
|
4560
|
+
context: this.context || {},
|
|
4561
|
+
localState: void 0,
|
|
4562
|
+
rootState: this.builderContextSignal.rootState,
|
|
4563
|
+
rootSetState: (o) => {
|
|
4564
|
+
this.builderContextSignal.rootState = o;
|
|
4565
|
+
},
|
|
4566
|
+
isExpression: !1,
|
|
4567
|
+
/**
|
|
4568
|
+
* We don't want to cache the result of the JS code, since it's arbitrary side effect code.
|
|
4569
|
+
*/
|
|
4570
|
+
enableCache: !1
|
|
4571
|
+
});
|
|
4572
|
+
},
|
|
4620
4573
|
methods: {
|
|
4621
4574
|
contentSetState(e) {
|
|
4622
4575
|
this.builderContextSignal.rootState = e;
|
|
4623
4576
|
}
|
|
4624
4577
|
}
|
|
4625
4578
|
});
|
|
4626
|
-
function bi(e, t, n, o, r,
|
|
4627
|
-
const
|
|
4628
|
-
return c(), g(u,
|
|
4579
|
+
function bi(e, t, n, o, r, s) {
|
|
4580
|
+
const i = y("InlinedScript"), l = y("ContentStyles"), a = y("Blocks"), u = y("EnableEditor");
|
|
4581
|
+
return c(), g(u, C({
|
|
4629
4582
|
nonce: e.nonce,
|
|
4630
4583
|
content: e.content,
|
|
4631
4584
|
data: e.data,
|
|
@@ -4644,12 +4597,12 @@ function bi(e, t, n, o, r, i) {
|
|
|
4644
4597
|
default: N(() => {
|
|
4645
4598
|
var h, d, p, k, v, F, X;
|
|
4646
4599
|
return [
|
|
4647
|
-
e.isSsrAbTest ? (c(), g(
|
|
4600
|
+
e.isSsrAbTest ? (c(), g(i, {
|
|
4648
4601
|
key: 0,
|
|
4649
4602
|
id: "builderio-variant-visibility",
|
|
4650
4603
|
scriptStr: e.scriptStr,
|
|
4651
4604
|
nonce: e.nonce || ""
|
|
4652
|
-
}, null, 8, ["scriptStr", "nonce"])) :
|
|
4605
|
+
}, null, 8, ["scriptStr", "nonce"])) : S("", !0),
|
|
4653
4606
|
e.TARGET !== "reactNative" ? (c(), g(l, {
|
|
4654
4607
|
key: 1,
|
|
4655
4608
|
nonce: e.nonce || "",
|
|
@@ -4657,7 +4610,7 @@ function bi(e, t, n, o, r, i) {
|
|
|
4657
4610
|
contentId: (h = e.builderContextSignal.content) == null ? void 0 : h.id,
|
|
4658
4611
|
cssCode: (p = (d = e.builderContextSignal.content) == null ? void 0 : d.data) == null ? void 0 : p.cssCode,
|
|
4659
4612
|
customFonts: (v = (k = e.builderContextSignal.content) == null ? void 0 : k.data) == null ? void 0 : v.customFonts
|
|
4660
|
-
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) :
|
|
4613
|
+
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
|
|
4661
4614
|
I(a, {
|
|
4662
4615
|
blocks: (X = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : X.blocks,
|
|
4663
4616
|
context: e.builderContextSignal,
|
|
@@ -4672,7 +4625,7 @@ function bi(e, t, n, o, r, i) {
|
|
|
4672
4625
|
const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
|
|
4673
4626
|
name: "content-variants",
|
|
4674
4627
|
components: {
|
|
4675
|
-
InlinedScript:
|
|
4628
|
+
InlinedScript: rt,
|
|
4676
4629
|
InlinedStyles: ke,
|
|
4677
4630
|
ContentComponent: gi
|
|
4678
4631
|
},
|
|
@@ -4699,7 +4652,7 @@ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
|
|
|
4699
4652
|
data() {
|
|
4700
4653
|
return {
|
|
4701
4654
|
shouldRenderVariants: zr({
|
|
4702
|
-
canTrack:
|
|
4655
|
+
canTrack: G(this.canTrack),
|
|
4703
4656
|
content: this.content
|
|
4704
4657
|
}),
|
|
4705
4658
|
TARGET: x,
|
|
@@ -4728,34 +4681,34 @@ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
|
|
|
4728
4681
|
return this.shouldRenderVariants ? {
|
|
4729
4682
|
...this.content,
|
|
4730
4683
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
4731
|
-
} :
|
|
4684
|
+
} : pn({
|
|
4732
4685
|
item: this.content,
|
|
4733
|
-
canTrack:
|
|
4686
|
+
canTrack: G(this.canTrack)
|
|
4734
4687
|
});
|
|
4735
4688
|
}
|
|
4736
4689
|
}
|
|
4737
4690
|
});
|
|
4738
|
-
function ki(e, t, n, o, r,
|
|
4739
|
-
const
|
|
4691
|
+
function ki(e, t, n, o, r, s) {
|
|
4692
|
+
const i = y("InlinedScript"), l = y("InlinedStyles"), a = y("ContentComponent");
|
|
4740
4693
|
return c(), m(T, null, [
|
|
4741
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (c(), g(
|
|
4694
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (c(), g(i, {
|
|
4742
4695
|
key: 0,
|
|
4743
4696
|
id: "builderio-init-variants-fns",
|
|
4744
4697
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
4745
4698
|
nonce: e.nonce || ""
|
|
4746
|
-
}, null, 8, ["scriptStr", "nonce"])) :
|
|
4699
|
+
}, null, 8, ["scriptStr", "nonce"])) : S("", !0),
|
|
4747
4700
|
e.shouldRenderVariants ? (c(), m(T, { key: 1 }, [
|
|
4748
4701
|
I(l, {
|
|
4749
4702
|
id: "builderio-variants",
|
|
4750
4703
|
styles: e.hideVariantsStyleString,
|
|
4751
4704
|
nonce: e.nonce || ""
|
|
4752
4705
|
}, null, 8, ["styles", "nonce"]),
|
|
4753
|
-
I(
|
|
4706
|
+
I(i, {
|
|
4754
4707
|
id: "builderio-variants-visibility",
|
|
4755
4708
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
4756
4709
|
nonce: e.nonce || ""
|
|
4757
4710
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
4758
|
-
(c(!0), m(T, null, V(e.getVariants(e.content), (u, h) => (c(), g(a,
|
|
4711
|
+
(c(!0), m(T, null, V(e.getVariants(e.content), (u, h) => (c(), g(a, C({
|
|
4759
4712
|
key: u.testVariationId,
|
|
4760
4713
|
isNestedRender: e.isNestedRender,
|
|
4761
4714
|
nonce: e.nonce,
|
|
@@ -4778,8 +4731,8 @@ function ki(e, t, n, o, r, i) {
|
|
|
4778
4731
|
contentWrapperProps: e.contentWrapperProps,
|
|
4779
4732
|
trustedHosts: e.trustedHosts
|
|
4780
4733
|
}, {}), null, 16, ["isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
4781
|
-
], 64)) :
|
|
4782
|
-
I(a,
|
|
4734
|
+
], 64)) : S("", !0),
|
|
4735
|
+
I(a, C({
|
|
4783
4736
|
nonce: e.nonce,
|
|
4784
4737
|
isNestedRender: e.isNestedRender,
|
|
4785
4738
|
content: e.defaultContent,
|
|
@@ -4805,7 +4758,7 @@ function ki(e, t, n, o, r, i) {
|
|
|
4805
4758
|
}), null, 16, ["nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4806
4759
|
], 64);
|
|
4807
4760
|
}
|
|
4808
|
-
const vi = /* @__PURE__ */ b(yi, [["render", ki]]),
|
|
4761
|
+
const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
|
|
4809
4762
|
builderContextValue: e,
|
|
4810
4763
|
symbol: t
|
|
4811
4764
|
}) => {
|
|
@@ -4823,7 +4776,7 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Ci = async ({
|
|
|
4823
4776
|
}).catch((n) => {
|
|
4824
4777
|
P.error("Could not fetch symbol content: ", n);
|
|
4825
4778
|
});
|
|
4826
|
-
},
|
|
4779
|
+
}, Ci = f({
|
|
4827
4780
|
name: "builder-symbol",
|
|
4828
4781
|
components: { ContentVariants: vi, DynamicDiv: Q },
|
|
4829
4782
|
props: [
|
|
@@ -4874,7 +4827,7 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Ci = async ({
|
|
|
4874
4827
|
},
|
|
4875
4828
|
methods: {
|
|
4876
4829
|
setContent() {
|
|
4877
|
-
this.contentToUse ||
|
|
4830
|
+
this.contentToUse || Si({
|
|
4878
4831
|
symbol: this.symbol,
|
|
4879
4832
|
builderContextValue: this.builderContext
|
|
4880
4833
|
}).then((e) => {
|
|
@@ -4883,11 +4836,11 @@ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Ci = async ({
|
|
|
4883
4836
|
}
|
|
4884
4837
|
}
|
|
4885
4838
|
});
|
|
4886
|
-
function Ti(e, t, n, o, r,
|
|
4839
|
+
function Ti(e, t, n, o, r, s) {
|
|
4887
4840
|
var l, a, u, h, d;
|
|
4888
|
-
const
|
|
4889
|
-
return c(), m("div",
|
|
4890
|
-
I(
|
|
4841
|
+
const i = y("ContentVariants");
|
|
4842
|
+
return c(), m("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4843
|
+
I(i, {
|
|
4891
4844
|
nonce: e.builderContext.nonce,
|
|
4892
4845
|
isNestedRender: !0,
|
|
4893
4846
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -4911,7 +4864,7 @@ function Ti(e, t, n, o, r, i) {
|
|
|
4911
4864
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
4912
4865
|
], 16);
|
|
4913
4866
|
}
|
|
4914
|
-
const wi = /* @__PURE__ */ b(
|
|
4867
|
+
const wi = /* @__PURE__ */ b(Ci, [["render", Ti]]);
|
|
4915
4868
|
export {
|
|
4916
4869
|
Ni as A,
|
|
4917
4870
|
ye as B,
|
|
@@ -4920,32 +4873,32 @@ export {
|
|
|
4920
4873
|
uo as I,
|
|
4921
4874
|
ho as S,
|
|
4922
4875
|
Mo as T,
|
|
4923
|
-
|
|
4876
|
+
jr as V,
|
|
4924
4877
|
ke as _,
|
|
4925
4878
|
Fi as a,
|
|
4926
4879
|
ge as b,
|
|
4927
4880
|
Ai as c,
|
|
4928
4881
|
b as d,
|
|
4929
|
-
|
|
4882
|
+
Y as e,
|
|
4930
4883
|
Wi as f,
|
|
4931
4884
|
Yn as g,
|
|
4932
4885
|
_ as h,
|
|
4933
4886
|
le as i,
|
|
4934
|
-
|
|
4887
|
+
wt as j,
|
|
4935
4888
|
wi as k,
|
|
4936
4889
|
M as l,
|
|
4937
4890
|
vi as m,
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4891
|
+
Ft as n,
|
|
4892
|
+
Ot as o,
|
|
4893
|
+
We as p,
|
|
4941
4894
|
xi as q,
|
|
4942
|
-
|
|
4895
|
+
Lt as r,
|
|
4943
4896
|
Ei as s,
|
|
4944
4897
|
Pi as t,
|
|
4945
4898
|
Vi as u,
|
|
4946
4899
|
vn as v,
|
|
4947
4900
|
hi as w,
|
|
4948
|
-
|
|
4901
|
+
Sn as x,
|
|
4949
4902
|
be as y,
|
|
4950
4903
|
Bi as z
|
|
4951
4904
|
};
|