@builder.io/sdk-vue 1.0.26 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{block-styles-SuD_yhea.js → block-styles-5vJtIFGc.js} +1 -1
- package/lib/browser/{block-styles-let8Rhzk.cjs → block-styles-LT72luTT.cjs} +1 -1
- package/lib/browser/{block-wrapper-RudvKrHB.js → block-wrapper-JrLSq3J2.js} +3 -3
- package/lib/browser/{block-wrapper-zzKCO9bp.cjs → block-wrapper-a_8x6uWh.cjs} +1 -1
- package/lib/browser/{component-ref-dxP-HKxF.js → component-ref-gxDw0wuA.js} +2 -2
- package/lib/browser/{component-ref-1YUrmxmi.cjs → component-ref-iTvdhu8t.cjs} +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-YufAWX1_.cjs → get-block-properties-eTge7Psf.cjs} +1 -1
- package/lib/browser/{get-block-properties-o_B_U15Z.js → get-block-properties-kzs3bKSe.js} +1 -1
- package/lib/browser/helpers/flatten.d.ts +10 -0
- package/lib/browser/{index-4eR1NNNI.cjs → index-7ZQyrM-R.cjs} +19 -19
- package/lib/browser/{index-ai-IaN6e.js → index-sDts8rvf.js} +433 -426
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block-8ZYb0CgR.js → repeated-block-Qlvgzgy_.js} +2 -2
- package/lib/browser/{repeated-block-PEOUpaCW.cjs → repeated-block-VOp3bqi_.cjs} +1 -1
- package/lib/{node/block-styles-REhu2k86.js → edge/block-styles-AYBXOYOn.js} +1 -1
- package/lib/edge/{block-styles-FTQsSIJG.cjs → block-styles-W7NZdgo_.cjs} +1 -1
- package/lib/edge/{block-wrapper-AfWYrz3V.js → block-wrapper-OIDhZ8QC.js} +3 -3
- package/lib/{node/block-wrapper-ikudgCJL.cjs → edge/block-wrapper-rvM_UKzu.cjs} +1 -1
- package/lib/{node/component-ref-Iye3LDnP.cjs → edge/component-ref-dNZrnHbg.cjs} +1 -1
- package/lib/{node/component-ref-OWsrXBr1.js → edge/component-ref-rBP7Enzc.js} +2 -2
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-mh8kotIB.js → get-block-properties-TQklEtas.js} +1 -1
- package/lib/edge/{get-block-properties-nUfSEh8A.cjs → get-block-properties-VeBLUsdk.cjs} +1 -1
- package/lib/edge/helpers/flatten.d.ts +10 -0
- package/lib/edge/{index-OnAzQ3ND.js → index-QWsu5MiN.js} +602 -595
- package/lib/edge/{index-hoW3Tjqe.cjs → index-iGyGCnH8.cjs} +28 -28
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +1 -1
- package/lib/edge/{repeated-block-9b5CPsPv.js → repeated-block-Ge8TbIKG.js} +2 -2
- package/lib/edge/{repeated-block-4ixCSVr5.cjs → repeated-block-OubyYvC0.cjs} +1 -1
- package/lib/node/{block-styles-yeJ_u7cL.cjs → block-styles-Iwegahoe.cjs} +1 -1
- package/lib/{edge/block-styles-axfNX-fb.js → node/block-styles-rm11zBuW.js} +1 -1
- package/lib/{edge/block-wrapper-hAiH9AX-.cjs → node/block-wrapper-gmX-LBXN.cjs} +1 -1
- package/lib/node/{block-wrapper-w5xUhyXo.js → block-wrapper-srcEZrVN.js} +3 -3
- package/lib/{edge/component-ref-yAeEkKjC.cjs → node/component-ref-WoJnhrB7.cjs} +1 -1
- package/lib/{edge/component-ref-MqAJ4Cz0.js → node/component-ref-fhwnMZz8.js} +2 -2
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-CY4DQbyG.js → get-block-properties-NQY7lR-2.js} +1 -1
- package/lib/node/{get-block-properties-iGEkRig7.cjs → get-block-properties-VZy5JLJH.cjs} +1 -1
- package/lib/node/helpers/flatten.d.ts +10 -0
- package/lib/node/{index-iHu51wZr.js → index-551oCh4n.js} +13 -6
- package/lib/node/{index-yy49S2Om.cjs → index-cjjbqLNI.cjs} +3 -3
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +1 -1
- package/lib/node/{repeated-block-qX5c7KTy.js → repeated-block-UcyfQ95X.js} +2 -2
- package/lib/node/{repeated-block-iBS3dbbu.cjs → repeated-block-cGtcw64F.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var dt = Object.defineProperty;
|
|
2
|
+
var ut = (e, t, n) => t in e ? dt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var ne = (e, t, n) => (ut(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import "./style.css";
|
|
5
|
-
import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as $, createBlock as k, resolveDynamicComponent as H, mergeProps as w, toHandlers as x, withCtx as B, renderSlot as P, resolveComponent as y, createTextVNode as
|
|
6
|
-
const
|
|
5
|
+
import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as $, createBlock as k, resolveDynamicComponent as H, mergeProps as w, toHandlers as x, withCtx as B, renderSlot as P, resolveComponent as y, createTextVNode as pt, toDisplayString as te, defineAsyncComponent as D, createVNode as E, renderList as O, createCommentVNode as S, h as Ee, createElementVNode as _, normalizeStyle as K, normalizeClass as de, markRaw as mt } from "vue";
|
|
6
|
+
const ht = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ft = (e) => typeof e == "string" && ht.has(e.toLowerCase());
|
|
7
7
|
function W(e = {}, t, n) {
|
|
8
8
|
const o = {};
|
|
9
9
|
for (const s in e) {
|
|
@@ -14,11 +14,11 @@ function W(e = {}, t, n) {
|
|
|
14
14
|
}
|
|
15
15
|
return o;
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const bt = f({
|
|
18
18
|
name: "dynamic-renderer",
|
|
19
19
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
20
20
|
data() {
|
|
21
|
-
return { isEmptyElement:
|
|
21
|
+
return { isEmptyElement: ft };
|
|
22
22
|
}
|
|
23
23
|
}), b = (e, t) => {
|
|
24
24
|
const n = e.__vccOpts || e;
|
|
@@ -26,7 +26,7 @@ const ft = f({
|
|
|
26
26
|
n[o] = s;
|
|
27
27
|
return n;
|
|
28
28
|
};
|
|
29
|
-
function
|
|
29
|
+
function gt(e, t, n, o, s, r) {
|
|
30
30
|
return e.isEmptyElement(e.TagName) ? (u(), k(H(e.TagName), w({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (u(), h($, { key: 0 }, [
|
|
31
31
|
typeof e.TagName == "string" ? (u(), k(H(e.TagName), w({ key: 0 }, e.attributes, x(e.actionAttributes)), {
|
|
32
32
|
default: B(() => [
|
|
@@ -41,10 +41,10 @@ function bt(e, t, n, o, s, r) {
|
|
|
41
41
|
}, 16))
|
|
42
42
|
], 64));
|
|
43
43
|
}
|
|
44
|
-
const ue = /* @__PURE__ */ b(
|
|
44
|
+
const ue = /* @__PURE__ */ b(bt, [["render", gt]]), fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
45
45
|
__proto__: null,
|
|
46
46
|
default: ue
|
|
47
|
-
}, Symbol.toStringTag, { value: "Module" })), V = "vue",
|
|
47
|
+
}, Symbol.toStringTag, { value: "Module" })), V = "vue", Z = () => {
|
|
48
48
|
switch (V) {
|
|
49
49
|
case "react":
|
|
50
50
|
case "reactNative":
|
|
@@ -57,7 +57,7 @@ const ue = /* @__PURE__ */ b(ft, [["render", bt]]), hr = /* @__PURE__ */ Object.
|
|
|
57
57
|
case "angular":
|
|
58
58
|
return "class";
|
|
59
59
|
}
|
|
60
|
-
},
|
|
60
|
+
}, yt = f({
|
|
61
61
|
name: "builder-button",
|
|
62
62
|
components: { DynamicRenderer: ue },
|
|
63
63
|
props: [
|
|
@@ -74,7 +74,7 @@ const ue = /* @__PURE__ */ b(ft, [["render", bt]]), hr = /* @__PURE__ */ Object.
|
|
|
74
74
|
attrs() {
|
|
75
75
|
return {
|
|
76
76
|
...W(this.attributes, "v-on:", !1),
|
|
77
|
-
[
|
|
77
|
+
[Z()]: `${this.link ? "" : "builder-button"} ${this.attributes[Z()] || ""}`,
|
|
78
78
|
...this.link ? {
|
|
79
79
|
href: this.link,
|
|
80
80
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -86,7 +86,7 @@ const ue = /* @__PURE__ */ b(ft, [["render", bt]]), hr = /* @__PURE__ */ Object.
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
|
-
function
|
|
89
|
+
function kt(e, t, n, o, s, r) {
|
|
90
90
|
const i = y("dynamic-renderer");
|
|
91
91
|
return u(), k(i, {
|
|
92
92
|
attributes: e.attrs(),
|
|
@@ -94,12 +94,12 @@ function yt(e, t, n, o, s, r) {
|
|
|
94
94
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
95
95
|
}, {
|
|
96
96
|
default: B(() => [
|
|
97
|
-
|
|
97
|
+
pt(te(e.text), 1)
|
|
98
98
|
]),
|
|
99
99
|
_: 1
|
|
100
100
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
101
101
|
}
|
|
102
|
-
const
|
|
102
|
+
const vt = /* @__PURE__ */ b(yt, [["render", kt]]), St = Symbol(), ie = {
|
|
103
103
|
Builder: {
|
|
104
104
|
content: null,
|
|
105
105
|
context: {},
|
|
@@ -114,12 +114,12 @@ const kt = /* @__PURE__ */ b(gt, [["render", yt]]), vt = Symbol(), ae = {
|
|
|
114
114
|
BlocksWrapper: "div",
|
|
115
115
|
BlocksWrapperProps: {}
|
|
116
116
|
},
|
|
117
|
-
key: vt
|
|
118
|
-
}, St = Symbol(), Pe = {
|
|
119
|
-
Components: { registeredComponents: {} },
|
|
120
117
|
key: St
|
|
118
|
+
}, Ct = Symbol(), Pe = {
|
|
119
|
+
Components: { registeredComponents: {} },
|
|
120
|
+
key: Ct
|
|
121
121
|
};
|
|
122
|
-
function
|
|
122
|
+
function wt(e) {
|
|
123
123
|
var t;
|
|
124
124
|
return {
|
|
125
125
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -130,36 +130,36 @@ function Ct(e) {
|
|
|
130
130
|
builderBlock: e
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
const
|
|
134
|
-
log: (...e) => console.log(
|
|
135
|
-
error: (...e) => console.error(
|
|
136
|
-
warn: (...e) => console.warn(
|
|
137
|
-
debug: (...e) => console.debug(
|
|
133
|
+
const Q = "[Builder.io]: ", R = {
|
|
134
|
+
log: (...e) => console.log(Q, ...e),
|
|
135
|
+
error: (...e) => console.error(Q, ...e),
|
|
136
|
+
warn: (...e) => console.warn(Q, ...e),
|
|
137
|
+
debug: (...e) => console.debug(Q, ...e)
|
|
138
138
|
};
|
|
139
139
|
function T() {
|
|
140
140
|
return typeof window < "u" && typeof document < "u";
|
|
141
141
|
}
|
|
142
|
-
const
|
|
142
|
+
const Tt = (e) => {
|
|
143
143
|
const t = {};
|
|
144
144
|
return e.forEach((n, o) => {
|
|
145
145
|
t[o] = n;
|
|
146
146
|
}), t;
|
|
147
|
-
}, xe = (e) => e instanceof URLSearchParams ?
|
|
148
|
-
function
|
|
147
|
+
}, xe = (e) => e instanceof URLSearchParams ? Tt(e) : e, Ve = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
148
|
+
function $t() {
|
|
149
149
|
return T() && window.self !== window.top;
|
|
150
150
|
}
|
|
151
151
|
function I(e) {
|
|
152
|
-
return
|
|
152
|
+
return $t() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
153
153
|
Ve(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const It = () => {
|
|
156
156
|
if (T()) {
|
|
157
157
|
const e = new URL(location.href);
|
|
158
158
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
159
159
|
} else
|
|
160
160
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
161
|
-
},
|
|
162
|
-
const e =
|
|
161
|
+
}, Rt = () => typeof navigator == "object" && navigator.userAgent || "", Ae = () => {
|
|
162
|
+
const e = Rt(), t = {
|
|
163
163
|
Android() {
|
|
164
164
|
return e.match(/Android/i);
|
|
165
165
|
},
|
|
@@ -178,13 +178,13 @@ const $t = () => {
|
|
|
178
178
|
any() {
|
|
179
179
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || V === "reactNative";
|
|
180
180
|
}
|
|
181
|
-
}, n = e.match(/Tablet|iPad/i), o =
|
|
181
|
+
}, n = e.match(/Tablet|iPad/i), o = It();
|
|
182
182
|
return {
|
|
183
183
|
urlPath: o == null ? void 0 : o.pathname,
|
|
184
184
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
185
185
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
186
186
|
};
|
|
187
|
-
},
|
|
187
|
+
}, Et = ({
|
|
188
188
|
builder: e,
|
|
189
189
|
context: t,
|
|
190
190
|
event: n,
|
|
@@ -196,12 +196,12 @@ const $t = () => {
|
|
|
196
196
|
builder: e,
|
|
197
197
|
context: t,
|
|
198
198
|
event: n
|
|
199
|
-
}),
|
|
199
|
+
}), Pt = () => ({
|
|
200
200
|
isEditing: I(),
|
|
201
201
|
isBrowser: T(),
|
|
202
202
|
isServer: !T(),
|
|
203
203
|
getUserAttributes: () => Ae()
|
|
204
|
-
}),
|
|
204
|
+
}), xt = (e, {
|
|
205
205
|
isExpression: t = !0
|
|
206
206
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ye = ({
|
|
207
207
|
code: e,
|
|
@@ -212,7 +212,7 @@ const $t = () => {
|
|
|
212
212
|
rootSetState: r,
|
|
213
213
|
rootState: i
|
|
214
214
|
}) => {
|
|
215
|
-
const a =
|
|
215
|
+
const a = Et({
|
|
216
216
|
builder: t,
|
|
217
217
|
context: n,
|
|
218
218
|
event: o,
|
|
@@ -250,17 +250,17 @@ function Be({
|
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
const U = (e) => e != null;
|
|
253
|
-
function
|
|
253
|
+
function Vt() {
|
|
254
254
|
var e;
|
|
255
255
|
return typeof process < "u" && U((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const At = () => {
|
|
258
258
|
var o;
|
|
259
|
-
if (!
|
|
259
|
+
if (!Vt())
|
|
260
260
|
return !1;
|
|
261
261
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
262
262
|
return e && t && !n ? (R.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
263
|
-
},
|
|
263
|
+
}, Bt = (e) => (T() || At(), ye(e)), A = class A {
|
|
264
264
|
static getCacheKey(t) {
|
|
265
265
|
return JSON.stringify({
|
|
266
266
|
...t,
|
|
@@ -278,9 +278,9 @@ const Vt = () => {
|
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
|
|
281
|
+
ne(A, "cacheLimit", 20), ne(A, "cache", /* @__PURE__ */ new Map());
|
|
282
282
|
let L = A;
|
|
283
|
-
function
|
|
283
|
+
function ee({
|
|
284
284
|
code: e,
|
|
285
285
|
context: t,
|
|
286
286
|
localState: n,
|
|
@@ -293,10 +293,10 @@ function te({
|
|
|
293
293
|
if (e === "")
|
|
294
294
|
return;
|
|
295
295
|
const l = {
|
|
296
|
-
code:
|
|
296
|
+
code: xt(e, {
|
|
297
297
|
isExpression: i
|
|
298
298
|
}),
|
|
299
|
-
builder:
|
|
299
|
+
builder: Pt(),
|
|
300
300
|
context: t,
|
|
301
301
|
event: r,
|
|
302
302
|
rootSetState: s,
|
|
@@ -309,7 +309,7 @@ function te({
|
|
|
309
309
|
return m.value;
|
|
310
310
|
}
|
|
311
311
|
try {
|
|
312
|
-
const d =
|
|
312
|
+
const d = Bt(l);
|
|
313
313
|
if (a) {
|
|
314
314
|
const m = L.getCacheKey(l);
|
|
315
315
|
L.setCachedValue(m, d);
|
|
@@ -328,7 +328,7 @@ const q = (e) => JSON.parse(JSON.stringify(e)), We = (e, t, n) => {
|
|
|
328
328
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
329
329
|
return o.slice(0, -1).reduce((s, r, i) => Object(s[r]) === s[r] ? s[r] : s[r] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
330
330
|
};
|
|
331
|
-
const
|
|
331
|
+
const Wt = ({
|
|
332
332
|
block: e,
|
|
333
333
|
context: t,
|
|
334
334
|
localState: n,
|
|
@@ -347,7 +347,7 @@ const Bt = ({
|
|
|
347
347
|
}
|
|
348
348
|
};
|
|
349
349
|
for (const a in e.bindings) {
|
|
350
|
-
const l = e.bindings[a], d =
|
|
350
|
+
const l = e.bindings[a], d = ee({
|
|
351
351
|
code: l,
|
|
352
352
|
localState: n,
|
|
353
353
|
rootState: o,
|
|
@@ -368,7 +368,7 @@ function Ne({
|
|
|
368
368
|
rootSetState: r
|
|
369
369
|
}) {
|
|
370
370
|
const i = e;
|
|
371
|
-
return n ?
|
|
371
|
+
return n ? Wt({
|
|
372
372
|
block: i,
|
|
373
373
|
localState: o,
|
|
374
374
|
rootState: s,
|
|
@@ -376,7 +376,7 @@ function Ne({
|
|
|
376
376
|
context: t
|
|
377
377
|
}) : i;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function Nt(e, t, n = {}) {
|
|
380
380
|
let o, s, r, i = null, a = 0;
|
|
381
381
|
const l = function() {
|
|
382
382
|
a = n.leading === !1 ? 0 : Date.now(), i = null, r = e.apply(o, s), i || (o = s = null);
|
|
@@ -399,14 +399,14 @@ function j(e, ...t) {
|
|
|
399
399
|
return n;
|
|
400
400
|
}
|
|
401
401
|
const Fe = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
402
|
-
function
|
|
402
|
+
function Ft(e) {
|
|
403
403
|
for (const t of e)
|
|
404
404
|
switch (t.trigger) {
|
|
405
405
|
case "pageLoad":
|
|
406
406
|
Le(t);
|
|
407
407
|
break;
|
|
408
408
|
case "scrollInView":
|
|
409
|
-
|
|
409
|
+
Ut(t);
|
|
410
410
|
break;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
@@ -414,12 +414,12 @@ function Oe(e) {
|
|
|
414
414
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
415
415
|
}
|
|
416
416
|
function Ue(e, t) {
|
|
417
|
-
const n =
|
|
417
|
+
const n = Ot(e), o = getComputedStyle(t), s = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, i = [s, r];
|
|
418
418
|
for (const a of i)
|
|
419
419
|
for (const l of n)
|
|
420
420
|
l in a || (a[l] = o[l]);
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function Ot(e) {
|
|
423
423
|
const t = [];
|
|
424
424
|
for (const n of e.steps)
|
|
425
425
|
for (const o in n.styles)
|
|
@@ -440,7 +440,7 @@ function Le(e) {
|
|
|
440
440
|
});
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Ut(e) {
|
|
444
444
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
445
445
|
if (!t.length) {
|
|
446
446
|
Oe(e.elementId || e.id || "");
|
|
@@ -456,7 +456,7 @@ function Ot(e) {
|
|
|
456
456
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
457
457
|
})) : e.repeat && o && !s && !a(n) && (o = !1, j(n.style, e.steps[0].styles));
|
|
458
458
|
}
|
|
459
|
-
const i =
|
|
459
|
+
const i = Nt(r, 200, {
|
|
460
460
|
leading: !1
|
|
461
461
|
});
|
|
462
462
|
function a(m) {
|
|
@@ -475,31 +475,31 @@ function Ot(e) {
|
|
|
475
475
|
}), r();
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
|
-
const
|
|
478
|
+
const Lt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Me = (e) => Object.entries(e).map(([n, o]) => {
|
|
479
479
|
if (typeof o == "string")
|
|
480
|
-
return `${
|
|
481
|
-
}).filter(U),
|
|
482
|
-
`),
|
|
480
|
+
return `${Lt(n)}: ${o};`;
|
|
481
|
+
}).filter(U), Mt = (e) => Me(e).join(`
|
|
482
|
+
`), br = ({
|
|
483
483
|
mediaQuery: e,
|
|
484
484
|
className: t,
|
|
485
485
|
styles: n
|
|
486
486
|
}) => {
|
|
487
487
|
const o = `.${t} {
|
|
488
|
-
${
|
|
488
|
+
${Mt(n)}
|
|
489
489
|
}`;
|
|
490
490
|
return e ? `${e} {
|
|
491
491
|
${o}
|
|
492
492
|
}` : o;
|
|
493
493
|
};
|
|
494
|
-
function
|
|
494
|
+
function Dt({
|
|
495
495
|
style: e
|
|
496
496
|
}) {
|
|
497
497
|
return e;
|
|
498
498
|
}
|
|
499
|
-
const
|
|
499
|
+
const gr = ({
|
|
500
500
|
block: e,
|
|
501
501
|
context: t
|
|
502
|
-
}) => De(
|
|
502
|
+
}) => De(Dt({
|
|
503
503
|
style: e.style || {},
|
|
504
504
|
context: t,
|
|
505
505
|
block: e
|
|
@@ -518,7 +518,7 @@ function De(e) {
|
|
|
518
518
|
return e;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
const
|
|
521
|
+
const Ht = ({
|
|
522
522
|
block: e,
|
|
523
523
|
context: t,
|
|
524
524
|
registeredComponents: n
|
|
@@ -540,7 +540,7 @@ const Dt = ({
|
|
|
540
540
|
console.warn(`
|
|
541
541
|
Could not find a registered component named "${o}".
|
|
542
542
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
543
|
-
},
|
|
543
|
+
}, jt = ({
|
|
544
544
|
block: e,
|
|
545
545
|
context: t
|
|
546
546
|
}) => {
|
|
@@ -550,7 +550,7 @@ const Dt = ({
|
|
|
550
550
|
} = e;
|
|
551
551
|
if (!(n != null && n.collection))
|
|
552
552
|
return;
|
|
553
|
-
const s =
|
|
553
|
+
const s = ee({
|
|
554
554
|
code: n.collection,
|
|
555
555
|
localState: t.localState,
|
|
556
556
|
rootState: t.rootState,
|
|
@@ -574,44 +574,44 @@ const Dt = ({
|
|
|
574
574
|
},
|
|
575
575
|
block: o
|
|
576
576
|
}));
|
|
577
|
-
},
|
|
577
|
+
}, Kt = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), zt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), qt = () => import("./block-styles-5vJtIFGc.js").then((e) => e.default).catch((e) => {
|
|
578
578
|
throw console.error(
|
|
579
579
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
580
580
|
e
|
|
581
581
|
), e;
|
|
582
|
-
}),
|
|
582
|
+
}), Jt = () => import("./block-wrapper-JrLSq3J2.js").then((e) => e.default).catch((e) => {
|
|
583
583
|
throw console.error(
|
|
584
584
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
585
585
|
e
|
|
586
586
|
), e;
|
|
587
|
-
}),
|
|
587
|
+
}), Gt = () => import("./component-ref-gxDw0wuA.js").then((e) => e.default).catch((e) => {
|
|
588
588
|
throw console.error(
|
|
589
589
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
590
590
|
e
|
|
591
591
|
), e;
|
|
592
|
-
}),
|
|
592
|
+
}), Yt = () => import("./repeated-block-Qlvgzgy_.js").then((e) => e.default).catch((e) => {
|
|
593
593
|
throw console.error(
|
|
594
594
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
595
595
|
e
|
|
596
596
|
), e;
|
|
597
|
-
}),
|
|
597
|
+
}), Qt = () => Promise.resolve().then(() => cn).then((e) => e.default).catch((e) => {
|
|
598
598
|
throw console.error(
|
|
599
599
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
600
600
|
e
|
|
601
601
|
), e;
|
|
602
|
-
}),
|
|
602
|
+
}), Xt = f({
|
|
603
603
|
name: "block",
|
|
604
604
|
components: {
|
|
605
|
-
BlockStyles: D(
|
|
606
|
-
ComponentRef: D(
|
|
607
|
-
RepeatedBlock: D(
|
|
608
|
-
BlockWrapper: D(
|
|
609
|
-
DynamicDiv: D(
|
|
605
|
+
BlockStyles: D(qt),
|
|
606
|
+
ComponentRef: D(Gt),
|
|
607
|
+
RepeatedBlock: D(Yt),
|
|
608
|
+
BlockWrapper: D(Jt),
|
|
609
|
+
DynamicDiv: D(Qt)
|
|
610
610
|
},
|
|
611
611
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
612
612
|
mounted() {
|
|
613
613
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
614
|
-
t && e &&
|
|
614
|
+
t && e && Ft(
|
|
615
615
|
t.map((n) => ({
|
|
616
616
|
...n,
|
|
617
617
|
elementId: e
|
|
@@ -620,14 +620,14 @@ const Dt = ({
|
|
|
620
620
|
},
|
|
621
621
|
computed: {
|
|
622
622
|
blockComponent() {
|
|
623
|
-
return
|
|
623
|
+
return Ht({
|
|
624
624
|
block: this.block,
|
|
625
625
|
context: this.context,
|
|
626
626
|
registeredComponents: this.registeredComponents
|
|
627
627
|
});
|
|
628
628
|
},
|
|
629
629
|
repeatItem() {
|
|
630
|
-
return
|
|
630
|
+
return jt({
|
|
631
631
|
block: this.block,
|
|
632
632
|
context: this.context
|
|
633
633
|
});
|
|
@@ -664,12 +664,12 @@ const Dt = ({
|
|
|
664
664
|
blockChildren: this.processedBlock.children ?? [],
|
|
665
665
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
666
666
|
componentOptions: {
|
|
667
|
-
...
|
|
667
|
+
...wt(this.processedBlock),
|
|
668
668
|
builderContext: this.context,
|
|
669
|
-
...
|
|
669
|
+
...Kt(this.blockComponent) ? {
|
|
670
670
|
builderLinkComponent: this.linkComponent
|
|
671
671
|
} : {},
|
|
672
|
-
...
|
|
672
|
+
...zt(this.blockComponent) ? {
|
|
673
673
|
builderComponents: this.registeredComponents
|
|
674
674
|
} : {}
|
|
675
675
|
},
|
|
@@ -683,7 +683,7 @@ const Dt = ({
|
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
});
|
|
686
|
-
function
|
|
686
|
+
function _t(e, t, n, o, s, r) {
|
|
687
687
|
var c;
|
|
688
688
|
const i = y("block-styles"), a = y("component-ref"), l = y("block", !0), d = y("block-wrapper"), m = y("repeated-block");
|
|
689
689
|
return e.canShowBlock ? (u(), h($, { key: 0 }, [
|
|
@@ -741,10 +741,10 @@ function Qt(e, t, n, o, s, r) {
|
|
|
741
741
|
], 64))
|
|
742
742
|
], 64)) : S("", !0);
|
|
743
743
|
}
|
|
744
|
-
const pe = /* @__PURE__ */ b(
|
|
744
|
+
const pe = /* @__PURE__ */ b(Xt, [["render", _t]]), yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
745
745
|
__proto__: null,
|
|
746
746
|
default: pe
|
|
747
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
747
|
+
}, Symbol.toStringTag, { value: "Module" })), Zt = f({
|
|
748
748
|
name: "builder-blocks-wrapper",
|
|
749
749
|
props: [
|
|
750
750
|
"blocks",
|
|
@@ -789,7 +789,7 @@ const pe = /* @__PURE__ */ b(_t, [["render", Qt]]), gr = /* @__PURE__ */ Object.
|
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
});
|
|
792
|
-
function
|
|
792
|
+
function en(e, t, n, o, s, r) {
|
|
793
793
|
return u(), k(H(e.BlocksWrapper), w({
|
|
794
794
|
class: e.className + " component-178o76acnws",
|
|
795
795
|
"builder-path": e.path,
|
|
@@ -805,9 +805,9 @@ function Zt(e, t, n, o, s, r) {
|
|
|
805
805
|
_: 3
|
|
806
806
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
807
807
|
}
|
|
808
|
-
const
|
|
808
|
+
const tn = /* @__PURE__ */ b(Zt, [["render", en], ["__scopeId", "data-v-a5b13ef9"]]), nn = f({
|
|
809
809
|
name: "builder-blocks",
|
|
810
|
-
components: { BlocksWrapper:
|
|
810
|
+
components: { BlocksWrapper: tn, Block: pe },
|
|
811
811
|
props: [
|
|
812
812
|
"blocks",
|
|
813
813
|
"parent",
|
|
@@ -818,11 +818,11 @@ const en = /* @__PURE__ */ b(Xt, [["render", Zt], ["__scopeId", "data-v-a5b13ef9
|
|
|
818
818
|
"registeredComponents"
|
|
819
819
|
],
|
|
820
820
|
inject: {
|
|
821
|
-
builderContext:
|
|
821
|
+
builderContext: ie.key,
|
|
822
822
|
componentsContext: Pe.key
|
|
823
823
|
}
|
|
824
824
|
});
|
|
825
|
-
function
|
|
825
|
+
function on(e, t, n, o, s, r) {
|
|
826
826
|
var l, d;
|
|
827
827
|
const i = y("block"), a = y("blocks-wrapper");
|
|
828
828
|
return u(), k(a, {
|
|
@@ -845,7 +845,7 @@ function nn(e, t, n, o, s, r) {
|
|
|
845
845
|
_: 1
|
|
846
846
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
847
847
|
}
|
|
848
|
-
const J = /* @__PURE__ */ b(
|
|
848
|
+
const J = /* @__PURE__ */ b(nn, [["render", on]]), me = f({
|
|
849
849
|
render() {
|
|
850
850
|
return Ee("style", {
|
|
851
851
|
innerHTML: this.styles,
|
|
@@ -870,7 +870,7 @@ const J = /* @__PURE__ */ b(tn, [["render", nn]]), me = f({
|
|
|
870
870
|
default: 991,
|
|
871
871
|
max: 1200
|
|
872
872
|
}
|
|
873
|
-
},
|
|
873
|
+
}, kr = (e, t = He) => `@media (max-width: ${t[e].max}px)`, sn = ({
|
|
874
874
|
small: e,
|
|
875
875
|
medium: t
|
|
876
876
|
}) => {
|
|
@@ -896,19 +896,19 @@ const J = /* @__PURE__ */ b(tn, [["render", nn]]), me = f({
|
|
|
896
896
|
min: r,
|
|
897
897
|
default: r + 1
|
|
898
898
|
}, n;
|
|
899
|
-
},
|
|
899
|
+
}, rn = (e) => `builder-columns ${e}-breakpoints`, an = f({
|
|
900
900
|
name: "dynamic-div",
|
|
901
901
|
props: []
|
|
902
902
|
});
|
|
903
|
-
function
|
|
903
|
+
function ln(e, t, n, o, s, r) {
|
|
904
904
|
return u(), h("div", null, [
|
|
905
905
|
P(e.$slots, "default")
|
|
906
906
|
]);
|
|
907
907
|
}
|
|
908
|
-
const G = /* @__PURE__ */ b(
|
|
908
|
+
const G = /* @__PURE__ */ b(an, [["render", ln]]), cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
909
909
|
__proto__: null,
|
|
910
910
|
default: G
|
|
911
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
911
|
+
}, Symbol.toStringTag, { value: "Module" })), dn = f({
|
|
912
912
|
name: "builder-columns",
|
|
913
913
|
components: {
|
|
914
914
|
InlinedStyles: me,
|
|
@@ -933,7 +933,7 @@ const G = /* @__PURE__ */ b(rn, [["render", an]]), ln = /* @__PURE__ */ Object.f
|
|
|
933
933
|
stackAt: this.stackColumnsAt || "tablet",
|
|
934
934
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
935
935
|
TARGET: V,
|
|
936
|
-
getColumnsClass:
|
|
936
|
+
getColumnsClass: rn
|
|
937
937
|
};
|
|
938
938
|
},
|
|
939
939
|
methods: {
|
|
@@ -999,7 +999,7 @@ const G = /* @__PURE__ */ b(rn, [["render", an]]), ln = /* @__PURE__ */ Object.f
|
|
|
999
999
|
},
|
|
1000
1000
|
getWidthForBreakpointSize(e) {
|
|
1001
1001
|
var n, o;
|
|
1002
|
-
return
|
|
1002
|
+
return sn(
|
|
1003
1003
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1004
1004
|
)[e].max;
|
|
1005
1005
|
},
|
|
@@ -1035,13 +1035,13 @@ const G = /* @__PURE__ */ b(rn, [["render", an]]), ln = /* @__PURE__ */ Object.f
|
|
|
1035
1035
|
...e.link ? {
|
|
1036
1036
|
href: e.link
|
|
1037
1037
|
} : {},
|
|
1038
|
-
[
|
|
1038
|
+
[Z()]: "builder-column",
|
|
1039
1039
|
style: De(this.columnCssVars(t))
|
|
1040
1040
|
};
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
1043
|
});
|
|
1044
|
-
function
|
|
1044
|
+
function un(e, t, n, o, s, r) {
|
|
1045
1045
|
var d;
|
|
1046
1046
|
const i = y("inlined-styles"), a = y("blocks"), l = y("dynamic-renderer");
|
|
1047
1047
|
return u(), h("div", w({
|
|
@@ -1076,24 +1076,24 @@ function dn(e, t, n, o, s, r) {
|
|
|
1076
1076
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1077
1077
|
], 16);
|
|
1078
1078
|
}
|
|
1079
|
-
const
|
|
1079
|
+
const pn = /* @__PURE__ */ b(dn, [["render", un], ["__scopeId", "data-v-4878b55f"]]), mn = f({
|
|
1080
1080
|
name: "builder-fragment-component",
|
|
1081
1081
|
props: []
|
|
1082
1082
|
});
|
|
1083
|
-
function
|
|
1083
|
+
function hn(e, t, n, o, s, r) {
|
|
1084
1084
|
return u(), h("span", null, [
|
|
1085
1085
|
P(e.$slots, "default")
|
|
1086
1086
|
]);
|
|
1087
1087
|
}
|
|
1088
|
-
const
|
|
1088
|
+
const fn = /* @__PURE__ */ b(mn, [["render", hn]]);
|
|
1089
1089
|
function ke(e) {
|
|
1090
1090
|
return e.replace(/http(s)?:/, "");
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function bn(e = "", t, n) {
|
|
1093
1093
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), s = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1094
1094
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + s + t + "=" + encodeURIComponent(n);
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function gn(e, t) {
|
|
1097
1097
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1098
1098
|
return e;
|
|
1099
1099
|
if (t === "master")
|
|
@@ -1105,18 +1105,18 @@ function bn(e, t) {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
return null;
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function oe(e) {
|
|
1109
1109
|
if (!e)
|
|
1110
1110
|
return e;
|
|
1111
1111
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1112
1112
|
if (e.match(/builder\.io/)) {
|
|
1113
1113
|
let n = e;
|
|
1114
1114
|
const o = Number(e.split("?width=")[1]);
|
|
1115
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${
|
|
1115
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${bn(e, "width", s)} ${s}w`).concat([n]).join(", ");
|
|
1116
1116
|
}
|
|
1117
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1117
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [gn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1118
1118
|
}
|
|
1119
|
-
const
|
|
1119
|
+
const yn = f({
|
|
1120
1120
|
name: "builder-image",
|
|
1121
1121
|
props: [
|
|
1122
1122
|
"image",
|
|
@@ -1142,10 +1142,10 @@ const gn = f({
|
|
|
1142
1142
|
return this.srcset;
|
|
1143
1143
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
1144
1144
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
1145
|
-
return console.debug("Removed given srcset"),
|
|
1145
|
+
return console.debug("Removed given srcset"), oe(t);
|
|
1146
1146
|
} else if (this.image && !this.srcset)
|
|
1147
|
-
return
|
|
1148
|
-
return
|
|
1147
|
+
return oe(t);
|
|
1148
|
+
return oe(t);
|
|
1149
1149
|
},
|
|
1150
1150
|
webpSrcSet() {
|
|
1151
1151
|
var e;
|
|
@@ -1162,20 +1162,20 @@ const gn = f({
|
|
|
1162
1162
|
return this.aspectRatio ? e : void 0;
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
|
-
}),
|
|
1165
|
+
}), kn = ["srcset"], vn = ["alt", "role", "src", "srcset", "sizes"], Sn = {
|
|
1166
1166
|
key: 2,
|
|
1167
1167
|
class: "div-20351ewpue7-2"
|
|
1168
1168
|
};
|
|
1169
|
-
function
|
|
1169
|
+
function Cn(e, t, n, o, s, r) {
|
|
1170
1170
|
var i, a, l, d, m, c;
|
|
1171
1171
|
return u(), h($, null, [
|
|
1172
|
-
|
|
1172
|
+
_("picture", null, [
|
|
1173
1173
|
e.webpSrcSet ? (u(), h("source", {
|
|
1174
1174
|
key: 0,
|
|
1175
1175
|
type: "image/webp",
|
|
1176
1176
|
srcset: e.webpSrcSet
|
|
1177
|
-
}, null, 8,
|
|
1178
|
-
|
|
1177
|
+
}, null, 8, kn)) : S("", !0),
|
|
1178
|
+
_("img", {
|
|
1179
1179
|
loading: "lazy",
|
|
1180
1180
|
alt: e.altText,
|
|
1181
1181
|
role: e.altText ? void 0 : "presentation",
|
|
@@ -1190,7 +1190,7 @@ function Sn(e, t, n, o, s, r) {
|
|
|
1190
1190
|
src: e.image,
|
|
1191
1191
|
srcset: e.srcSetToUse,
|
|
1192
1192
|
sizes: e.sizes
|
|
1193
|
-
}, null, 14,
|
|
1193
|
+
}, null, 14, vn)
|
|
1194
1194
|
]),
|
|
1195
1195
|
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? (u(), h("div", {
|
|
1196
1196
|
key: 0,
|
|
@@ -1200,19 +1200,19 @@ function Sn(e, t, n, o, s, r) {
|
|
|
1200
1200
|
})
|
|
1201
1201
|
}, null, 4)) : S("", !0),
|
|
1202
1202
|
(d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length && e.fitContent ? P(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
|
|
1203
|
-
!e.fitContent && ((c = (m = e.builderBlock) == null ? void 0 : m.children) != null && c.length) ? (u(), h("div",
|
|
1203
|
+
!e.fitContent && ((c = (m = e.builderBlock) == null ? void 0 : m.children) != null && c.length) ? (u(), h("div", Sn, [
|
|
1204
1204
|
P(e.$slots, "default", {}, void 0, !0)
|
|
1205
1205
|
])) : S("", !0)
|
|
1206
1206
|
], 64);
|
|
1207
1207
|
}
|
|
1208
|
-
const
|
|
1208
|
+
const wn = /* @__PURE__ */ b(yn, [["render", Cn], ["__scopeId", "data-v-5dee860d"]]), Tn = f({
|
|
1209
1209
|
name: "builder-section-component",
|
|
1210
1210
|
props: ["attributes", "maxWidth"],
|
|
1211
1211
|
data() {
|
|
1212
1212
|
return { filterAttrs: W };
|
|
1213
1213
|
}
|
|
1214
1214
|
});
|
|
1215
|
-
function
|
|
1215
|
+
function $n(e, t, n, o, s, r) {
|
|
1216
1216
|
return u(), h("section", w({
|
|
1217
1217
|
style: {
|
|
1218
1218
|
width: "100%",
|
|
@@ -1230,7 +1230,7 @@ function Tn(e, t, n, o, s, r) {
|
|
|
1230
1230
|
P(e.$slots, "default")
|
|
1231
1231
|
], 16);
|
|
1232
1232
|
}
|
|
1233
|
-
const
|
|
1233
|
+
const In = /* @__PURE__ */ b(Tn, [["render", $n]]), Rn = (e) => {
|
|
1234
1234
|
if (e === "localhost" || e === "127.0.0.1")
|
|
1235
1235
|
return e;
|
|
1236
1236
|
const t = e.split(".");
|
|
@@ -1246,13 +1246,13 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
|
|
|
1246
1246
|
R.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
1247
1247
|
return;
|
|
1248
1248
|
}
|
|
1249
|
-
}, Ke = async (e) => je(e),
|
|
1249
|
+
}, Ke = async (e) => je(e), En = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(U).join("; "), Pn = [["secure", ""], ["SameSite", "None"]], xn = ({
|
|
1250
1250
|
name: e,
|
|
1251
1251
|
value: t,
|
|
1252
1252
|
expires: n
|
|
1253
1253
|
}) => {
|
|
1254
|
-
const s = (T() ? location.protocol === "https:" : !0) ?
|
|
1255
|
-
return
|
|
1254
|
+
const s = (T() ? location.protocol === "https:" : !0) ? Pn : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", Rn(window.location.hostname)], ...s];
|
|
1255
|
+
return En(i);
|
|
1256
1256
|
}, ze = async ({
|
|
1257
1257
|
name: e,
|
|
1258
1258
|
value: t,
|
|
@@ -1262,7 +1262,7 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
|
|
|
1262
1262
|
try {
|
|
1263
1263
|
if (!o)
|
|
1264
1264
|
return;
|
|
1265
|
-
const s =
|
|
1265
|
+
const s = xn({
|
|
1266
1266
|
name: e,
|
|
1267
1267
|
value: t,
|
|
1268
1268
|
expires: n
|
|
@@ -1271,24 +1271,24 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
|
|
|
1271
1271
|
} catch (s) {
|
|
1272
1272
|
R.warn("[COOKIE] SET error: ", (s == null ? void 0 : s.message) || s);
|
|
1273
1273
|
}
|
|
1274
|
-
},
|
|
1274
|
+
}, Vn = "builder.tests", he = (e) => `${Vn}.${e}`, An = ({
|
|
1275
1275
|
contentId: e
|
|
1276
1276
|
}) => Ke({
|
|
1277
1277
|
name: he(e),
|
|
1278
1278
|
canTrack: !0
|
|
1279
|
-
}),
|
|
1279
|
+
}), Bn = ({
|
|
1280
1280
|
contentId: e
|
|
1281
1281
|
}) => je({
|
|
1282
1282
|
name: he(e),
|
|
1283
1283
|
canTrack: !0
|
|
1284
|
-
}),
|
|
1284
|
+
}), Wn = ({
|
|
1285
1285
|
contentId: e,
|
|
1286
1286
|
value: t
|
|
1287
1287
|
}) => ze({
|
|
1288
1288
|
name: he(e),
|
|
1289
1289
|
value: t,
|
|
1290
1290
|
canTrack: !0
|
|
1291
|
-
}), qe = (e) => U(e.id) && U(e.variations) && Object.keys(e.variations).length > 0,
|
|
1291
|
+
}), qe = (e) => U(e.id) && U(e.variations) && Object.keys(e.variations).length > 0, Nn = ({
|
|
1292
1292
|
id: e,
|
|
1293
1293
|
variations: t
|
|
1294
1294
|
}) => {
|
|
@@ -1302,8 +1302,8 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
return e;
|
|
1304
1304
|
}, Je = (e) => {
|
|
1305
|
-
const t =
|
|
1306
|
-
return
|
|
1305
|
+
const t = Nn(e);
|
|
1306
|
+
return Wn({
|
|
1307
1307
|
contentId: e.id,
|
|
1308
1308
|
value: t
|
|
1309
1309
|
}).catch((n) => {
|
|
@@ -1323,7 +1323,7 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
|
|
|
1323
1323
|
testVariationId: n.id,
|
|
1324
1324
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
1325
1325
|
};
|
|
1326
|
-
},
|
|
1326
|
+
}, Fn = ({
|
|
1327
1327
|
item: e,
|
|
1328
1328
|
canTrack: t
|
|
1329
1329
|
}) => {
|
|
@@ -1333,7 +1333,7 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
|
|
|
1333
1333
|
return;
|
|
1334
1334
|
if (!qe(e))
|
|
1335
1335
|
return e;
|
|
1336
|
-
const n =
|
|
1336
|
+
const n = Bn({
|
|
1337
1337
|
contentId: e.id
|
|
1338
1338
|
}) || Je({
|
|
1339
1339
|
variations: e.variations,
|
|
@@ -1346,13 +1346,13 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
|
|
|
1346
1346
|
...e,
|
|
1347
1347
|
...o
|
|
1348
1348
|
};
|
|
1349
|
-
},
|
|
1349
|
+
}, On = async ({
|
|
1350
1350
|
item: e,
|
|
1351
1351
|
canTrack: t
|
|
1352
1352
|
}) => {
|
|
1353
1353
|
if (!t || !qe(e))
|
|
1354
1354
|
return e;
|
|
1355
|
-
const o = await
|
|
1355
|
+
const o = await An({
|
|
1356
1356
|
contentId: e.id
|
|
1357
1357
|
}) || Je({
|
|
1358
1358
|
variations: e.variations,
|
|
@@ -1365,7 +1365,7 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
|
|
|
1365
1365
|
...e,
|
|
1366
1366
|
...s
|
|
1367
1367
|
};
|
|
1368
|
-
}, z = (e) => U(e) ? e : !0,
|
|
1368
|
+
}, z = (e) => U(e) ? e : !0, Un = {
|
|
1369
1369
|
name: "Core:Button",
|
|
1370
1370
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1371
1371
|
defaultStyles: {
|
|
@@ -1398,7 +1398,7 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
|
|
|
1398
1398
|
}],
|
|
1399
1399
|
static: !0,
|
|
1400
1400
|
noWrap: !0
|
|
1401
|
-
},
|
|
1401
|
+
}, Ln = {
|
|
1402
1402
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1403
1403
|
name: "Columns",
|
|
1404
1404
|
isRSC: !0,
|
|
@@ -1599,13 +1599,13 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
|
|
|
1599
1599
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1600
1600
|
advanced: !0
|
|
1601
1601
|
}]
|
|
1602
|
-
},
|
|
1602
|
+
}, Mn = {
|
|
1603
1603
|
name: "Fragment",
|
|
1604
1604
|
static: !0,
|
|
1605
1605
|
hidden: !0,
|
|
1606
1606
|
canHaveChildren: !0,
|
|
1607
1607
|
noWrap: !0
|
|
1608
|
-
},
|
|
1608
|
+
}, Dn = {
|
|
1609
1609
|
name: "Image",
|
|
1610
1610
|
static: !0,
|
|
1611
1611
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -1705,7 +1705,7 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
|
|
|
1705
1705
|
advanced: !0,
|
|
1706
1706
|
defaultValue: 0.7041
|
|
1707
1707
|
}]
|
|
1708
|
-
},
|
|
1708
|
+
}, Hn = {
|
|
1709
1709
|
name: "Core:Section",
|
|
1710
1710
|
static: !0,
|
|
1711
1711
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1744,7 +1744,7 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
}
|
|
1746
1746
|
}]
|
|
1747
|
-
},
|
|
1747
|
+
}, jn = {
|
|
1748
1748
|
name: "Slot",
|
|
1749
1749
|
isRSC: !0,
|
|
1750
1750
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1757,12 +1757,12 @@ const $n = /* @__PURE__ */ b(wn, [["render", Tn]]), In = (e) => {
|
|
|
1757
1757
|
required: !0,
|
|
1758
1758
|
defaultValue: "children"
|
|
1759
1759
|
}]
|
|
1760
|
-
},
|
|
1760
|
+
}, Kn = f({
|
|
1761
1761
|
name: "builder-slot",
|
|
1762
1762
|
components: { Blocks: J },
|
|
1763
1763
|
props: ["builderContext", "name"]
|
|
1764
1764
|
});
|
|
1765
|
-
function
|
|
1765
|
+
function zn(e, t, n, o, s, r) {
|
|
1766
1766
|
var a, l, d;
|
|
1767
1767
|
const i = y("blocks");
|
|
1768
1768
|
return u(), h("div", w(
|
|
@@ -1781,7 +1781,7 @@ function Kn(e, t, n, o, s, r) {
|
|
|
1781
1781
|
}, null, 8, ["parent", "path", "context", "blocks"])
|
|
1782
1782
|
], 16);
|
|
1783
1783
|
}
|
|
1784
|
-
const
|
|
1784
|
+
const qn = /* @__PURE__ */ b(Kn, [["render", zn]]), Jn = {
|
|
1785
1785
|
name: "Symbol",
|
|
1786
1786
|
noWrap: !0,
|
|
1787
1787
|
static: !0,
|
|
@@ -1814,7 +1814,7 @@ const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
|
|
|
1814
1814
|
hideFromUI: !0,
|
|
1815
1815
|
type: "boolean"
|
|
1816
1816
|
}]
|
|
1817
|
-
},
|
|
1817
|
+
}, se = {
|
|
1818
1818
|
"@type": "@builder.io/sdk:Element",
|
|
1819
1819
|
responsiveStyles: {
|
|
1820
1820
|
large: {
|
|
@@ -1836,7 +1836,7 @@ const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
|
|
|
1836
1836
|
text: "New tab"
|
|
1837
1837
|
}
|
|
1838
1838
|
}
|
|
1839
|
-
},
|
|
1839
|
+
}, re = {
|
|
1840
1840
|
"@type": "@builder.io/sdk:Element",
|
|
1841
1841
|
responsiveStyles: {
|
|
1842
1842
|
large: {
|
|
@@ -1852,7 +1852,7 @@ const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
|
|
|
1852
1852
|
text: "New tab content "
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
|
-
},
|
|
1855
|
+
}, Gn = {
|
|
1856
1856
|
name: "Builder: Tabs",
|
|
1857
1857
|
inputs: [{
|
|
1858
1858
|
name: "tabs",
|
|
@@ -1862,16 +1862,16 @@ const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
|
|
|
1862
1862
|
name: "label",
|
|
1863
1863
|
type: "uiBlocks",
|
|
1864
1864
|
hideFromUI: !0,
|
|
1865
|
-
defaultValue: [
|
|
1865
|
+
defaultValue: [se]
|
|
1866
1866
|
}, {
|
|
1867
1867
|
name: "content",
|
|
1868
1868
|
type: "uiBlocks",
|
|
1869
1869
|
hideFromUI: !0,
|
|
1870
|
-
defaultValue: [
|
|
1870
|
+
defaultValue: [re]
|
|
1871
1871
|
}],
|
|
1872
1872
|
defaultValue: [{
|
|
1873
1873
|
label: [{
|
|
1874
|
-
...
|
|
1874
|
+
...se,
|
|
1875
1875
|
component: {
|
|
1876
1876
|
name: "Text",
|
|
1877
1877
|
options: {
|
|
@@ -1880,7 +1880,7 @@ const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
|
|
|
1880
1880
|
}
|
|
1881
1881
|
}],
|
|
1882
1882
|
content: [{
|
|
1883
|
-
...
|
|
1883
|
+
...re,
|
|
1884
1884
|
component: {
|
|
1885
1885
|
name: "Text",
|
|
1886
1886
|
options: {
|
|
@@ -1890,7 +1890,7 @@ const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
|
|
|
1890
1890
|
}]
|
|
1891
1891
|
}, {
|
|
1892
1892
|
label: [{
|
|
1893
|
-
...
|
|
1893
|
+
...se,
|
|
1894
1894
|
component: {
|
|
1895
1895
|
name: "Text",
|
|
1896
1896
|
options: {
|
|
@@ -1899,7 +1899,7 @@ const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
|
|
|
1899
1899
|
}
|
|
1900
1900
|
}],
|
|
1901
1901
|
content: [{
|
|
1902
|
-
...
|
|
1902
|
+
...re,
|
|
1903
1903
|
component: {
|
|
1904
1904
|
name: "Text",
|
|
1905
1905
|
options: {
|
|
@@ -1949,7 +1949,7 @@ const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
|
|
|
1949
1949
|
value: "flex-end"
|
|
1950
1950
|
}]
|
|
1951
1951
|
}]
|
|
1952
|
-
},
|
|
1952
|
+
}, Yn = f({
|
|
1953
1953
|
name: "builder-tabs",
|
|
1954
1954
|
components: { Blocks: J },
|
|
1955
1955
|
props: [
|
|
@@ -1974,11 +1974,11 @@ const zn = /* @__PURE__ */ b(jn, [["render", Kn]]), qn = {
|
|
|
1974
1974
|
return this.activeTab === e ? this.activeTabStyle : {};
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
|
-
}),
|
|
1978
|
-
function
|
|
1977
|
+
}), Qn = ["onClick"], Xn = { key: 0 };
|
|
1978
|
+
function _n(e, t, n, o, s, r) {
|
|
1979
1979
|
const i = y("blocks");
|
|
1980
1980
|
return u(), h("div", null, [
|
|
1981
|
-
|
|
1981
|
+
_("div", {
|
|
1982
1982
|
class: "builder-tabs-wrap",
|
|
1983
1983
|
style: K({
|
|
1984
1984
|
display: "flex",
|
|
@@ -2003,9 +2003,9 @@ function Qn(e, t, n, o, s, r) {
|
|
|
2003
2003
|
registeredComponents: e.builderComponents,
|
|
2004
2004
|
linkComponent: e.builderLinkComponent
|
|
2005
2005
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2006
|
-
], 14,
|
|
2006
|
+
], 14, Qn))), 128))
|
|
2007
2007
|
], 4),
|
|
2008
|
-
e.activeTabContent(e.activeTab) ? (u(), h("div",
|
|
2008
|
+
e.activeTabContent(e.activeTab) ? (u(), h("div", Xn, [
|
|
2009
2009
|
E(i, {
|
|
2010
2010
|
parent: e.builderBlock.id,
|
|
2011
2011
|
path: `component.options.tabs.${e.activeTab}.content`,
|
|
@@ -2017,7 +2017,7 @@ function Qn(e, t, n, o, s, r) {
|
|
|
2017
2017
|
])) : S("", !0)
|
|
2018
2018
|
]);
|
|
2019
2019
|
}
|
|
2020
|
-
const
|
|
2020
|
+
const Zn = /* @__PURE__ */ b(Yn, [["render", _n]]), eo = {
|
|
2021
2021
|
name: "Text",
|
|
2022
2022
|
static: !0,
|
|
2023
2023
|
isRSC: !0,
|
|
@@ -2035,11 +2035,11 @@ const Xn = /* @__PURE__ */ b(Gn, [["render", Qn]]), Zn = {
|
|
|
2035
2035
|
height: "auto",
|
|
2036
2036
|
textAlign: "center"
|
|
2037
2037
|
}
|
|
2038
|
-
},
|
|
2038
|
+
}, to = f({
|
|
2039
2039
|
name: "builder-text",
|
|
2040
2040
|
props: ["text"]
|
|
2041
|
-
}),
|
|
2042
|
-
function
|
|
2041
|
+
}), no = ["innerHTML"];
|
|
2042
|
+
function oo(e, t, n, o, s, r) {
|
|
2043
2043
|
var i;
|
|
2044
2044
|
return u(), h("div", {
|
|
2045
2045
|
class: "builder-text",
|
|
@@ -2047,9 +2047,9 @@ function no(e, t, n, o, s, r) {
|
|
|
2047
2047
|
style: {
|
|
2048
2048
|
outline: "none"
|
|
2049
2049
|
}
|
|
2050
|
-
}, null, 8,
|
|
2050
|
+
}, null, 8, no);
|
|
2051
2051
|
}
|
|
2052
|
-
const
|
|
2052
|
+
const so = /* @__PURE__ */ b(to, [["render", oo]]), ro = {
|
|
2053
2053
|
name: "Custom Code",
|
|
2054
2054
|
static: !0,
|
|
2055
2055
|
requiredPermissions: ["editCode"],
|
|
@@ -2071,7 +2071,7 @@ const oo = /* @__PURE__ */ b(eo, [["render", no]]), so = {
|
|
|
2071
2071
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
2072
2072
|
advanced: !0
|
|
2073
2073
|
}]
|
|
2074
|
-
},
|
|
2074
|
+
}, io = f({
|
|
2075
2075
|
name: "builder-custom-code",
|
|
2076
2076
|
props: ["replaceNodes", "code"],
|
|
2077
2077
|
data() {
|
|
@@ -2105,15 +2105,15 @@ const oo = /* @__PURE__ */ b(eo, [["render", no]]), so = {
|
|
|
2105
2105
|
}
|
|
2106
2106
|
}
|
|
2107
2107
|
}
|
|
2108
|
-
}),
|
|
2109
|
-
function
|
|
2108
|
+
}), ao = ["innerHTML"];
|
|
2109
|
+
function lo(e, t, n, o, s, r) {
|
|
2110
2110
|
return u(), h("div", {
|
|
2111
2111
|
ref: "elementRef",
|
|
2112
2112
|
class: de("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
2113
2113
|
innerHTML: e.code
|
|
2114
|
-
}, null, 10,
|
|
2114
|
+
}, null, 10, ao);
|
|
2115
2115
|
}
|
|
2116
|
-
const
|
|
2116
|
+
const co = /* @__PURE__ */ b(io, [["render", lo]]), uo = {
|
|
2117
2117
|
name: "Embed",
|
|
2118
2118
|
static: !0,
|
|
2119
2119
|
inputs: [{
|
|
@@ -2138,7 +2138,7 @@ const lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
|
|
|
2138
2138
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2139
2139
|
hideFromUI: !0
|
|
2140
2140
|
}]
|
|
2141
|
-
},
|
|
2141
|
+
}, po = ["text/javascript", "application/javascript", "application/ecmascript"], mo = (e) => po.includes(e.type), ho = f({
|
|
2142
2142
|
name: "builder-embed",
|
|
2143
2143
|
props: ["content"],
|
|
2144
2144
|
data() {
|
|
@@ -2171,7 +2171,7 @@ const lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
|
|
|
2171
2171
|
this.scriptsInserted.push(n.src);
|
|
2172
2172
|
const o = document.createElement("script");
|
|
2173
2173
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
2174
|
-
} else if (
|
|
2174
|
+
} else if (mo(n) && !this.scriptsRun.includes(n.innerText))
|
|
2175
2175
|
try {
|
|
2176
2176
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
2177
2177
|
} catch (o) {
|
|
@@ -2180,15 +2180,15 @@ const lo = /* @__PURE__ */ b(ro, [["render", ao]]), co = {
|
|
|
2180
2180
|
}
|
|
2181
2181
|
}
|
|
2182
2182
|
}
|
|
2183
|
-
}),
|
|
2184
|
-
function
|
|
2183
|
+
}), fo = ["innerHTML"];
|
|
2184
|
+
function bo(e, t, n, o, s, r) {
|
|
2185
2185
|
return u(), h("div", {
|
|
2186
2186
|
class: "builder-embed",
|
|
2187
2187
|
ref: "elem",
|
|
2188
2188
|
innerHTML: e.content
|
|
2189
|
-
}, null, 8,
|
|
2189
|
+
}, null, 8, fo);
|
|
2190
2190
|
}
|
|
2191
|
-
const
|
|
2191
|
+
const go = /* @__PURE__ */ b(ho, [["render", bo]]), yo = {
|
|
2192
2192
|
name: "Form:Form",
|
|
2193
2193
|
// editableTags: ['builder-form-error']
|
|
2194
2194
|
defaults: {
|
|
@@ -2419,13 +2419,13 @@ const bo = /* @__PURE__ */ b(mo, [["render", fo]]), go = {
|
|
|
2419
2419
|
}
|
|
2420
2420
|
}
|
|
2421
2421
|
}]
|
|
2422
|
-
},
|
|
2422
|
+
}, ko = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], vo = () => {
|
|
2423
2423
|
const e = process.env.NODE_ENV || "production";
|
|
2424
|
-
return
|
|
2425
|
-
},
|
|
2424
|
+
return ko.includes(e) ? e : "production";
|
|
2425
|
+
}, So = (e, t, n) => {
|
|
2426
2426
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((s, r) => s != null ? s[r] : s, e);
|
|
2427
2427
|
return o === void 0 || o === e ? n : o;
|
|
2428
|
-
},
|
|
2428
|
+
}, Co = f({
|
|
2429
2429
|
name: "builder-form-component",
|
|
2430
2430
|
components: { Block: pe, Blocks: J },
|
|
2431
2431
|
props: [
|
|
@@ -2530,7 +2530,7 @@ const bo = /* @__PURE__ */ b(mo, [["render", fo]]), go = {
|
|
|
2530
2530
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
|
|
2531
2531
|
return;
|
|
2532
2532
|
this.formState = "sending";
|
|
2533
|
-
const m = `${
|
|
2533
|
+
const m = `${vo() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
2534
2534
|
this.sendSubmissionsToEmail || ""
|
|
2535
2535
|
)}&name=${encodeURIComponent(this.name || "")}`;
|
|
2536
2536
|
fetch(
|
|
@@ -2545,7 +2545,7 @@ const bo = /* @__PURE__ */ b(mo, [["render", fo]]), go = {
|
|
|
2545
2545
|
let p;
|
|
2546
2546
|
const v = c.headers.get("content-type");
|
|
2547
2547
|
if (v && v.indexOf("application/json") !== -1 ? p = await c.json() : p = await c.text(), !c.ok && this.errorMessagePath) {
|
|
2548
|
-
let g =
|
|
2548
|
+
let g = So(p, this.errorMessagePath);
|
|
2549
2549
|
g && (typeof g != "string" && (g = JSON.stringify(g)), this.formErrorMessage = g, this.mergeNewRootState({
|
|
2550
2550
|
formErrorMessage: g
|
|
2551
2551
|
}));
|
|
@@ -2586,11 +2586,11 @@ const bo = /* @__PURE__ */ b(mo, [["render", fo]]), go = {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
}
|
|
2588
2588
|
}
|
|
2589
|
-
}),
|
|
2589
|
+
}), wo = ["validate", "action", "method", "name"], To = {
|
|
2590
2590
|
key: 3,
|
|
2591
2591
|
class: "builder-form-error-text pre-3i4ezorcfhi"
|
|
2592
2592
|
};
|
|
2593
|
-
function
|
|
2593
|
+
function $o(e, t, n, o, s, r) {
|
|
2594
2594
|
var l;
|
|
2595
2595
|
const i = y("block"), a = y("blocks");
|
|
2596
2596
|
return u(), h("form", w({
|
|
@@ -2620,16 +2620,16 @@ function To(e, t, n, o, s, r) {
|
|
|
2620
2620
|
blocks: e.sendingMessage,
|
|
2621
2621
|
context: e.builderContext
|
|
2622
2622
|
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
2623
|
-
e.submissionState() === "error" && e.responseData ? (u(), h("pre",
|
|
2623
|
+
e.submissionState() === "error" && e.responseData ? (u(), h("pre", To, te(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
|
|
2624
2624
|
e.submissionState() === "success" ? (u(), k(a, {
|
|
2625
2625
|
key: 4,
|
|
2626
2626
|
path: "successMessage",
|
|
2627
2627
|
blocks: e.successMessage,
|
|
2628
2628
|
context: e.builderContext
|
|
2629
2629
|
}, null, 8, ["blocks", "context"])) : S("", !0)
|
|
2630
|
-
], 16,
|
|
2630
|
+
], 16, wo);
|
|
2631
2631
|
}
|
|
2632
|
-
const
|
|
2632
|
+
const Io = /* @__PURE__ */ b(Co, [["render", $o], ["__scopeId", "data-v-1573388b"]]), Ro = {
|
|
2633
2633
|
name: "Form:Input",
|
|
2634
2634
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2635
2635
|
inputs: [
|
|
@@ -2680,7 +2680,7 @@ const $o = /* @__PURE__ */ b(So, [["render", To], ["__scopeId", "data-v-1573388b
|
|
|
2680
2680
|
borderStyle: "solid",
|
|
2681
2681
|
borderColor: "#ccc"
|
|
2682
2682
|
}
|
|
2683
|
-
},
|
|
2683
|
+
}, Eo = f({
|
|
2684
2684
|
name: "builder-form-input-component",
|
|
2685
2685
|
props: [
|
|
2686
2686
|
"attributes",
|
|
@@ -2694,8 +2694,8 @@ const $o = /* @__PURE__ */ b(So, [["render", To], ["__scopeId", "data-v-1573388b
|
|
|
2694
2694
|
data() {
|
|
2695
2695
|
return { isEditing: I, filterAttrs: W };
|
|
2696
2696
|
}
|
|
2697
|
-
}),
|
|
2698
|
-
function
|
|
2697
|
+
}), Po = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
2698
|
+
function xo(e, t, n, o, s, r) {
|
|
2699
2699
|
return u(), h("input", w({
|
|
2700
2700
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2701
2701
|
placeholder: e.placeholder,
|
|
@@ -2704,9 +2704,9 @@ function Po(e, t, n, o, s, r) {
|
|
|
2704
2704
|
value: e.value,
|
|
2705
2705
|
defaultValue: e.defaultValue,
|
|
2706
2706
|
required: e.required
|
|
2707
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
2707
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Po);
|
|
2708
2708
|
}
|
|
2709
|
-
const
|
|
2709
|
+
const Vo = /* @__PURE__ */ b(Eo, [["render", xo]]), Ao = {
|
|
2710
2710
|
name: "Form:Select",
|
|
2711
2711
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2712
2712
|
defaultStyles: {
|
|
@@ -2748,14 +2748,14 @@ const xo = /* @__PURE__ */ b(Ro, [["render", Po]]), Vo = {
|
|
|
2748
2748
|
}],
|
|
2749
2749
|
static: !0,
|
|
2750
2750
|
noWrap: !0
|
|
2751
|
-
},
|
|
2751
|
+
}, Bo = f({
|
|
2752
2752
|
name: "builder-select-component",
|
|
2753
2753
|
props: ["attributes", "value", "defaultValue", "name", "options"],
|
|
2754
2754
|
data() {
|
|
2755
2755
|
return { isEditing: I, filterAttrs: W };
|
|
2756
2756
|
}
|
|
2757
|
-
}),
|
|
2758
|
-
function
|
|
2757
|
+
}), Wo = ["value", "defaultValue", "name"], No = ["value"];
|
|
2758
|
+
function Fo(e, t, n, o, s, r) {
|
|
2759
2759
|
return u(), h("select", w({
|
|
2760
2760
|
value: e.value,
|
|
2761
2761
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
@@ -2765,10 +2765,10 @@ function No(e, t, n, o, s, r) {
|
|
|
2765
2765
|
(u(!0), h($, null, O(e.options, (i, a) => (u(), h("option", {
|
|
2766
2766
|
key: `${i.name}-${a}`,
|
|
2767
2767
|
value: i.value
|
|
2768
|
-
},
|
|
2769
|
-
], 16,
|
|
2768
|
+
}, te(i.name || i.value), 9, No))), 128))
|
|
2769
|
+
], 16, Wo);
|
|
2770
2770
|
}
|
|
2771
|
-
const
|
|
2771
|
+
const Oo = /* @__PURE__ */ b(Bo, [["render", Fo]]), Uo = {
|
|
2772
2772
|
name: "Form:SubmitButton",
|
|
2773
2773
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2774
2774
|
defaultStyles: {
|
|
@@ -2793,17 +2793,17 @@ const Fo = /* @__PURE__ */ b(Ao, [["render", No]]), Oo = {
|
|
|
2793
2793
|
// that only shows if advanced setting is flipped
|
|
2794
2794
|
// TODO: defaultChildren
|
|
2795
2795
|
// canHaveChildren: true,
|
|
2796
|
-
},
|
|
2796
|
+
}, Lo = f({
|
|
2797
2797
|
name: "builder-submit-button",
|
|
2798
2798
|
props: ["attributes", "text"],
|
|
2799
2799
|
data() {
|
|
2800
2800
|
return { filterAttrs: W };
|
|
2801
2801
|
}
|
|
2802
2802
|
});
|
|
2803
|
-
function
|
|
2804
|
-
return u(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)),
|
|
2803
|
+
function Mo(e, t, n, o, s, r) {
|
|
2804
|
+
return u(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), te(e.text), 17);
|
|
2805
2805
|
}
|
|
2806
|
-
const
|
|
2806
|
+
const Do = /* @__PURE__ */ b(Lo, [["render", Mo]]), Ho = {
|
|
2807
2807
|
// friendlyName?
|
|
2808
2808
|
name: "Raw:Img",
|
|
2809
2809
|
hideFromInsertMenu: !0,
|
|
@@ -2817,7 +2817,7 @@ const Mo = /* @__PURE__ */ b(Uo, [["render", Lo]]), Do = {
|
|
|
2817
2817
|
}],
|
|
2818
2818
|
noWrap: !0,
|
|
2819
2819
|
static: !0
|
|
2820
|
-
},
|
|
2820
|
+
}, jo = f({
|
|
2821
2821
|
name: "builder-img-component",
|
|
2822
2822
|
props: [
|
|
2823
2823
|
"backgroundSize",
|
|
@@ -2830,8 +2830,8 @@ const Mo = /* @__PURE__ */ b(Uo, [["render", Lo]]), Do = {
|
|
|
2830
2830
|
data() {
|
|
2831
2831
|
return { isEditing: I, filterAttrs: W };
|
|
2832
2832
|
}
|
|
2833
|
-
}),
|
|
2834
|
-
function
|
|
2833
|
+
}), Ko = ["alt", "src"];
|
|
2834
|
+
function zo(e, t, n, o, s, r) {
|
|
2835
2835
|
return u(), h("img", w({
|
|
2836
2836
|
style: {
|
|
2837
2837
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -2840,9 +2840,9 @@ function Ko(e, t, n, o, s, r) {
|
|
|
2840
2840
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
2841
2841
|
alt: e.altText,
|
|
2842
2842
|
src: e.imgSrc || e.image
|
|
2843
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
2843
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ko);
|
|
2844
2844
|
}
|
|
2845
|
-
const
|
|
2845
|
+
const qo = /* @__PURE__ */ b(jo, [["render", zo]]), Jo = {
|
|
2846
2846
|
name: "Video",
|
|
2847
2847
|
canHaveChildren: !0,
|
|
2848
2848
|
defaultStyles: {
|
|
@@ -2923,7 +2923,7 @@ const zo = /* @__PURE__ */ b(Ho, [["render", Ko]]), qo = {
|
|
|
2923
2923
|
defaultValue: !0,
|
|
2924
2924
|
advanced: !0
|
|
2925
2925
|
}]
|
|
2926
|
-
},
|
|
2926
|
+
}, Go = f({
|
|
2927
2927
|
name: "builder-video",
|
|
2928
2928
|
props: [
|
|
2929
2929
|
"autoPlay",
|
|
@@ -2968,16 +2968,16 @@ const zo = /* @__PURE__ */ b(Ho, [["render", Ko]]), qo = {
|
|
|
2968
2968
|
};
|
|
2969
2969
|
}
|
|
2970
2970
|
}
|
|
2971
|
-
}),
|
|
2971
|
+
}), Yo = { style: {
|
|
2972
2972
|
position: "relative"
|
|
2973
|
-
} },
|
|
2973
|
+
} }, Qo = ["preload", "src", "poster"], Xo = ["src"], _o = {
|
|
2974
2974
|
key: 1,
|
|
2975
2975
|
style: {
|
|
2976
2976
|
display: "flex",
|
|
2977
2977
|
flexDirection: "column",
|
|
2978
2978
|
alignItems: "stretch"
|
|
2979
2979
|
}
|
|
2980
|
-
},
|
|
2980
|
+
}, Zo = {
|
|
2981
2981
|
key: 2,
|
|
2982
2982
|
style: {
|
|
2983
2983
|
pointerEvents: "none",
|
|
@@ -2991,10 +2991,10 @@ const zo = /* @__PURE__ */ b(Ho, [["render", Ko]]), qo = {
|
|
|
2991
2991
|
height: "100%"
|
|
2992
2992
|
}
|
|
2993
2993
|
};
|
|
2994
|
-
function
|
|
2994
|
+
function es(e, t, n, o, s, r) {
|
|
2995
2995
|
var i, a, l, d, m, c, p;
|
|
2996
|
-
return u(), h("div",
|
|
2997
|
-
|
|
2996
|
+
return u(), h("div", Yo, [
|
|
2997
|
+
_("video", w({
|
|
2998
2998
|
class: "builder-video",
|
|
2999
2999
|
preload: e.preload || "metadata",
|
|
3000
3000
|
style: {
|
|
@@ -3018,8 +3018,8 @@ function Zo(e, t, n, o, s, r) {
|
|
|
3018
3018
|
key: 0,
|
|
3019
3019
|
type: "video/mp4",
|
|
3020
3020
|
src: e.video
|
|
3021
|
-
}, null, 8,
|
|
3022
|
-
], 16,
|
|
3021
|
+
}, null, 8, Xo))
|
|
3022
|
+
], 16, Qo),
|
|
3023
3023
|
e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (u(), h("div", {
|
|
3024
3024
|
key: 0,
|
|
3025
3025
|
style: K({
|
|
@@ -3029,81 +3029,81 @@ function Zo(e, t, n, o, s, r) {
|
|
|
3029
3029
|
fontSize: "0px"
|
|
3030
3030
|
})
|
|
3031
3031
|
}, null, 4)) : S("", !0),
|
|
3032
|
-
(m = (d = e.builderBlock) == null ? void 0 : d.children) != null && m.length && e.fitContent ? (u(), h("div",
|
|
3032
|
+
(m = (d = e.builderBlock) == null ? void 0 : d.children) != null && m.length && e.fitContent ? (u(), h("div", _o, [
|
|
3033
3033
|
P(e.$slots, "default")
|
|
3034
3034
|
])) : S("", !0),
|
|
3035
|
-
(p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (u(), h("div",
|
|
3035
|
+
(p = (c = e.builderBlock) == null ? void 0 : c.children) != null && p.length && !e.fitContent ? (u(), h("div", Zo, [
|
|
3036
3036
|
P(e.$slots, "default")
|
|
3037
3037
|
])) : S("", !0)
|
|
3038
3038
|
]);
|
|
3039
3039
|
}
|
|
3040
|
-
const
|
|
3041
|
-
component:
|
|
3042
|
-
...
|
|
3040
|
+
const ts = /* @__PURE__ */ b(Go, [["render", es]]), ns = () => [{
|
|
3041
|
+
component: co,
|
|
3042
|
+
...ro
|
|
3043
3043
|
}, {
|
|
3044
|
-
component:
|
|
3045
|
-
...
|
|
3044
|
+
component: go,
|
|
3045
|
+
...uo
|
|
3046
3046
|
}, {
|
|
3047
|
-
component:
|
|
3048
|
-
...
|
|
3047
|
+
component: Io,
|
|
3048
|
+
...yo
|
|
3049
3049
|
}, {
|
|
3050
|
-
component:
|
|
3051
|
-
...
|
|
3050
|
+
component: Vo,
|
|
3051
|
+
...Ro
|
|
3052
3052
|
}, {
|
|
3053
|
-
component:
|
|
3054
|
-
...
|
|
3053
|
+
component: Do,
|
|
3054
|
+
...Uo
|
|
3055
3055
|
}, {
|
|
3056
|
-
component:
|
|
3057
|
-
...
|
|
3056
|
+
component: Oo,
|
|
3057
|
+
...Ao
|
|
3058
3058
|
}, {
|
|
3059
|
-
component:
|
|
3060
|
-
...
|
|
3059
|
+
component: qo,
|
|
3060
|
+
...Ho
|
|
3061
3061
|
}, {
|
|
3062
|
-
component:
|
|
3063
|
-
...
|
|
3062
|
+
component: ts,
|
|
3063
|
+
...Jo
|
|
3064
3064
|
}], ve = () => [{
|
|
3065
|
-
component:
|
|
3066
|
-
...On
|
|
3067
|
-
}, {
|
|
3068
|
-
component: un,
|
|
3065
|
+
component: vt,
|
|
3069
3066
|
...Un
|
|
3070
3067
|
}, {
|
|
3071
|
-
component:
|
|
3068
|
+
component: pn,
|
|
3072
3069
|
...Ln
|
|
3073
3070
|
}, {
|
|
3074
|
-
component:
|
|
3071
|
+
component: fn,
|
|
3075
3072
|
...Mn
|
|
3076
3073
|
}, {
|
|
3077
|
-
component:
|
|
3074
|
+
component: wn,
|
|
3078
3075
|
...Dn
|
|
3079
3076
|
}, {
|
|
3080
|
-
component:
|
|
3077
|
+
component: In,
|
|
3081
3078
|
...Hn
|
|
3082
3079
|
}, {
|
|
3083
|
-
component:
|
|
3084
|
-
...
|
|
3080
|
+
component: qn,
|
|
3081
|
+
...jn
|
|
3085
3082
|
}, {
|
|
3086
|
-
component:
|
|
3087
|
-
...Zn
|
|
3088
|
-
}, {
|
|
3089
|
-
component: Xn,
|
|
3083
|
+
component: ur,
|
|
3090
3084
|
...Jn
|
|
3091
|
-
},
|
|
3085
|
+
}, {
|
|
3086
|
+
component: so,
|
|
3087
|
+
...eo
|
|
3088
|
+
}, {
|
|
3089
|
+
component: Zn,
|
|
3090
|
+
...Gn
|
|
3091
|
+
}, ...ns()], os = (e) => ({
|
|
3092
3092
|
type: "builder.registerComponent",
|
|
3093
|
-
data:
|
|
3094
|
-
}),
|
|
3093
|
+
data: ae(e)
|
|
3094
|
+
}), ss = (e) => {
|
|
3095
3095
|
const t = e.toString().trim();
|
|
3096
3096
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
3097
|
-
},
|
|
3097
|
+
}, rs = (e) => typeof e == "function" ? ss(e) : q(e), ae = ({
|
|
3098
3098
|
inputs: e,
|
|
3099
3099
|
...t
|
|
3100
3100
|
}) => ({
|
|
3101
3101
|
...q(t),
|
|
3102
3102
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [s, r]) => ({
|
|
3103
3103
|
...o,
|
|
3104
|
-
[s]:
|
|
3104
|
+
[s]: rs(r)
|
|
3105
3105
|
}), {}))
|
|
3106
|
-
}),
|
|
3106
|
+
}), is = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3107
3107
|
function getAndSetVariantId() {
|
|
3108
3108
|
function setCookie(name, value, days) {
|
|
3109
3109
|
let expires = '';
|
|
@@ -3159,7 +3159,7 @@ const es = /* @__PURE__ */ b(Jo, [["render", Zo]]), ts = () => [{
|
|
|
3159
3159
|
}).join('');
|
|
3160
3160
|
styleEl.innerHTML = newStyleStr;
|
|
3161
3161
|
}
|
|
3162
|
-
}`,
|
|
3162
|
+
}`, as = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3163
3163
|
if (!navigator.cookieEnabled) {
|
|
3164
3164
|
return;
|
|
3165
3165
|
}
|
|
@@ -3193,25 +3193,25 @@ const es = /* @__PURE__ */ b(Jo, [["render", Zo]]), ts = () => [{
|
|
|
3193
3193
|
thisScriptEl?.remove();
|
|
3194
3194
|
}
|
|
3195
3195
|
return;
|
|
3196
|
-
}`, Ye = "builderIoAbTest",
|
|
3196
|
+
}`, Ye = "builderIoAbTest", Qe = "builderIoRenderContent", X = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3197
3197
|
...t,
|
|
3198
3198
|
testVariationId: t.id,
|
|
3199
3199
|
id: e == null ? void 0 : e.id
|
|
3200
|
-
})),
|
|
3200
|
+
})), ls = ({
|
|
3201
3201
|
canTrack: e,
|
|
3202
3202
|
content: t
|
|
3203
|
-
}) => !(!(
|
|
3204
|
-
window.${Ye} = ${
|
|
3205
|
-
window.${
|
|
3206
|
-
`,
|
|
3203
|
+
}) => !(!(X(t).length > 0) || !e), cs = (e) => e === "react" || e === "reactNative", Xe = cs(V), ds = () => `
|
|
3204
|
+
window.${Ye} = ${is}
|
|
3205
|
+
window.${Qe} = ${as}
|
|
3206
|
+
`, us = (e, t) => `
|
|
3207
3207
|
window.${Ye}(
|
|
3208
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3209
|
-
)`,
|
|
3208
|
+
"${t}",${JSON.stringify(e)}, ${Xe}
|
|
3209
|
+
)`, ps = ({
|
|
3210
3210
|
contentId: e,
|
|
3211
3211
|
variationId: t
|
|
3212
|
-
}) => `window.${
|
|
3213
|
-
"${t}", "${e}", ${
|
|
3214
|
-
)`,
|
|
3212
|
+
}) => `window.${Qe}(
|
|
3213
|
+
"${t}", "${e}", ${Xe}
|
|
3214
|
+
)`, _e = f({
|
|
3215
3215
|
render() {
|
|
3216
3216
|
return Ee("script", {
|
|
3217
3217
|
innerHTML: this.scriptStr,
|
|
@@ -3221,44 +3221,51 @@ const es = /* @__PURE__ */ b(Jo, [["render", Zo]]), ts = () => [{
|
|
|
3221
3221
|
name: "inlined-script",
|
|
3222
3222
|
props: ["scriptStr", "id"]
|
|
3223
3223
|
});
|
|
3224
|
-
function
|
|
3224
|
+
function ms() {
|
|
3225
3225
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
3226
3226
|
}
|
|
3227
|
-
function
|
|
3228
|
-
const e =
|
|
3227
|
+
function hs() {
|
|
3228
|
+
const e = ms().fetch;
|
|
3229
3229
|
if (typeof e > "u")
|
|
3230
3230
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
3231
3231
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
3232
3232
|
return e;
|
|
3233
3233
|
}
|
|
3234
|
-
const Ze =
|
|
3235
|
-
function
|
|
3234
|
+
const Ze = hs();
|
|
3235
|
+
function le(e, t = null, n = ".") {
|
|
3236
3236
|
return Object.keys(e).reduce((o, s) => {
|
|
3237
3237
|
const r = e[s], i = [t, s].filter(Boolean).join(n);
|
|
3238
3238
|
return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
|
|
3239
3239
|
...o,
|
|
3240
|
-
...
|
|
3240
|
+
...le(r, i, n)
|
|
3241
3241
|
} : {
|
|
3242
3242
|
...o,
|
|
3243
3243
|
[i]: r
|
|
3244
3244
|
};
|
|
3245
3245
|
}, {});
|
|
3246
3246
|
}
|
|
3247
|
-
|
|
3247
|
+
function et(e, t, n = {}) {
|
|
3248
|
+
for (const o in e) {
|
|
3249
|
+
const s = e[o], r = t ? t + "." + o : o;
|
|
3250
|
+
s && typeof s == "object" && !Array.isArray(s) && !Object.keys(s).find((i) => i.startsWith("$")) ? et(s, r, n) : n[r] = s;
|
|
3251
|
+
}
|
|
3252
|
+
return n;
|
|
3253
|
+
}
|
|
3254
|
+
const fs = "v3", Se = "builder.", bs = "options.", tt = (e) => {
|
|
3248
3255
|
if (!e)
|
|
3249
3256
|
return {};
|
|
3250
3257
|
const t = xe(e), n = {};
|
|
3251
3258
|
return Object.keys(t).forEach((o) => {
|
|
3252
3259
|
if (o.startsWith(Se)) {
|
|
3253
|
-
const s = o.replace(Se, "").replace(
|
|
3260
|
+
const s = o.replace(Se, "").replace(bs, "");
|
|
3254
3261
|
n[s] = t[o];
|
|
3255
3262
|
}
|
|
3256
3263
|
}), n;
|
|
3257
|
-
},
|
|
3264
|
+
}, gs = () => {
|
|
3258
3265
|
if (!T())
|
|
3259
3266
|
return {};
|
|
3260
3267
|
const e = new URLSearchParams(window.location.search);
|
|
3261
|
-
return
|
|
3268
|
+
return tt(e);
|
|
3262
3269
|
}, Ce = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fe = (e) => {
|
|
3263
3270
|
const {
|
|
3264
3271
|
limit: t = 30,
|
|
@@ -3268,7 +3275,7 @@ const hs = "v3", Se = "builder.", fs = "options.", et = (e) => {
|
|
|
3268
3275
|
apiKey: r,
|
|
3269
3276
|
enrich: i,
|
|
3270
3277
|
locale: a,
|
|
3271
|
-
apiVersion: l =
|
|
3278
|
+
apiVersion: l = fs,
|
|
3272
3279
|
fields: d,
|
|
3273
3280
|
omit: m,
|
|
3274
3281
|
offset: c,
|
|
@@ -3283,45 +3290,45 @@ const hs = "v3", Se = "builder.", fs = "options.", et = (e) => {
|
|
|
3283
3290
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);
|
|
3284
3291
|
const Y = t !== 1, C = new URL(`https://cdn.builder.io/api/${l}/content/${s}`);
|
|
3285
3292
|
if (C.searchParams.set("apiKey", r), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(Y)), C.searchParams.set("includeRefs", String(!0)), a && C.searchParams.set("locale", a), i && C.searchParams.set("enrich", String(i)), C.searchParams.set("omit", m || "meta.componentsUsed"), d && C.searchParams.set("fields", d), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof N == "boolean" && C.searchParams.set("includeUnpublished", String(N)), p && Ce(p) && C.searchParams.set("cacheSeconds", String(p)), v && Ce(v) && C.searchParams.set("staleCacheSeconds", String(v)), g) {
|
|
3286
|
-
const F =
|
|
3293
|
+
const F = le({
|
|
3287
3294
|
sort: g
|
|
3288
3295
|
});
|
|
3289
3296
|
for (const M in F)
|
|
3290
3297
|
C.searchParams.set(M, JSON.stringify(F[M]));
|
|
3291
3298
|
}
|
|
3292
|
-
const
|
|
3293
|
-
...
|
|
3299
|
+
const ct = {
|
|
3300
|
+
...gs(),
|
|
3294
3301
|
...xe(e.options || {})
|
|
3295
|
-
}, ge =
|
|
3302
|
+
}, ge = le(ct);
|
|
3296
3303
|
for (const F in ge)
|
|
3297
3304
|
C.searchParams.set(F, String(ge[F]));
|
|
3298
3305
|
if (n && C.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
3299
|
-
const F =
|
|
3306
|
+
const F = et({
|
|
3300
3307
|
query: o
|
|
3301
3308
|
});
|
|
3302
3309
|
for (const M in F)
|
|
3303
3310
|
C.searchParams.set(M, JSON.stringify(F[M]));
|
|
3304
3311
|
}
|
|
3305
3312
|
return C;
|
|
3306
|
-
},
|
|
3313
|
+
}, ys = (e) => "results" in e;
|
|
3307
3314
|
async function be(e) {
|
|
3308
|
-
const t = await
|
|
3315
|
+
const t = await Ss({
|
|
3309
3316
|
...e,
|
|
3310
3317
|
limit: 1
|
|
3311
3318
|
});
|
|
3312
3319
|
return t && t[0] || null;
|
|
3313
3320
|
}
|
|
3314
|
-
const
|
|
3321
|
+
const ks = async (e) => {
|
|
3315
3322
|
const t = fe(e);
|
|
3316
3323
|
return await (await (e.fetch ?? Ze)(t.href, e.fetchOptions)).json();
|
|
3317
|
-
},
|
|
3324
|
+
}, vs = async (e, t, n = fe(e)) => {
|
|
3318
3325
|
const o = z(e.canTrack);
|
|
3319
3326
|
if (n.search.includes("preview="), !o || !(T() || V === "reactNative"))
|
|
3320
3327
|
return t.results;
|
|
3321
3328
|
try {
|
|
3322
3329
|
const s = [];
|
|
3323
3330
|
for (const r of t.results)
|
|
3324
|
-
s.push(await
|
|
3331
|
+
s.push(await On({
|
|
3325
3332
|
item: r,
|
|
3326
3333
|
canTrack: o
|
|
3327
3334
|
}));
|
|
@@ -3331,10 +3338,10 @@ const ys = async (e) => {
|
|
|
3331
3338
|
}
|
|
3332
3339
|
return t.results;
|
|
3333
3340
|
};
|
|
3334
|
-
async function
|
|
3341
|
+
async function Ss(e) {
|
|
3335
3342
|
try {
|
|
3336
|
-
const t = fe(e), n = await
|
|
3337
|
-
return
|
|
3343
|
+
const t = fe(e), n = await ks(e);
|
|
3344
|
+
return ys(n) ? vs(e, n) : (R.error("Error fetching data. ", {
|
|
3338
3345
|
url: t,
|
|
3339
3346
|
content: n,
|
|
3340
3347
|
options: e
|
|
@@ -3343,92 +3350,92 @@ async function vs(e) {
|
|
|
3343
3350
|
return R.error("Error fetching data. ", t), null;
|
|
3344
3351
|
}
|
|
3345
3352
|
}
|
|
3346
|
-
function
|
|
3353
|
+
function Cs(e) {
|
|
3347
3354
|
const t = e || (T() ? window.location.search : void 0);
|
|
3348
3355
|
return t ? Ve(t).indexOf("builder.preview=") !== -1 : !1;
|
|
3349
3356
|
}
|
|
3350
|
-
function
|
|
3357
|
+
function ws() {
|
|
3351
3358
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
3352
3359
|
const t = Math.random() * 16 | 0;
|
|
3353
3360
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
3354
3361
|
});
|
|
3355
3362
|
}
|
|
3356
|
-
function
|
|
3357
|
-
return
|
|
3363
|
+
function nt() {
|
|
3364
|
+
return ws().replace(/-/g, "");
|
|
3358
3365
|
}
|
|
3359
|
-
const
|
|
3366
|
+
const ot = "builderSessionId", Ts = async ({
|
|
3360
3367
|
canTrack: e
|
|
3361
3368
|
}) => {
|
|
3362
3369
|
if (!e)
|
|
3363
3370
|
return;
|
|
3364
3371
|
const t = await Ke({
|
|
3365
|
-
name:
|
|
3372
|
+
name: ot,
|
|
3366
3373
|
canTrack: e
|
|
3367
3374
|
});
|
|
3368
3375
|
if (U(t))
|
|
3369
3376
|
return t;
|
|
3370
3377
|
{
|
|
3371
|
-
const n =
|
|
3372
|
-
return
|
|
3378
|
+
const n = $s();
|
|
3379
|
+
return Is({
|
|
3373
3380
|
id: n,
|
|
3374
3381
|
canTrack: e
|
|
3375
3382
|
}), n;
|
|
3376
3383
|
}
|
|
3377
|
-
},
|
|
3384
|
+
}, $s = () => nt(), Is = ({
|
|
3378
3385
|
id: e,
|
|
3379
3386
|
canTrack: t
|
|
3380
3387
|
}) => ze({
|
|
3381
|
-
name:
|
|
3388
|
+
name: ot,
|
|
3382
3389
|
value: e,
|
|
3383
3390
|
canTrack: t
|
|
3384
|
-
}),
|
|
3391
|
+
}), st = () => T() && typeof localStorage < "u" ? localStorage : void 0, Rs = ({
|
|
3385
3392
|
key: e,
|
|
3386
3393
|
canTrack: t
|
|
3387
3394
|
}) => {
|
|
3388
3395
|
var n;
|
|
3389
3396
|
try {
|
|
3390
|
-
return t ? (n =
|
|
3397
|
+
return t ? (n = st()) == null ? void 0 : n.getItem(e) : void 0;
|
|
3391
3398
|
} catch (o) {
|
|
3392
3399
|
console.debug("[LocalStorage] GET error: ", o);
|
|
3393
3400
|
return;
|
|
3394
3401
|
}
|
|
3395
|
-
},
|
|
3402
|
+
}, Es = ({
|
|
3396
3403
|
key: e,
|
|
3397
3404
|
canTrack: t,
|
|
3398
3405
|
value: n
|
|
3399
3406
|
}) => {
|
|
3400
3407
|
var o;
|
|
3401
3408
|
try {
|
|
3402
|
-
t && ((o =
|
|
3409
|
+
t && ((o = st()) == null || o.setItem(e, n));
|
|
3403
3410
|
} catch (s) {
|
|
3404
3411
|
console.debug("[LocalStorage] SET error: ", s);
|
|
3405
3412
|
}
|
|
3406
|
-
},
|
|
3413
|
+
}, rt = "builderVisitorId", Ps = ({
|
|
3407
3414
|
canTrack: e
|
|
3408
3415
|
}) => {
|
|
3409
3416
|
if (!e)
|
|
3410
3417
|
return;
|
|
3411
|
-
const t =
|
|
3412
|
-
key:
|
|
3418
|
+
const t = Rs({
|
|
3419
|
+
key: rt,
|
|
3413
3420
|
canTrack: e
|
|
3414
3421
|
});
|
|
3415
3422
|
if (U(t))
|
|
3416
3423
|
return t;
|
|
3417
3424
|
{
|
|
3418
|
-
const n =
|
|
3419
|
-
return
|
|
3425
|
+
const n = xs();
|
|
3426
|
+
return Vs({
|
|
3420
3427
|
id: n,
|
|
3421
3428
|
canTrack: e
|
|
3422
3429
|
}), n;
|
|
3423
3430
|
}
|
|
3424
|
-
},
|
|
3431
|
+
}, xs = () => nt(), Vs = ({
|
|
3425
3432
|
id: e,
|
|
3426
3433
|
canTrack: t
|
|
3427
|
-
}) =>
|
|
3428
|
-
key:
|
|
3434
|
+
}) => Es({
|
|
3435
|
+
key: rt,
|
|
3429
3436
|
value: e,
|
|
3430
3437
|
canTrack: t
|
|
3431
|
-
}),
|
|
3438
|
+
}), As = async ({
|
|
3432
3439
|
canTrack: e
|
|
3433
3440
|
}) => {
|
|
3434
3441
|
if (!e)
|
|
@@ -3436,16 +3443,16 @@ const nt = "builderSessionId", ws = async ({
|
|
|
3436
3443
|
visitorId: void 0,
|
|
3437
3444
|
sessionId: void 0
|
|
3438
3445
|
};
|
|
3439
|
-
const t = await
|
|
3446
|
+
const t = await Ts({
|
|
3440
3447
|
canTrack: e
|
|
3441
|
-
}), n =
|
|
3448
|
+
}), n = Ps({
|
|
3442
3449
|
canTrack: e
|
|
3443
3450
|
});
|
|
3444
3451
|
return {
|
|
3445
3452
|
sessionId: t,
|
|
3446
3453
|
visitorId: n
|
|
3447
3454
|
};
|
|
3448
|
-
},
|
|
3455
|
+
}, Bs = async ({
|
|
3449
3456
|
type: e,
|
|
3450
3457
|
canTrack: t,
|
|
3451
3458
|
apiKey: n,
|
|
@@ -3459,7 +3466,7 @@ const nt = "builderSessionId", ws = async ({
|
|
|
3459
3466
|
url: location.href,
|
|
3460
3467
|
...o
|
|
3461
3468
|
},
|
|
3462
|
-
...await
|
|
3469
|
+
...await As({
|
|
3463
3470
|
canTrack: t
|
|
3464
3471
|
}),
|
|
3465
3472
|
userAttributes: Ae(),
|
|
@@ -3475,7 +3482,7 @@ async function ce(e) {
|
|
|
3475
3482
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
3476
3483
|
method: "POST",
|
|
3477
3484
|
body: JSON.stringify({
|
|
3478
|
-
events: [await
|
|
3485
|
+
events: [await Bs(e)]
|
|
3479
3486
|
}),
|
|
3480
3487
|
headers: {
|
|
3481
3488
|
"content-type": "application/json"
|
|
@@ -3485,14 +3492,14 @@ async function ce(e) {
|
|
|
3485
3492
|
console.error("Failed to track: ", t);
|
|
3486
3493
|
});
|
|
3487
3494
|
}
|
|
3488
|
-
const
|
|
3495
|
+
const vr = (e) => ce({
|
|
3489
3496
|
...e,
|
|
3490
3497
|
canTrack: !0
|
|
3491
3498
|
});
|
|
3492
3499
|
function we(e) {
|
|
3493
3500
|
return Math.round(e * 1e3) / 1e3;
|
|
3494
3501
|
}
|
|
3495
|
-
const
|
|
3502
|
+
const Ws = (e, t, n = !0) => {
|
|
3496
3503
|
if (!(e instanceof HTMLElement))
|
|
3497
3504
|
return null;
|
|
3498
3505
|
let o = n ? e : e.parentElement;
|
|
@@ -3503,7 +3510,7 @@ const Bs = (e, t, n = !0) => {
|
|
|
3503
3510
|
return o;
|
|
3504
3511
|
} while (o = o.parentElement);
|
|
3505
3512
|
return null;
|
|
3506
|
-
},
|
|
3513
|
+
}, Ns = (e) => Ws(e, (t) => {
|
|
3507
3514
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3508
3515
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3509
3516
|
}), Te = ({
|
|
@@ -3515,8 +3522,8 @@ const Bs = (e, t, n = !0) => {
|
|
|
3515
3522
|
x: r,
|
|
3516
3523
|
y: i
|
|
3517
3524
|
};
|
|
3518
|
-
},
|
|
3519
|
-
const t = e.target, n = t &&
|
|
3525
|
+
}, Fs = (e) => {
|
|
3526
|
+
const t = e.target, n = t && Ns(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3520
3527
|
return {
|
|
3521
3528
|
targetBuilderElement: o || void 0,
|
|
3522
3529
|
metadata: {
|
|
@@ -3531,13 +3538,13 @@ const Bs = (e, t, n = !0) => {
|
|
|
3531
3538
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
3532
3539
|
}
|
|
3533
3540
|
};
|
|
3534
|
-
},
|
|
3535
|
-
function
|
|
3541
|
+
}, Os = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
3542
|
+
function it(e, t) {
|
|
3536
3543
|
const n = new URL(t.origin), o = n.hostname;
|
|
3537
|
-
return (e ||
|
|
3544
|
+
return (e || Os).findIndex((s) => s.startsWith("*.") ? o.endsWith(s.slice(1)) : s === o) > -1;
|
|
3538
3545
|
}
|
|
3539
|
-
const
|
|
3540
|
-
function
|
|
3546
|
+
const Us = "1.0.27", $e = {};
|
|
3547
|
+
function Ls(e, t) {
|
|
3541
3548
|
let n = $e[e];
|
|
3542
3549
|
if (n || (n = $e[e] = []), n.push(t), T()) {
|
|
3543
3550
|
const o = {
|
|
@@ -3554,8 +3561,8 @@ function Us(e, t) {
|
|
|
3554
3561
|
}
|
|
3555
3562
|
}
|
|
3556
3563
|
}
|
|
3557
|
-
const
|
|
3558
|
-
|
|
3564
|
+
const Ms = () => {
|
|
3565
|
+
Ls("insertMenu", {
|
|
3559
3566
|
name: "_default",
|
|
3560
3567
|
default: !0,
|
|
3561
3568
|
items: [{
|
|
@@ -3578,13 +3585,13 @@ const Ls = () => {
|
|
|
3578
3585
|
});
|
|
3579
3586
|
};
|
|
3580
3587
|
let Ie = !1;
|
|
3581
|
-
const
|
|
3588
|
+
const at = (e = {}) => {
|
|
3582
3589
|
var t, n;
|
|
3583
3590
|
Ie || (Ie = !0, T() && ((t = window.parent) == null || t.postMessage({
|
|
3584
3591
|
type: "builder.sdkInfo",
|
|
3585
3592
|
data: {
|
|
3586
3593
|
target: V,
|
|
3587
|
-
version:
|
|
3594
|
+
version: Us,
|
|
3588
3595
|
supportsPatchUpdates: !1,
|
|
3589
3596
|
// Supports builder-model="..." attribute which is needed to
|
|
3590
3597
|
// scope our '+ add block' button styling
|
|
@@ -3598,7 +3605,7 @@ const it = (e = {}) => {
|
|
|
3598
3605
|
}
|
|
3599
3606
|
}, "*"), window.addEventListener("message", (o) => {
|
|
3600
3607
|
var r, i;
|
|
3601
|
-
if (!
|
|
3608
|
+
if (!it(e.trustedHosts, o))
|
|
3602
3609
|
return;
|
|
3603
3610
|
const {
|
|
3604
3611
|
data: s
|
|
@@ -3639,12 +3646,12 @@ const it = (e = {}) => {
|
|
|
3639
3646
|
}
|
|
3640
3647
|
}
|
|
3641
3648
|
})));
|
|
3642
|
-
},
|
|
3649
|
+
}, lt = ({
|
|
3643
3650
|
model: e,
|
|
3644
3651
|
trustedHosts: t,
|
|
3645
3652
|
callbacks: n
|
|
3646
3653
|
}) => (o) => {
|
|
3647
|
-
if (!
|
|
3654
|
+
if (!it(t, o))
|
|
3648
3655
|
return;
|
|
3649
3656
|
const {
|
|
3650
3657
|
data: s
|
|
@@ -3665,12 +3672,12 @@ const it = (e = {}) => {
|
|
|
3665
3672
|
break;
|
|
3666
3673
|
}
|
|
3667
3674
|
}
|
|
3668
|
-
},
|
|
3675
|
+
}, Sr = (e, t, n) => {
|
|
3669
3676
|
if (!T)
|
|
3670
3677
|
return R.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
3671
3678
|
};
|
|
3672
|
-
|
|
3673
|
-
const o =
|
|
3679
|
+
at();
|
|
3680
|
+
const o = lt({
|
|
3674
3681
|
callbacks: {
|
|
3675
3682
|
contentUpdate: t,
|
|
3676
3683
|
animation: () => {
|
|
@@ -3684,7 +3691,7 @@ const it = (e = {}) => {
|
|
|
3684
3691
|
return window.addEventListener("message", o), () => {
|
|
3685
3692
|
window.removeEventListener("message", o);
|
|
3686
3693
|
};
|
|
3687
|
-
},
|
|
3694
|
+
}, Ds = (e) => {
|
|
3688
3695
|
var r;
|
|
3689
3696
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((r = e == null ? void 0 : e.files) == null ? void 0 : r.regular);
|
|
3690
3697
|
let s = "";
|
|
@@ -3710,15 +3717,15 @@ font-weight: ${i};
|
|
|
3710
3717
|
`.trim());
|
|
3711
3718
|
}
|
|
3712
3719
|
return s;
|
|
3713
|
-
},
|
|
3720
|
+
}, Hs = ({
|
|
3714
3721
|
customFonts: e
|
|
3715
3722
|
}) => {
|
|
3716
3723
|
var t;
|
|
3717
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3718
|
-
},
|
|
3724
|
+
return ((t = e == null ? void 0 : e.map((n) => Ds(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3725
|
+
}, js = ({
|
|
3719
3726
|
cssCode: e,
|
|
3720
3727
|
contentId: t
|
|
3721
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3728
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ks = `
|
|
3722
3729
|
.builder-button {
|
|
3723
3730
|
all: unset;
|
|
3724
3731
|
}
|
|
@@ -3735,7 +3742,7 @@ font-weight: ${i};
|
|
|
3735
3742
|
text-align: inherit;
|
|
3736
3743
|
font-family: inherit;
|
|
3737
3744
|
}
|
|
3738
|
-
`,
|
|
3745
|
+
`, zs = (e) => e ? "" : Ks, qs = (e) => `variant-${e}`, Js = f({
|
|
3739
3746
|
name: "enable-editor",
|
|
3740
3747
|
components: { DynamicDiv: G },
|
|
3741
3748
|
props: [
|
|
@@ -3759,14 +3766,14 @@ font-weight: ${i};
|
|
|
3759
3766
|
httpReqsData: {},
|
|
3760
3767
|
httpReqsPending: {},
|
|
3761
3768
|
clicked: !1,
|
|
3762
|
-
builderContext:
|
|
3763
|
-
getWrapperClassName:
|
|
3769
|
+
builderContext: ie,
|
|
3770
|
+
getWrapperClassName: qs
|
|
3764
3771
|
};
|
|
3765
3772
|
},
|
|
3766
3773
|
provide() {
|
|
3767
3774
|
const e = this;
|
|
3768
3775
|
return {
|
|
3769
|
-
[
|
|
3776
|
+
[ie.key]: e.builderContextSignal
|
|
3770
3777
|
};
|
|
3771
3778
|
},
|
|
3772
3779
|
mounted() {
|
|
@@ -3785,7 +3792,7 @@ font-weight: ${i};
|
|
|
3785
3792
|
variationId: r !== i ? r : void 0
|
|
3786
3793
|
});
|
|
3787
3794
|
}
|
|
3788
|
-
|
|
3795
|
+
Cs() && !I() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
3789
3796
|
new CustomEvent("initpreviewingbldr")
|
|
3790
3797
|
);
|
|
3791
3798
|
}
|
|
@@ -3908,7 +3915,7 @@ font-weight: ${i};
|
|
|
3908
3915
|
this.builderContextSignal.content = t;
|
|
3909
3916
|
},
|
|
3910
3917
|
processMessage(e) {
|
|
3911
|
-
return
|
|
3918
|
+
return lt({
|
|
3912
3919
|
model: this.model,
|
|
3913
3920
|
trustedHosts: this.trustedHosts,
|
|
3914
3921
|
callbacks: {
|
|
@@ -3933,7 +3940,7 @@ font-weight: ${i};
|
|
|
3933
3940
|
evaluateJsCode() {
|
|
3934
3941
|
var t, n;
|
|
3935
3942
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
3936
|
-
e &&
|
|
3943
|
+
e && ee({
|
|
3937
3944
|
code: e,
|
|
3938
3945
|
context: this.context || {},
|
|
3939
3946
|
localState: void 0,
|
|
@@ -3955,7 +3962,7 @@ font-weight: ${i};
|
|
|
3955
3962
|
contentId: s,
|
|
3956
3963
|
apiKey: this.apiKey,
|
|
3957
3964
|
variationId: o !== s ? o : void 0,
|
|
3958
|
-
...
|
|
3965
|
+
...Fs(e),
|
|
3959
3966
|
unique: !this.clicked
|
|
3960
3967
|
});
|
|
3961
3968
|
}
|
|
@@ -3971,7 +3978,7 @@ font-weight: ${i};
|
|
|
3971
3978
|
const r = s.replace(
|
|
3972
3979
|
/{{([^}]+)}}/g,
|
|
3973
3980
|
(i, a) => String(
|
|
3974
|
-
|
|
3981
|
+
ee({
|
|
3975
3982
|
code: a,
|
|
3976
3983
|
context: this.context || {},
|
|
3977
3984
|
localState: void 0,
|
|
@@ -4008,7 +4015,7 @@ font-weight: ${i};
|
|
|
4008
4015
|
);
|
|
4009
4016
|
},
|
|
4010
4017
|
elementRef_onIniteditingbldr(e) {
|
|
4011
|
-
window.addEventListener("message", this.processMessage),
|
|
4018
|
+
window.addEventListener("message", this.processMessage), Ms(), at({
|
|
4012
4019
|
...this.locale ? {
|
|
4013
4020
|
locale: this.locale
|
|
4014
4021
|
} : {},
|
|
@@ -4022,7 +4029,7 @@ font-weight: ${i};
|
|
|
4022
4029
|
this.builderContextSignal.componentInfos
|
|
4023
4030
|
).forEach((t) => {
|
|
4024
4031
|
var o;
|
|
4025
|
-
const n =
|
|
4032
|
+
const n = os(t);
|
|
4026
4033
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
4027
4034
|
}), window.addEventListener(
|
|
4028
4035
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -4043,7 +4050,7 @@ font-weight: ${i};
|
|
|
4043
4050
|
}
|
|
4044
4051
|
}
|
|
4045
4052
|
});
|
|
4046
|
-
function
|
|
4053
|
+
function Gs(e, t, n, o, s, r) {
|
|
4047
4054
|
var i, a, l;
|
|
4048
4055
|
return e.builderContextSignal.content ? (u(), k(H(e.ContentWrapper), w({
|
|
4049
4056
|
key: 0,
|
|
@@ -4061,33 +4068,33 @@ function Js(e, t, n, o, s, r) {
|
|
|
4061
4068
|
_: 3
|
|
4062
4069
|
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
|
|
4063
4070
|
}
|
|
4064
|
-
const
|
|
4071
|
+
const Ys = /* @__PURE__ */ b(Js, [["render", Gs]]), Qs = f({
|
|
4065
4072
|
name: "content-styles",
|
|
4066
4073
|
components: { InlinedStyles: me },
|
|
4067
4074
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender"],
|
|
4068
4075
|
data() {
|
|
4069
4076
|
return {
|
|
4070
4077
|
injectedStyles: `
|
|
4071
|
-
${
|
|
4078
|
+
${js({
|
|
4072
4079
|
cssCode: this.cssCode,
|
|
4073
4080
|
contentId: this.contentId
|
|
4074
4081
|
})}
|
|
4075
|
-
${
|
|
4082
|
+
${Hs({
|
|
4076
4083
|
customFonts: this.customFonts
|
|
4077
4084
|
})}
|
|
4078
|
-
${
|
|
4085
|
+
${zs(this.isNestedRender)}
|
|
4079
4086
|
`.trim()
|
|
4080
4087
|
};
|
|
4081
4088
|
}
|
|
4082
4089
|
});
|
|
4083
|
-
function
|
|
4090
|
+
function Xs(e, t, n, o, s, r) {
|
|
4084
4091
|
const i = y("inlined-styles");
|
|
4085
4092
|
return u(), k(i, {
|
|
4086
4093
|
id: "builderio-content",
|
|
4087
4094
|
styles: e.injectedStyles
|
|
4088
4095
|
}, null, 8, ["styles"]);
|
|
4089
4096
|
}
|
|
4090
|
-
const
|
|
4097
|
+
const _s = /* @__PURE__ */ b(Qs, [["render", Xs]]), Zs = ({
|
|
4091
4098
|
content: e,
|
|
4092
4099
|
data: t,
|
|
4093
4100
|
locale: n
|
|
@@ -4104,7 +4111,7 @@ const Qs = /* @__PURE__ */ b(Ys, [["render", _s]]), Xs = ({
|
|
|
4104
4111
|
locale: n
|
|
4105
4112
|
} : {}
|
|
4106
4113
|
};
|
|
4107
|
-
},
|
|
4114
|
+
}, er = ({
|
|
4108
4115
|
content: e,
|
|
4109
4116
|
data: t
|
|
4110
4117
|
}) => e ? {
|
|
@@ -4114,12 +4121,12 @@ const Qs = /* @__PURE__ */ b(Ys, [["render", _s]]), Xs = ({
|
|
|
4114
4121
|
...t
|
|
4115
4122
|
},
|
|
4116
4123
|
meta: e == null ? void 0 : e.meta
|
|
4117
|
-
} : void 0,
|
|
4124
|
+
} : void 0, tr = mt, nr = f({
|
|
4118
4125
|
name: "content-component",
|
|
4119
4126
|
components: {
|
|
4120
|
-
EnableEditor:
|
|
4121
|
-
InlinedScript:
|
|
4122
|
-
ContentStyles:
|
|
4127
|
+
EnableEditor: Ys,
|
|
4128
|
+
InlinedScript: _e,
|
|
4129
|
+
ContentStyles: _s,
|
|
4123
4130
|
Blocks: J,
|
|
4124
4131
|
DynamicDiv: G
|
|
4125
4132
|
},
|
|
@@ -4147,7 +4154,7 @@ const Qs = /* @__PURE__ */ b(Ys, [["render", _s]]), Xs = ({
|
|
|
4147
4154
|
data() {
|
|
4148
4155
|
var e, t;
|
|
4149
4156
|
return {
|
|
4150
|
-
scriptStr:
|
|
4157
|
+
scriptStr: ps({
|
|
4151
4158
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4152
4159
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
4153
4160
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4160,19 +4167,19 @@ const Qs = /* @__PURE__ */ b(Ys, [["render", _s]]), Xs = ({
|
|
|
4160
4167
|
(n, { component: o, ...s }) => ({
|
|
4161
4168
|
...n,
|
|
4162
4169
|
[s.name]: {
|
|
4163
|
-
component:
|
|
4164
|
-
...
|
|
4170
|
+
component: tr(o),
|
|
4171
|
+
...ae(s)
|
|
4165
4172
|
}
|
|
4166
4173
|
}),
|
|
4167
4174
|
{}
|
|
4168
4175
|
),
|
|
4169
4176
|
builderContextSignal: {
|
|
4170
|
-
content:
|
|
4177
|
+
content: er({
|
|
4171
4178
|
content: this.content,
|
|
4172
4179
|
data: this.data
|
|
4173
4180
|
}),
|
|
4174
4181
|
localState: void 0,
|
|
4175
|
-
rootState:
|
|
4182
|
+
rootState: Zs({
|
|
4176
4183
|
content: this.content,
|
|
4177
4184
|
data: this.data,
|
|
4178
4185
|
locale: this.locale
|
|
@@ -4187,7 +4194,7 @@ const Qs = /* @__PURE__ */ b(Ys, [["render", _s]]), Xs = ({
|
|
|
4187
4194
|
].reduce(
|
|
4188
4195
|
(n, { component: o, ...s }) => ({
|
|
4189
4196
|
...n,
|
|
4190
|
-
[s.name]:
|
|
4197
|
+
[s.name]: ae(s)
|
|
4191
4198
|
}),
|
|
4192
4199
|
{}
|
|
4193
4200
|
),
|
|
@@ -4212,7 +4219,7 @@ const Qs = /* @__PURE__ */ b(Ys, [["render", _s]]), Xs = ({
|
|
|
4212
4219
|
}
|
|
4213
4220
|
}
|
|
4214
4221
|
});
|
|
4215
|
-
function
|
|
4222
|
+
function or(e, t, n, o, s, r) {
|
|
4216
4223
|
const i = y("inlined-script"), a = y("content-styles"), l = y("blocks"), d = y("enable-editor");
|
|
4217
4224
|
return u(), k(d, w({
|
|
4218
4225
|
content: e.content,
|
|
@@ -4256,12 +4263,12 @@ function nr(e, t, n, o, s, r) {
|
|
|
4256
4263
|
_: 1
|
|
4257
4264
|
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
|
|
4258
4265
|
}
|
|
4259
|
-
const
|
|
4266
|
+
const sr = /* @__PURE__ */ b(nr, [["render", or]]), rr = f({
|
|
4260
4267
|
name: "content-variants",
|
|
4261
4268
|
components: {
|
|
4262
|
-
InlinedScript:
|
|
4269
|
+
InlinedScript: _e,
|
|
4263
4270
|
InlinedStyles: me,
|
|
4264
|
-
ContentComponent:
|
|
4271
|
+
ContentComponent: sr
|
|
4265
4272
|
},
|
|
4266
4273
|
props: [
|
|
4267
4274
|
"canTrack",
|
|
@@ -4284,13 +4291,13 @@ const or = /* @__PURE__ */ b(tr, [["render", nr]]), sr = f({
|
|
|
4284
4291
|
],
|
|
4285
4292
|
data() {
|
|
4286
4293
|
return {
|
|
4287
|
-
shouldRenderVariants:
|
|
4294
|
+
shouldRenderVariants: ls({
|
|
4288
4295
|
canTrack: z(this.canTrack),
|
|
4289
4296
|
content: this.content
|
|
4290
4297
|
}),
|
|
4291
4298
|
TARGET: V,
|
|
4292
|
-
getInitVariantsFnsScriptString:
|
|
4293
|
-
getVariants:
|
|
4299
|
+
getInitVariantsFnsScriptString: ds,
|
|
4300
|
+
getVariants: X
|
|
4294
4301
|
};
|
|
4295
4302
|
},
|
|
4296
4303
|
mounted() {
|
|
@@ -4298,8 +4305,8 @@ const or = /* @__PURE__ */ b(tr, [["render", nr]]), sr = f({
|
|
|
4298
4305
|
computed: {
|
|
4299
4306
|
updateCookieAndStylesScriptStr() {
|
|
4300
4307
|
var e;
|
|
4301
|
-
return
|
|
4302
|
-
|
|
4308
|
+
return us(
|
|
4309
|
+
X(this.content).map((t) => ({
|
|
4303
4310
|
id: t.testVariationId,
|
|
4304
4311
|
testRatio: t.testRatio
|
|
4305
4312
|
})),
|
|
@@ -4307,21 +4314,21 @@ const or = /* @__PURE__ */ b(tr, [["render", nr]]), sr = f({
|
|
|
4307
4314
|
);
|
|
4308
4315
|
},
|
|
4309
4316
|
hideVariantsStyleString() {
|
|
4310
|
-
return
|
|
4317
|
+
return X(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
4311
4318
|
},
|
|
4312
4319
|
defaultContent() {
|
|
4313
4320
|
var e;
|
|
4314
4321
|
return this.shouldRenderVariants ? {
|
|
4315
4322
|
...this.content,
|
|
4316
4323
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
4317
|
-
} :
|
|
4324
|
+
} : Fn({
|
|
4318
4325
|
item: this.content,
|
|
4319
4326
|
canTrack: z(this.canTrack)
|
|
4320
4327
|
});
|
|
4321
4328
|
}
|
|
4322
4329
|
}
|
|
4323
4330
|
});
|
|
4324
|
-
function
|
|
4331
|
+
function ir(e, t, n, o, s, r) {
|
|
4325
4332
|
const i = y("inlined-script"), a = y("inlined-styles"), l = y("content-component");
|
|
4326
4333
|
return u(), h($, null, [
|
|
4327
4334
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (u(), k(i, {
|
|
@@ -4386,7 +4393,7 @@ function rr(e, t, n, o, s, r) {
|
|
|
4386
4393
|
}), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4387
4394
|
], 64);
|
|
4388
4395
|
}
|
|
4389
|
-
const
|
|
4396
|
+
const ar = /* @__PURE__ */ b(rr, [["render", ir]]), lr = async ({
|
|
4390
4397
|
builderContextValue: e,
|
|
4391
4398
|
symbol: t
|
|
4392
4399
|
}) => {
|
|
@@ -4404,9 +4411,9 @@ const ir = /* @__PURE__ */ b(sr, [["render", rr]]), ar = async ({
|
|
|
4404
4411
|
}).catch((n) => {
|
|
4405
4412
|
R.error("Could not fetch symbol content: ", n);
|
|
4406
4413
|
});
|
|
4407
|
-
},
|
|
4414
|
+
}, cr = f({
|
|
4408
4415
|
name: "builder-symbol",
|
|
4409
|
-
components: { ContentVariants:
|
|
4416
|
+
components: { ContentVariants: ar, DynamicDiv: G },
|
|
4410
4417
|
props: [
|
|
4411
4418
|
"symbol",
|
|
4412
4419
|
"attributes",
|
|
@@ -4441,7 +4448,7 @@ const ir = /* @__PURE__ */ b(sr, [["render", rr]]), ar = async ({
|
|
|
4441
4448
|
className() {
|
|
4442
4449
|
var e, t;
|
|
4443
4450
|
return [
|
|
4444
|
-
this.attributes[
|
|
4451
|
+
this.attributes[Z()],
|
|
4445
4452
|
"builder-symbol",
|
|
4446
4453
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
4447
4454
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -4455,7 +4462,7 @@ const ir = /* @__PURE__ */ b(sr, [["render", rr]]), ar = async ({
|
|
|
4455
4462
|
},
|
|
4456
4463
|
methods: {
|
|
4457
4464
|
setContent() {
|
|
4458
|
-
this.contentToUse ||
|
|
4465
|
+
this.contentToUse || lr({
|
|
4459
4466
|
symbol: this.symbol,
|
|
4460
4467
|
builderContextValue: this.builderContext
|
|
4461
4468
|
}).then((e) => {
|
|
@@ -4464,7 +4471,7 @@ const ir = /* @__PURE__ */ b(sr, [["render", rr]]), ar = async ({
|
|
|
4464
4471
|
}
|
|
4465
4472
|
}
|
|
4466
4473
|
});
|
|
4467
|
-
function
|
|
4474
|
+
function dr(e, t, n, o, s, r) {
|
|
4468
4475
|
var a, l, d, m, c;
|
|
4469
4476
|
const i = y("content-variants");
|
|
4470
4477
|
return u(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
@@ -4490,8 +4497,8 @@ function cr(e, t, n, o, s, r) {
|
|
|
4490
4497
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
4491
4498
|
], 16);
|
|
4492
4499
|
}
|
|
4493
|
-
const
|
|
4494
|
-
function
|
|
4500
|
+
const ur = /* @__PURE__ */ b(cr, [["render", dr]]), Re = {};
|
|
4501
|
+
function Cr(e) {
|
|
4495
4502
|
if (T()) {
|
|
4496
4503
|
Object.assign(Re, e);
|
|
4497
4504
|
const t = {
|
|
@@ -4501,7 +4508,7 @@ function Sr(e) {
|
|
|
4501
4508
|
parent.postMessage(t, "*");
|
|
4502
4509
|
}
|
|
4503
4510
|
}
|
|
4504
|
-
const
|
|
4511
|
+
const wr = async (e) => {
|
|
4505
4512
|
var o, s, r;
|
|
4506
4513
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((s = e.userAttributes) == null ? void 0 : s.urlPath), n = {
|
|
4507
4514
|
...e,
|
|
@@ -4513,7 +4520,7 @@ const Cr = async (e) => {
|
|
|
4513
4520
|
urlPath: t
|
|
4514
4521
|
} : {}
|
|
4515
4522
|
},
|
|
4516
|
-
options:
|
|
4523
|
+
options: tt(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
|
|
4517
4524
|
};
|
|
4518
4525
|
return {
|
|
4519
4526
|
apiKey: n.apiKey,
|
|
@@ -4522,43 +4529,43 @@ const Cr = async (e) => {
|
|
|
4522
4529
|
};
|
|
4523
4530
|
};
|
|
4524
4531
|
export {
|
|
4525
|
-
|
|
4532
|
+
vs as A,
|
|
4526
4533
|
pe as B,
|
|
4527
|
-
|
|
4528
|
-
|
|
4534
|
+
pn as C,
|
|
4535
|
+
Ss as D,
|
|
4529
4536
|
be as E,
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4537
|
+
fn as F,
|
|
4538
|
+
fr as G,
|
|
4539
|
+
yr as H,
|
|
4540
|
+
wn as I,
|
|
4541
|
+
In as S,
|
|
4535
4542
|
V as T,
|
|
4536
|
-
|
|
4543
|
+
ts as V,
|
|
4537
4544
|
me as _,
|
|
4538
|
-
|
|
4539
|
-
|
|
4545
|
+
sn as a,
|
|
4546
|
+
br as b,
|
|
4540
4547
|
U as c,
|
|
4541
|
-
|
|
4548
|
+
kr as d,
|
|
4542
4549
|
Fe as e,
|
|
4543
4550
|
b as f,
|
|
4544
4551
|
Ne as g,
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
+
ee as h,
|
|
4553
|
+
gr as i,
|
|
4554
|
+
Z as j,
|
|
4555
|
+
ie as k,
|
|
4556
|
+
vt as l,
|
|
4557
|
+
ur as m,
|
|
4558
|
+
so as n,
|
|
4552
4559
|
J as o,
|
|
4553
|
-
|
|
4560
|
+
ar as p,
|
|
4554
4561
|
I as q,
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4562
|
+
Cs as r,
|
|
4563
|
+
os as s,
|
|
4564
|
+
Ls as t,
|
|
4565
|
+
Cr as u,
|
|
4566
|
+
tt as v,
|
|
4567
|
+
tr as w,
|
|
4568
|
+
vr as x,
|
|
4569
|
+
Sr as y,
|
|
4570
|
+
wr as z
|
|
4564
4571
|
};
|