@builder.io/sdk-react-nextjs 0.14.20 → 0.14.24
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/{node/USE_CLIENT_BUNDLE-8d2c6823.cjs → browser/USE_CLIENT_BUNDLE-4f10369a.cjs} +2 -2
- package/lib/browser/{USE_CLIENT_BUNDLE-b0af90c6.js → USE_CLIENT_BUNDLE-f9d01f92.js} +21 -21
- package/lib/{edge/USE_SERVER_BUNDLE-c879ad04.js → browser/USE_SERVER_BUNDLE-4e9478d4.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-9e66cbc6.cjs → browser/USE_SERVER_BUNDLE-76397f77.cjs} +1 -1
- package/lib/browser/{bundle-12d2c3ee.cjs → bundle-35974522.cjs} +14 -14
- package/lib/browser/{bundle-83df769b.js → bundle-ca09c73c.js} +358 -351
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{browser/USE_CLIENT_BUNDLE-eb52194d.cjs → edge/USE_CLIENT_BUNDLE-d7a952fe.cjs} +2 -2
- package/lib/{node/USE_CLIENT_BUNDLE-68277019.js → edge/USE_CLIENT_BUNDLE-edb4fc98.js} +21 -21
- package/lib/{node/USE_SERVER_BUNDLE-84ab22ef.js → edge/USE_SERVER_BUNDLE-8a6ee05a.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-a4d10e9b.cjs → edge/USE_SERVER_BUNDLE-e3d2232b.cjs} +1 -1
- package/lib/edge/{bundle-8a8fdc14.cjs → bundle-2bd976c9.cjs} +26 -26
- package/lib/edge/{bundle-73367f5c.js → bundle-bdc1f5be.js} +648 -641
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-47285217.cjs → node/USE_CLIENT_BUNDLE-2a3a1484.cjs} +2 -2
- package/lib/{edge/USE_CLIENT_BUNDLE-2d9b453e.js → node/USE_CLIENT_BUNDLE-af2f5052.js} +21 -21
- package/lib/{browser/USE_SERVER_BUNDLE-719f53b1.cjs → node/USE_SERVER_BUNDLE-290676c5.cjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-d83b7d23.js → node/USE_SERVER_BUNDLE-55adca17.js} +1 -1
- package/lib/node/{bundle-832f5a95.cjs → bundle-10b57ad3.cjs} +6 -6
- package/lib/node/{bundle-08369562.js → bundle-9b0c3f03.js} +93 -86
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +3 -3
- package/types/cjs/blocks/accordion/accordion.d.ts +4 -0
- package/types/cjs/blocks/accordion/accordion.types.d.ts +12 -0
- package/types/cjs/blocks/accordion/component-info.d.ts +2 -0
- package/types/cjs/blocks/accordion/helpers.d.ts +1 -0
- package/types/cjs/blocks/accordion/index.d.ts +1 -0
- package/types/cjs/components/block/animator.d.ts +0 -1
- package/types/cjs/components/content-variants/content-variants.types.d.ts +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/camel-to-kebab-case.d.ts +1 -1
- package/types/cjs/helpers/flatten.d.ts +10 -0
- package/types/esm/blocks/accordion/accordion.d.ts +4 -0
- package/types/esm/blocks/accordion/accordion.types.d.ts +12 -0
- package/types/esm/blocks/accordion/component-info.d.ts +2 -0
- package/types/esm/blocks/accordion/helpers.d.ts +1 -0
- package/types/esm/blocks/accordion/index.d.ts +1 -0
- package/types/esm/components/block/animator.d.ts +0 -1
- package/types/esm/components/content-variants/content-variants.types.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/camel-to-kebab-case.d.ts +1 -1
- package/types/esm/helpers/flatten.d.ts +10 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as l, Fragment as C, jsxs as R } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { LRUCache as
|
|
4
|
-
import { I as
|
|
3
|
+
import { LRUCache as Fe } from "lru-cache";
|
|
4
|
+
import { I as Le, B as Ue, a as De, D as _e, C as Me, E as je, b as He, V as Ke, c as ze, F as qe, d as Ye, S as Ge, e as Je } from "./USE_CLIENT_BUNDLE-f9d01f92.js";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const
|
|
6
|
+
const Qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ho = (e) => typeof e == "string" && Qe.has(e.toLowerCase()), T = "rsc", M = () => {
|
|
7
7
|
switch (T) {
|
|
8
8
|
case "react":
|
|
9
9
|
case "reactNative":
|
|
@@ -17,7 +17,7 @@ const Je = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
|
|
|
17
17
|
return "class";
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
function
|
|
20
|
+
function Xe(e) {
|
|
21
21
|
var t;
|
|
22
22
|
return {
|
|
23
23
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -28,36 +28,36 @@ function Qe(e) {
|
|
|
28
28
|
builderBlock: e
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
const
|
|
32
|
-
log: (...e) => console.log(
|
|
33
|
-
error: (...e) => console.error(
|
|
34
|
-
warn: (...e) => console.warn(
|
|
35
|
-
debug: (...e) => console.debug(
|
|
31
|
+
const P = "[Builder.io]: ", w = {
|
|
32
|
+
log: (...e) => console.log(P, ...e),
|
|
33
|
+
error: (...e) => console.error(P, ...e),
|
|
34
|
+
warn: (...e) => console.warn(P, ...e),
|
|
35
|
+
debug: (...e) => console.debug(P, ...e)
|
|
36
36
|
};
|
|
37
37
|
function k() {
|
|
38
38
|
return typeof window < "u" && typeof document < "u";
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const Ze = (e) => {
|
|
41
41
|
const t = {};
|
|
42
42
|
return e.forEach((n, o) => {
|
|
43
43
|
t[o] = n;
|
|
44
44
|
}), t;
|
|
45
|
-
},
|
|
46
|
-
function
|
|
45
|
+
}, ue = (e) => e instanceof URLSearchParams ? Ze(e) : e, me = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
46
|
+
function et() {
|
|
47
47
|
return k() && window.self !== window.top;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return
|
|
51
|
-
|
|
49
|
+
function fe(e) {
|
|
50
|
+
return et() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
51
|
+
me(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
52
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const tt = () => {
|
|
54
54
|
if (k()) {
|
|
55
55
|
const e = new URL(location.href);
|
|
56
56
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
57
57
|
} else
|
|
58
58
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
59
|
-
},
|
|
60
|
-
const e =
|
|
59
|
+
}, nt = () => typeof navigator == "object" && navigator.userAgent || "", he = () => {
|
|
60
|
+
const e = nt(), t = {
|
|
61
61
|
Android() {
|
|
62
62
|
return e.match(/Android/i);
|
|
63
63
|
},
|
|
@@ -76,13 +76,13 @@ const et = () => {
|
|
|
76
76
|
any() {
|
|
77
77
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || T === "reactNative";
|
|
78
78
|
}
|
|
79
|
-
}, n = e.match(/Tablet|iPad/i), o =
|
|
79
|
+
}, n = e.match(/Tablet|iPad/i), o = tt();
|
|
80
80
|
return {
|
|
81
81
|
urlPath: o == null ? void 0 : o.pathname,
|
|
82
82
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
83
83
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
84
84
|
};
|
|
85
|
-
},
|
|
85
|
+
}, ot = ({
|
|
86
86
|
builder: e,
|
|
87
87
|
context: t,
|
|
88
88
|
event: n,
|
|
@@ -94,14 +94,14 @@ const et = () => {
|
|
|
94
94
|
builder: e,
|
|
95
95
|
context: t,
|
|
96
96
|
event: n
|
|
97
|
-
}),
|
|
98
|
-
isEditing:
|
|
97
|
+
}), it = () => ({
|
|
98
|
+
isEditing: fe(),
|
|
99
99
|
isBrowser: k(),
|
|
100
100
|
isServer: !k(),
|
|
101
|
-
getUserAttributes: () =>
|
|
102
|
-
}),
|
|
101
|
+
getUserAttributes: () => he()
|
|
102
|
+
}), rt = (e, {
|
|
103
103
|
isExpression: t = !0
|
|
104
|
-
}) => /* 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,
|
|
104
|
+
}) => /* 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, Q = ({
|
|
105
105
|
code: e,
|
|
106
106
|
builder: t,
|
|
107
107
|
context: n,
|
|
@@ -110,11 +110,11 @@ const et = () => {
|
|
|
110
110
|
rootSetState: r,
|
|
111
111
|
rootState: a
|
|
112
112
|
}) => {
|
|
113
|
-
const s =
|
|
113
|
+
const s = ot({
|
|
114
114
|
builder: t,
|
|
115
115
|
context: n,
|
|
116
116
|
event: o,
|
|
117
|
-
state:
|
|
117
|
+
state: pe({
|
|
118
118
|
rootState: a,
|
|
119
119
|
localState: i,
|
|
120
120
|
rootSetState: r
|
|
@@ -122,7 +122,7 @@ const et = () => {
|
|
|
122
122
|
});
|
|
123
123
|
return new Function(...s.map(([c]) => c), e)(...s.map(([, c]) => c));
|
|
124
124
|
};
|
|
125
|
-
function
|
|
125
|
+
function pe({
|
|
126
126
|
rootState: e,
|
|
127
127
|
localState: t,
|
|
128
128
|
rootSetState: n
|
|
@@ -132,7 +132,7 @@ function he({
|
|
|
132
132
|
if (t && i in t)
|
|
133
133
|
return t[i];
|
|
134
134
|
const r = o[i];
|
|
135
|
-
return typeof r == "object" && r !== null ?
|
|
135
|
+
return typeof r == "object" && r !== null ? pe({
|
|
136
136
|
rootState: r,
|
|
137
137
|
localState: void 0,
|
|
138
138
|
rootSetState: n ? (a) => {
|
|
@@ -148,17 +148,17 @@ function he({
|
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
const I = (e) => e != null;
|
|
151
|
-
function
|
|
151
|
+
function at() {
|
|
152
152
|
var e;
|
|
153
153
|
return typeof process < "u" && I((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const st = () => {
|
|
156
156
|
var o;
|
|
157
|
-
if (!
|
|
157
|
+
if (!at())
|
|
158
158
|
return !1;
|
|
159
159
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
160
160
|
return e && t && !n ? (w.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;
|
|
161
|
-
},
|
|
161
|
+
}, ct = (e) => (k() || st(), Q(e)), j = class A {
|
|
162
162
|
static getCacheKey(t) {
|
|
163
163
|
return JSON.stringify({
|
|
164
164
|
...t,
|
|
@@ -168,10 +168,10 @@ const at = () => {
|
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
170
|
static getCachedValue(t) {
|
|
171
|
-
return
|
|
171
|
+
return A.cache.get(t);
|
|
172
172
|
}
|
|
173
173
|
static setCachedValue(t, n) {
|
|
174
|
-
|
|
174
|
+
A.cache.size > 20 && A.cache.delete(A.cache.keys().next().value), A.cache.set(t, {
|
|
175
175
|
value: n
|
|
176
176
|
});
|
|
177
177
|
}
|
|
@@ -192,10 +192,10 @@ function H({
|
|
|
192
192
|
if (e === "")
|
|
193
193
|
return;
|
|
194
194
|
const c = {
|
|
195
|
-
code:
|
|
195
|
+
code: rt(e, {
|
|
196
196
|
isExpression: a
|
|
197
197
|
}),
|
|
198
|
-
builder:
|
|
198
|
+
builder: it(),
|
|
199
199
|
context: t,
|
|
200
200
|
event: r,
|
|
201
201
|
rootSetState: i,
|
|
@@ -208,7 +208,7 @@ function H({
|
|
|
208
208
|
return h.value;
|
|
209
209
|
}
|
|
210
210
|
try {
|
|
211
|
-
const u =
|
|
211
|
+
const u = ct(c);
|
|
212
212
|
if (s) {
|
|
213
213
|
const h = V.getCacheKey(c);
|
|
214
214
|
V.setCachedValue(h, u);
|
|
@@ -221,13 +221,13 @@ function H({
|
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
const
|
|
224
|
+
const $ = (e) => JSON.parse(JSON.stringify(e)), lt = (e, t, n) => {
|
|
225
225
|
if (Object(e) !== e)
|
|
226
226
|
return e;
|
|
227
227
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
228
228
|
return o.slice(0, -1).reduce((i, r, a) => Object(i[r]) === i[r] ? i[r] : i[r] = Math.abs(Number(o[a + 1])) >> 0 === +o[a + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
229
229
|
};
|
|
230
|
-
const
|
|
230
|
+
const dt = ({
|
|
231
231
|
block: e,
|
|
232
232
|
context: t,
|
|
233
233
|
localState: n,
|
|
@@ -236,7 +236,7 @@ const lt = ({
|
|
|
236
236
|
}) => {
|
|
237
237
|
if (!e.bindings)
|
|
238
238
|
return e;
|
|
239
|
-
const r =
|
|
239
|
+
const r = $(e), a = {
|
|
240
240
|
...r,
|
|
241
241
|
properties: {
|
|
242
242
|
...r.properties
|
|
@@ -254,11 +254,11 @@ const lt = ({
|
|
|
254
254
|
context: t,
|
|
255
255
|
enableCache: !0
|
|
256
256
|
});
|
|
257
|
-
|
|
257
|
+
lt(a, s, u);
|
|
258
258
|
}
|
|
259
259
|
return a;
|
|
260
260
|
};
|
|
261
|
-
function
|
|
261
|
+
function O({
|
|
262
262
|
block: e,
|
|
263
263
|
context: t,
|
|
264
264
|
shouldEvaluateBindings: n,
|
|
@@ -267,7 +267,7 @@ function N({
|
|
|
267
267
|
rootSetState: r
|
|
268
268
|
}) {
|
|
269
269
|
const a = e;
|
|
270
|
-
return n ?
|
|
270
|
+
return n ? dt({
|
|
271
271
|
block: a,
|
|
272
272
|
localState: o,
|
|
273
273
|
rootState: i,
|
|
@@ -275,10 +275,10 @@ function N({
|
|
|
275
275
|
context: t
|
|
276
276
|
}) : a;
|
|
277
277
|
}
|
|
278
|
-
const
|
|
278
|
+
const K = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", ge = (e) => Object.entries(e).map(([n, o]) => {
|
|
279
279
|
if (typeof o == "string")
|
|
280
|
-
return `${
|
|
281
|
-
}).filter(I), ut = (e) =>
|
|
280
|
+
return `${K(n)}: ${o};`;
|
|
281
|
+
}).filter(I), ut = (e) => ge(e).join(`
|
|
282
282
|
`), B = ({
|
|
283
283
|
mediaQuery: e,
|
|
284
284
|
className: t,
|
|
@@ -299,18 +299,18 @@ function mt({
|
|
|
299
299
|
const ft = ({
|
|
300
300
|
block: e,
|
|
301
301
|
context: t
|
|
302
|
-
}) =>
|
|
302
|
+
}) => be(mt({
|
|
303
303
|
style: e.style || {},
|
|
304
304
|
context: t,
|
|
305
305
|
block: e
|
|
306
306
|
}));
|
|
307
|
-
function
|
|
307
|
+
function be(e) {
|
|
308
308
|
switch (T) {
|
|
309
309
|
case "svelte":
|
|
310
310
|
case "vue":
|
|
311
311
|
case "solid":
|
|
312
312
|
case "angular":
|
|
313
|
-
return
|
|
313
|
+
return ge(e).join(" ");
|
|
314
314
|
case "qwik":
|
|
315
315
|
case "reactNative":
|
|
316
316
|
case "react":
|
|
@@ -324,7 +324,7 @@ const ht = ({
|
|
|
324
324
|
registeredComponents: n
|
|
325
325
|
}) => {
|
|
326
326
|
var r;
|
|
327
|
-
const o = (r =
|
|
327
|
+
const o = (r = O({
|
|
328
328
|
block: e,
|
|
329
329
|
localState: t.localState,
|
|
330
330
|
rootState: t.rootState,
|
|
@@ -374,7 +374,7 @@ const ht = ({
|
|
|
374
374
|
},
|
|
375
375
|
block: o
|
|
376
376
|
}));
|
|
377
|
-
}, gt = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), bt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)),
|
|
377
|
+
}, gt = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), bt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), ye = {
|
|
378
378
|
small: {
|
|
379
379
|
min: 320,
|
|
380
380
|
default: 321,
|
|
@@ -390,11 +390,11 @@ const ht = ({
|
|
|
390
390
|
default: 991,
|
|
391
391
|
max: 1200
|
|
392
392
|
}
|
|
393
|
-
},
|
|
393
|
+
}, X = (e, t = ye) => `@media (max-width: ${t[e].max}px)`, Se = ({
|
|
394
394
|
small: e,
|
|
395
395
|
medium: t
|
|
396
396
|
}) => {
|
|
397
|
-
const n =
|
|
397
|
+
const n = $(ye);
|
|
398
398
|
if (!e || !t)
|
|
399
399
|
return n;
|
|
400
400
|
const o = Math.floor(e / 2);
|
|
@@ -417,7 +417,7 @@ const ht = ({
|
|
|
417
417
|
default: r + 1
|
|
418
418
|
}, n;
|
|
419
419
|
};
|
|
420
|
-
function
|
|
420
|
+
function N(e) {
|
|
421
421
|
return /* @__PURE__ */ l(
|
|
422
422
|
"style",
|
|
423
423
|
{
|
|
@@ -426,50 +426,9 @@ function F(e) {
|
|
|
426
426
|
}
|
|
427
427
|
);
|
|
428
428
|
}
|
|
429
|
-
function X(e, ...t) {
|
|
430
|
-
const n = Object(e);
|
|
431
|
-
for (let o = 1; o < arguments.length; o++) {
|
|
432
|
-
const i = arguments[o];
|
|
433
|
-
if (i != null)
|
|
434
|
-
for (const r in i)
|
|
435
|
-
Object.prototype.hasOwnProperty.call(i, r) && (n[r] = i[r]);
|
|
436
|
-
}
|
|
437
|
-
return n;
|
|
438
|
-
}
|
|
439
|
-
const Se = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
440
429
|
function yt(e) {
|
|
441
|
-
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
442
|
-
}
|
|
443
|
-
function St(e, t) {
|
|
444
|
-
const n = vt(e), o = getComputedStyle(t), i = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [i, r];
|
|
445
|
-
for (const s of a)
|
|
446
|
-
for (const c of n)
|
|
447
|
-
c in s || (s[c] = o[c]);
|
|
448
|
-
}
|
|
449
|
-
function vt(e) {
|
|
450
|
-
const t = [];
|
|
451
|
-
for (const n of e.steps)
|
|
452
|
-
for (const o in n.styles)
|
|
453
|
-
t.indexOf(o) === -1 && t.push(o);
|
|
454
|
-
return t;
|
|
455
|
-
}
|
|
456
|
-
function po(e) {
|
|
457
|
-
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
458
|
-
if (!t.length) {
|
|
459
|
-
yt(e.elementId || e.id || "");
|
|
460
|
-
return;
|
|
461
|
-
}
|
|
462
|
-
Array.from(t).forEach((n) => {
|
|
463
|
-
St(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
|
|
464
|
-
n.style.transition = `all ${e.duration}s ${Se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
|
|
465
|
-
n.style.transition = "", n.style.transitionDelay = "";
|
|
466
|
-
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
467
|
-
});
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
function kt(e) {
|
|
471
430
|
const t = function() {
|
|
472
|
-
const i =
|
|
431
|
+
const i = O({
|
|
473
432
|
block: e.block,
|
|
474
433
|
localState: e.context.localState,
|
|
475
434
|
rootState: e.context.rootState,
|
|
@@ -480,14 +439,14 @@ function kt(e) {
|
|
|
480
439
|
return I(i.hide) ? !i.hide : I(i.show) ? i.show : !0;
|
|
481
440
|
}, n = function() {
|
|
482
441
|
var m, p, y;
|
|
483
|
-
const i =
|
|
442
|
+
const i = O({
|
|
484
443
|
block: e.block,
|
|
485
444
|
localState: e.context.localState,
|
|
486
445
|
rootState: e.context.rootState,
|
|
487
446
|
rootSetState: e.context.rootSetState,
|
|
488
447
|
context: e.context.context,
|
|
489
448
|
shouldEvaluateBindings: !0
|
|
490
|
-
}), r = i.responsiveStyles, a = e.context.content, s =
|
|
449
|
+
}), r = i.responsiveStyles, a = e.context.content, s = Se(
|
|
491
450
|
((m = a == null ? void 0 : a.meta) == null ? void 0 : m.breakpoints) || {}
|
|
492
451
|
), c = r == null ? void 0 : r.large, u = r == null ? void 0 : r.medium, h = r == null ? void 0 : r.small, d = i.id;
|
|
493
452
|
if (!d)
|
|
@@ -498,14 +457,14 @@ function kt(e) {
|
|
|
498
457
|
}) : "", g = u ? B({
|
|
499
458
|
className: d,
|
|
500
459
|
styles: u,
|
|
501
|
-
mediaQuery:
|
|
460
|
+
mediaQuery: X(
|
|
502
461
|
"medium",
|
|
503
462
|
s
|
|
504
463
|
)
|
|
505
464
|
}) : "", v = h ? B({
|
|
506
465
|
className: d,
|
|
507
466
|
styles: h,
|
|
508
|
-
mediaQuery:
|
|
467
|
+
mediaQuery: X(
|
|
509
468
|
"small",
|
|
510
469
|
s
|
|
511
470
|
)
|
|
@@ -517,7 +476,7 @@ function kt(e) {
|
|
|
517
476
|
className: `${d}:hover`,
|
|
518
477
|
styles: {
|
|
519
478
|
...S,
|
|
520
|
-
transition: `all ${b.duration}s ${
|
|
479
|
+
transition: `all ${b.duration}s ${K(
|
|
521
480
|
b.easing
|
|
522
481
|
)}`,
|
|
523
482
|
transitionDelay: b.delay ? `${b.delay}s` : "0s"
|
|
@@ -531,12 +490,12 @@ function kt(e) {
|
|
|
531
490
|
E
|
|
532
491
|
].join(" ");
|
|
533
492
|
};
|
|
534
|
-
return /* @__PURE__ */ l(C, { children: n() && t() ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
|
|
493
|
+
return /* @__PURE__ */ l(C, { children: n() && t() ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(N, { id: "builderio-block", styles: n() }) }) : null });
|
|
535
494
|
}
|
|
536
|
-
function
|
|
495
|
+
function St(e) {
|
|
537
496
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
538
497
|
}
|
|
539
|
-
const
|
|
498
|
+
const vt = (e) => `on${St(e)}`, kt = (e, t) => (n) => H({
|
|
540
499
|
code: e,
|
|
541
500
|
context: t.context,
|
|
542
501
|
localState: t.localState,
|
|
@@ -546,13 +505,13 @@ const xt = (e) => `on${Ct(e)}`, wt = (e, t) => (n) => H({
|
|
|
546
505
|
isExpression: !1,
|
|
547
506
|
enableCache: !0
|
|
548
507
|
});
|
|
549
|
-
function
|
|
508
|
+
function po(e) {
|
|
550
509
|
const t = {}, n = e.block.actions ?? {};
|
|
551
510
|
for (const o in n) {
|
|
552
511
|
if (!n.hasOwnProperty(o))
|
|
553
512
|
continue;
|
|
554
513
|
const i = n[o];
|
|
555
|
-
let r =
|
|
514
|
+
let r = vt(o);
|
|
556
515
|
if (e.stripPrefix)
|
|
557
516
|
switch (T) {
|
|
558
517
|
case "vue":
|
|
@@ -562,25 +521,25 @@ function go(e) {
|
|
|
562
521
|
r = r.replace("on:", "");
|
|
563
522
|
break;
|
|
564
523
|
}
|
|
565
|
-
t[r] =
|
|
524
|
+
t[r] = kt(i, e);
|
|
566
525
|
}
|
|
567
526
|
return t;
|
|
568
527
|
}
|
|
569
|
-
function
|
|
528
|
+
function Ct({
|
|
570
529
|
properties: e
|
|
571
530
|
}) {
|
|
572
531
|
return e;
|
|
573
532
|
}
|
|
574
|
-
const
|
|
533
|
+
const xt = (e) => ({
|
|
575
534
|
href: e.href
|
|
576
535
|
});
|
|
577
|
-
function
|
|
536
|
+
function wt({
|
|
578
537
|
block: e,
|
|
579
538
|
context: t
|
|
580
539
|
}) {
|
|
581
540
|
var o;
|
|
582
541
|
const n = {
|
|
583
|
-
...
|
|
542
|
+
...xt(e),
|
|
584
543
|
...e.properties,
|
|
585
544
|
"builder-id": e.id,
|
|
586
545
|
style: ft({
|
|
@@ -589,13 +548,13 @@ function Et({
|
|
|
589
548
|
}),
|
|
590
549
|
[M()]: [e.id, "builder-block", e.class, (o = e.properties) == null ? void 0 : o.class].filter(Boolean).join(" ")
|
|
591
550
|
};
|
|
592
|
-
return
|
|
551
|
+
return Ct({
|
|
593
552
|
properties: n,
|
|
594
553
|
context: t,
|
|
595
554
|
block: e
|
|
596
555
|
});
|
|
597
556
|
}
|
|
598
|
-
const
|
|
557
|
+
const It = ({
|
|
599
558
|
componentOptions: e,
|
|
600
559
|
builderBlock: t,
|
|
601
560
|
context: n,
|
|
@@ -611,7 +570,7 @@ const Rt = ({
|
|
|
611
570
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
612
571
|
*/
|
|
613
572
|
...i ? {
|
|
614
|
-
attributes:
|
|
573
|
+
attributes: wt({
|
|
615
574
|
block: t,
|
|
616
575
|
context: a
|
|
617
576
|
})
|
|
@@ -627,11 +586,11 @@ const Rt = ({
|
|
|
627
586
|
};
|
|
628
587
|
function Z(e) {
|
|
629
588
|
var n;
|
|
630
|
-
const t = e.isInteractive ?
|
|
589
|
+
const t = e.isInteractive ? Le : e.componentRef;
|
|
631
590
|
return /* @__PURE__ */ l(C, { children: e.componentRef ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
|
|
632
591
|
t,
|
|
633
592
|
{
|
|
634
|
-
...
|
|
593
|
+
...It({
|
|
635
594
|
componentOptions: e.componentOptions,
|
|
636
595
|
builderBlock: e.builderBlock,
|
|
637
596
|
context: e.context,
|
|
@@ -642,7 +601,7 @@ function Z(e) {
|
|
|
642
601
|
contextValue: e.context
|
|
643
602
|
}),
|
|
644
603
|
children: (n = e.blockChildren) == null ? void 0 : n.map((o) => /* @__PURE__ */ l(
|
|
645
|
-
|
|
604
|
+
F,
|
|
646
605
|
{
|
|
647
606
|
block: o,
|
|
648
607
|
context: e.context,
|
|
@@ -654,10 +613,10 @@ function Z(e) {
|
|
|
654
613
|
}
|
|
655
614
|
) }) : null });
|
|
656
615
|
}
|
|
657
|
-
function
|
|
616
|
+
function Tt(e) {
|
|
658
617
|
const t = e.repeatContext;
|
|
659
618
|
return /* @__PURE__ */ l(
|
|
660
|
-
|
|
619
|
+
F,
|
|
661
620
|
{
|
|
662
621
|
block: e.block,
|
|
663
622
|
context: t,
|
|
@@ -666,7 +625,7 @@ function Pt(e) {
|
|
|
666
625
|
}
|
|
667
626
|
);
|
|
668
627
|
}
|
|
669
|
-
function
|
|
628
|
+
function F(e) {
|
|
670
629
|
var c, u, h;
|
|
671
630
|
const t = function() {
|
|
672
631
|
return ht({
|
|
@@ -681,7 +640,7 @@ function L(e) {
|
|
|
681
640
|
});
|
|
682
641
|
}, o = function() {
|
|
683
642
|
var f;
|
|
684
|
-
return (f = e.block.repeat) != null && f.collection ? e.block :
|
|
643
|
+
return (f = e.block.repeat) != null && f.collection ? e.block : O({
|
|
685
644
|
block: e.block,
|
|
686
645
|
localState: e.context.localState,
|
|
687
646
|
rootState: e.context.rootState,
|
|
@@ -707,7 +666,7 @@ function L(e) {
|
|
|
707
666
|
blockChildren: o().children ?? [],
|
|
708
667
|
componentRef: (f = t()) == null ? void 0 : f.component,
|
|
709
668
|
componentOptions: {
|
|
710
|
-
...
|
|
669
|
+
...Xe(o()),
|
|
711
670
|
builderContext: e.context,
|
|
712
671
|
...gt(t()) ? {
|
|
713
672
|
builderLinkComponent: e.linkComponent
|
|
@@ -725,7 +684,7 @@ function L(e) {
|
|
|
725
684
|
};
|
|
726
685
|
};
|
|
727
686
|
return /* @__PURE__ */ l(C, { children: r() ? /* @__PURE__ */ R(C, { children: [
|
|
728
|
-
/* @__PURE__ */ l(
|
|
687
|
+
/* @__PURE__ */ l(yt, { block: e.block, context: e.context }),
|
|
729
688
|
(c = t()) != null && c.noWrap ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
|
|
730
689
|
Z,
|
|
731
690
|
{
|
|
@@ -740,7 +699,7 @@ function L(e) {
|
|
|
740
699
|
isInteractive: s().isInteractive
|
|
741
700
|
}
|
|
742
701
|
) }) : /* @__PURE__ */ l(C, { children: n() ? /* @__PURE__ */ l(C, { children: (h = n()) == null ? void 0 : h.map((d, f) => /* @__PURE__ */ l(
|
|
743
|
-
|
|
702
|
+
Tt,
|
|
744
703
|
{
|
|
745
704
|
repeatContext: d.context,
|
|
746
705
|
block: d.block,
|
|
@@ -749,7 +708,7 @@ function L(e) {
|
|
|
749
708
|
},
|
|
750
709
|
f
|
|
751
710
|
)) }) : /* @__PURE__ */ R(
|
|
752
|
-
|
|
711
|
+
Ue,
|
|
753
712
|
{
|
|
754
713
|
Wrapper: i(),
|
|
755
714
|
block: o(),
|
|
@@ -771,7 +730,7 @@ function L(e) {
|
|
|
771
730
|
}
|
|
772
731
|
),
|
|
773
732
|
(u = a()) == null ? void 0 : u.map((d) => /* @__PURE__ */ l(
|
|
774
|
-
|
|
733
|
+
F,
|
|
775
734
|
{
|
|
776
735
|
block: d,
|
|
777
736
|
registeredComponents: e.registeredComponents,
|
|
@@ -785,10 +744,10 @@ function L(e) {
|
|
|
785
744
|
) })
|
|
786
745
|
] }) : null });
|
|
787
746
|
}
|
|
788
|
-
function
|
|
747
|
+
function z(e) {
|
|
789
748
|
var t, n, o;
|
|
790
749
|
return /* @__PURE__ */ l(
|
|
791
|
-
|
|
750
|
+
De,
|
|
792
751
|
{
|
|
793
752
|
blocks: e.blocks,
|
|
794
753
|
parent: e.parent,
|
|
@@ -797,7 +756,7 @@ function K(e) {
|
|
|
797
756
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
798
757
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
799
758
|
children: e.blocks ? /* @__PURE__ */ l(C, { children: (o = e.blocks) == null ? void 0 : o.map((i) => /* @__PURE__ */ l(
|
|
800
|
-
|
|
759
|
+
F,
|
|
801
760
|
{
|
|
802
761
|
block: i,
|
|
803
762
|
linkComponent: e.linkComponent,
|
|
@@ -809,8 +768,8 @@ function K(e) {
|
|
|
809
768
|
}
|
|
810
769
|
);
|
|
811
770
|
}
|
|
812
|
-
const
|
|
813
|
-
function
|
|
771
|
+
const Et = (e) => `builder-columns ${e}-breakpoints`;
|
|
772
|
+
function Rt(e) {
|
|
814
773
|
var b, E;
|
|
815
774
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], o = e.stackColumnsAt || "tablet", i = function(p) {
|
|
816
775
|
return p.link ? e.builderLinkComponent || "a" : "div";
|
|
@@ -839,7 +798,7 @@ function Vt(e) {
|
|
|
839
798
|
})
|
|
840
799
|
};
|
|
841
800
|
}, d = function(p) {
|
|
842
|
-
const y = p === 0 ? 0 : t, S = a(p), x = `${y}px`,
|
|
801
|
+
const y = p === 0 ? 0 : t, S = a(p), x = `${y}px`, G = "100%", J = 0;
|
|
843
802
|
return {
|
|
844
803
|
...{
|
|
845
804
|
display: "flex",
|
|
@@ -849,25 +808,25 @@ function Vt(e) {
|
|
|
849
808
|
width: S,
|
|
850
809
|
["marginLeft"]: x,
|
|
851
810
|
"--column-width-mobile": c({
|
|
852
|
-
stackedStyle:
|
|
811
|
+
stackedStyle: G,
|
|
853
812
|
desktopStyle: S
|
|
854
813
|
}),
|
|
855
814
|
"--column-margin-left-mobile": c({
|
|
856
|
-
stackedStyle:
|
|
815
|
+
stackedStyle: J,
|
|
857
816
|
desktopStyle: x
|
|
858
817
|
}),
|
|
859
818
|
"--column-width-tablet": s({
|
|
860
|
-
stackedStyle:
|
|
819
|
+
stackedStyle: G,
|
|
861
820
|
desktopStyle: S
|
|
862
821
|
}),
|
|
863
822
|
"--column-margin-left-tablet": s({
|
|
864
|
-
stackedStyle:
|
|
823
|
+
stackedStyle: J,
|
|
865
824
|
desktopStyle: x
|
|
866
825
|
})
|
|
867
826
|
};
|
|
868
827
|
}, f = function(p) {
|
|
869
828
|
var S, x;
|
|
870
|
-
return
|
|
829
|
+
return Se(
|
|
871
830
|
((x = (S = e.builderContext.content) == null ? void 0 : S.meta) == null ? void 0 : x.breakpoints) || {}
|
|
872
831
|
)[p].max;
|
|
873
832
|
}, g = function() {
|
|
@@ -902,25 +861,25 @@ function Vt(e) {
|
|
|
902
861
|
href: p.link
|
|
903
862
|
} : {},
|
|
904
863
|
[M()]: "builder-column",
|
|
905
|
-
style:
|
|
864
|
+
style: be(d(y))
|
|
906
865
|
};
|
|
907
866
|
};
|
|
908
867
|
return /* @__PURE__ */ R(C, { children: [
|
|
909
868
|
/* @__PURE__ */ R(
|
|
910
869
|
"div",
|
|
911
870
|
{
|
|
912
|
-
className:
|
|
871
|
+
className: Et((b = e.builderBlock) == null ? void 0 : b.id) + " div-eeca3604",
|
|
913
872
|
style: h(),
|
|
914
873
|
children: [
|
|
915
|
-
/* @__PURE__ */ l(
|
|
874
|
+
/* @__PURE__ */ l(N, { id: "builderio-columns", styles: g() }),
|
|
916
875
|
(E = e.columns) == null ? void 0 : E.map((m, p) => /* @__PURE__ */ l(
|
|
917
|
-
|
|
876
|
+
_e,
|
|
918
877
|
{
|
|
919
878
|
TagName: i(m),
|
|
920
879
|
actionAttributes: {},
|
|
921
880
|
attributes: v(m, p),
|
|
922
881
|
children: /* @__PURE__ */ l(
|
|
923
|
-
|
|
882
|
+
z,
|
|
924
883
|
{
|
|
925
884
|
path: `component.options.columns.${p}.blocks`,
|
|
926
885
|
parent: e.builderBlock.id,
|
|
@@ -939,7 +898,7 @@ function Vt(e) {
|
|
|
939
898
|
]
|
|
940
899
|
}
|
|
941
900
|
),
|
|
942
|
-
/* @__PURE__ */ l("style", { children: `.div-
|
|
901
|
+
/* @__PURE__ */ l("style", { children: `.div-eeca3604 {
|
|
943
902
|
display: flex;
|
|
944
903
|
line-height: normal;
|
|
945
904
|
}` })
|
|
@@ -948,11 +907,11 @@ function Vt(e) {
|
|
|
948
907
|
function ee(e) {
|
|
949
908
|
return e.replace(/http(s)?:/, "");
|
|
950
909
|
}
|
|
951
|
-
function
|
|
910
|
+
function At(e = "", t, n) {
|
|
952
911
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
|
|
953
912
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + i + t + "=" + encodeURIComponent(n);
|
|
954
913
|
}
|
|
955
|
-
function
|
|
914
|
+
function Pt(e, t) {
|
|
956
915
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
957
916
|
return e;
|
|
958
917
|
if (t === "master")
|
|
@@ -964,18 +923,18 @@ function Wt(e, t) {
|
|
|
964
923
|
}
|
|
965
924
|
return null;
|
|
966
925
|
}
|
|
967
|
-
function
|
|
926
|
+
function go(e) {
|
|
968
927
|
if (!e)
|
|
969
928
|
return e;
|
|
970
929
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
971
930
|
if (e.match(/builder\.io/)) {
|
|
972
931
|
let n = e;
|
|
973
932
|
const o = Number(e.split("?width=")[1]);
|
|
974
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((i) => i !== o).map((i) => `${
|
|
933
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((i) => i !== o).map((i) => `${At(e, "width", i)} ${i}w`).concat([n]).join(", ");
|
|
975
934
|
}
|
|
976
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
935
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Pt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
977
936
|
}
|
|
978
|
-
const
|
|
937
|
+
const Vt = (e) => {
|
|
979
938
|
if (e === "localhost" || e === "127.0.0.1")
|
|
980
939
|
return e;
|
|
981
940
|
const t = e.split(".");
|
|
@@ -991,13 +950,13 @@ const $t = (e) => {
|
|
|
991
950
|
w.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
992
951
|
return;
|
|
993
952
|
}
|
|
994
|
-
}, ke = async (e) => ve(e),
|
|
953
|
+
}, ke = async (e) => ve(e), Bt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(I).join("; "), Wt = [["secure", ""], ["SameSite", "None"]], Ot = ({
|
|
995
954
|
name: e,
|
|
996
955
|
value: t,
|
|
997
956
|
expires: n
|
|
998
957
|
}) => {
|
|
999
|
-
const i = (k() ? location.protocol === "https:" : !0) ?
|
|
1000
|
-
return
|
|
958
|
+
const i = (k() ? location.protocol === "https:" : !0) ? Wt : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [[e, t], ...r, ["path", "/"], ["domain", Vt(window.location.hostname)], ...i];
|
|
959
|
+
return Bt(a);
|
|
1001
960
|
}, Ce = async ({
|
|
1002
961
|
name: e,
|
|
1003
962
|
value: t,
|
|
@@ -1007,7 +966,7 @@ const $t = (e) => {
|
|
|
1007
966
|
try {
|
|
1008
967
|
if (!o)
|
|
1009
968
|
return;
|
|
1010
|
-
const i =
|
|
969
|
+
const i = Ot({
|
|
1011
970
|
name: e,
|
|
1012
971
|
value: t,
|
|
1013
972
|
expires: n
|
|
@@ -1016,24 +975,24 @@ const $t = (e) => {
|
|
|
1016
975
|
} catch (i) {
|
|
1017
976
|
w.warn("[COOKIE] SET error: ", (i == null ? void 0 : i.message) || i);
|
|
1018
977
|
}
|
|
1019
|
-
},
|
|
978
|
+
}, $t = "builder.tests", q = (e) => `${$t}.${e}`, Nt = ({
|
|
1020
979
|
contentId: e
|
|
1021
980
|
}) => ke({
|
|
1022
|
-
name:
|
|
981
|
+
name: q(e),
|
|
1023
982
|
canTrack: !0
|
|
1024
|
-
}),
|
|
983
|
+
}), Ft = ({
|
|
1025
984
|
contentId: e
|
|
1026
985
|
}) => ve({
|
|
1027
|
-
name:
|
|
986
|
+
name: q(e),
|
|
1028
987
|
canTrack: !0
|
|
1029
|
-
}),
|
|
988
|
+
}), Lt = ({
|
|
1030
989
|
contentId: e,
|
|
1031
990
|
value: t
|
|
1032
991
|
}) => Ce({
|
|
1033
|
-
name:
|
|
992
|
+
name: q(e),
|
|
1034
993
|
value: t,
|
|
1035
994
|
canTrack: !0
|
|
1036
|
-
}), xe = (e) => I(e.id) && I(e.variations) && Object.keys(e.variations).length > 0,
|
|
995
|
+
}), xe = (e) => I(e.id) && I(e.variations) && Object.keys(e.variations).length > 0, Ut = ({
|
|
1037
996
|
id: e,
|
|
1038
997
|
variations: t
|
|
1039
998
|
}) => {
|
|
@@ -1047,8 +1006,8 @@ const $t = (e) => {
|
|
|
1047
1006
|
}
|
|
1048
1007
|
return e;
|
|
1049
1008
|
}, we = (e) => {
|
|
1050
|
-
const t =
|
|
1051
|
-
return
|
|
1009
|
+
const t = Ut(e);
|
|
1010
|
+
return Lt({
|
|
1052
1011
|
contentId: e.id,
|
|
1053
1012
|
value: t
|
|
1054
1013
|
}).catch((n) => {
|
|
@@ -1068,7 +1027,7 @@ const $t = (e) => {
|
|
|
1068
1027
|
testVariationId: n.id,
|
|
1069
1028
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
1070
1029
|
};
|
|
1071
|
-
},
|
|
1030
|
+
}, Dt = ({
|
|
1072
1031
|
item: e,
|
|
1073
1032
|
canTrack: t
|
|
1074
1033
|
}) => {
|
|
@@ -1078,7 +1037,7 @@ const $t = (e) => {
|
|
|
1078
1037
|
return;
|
|
1079
1038
|
if (!xe(e))
|
|
1080
1039
|
return e;
|
|
1081
|
-
const n =
|
|
1040
|
+
const n = Ft({
|
|
1082
1041
|
contentId: e.id
|
|
1083
1042
|
}) || we({
|
|
1084
1043
|
variations: e.variations,
|
|
@@ -1091,13 +1050,13 @@ const $t = (e) => {
|
|
|
1091
1050
|
...e,
|
|
1092
1051
|
...o
|
|
1093
1052
|
};
|
|
1094
|
-
},
|
|
1053
|
+
}, _t = async ({
|
|
1095
1054
|
item: e,
|
|
1096
1055
|
canTrack: t
|
|
1097
1056
|
}) => {
|
|
1098
1057
|
if (!t || !xe(e))
|
|
1099
1058
|
return e;
|
|
1100
|
-
const o = await
|
|
1059
|
+
const o = await Nt({
|
|
1101
1060
|
contentId: e.id
|
|
1102
1061
|
}) || we({
|
|
1103
1062
|
variations: e.variations,
|
|
@@ -1110,7 +1069,7 @@ const $t = (e) => {
|
|
|
1110
1069
|
...e,
|
|
1111
1070
|
...i
|
|
1112
1071
|
};
|
|
1113
|
-
},
|
|
1072
|
+
}, L = (e) => I(e) ? e : !0, Mt = {
|
|
1114
1073
|
name: "Core:Button",
|
|
1115
1074
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1116
1075
|
defaultStyles: {
|
|
@@ -1143,7 +1102,7 @@ const $t = (e) => {
|
|
|
1143
1102
|
}],
|
|
1144
1103
|
static: !0,
|
|
1145
1104
|
noWrap: !0
|
|
1146
|
-
},
|
|
1105
|
+
}, jt = {
|
|
1147
1106
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1148
1107
|
name: "Columns",
|
|
1149
1108
|
isRSC: !0,
|
|
@@ -1344,13 +1303,13 @@ const $t = (e) => {
|
|
|
1344
1303
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1345
1304
|
advanced: !0
|
|
1346
1305
|
}]
|
|
1347
|
-
},
|
|
1306
|
+
}, Ht = {
|
|
1348
1307
|
name: "Fragment",
|
|
1349
1308
|
static: !0,
|
|
1350
1309
|
hidden: !0,
|
|
1351
1310
|
canHaveChildren: !0,
|
|
1352
1311
|
noWrap: !0
|
|
1353
|
-
},
|
|
1312
|
+
}, Kt = {
|
|
1354
1313
|
name: "Image",
|
|
1355
1314
|
static: !0,
|
|
1356
1315
|
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",
|
|
@@ -1450,7 +1409,7 @@ const $t = (e) => {
|
|
|
1450
1409
|
advanced: !0,
|
|
1451
1410
|
defaultValue: 0.7041
|
|
1452
1411
|
}]
|
|
1453
|
-
},
|
|
1412
|
+
}, zt = {
|
|
1454
1413
|
name: "Core:Section",
|
|
1455
1414
|
static: !0,
|
|
1456
1415
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1489,7 +1448,7 @@ const $t = (e) => {
|
|
|
1489
1448
|
}
|
|
1490
1449
|
}
|
|
1491
1450
|
}]
|
|
1492
|
-
},
|
|
1451
|
+
}, qt = {
|
|
1493
1452
|
name: "Slot",
|
|
1494
1453
|
isRSC: !0,
|
|
1495
1454
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1503,7 +1462,7 @@ const $t = (e) => {
|
|
|
1503
1462
|
defaultValue: "children"
|
|
1504
1463
|
}]
|
|
1505
1464
|
};
|
|
1506
|
-
function
|
|
1465
|
+
function Yt(e) {
|
|
1507
1466
|
var t, n, o;
|
|
1508
1467
|
return /* @__PURE__ */ l(
|
|
1509
1468
|
"div",
|
|
@@ -1515,7 +1474,7 @@ function Qt(e) {
|
|
|
1515
1474
|
"builder-slot": e.name
|
|
1516
1475
|
},
|
|
1517
1476
|
children: /* @__PURE__ */ l(
|
|
1518
|
-
|
|
1477
|
+
z,
|
|
1519
1478
|
{
|
|
1520
1479
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1521
1480
|
path: `symbol.data.${e.name}`,
|
|
@@ -1526,7 +1485,7 @@ function Qt(e) {
|
|
|
1526
1485
|
}
|
|
1527
1486
|
);
|
|
1528
1487
|
}
|
|
1529
|
-
const
|
|
1488
|
+
const Gt = {
|
|
1530
1489
|
name: "Symbol",
|
|
1531
1490
|
noWrap: !0,
|
|
1532
1491
|
static: !0,
|
|
@@ -1559,7 +1518,7 @@ const Xt = {
|
|
|
1559
1518
|
hideFromUI: !0,
|
|
1560
1519
|
type: "boolean"
|
|
1561
1520
|
}]
|
|
1562
|
-
},
|
|
1521
|
+
}, Jt = {
|
|
1563
1522
|
name: "Text",
|
|
1564
1523
|
static: !0,
|
|
1565
1524
|
isRSC: !0,
|
|
@@ -1578,7 +1537,7 @@ const Xt = {
|
|
|
1578
1537
|
textAlign: "center"
|
|
1579
1538
|
}
|
|
1580
1539
|
};
|
|
1581
|
-
function
|
|
1540
|
+
function Qt(e) {
|
|
1582
1541
|
var t;
|
|
1583
1542
|
return /* @__PURE__ */ l(
|
|
1584
1543
|
"div",
|
|
@@ -1591,7 +1550,7 @@ function en(e) {
|
|
|
1591
1550
|
}
|
|
1592
1551
|
);
|
|
1593
1552
|
}
|
|
1594
|
-
const
|
|
1553
|
+
const Xt = {
|
|
1595
1554
|
name: "Custom Code",
|
|
1596
1555
|
static: !0,
|
|
1597
1556
|
requiredPermissions: ["editCode"],
|
|
@@ -1613,7 +1572,7 @@ const tn = {
|
|
|
1613
1572
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1614
1573
|
advanced: !0
|
|
1615
1574
|
}]
|
|
1616
|
-
},
|
|
1575
|
+
}, Zt = {
|
|
1617
1576
|
name: "Embed",
|
|
1618
1577
|
static: !0,
|
|
1619
1578
|
inputs: [{
|
|
@@ -1638,7 +1597,7 @@ const tn = {
|
|
|
1638
1597
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1639
1598
|
hideFromUI: !0
|
|
1640
1599
|
}]
|
|
1641
|
-
},
|
|
1600
|
+
}, en = ["text/javascript", "application/javascript", "application/ecmascript"], bo = (e) => en.includes(e.type), tn = {
|
|
1642
1601
|
// friendlyName?
|
|
1643
1602
|
name: "Raw:Img",
|
|
1644
1603
|
hideFromInsertMenu: !0,
|
|
@@ -1652,7 +1611,7 @@ const tn = {
|
|
|
1652
1611
|
}],
|
|
1653
1612
|
noWrap: !0,
|
|
1654
1613
|
static: !0
|
|
1655
|
-
},
|
|
1614
|
+
}, nn = {
|
|
1656
1615
|
name: "Video",
|
|
1657
1616
|
canHaveChildren: !0,
|
|
1658
1617
|
defaultStyles: {
|
|
@@ -1733,58 +1692,58 @@ const tn = {
|
|
|
1733
1692
|
defaultValue: !0,
|
|
1734
1693
|
advanced: !0
|
|
1735
1694
|
}]
|
|
1736
|
-
},
|
|
1737
|
-
component: _e,
|
|
1738
|
-
...tn
|
|
1739
|
-
}, {
|
|
1695
|
+
}, on = () => [{
|
|
1740
1696
|
component: Me,
|
|
1741
|
-
...
|
|
1697
|
+
...Xt
|
|
1742
1698
|
}, {
|
|
1743
1699
|
component: je,
|
|
1744
|
-
...
|
|
1700
|
+
...Zt
|
|
1745
1701
|
}, {
|
|
1746
1702
|
component: He,
|
|
1747
|
-
...
|
|
1748
|
-
}
|
|
1703
|
+
...tn
|
|
1704
|
+
}, {
|
|
1749
1705
|
component: Ke,
|
|
1706
|
+
...nn
|
|
1707
|
+
}], te = () => [{
|
|
1708
|
+
component: ze,
|
|
1709
|
+
...Mt
|
|
1710
|
+
}, {
|
|
1711
|
+
component: Rt,
|
|
1712
|
+
...jt
|
|
1713
|
+
}, {
|
|
1714
|
+
component: qe,
|
|
1715
|
+
...Ht
|
|
1716
|
+
}, {
|
|
1717
|
+
component: Ye,
|
|
1750
1718
|
...Kt
|
|
1751
1719
|
}, {
|
|
1752
|
-
component:
|
|
1720
|
+
component: Ge,
|
|
1753
1721
|
...zt
|
|
1754
1722
|
}, {
|
|
1755
|
-
component:
|
|
1723
|
+
component: Yt,
|
|
1756
1724
|
...qt
|
|
1757
1725
|
}, {
|
|
1758
|
-
component:
|
|
1759
|
-
...Yt
|
|
1760
|
-
}, {
|
|
1761
|
-
component: Ye,
|
|
1726
|
+
component: ro,
|
|
1762
1727
|
...Gt
|
|
1763
1728
|
}, {
|
|
1764
1729
|
component: Qt,
|
|
1765
1730
|
...Jt
|
|
1766
|
-
}, {
|
|
1767
|
-
component: ro,
|
|
1768
|
-
...Xt
|
|
1769
|
-
}, {
|
|
1770
|
-
component: en,
|
|
1771
|
-
...Zt
|
|
1772
|
-
}, ...sn()], So = (e) => ({
|
|
1731
|
+
}, ...on()], yo = (e) => ({
|
|
1773
1732
|
type: "builder.registerComponent",
|
|
1774
|
-
data:
|
|
1775
|
-
}),
|
|
1733
|
+
data: U(e)
|
|
1734
|
+
}), rn = (e) => {
|
|
1776
1735
|
const t = e.toString().trim();
|
|
1777
1736
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
1778
|
-
},
|
|
1737
|
+
}, an = (e) => typeof e == "function" ? rn(e) : $(e), U = ({
|
|
1779
1738
|
inputs: e,
|
|
1780
1739
|
...t
|
|
1781
1740
|
}) => ({
|
|
1782
|
-
|
|
1741
|
+
...$(t),
|
|
1783
1742
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [i, r]) => ({
|
|
1784
1743
|
...o,
|
|
1785
|
-
[i]:
|
|
1744
|
+
[i]: an(r)
|
|
1786
1745
|
}), {}))
|
|
1787
|
-
}),
|
|
1746
|
+
}), sn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
1788
1747
|
function getAndSetVariantId() {
|
|
1789
1748
|
function setCookie(name, value, days) {
|
|
1790
1749
|
let expires = '';
|
|
@@ -1840,7 +1799,7 @@ const tn = {
|
|
|
1840
1799
|
}).join('');
|
|
1841
1800
|
styleEl.innerHTML = newStyleStr;
|
|
1842
1801
|
}
|
|
1843
|
-
}`,
|
|
1802
|
+
}`, cn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
1844
1803
|
if (!navigator.cookieEnabled) {
|
|
1845
1804
|
return;
|
|
1846
1805
|
}
|
|
@@ -1878,22 +1837,22 @@ const tn = {
|
|
|
1878
1837
|
...t,
|
|
1879
1838
|
testVariationId: t.id,
|
|
1880
1839
|
id: e == null ? void 0 : e.id
|
|
1881
|
-
})),
|
|
1840
|
+
})), ln = ({
|
|
1882
1841
|
canTrack: e,
|
|
1883
1842
|
content: t
|
|
1884
|
-
}) => !(!(W(t).length > 0) || !e || k()),
|
|
1885
|
-
window.${Te} = ${
|
|
1886
|
-
window.${Ee} = ${
|
|
1887
|
-
`,
|
|
1843
|
+
}) => !(!(W(t).length > 0) || !e || k()), dn = (e) => e === "react" || e === "reactNative", Re = dn(T), un = () => `
|
|
1844
|
+
window.${Te} = ${sn}
|
|
1845
|
+
window.${Ee} = ${cn}
|
|
1846
|
+
`, mn = (e, t) => `
|
|
1888
1847
|
window.${Te}(
|
|
1889
1848
|
"${t}",${JSON.stringify(e)}, ${Re}
|
|
1890
|
-
)`,
|
|
1849
|
+
)`, fn = ({
|
|
1891
1850
|
contentId: e,
|
|
1892
1851
|
variationId: t
|
|
1893
1852
|
}) => `window.${Ee}(
|
|
1894
1853
|
"${t}", "${e}", ${Re}
|
|
1895
1854
|
)`;
|
|
1896
|
-
function
|
|
1855
|
+
function D(e) {
|
|
1897
1856
|
return /* @__PURE__ */ l(
|
|
1898
1857
|
"script",
|
|
1899
1858
|
{
|
|
@@ -1902,61 +1861,68 @@ function _(e) {
|
|
|
1902
1861
|
}
|
|
1903
1862
|
);
|
|
1904
1863
|
}
|
|
1905
|
-
const
|
|
1864
|
+
const hn = (e) => {
|
|
1906
1865
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
1907
1866
|
return n || w.warn("No previewed ID found in search params."), n;
|
|
1908
1867
|
};
|
|
1909
|
-
function
|
|
1910
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
1868
|
+
function pn() {
|
|
1869
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Fe({
|
|
1911
1870
|
max: 500,
|
|
1912
1871
|
// how long to live in ms
|
|
1913
1872
|
ttl: 1e3 * 60 * 5
|
|
1914
1873
|
}));
|
|
1915
1874
|
}
|
|
1916
|
-
function
|
|
1917
|
-
|
|
1918
|
-
const t =
|
|
1875
|
+
function gn(e) {
|
|
1876
|
+
pn();
|
|
1877
|
+
const t = hn(e);
|
|
1919
1878
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
1920
1879
|
}
|
|
1921
|
-
function
|
|
1880
|
+
function bn() {
|
|
1922
1881
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
1923
1882
|
}
|
|
1924
|
-
function
|
|
1925
|
-
const e =
|
|
1883
|
+
function yn() {
|
|
1884
|
+
const e = bn().fetch;
|
|
1926
1885
|
if (typeof e > "u")
|
|
1927
1886
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
1928
1887
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
1929
1888
|
return e;
|
|
1930
1889
|
}
|
|
1931
|
-
const
|
|
1932
|
-
function
|
|
1890
|
+
const Sn = yn();
|
|
1891
|
+
function _(e, t = null, n = ".") {
|
|
1933
1892
|
return Object.keys(e).reduce((o, i) => {
|
|
1934
1893
|
const r = e[i], a = [t, i].filter(Boolean).join(n);
|
|
1935
1894
|
return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
|
|
1936
1895
|
...o,
|
|
1937
|
-
|
|
1896
|
+
..._(r, a, n)
|
|
1938
1897
|
} : {
|
|
1939
1898
|
...o,
|
|
1940
1899
|
[a]: r
|
|
1941
1900
|
};
|
|
1942
1901
|
}, {});
|
|
1943
1902
|
}
|
|
1944
|
-
|
|
1903
|
+
function Ae(e, t, n = {}) {
|
|
1904
|
+
for (const o in e) {
|
|
1905
|
+
const i = e[o], r = t ? t + "." + o : o;
|
|
1906
|
+
i && typeof i == "object" && !Array.isArray(i) && !Object.keys(i).find((a) => a.startsWith("$")) ? Ae(i, r, n) : n[r] = i;
|
|
1907
|
+
}
|
|
1908
|
+
return n;
|
|
1909
|
+
}
|
|
1910
|
+
const vn = "v3", ne = "builder.", kn = "options.", Pe = (e) => {
|
|
1945
1911
|
if (!e)
|
|
1946
1912
|
return {};
|
|
1947
|
-
const t =
|
|
1913
|
+
const t = ue(e), n = {};
|
|
1948
1914
|
return Object.keys(t).forEach((o) => {
|
|
1949
1915
|
if (o.startsWith(ne)) {
|
|
1950
|
-
const i = o.replace(ne, "").replace(
|
|
1916
|
+
const i = o.replace(ne, "").replace(kn, "");
|
|
1951
1917
|
n[i] = t[o];
|
|
1952
1918
|
}
|
|
1953
1919
|
}), n;
|
|
1954
|
-
},
|
|
1920
|
+
}, Cn = () => {
|
|
1955
1921
|
if (!k())
|
|
1956
1922
|
return {};
|
|
1957
1923
|
const e = new URLSearchParams(window.location.search);
|
|
1958
1924
|
return Pe(e);
|
|
1959
|
-
}, oe = (e) => typeof e == "number" && !isNaN(e) && e >= 0,
|
|
1925
|
+
}, oe = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Y = (e) => {
|
|
1960
1926
|
const {
|
|
1961
1927
|
limit: t = 30,
|
|
1962
1928
|
userAttributes: n,
|
|
@@ -1965,7 +1931,7 @@ const xn = "v3", ne = "builder.", wn = "options.", Pe = (e) => {
|
|
|
1965
1931
|
apiKey: r,
|
|
1966
1932
|
enrich: a,
|
|
1967
1933
|
locale: s,
|
|
1968
|
-
apiVersion: c =
|
|
1934
|
+
apiVersion: c = vn,
|
|
1969
1935
|
fields: u,
|
|
1970
1936
|
omit: h,
|
|
1971
1937
|
offset: d,
|
|
@@ -1980,43 +1946,43 @@ const xn = "v3", ne = "builder.", wn = "options.", Pe = (e) => {
|
|
|
1980
1946
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${c}'`);
|
|
1981
1947
|
const E = t !== 1, m = new URL(`https://cdn.builder.io/api/${c}/content/${i}`);
|
|
1982
1948
|
if (m.searchParams.set("apiKey", r), m.searchParams.set("limit", String(t)), m.searchParams.set("noTraverse", String(E)), m.searchParams.set("includeRefs", String(!0)), s && m.searchParams.set("locale", s), a && m.searchParams.set("enrich", String(a)), m.searchParams.set("omit", h || "meta.componentsUsed"), u && m.searchParams.set("fields", u), Number.isFinite(d) && d > -1 && m.searchParams.set("offset", String(Math.floor(d))), typeof b == "boolean" && m.searchParams.set("includeUnpublished", String(b)), f && oe(f) && m.searchParams.set("cacheSeconds", String(f)), g && oe(g) && m.searchParams.set("staleCacheSeconds", String(g)), v) {
|
|
1983
|
-
const S =
|
|
1949
|
+
const S = _({
|
|
1984
1950
|
sort: v
|
|
1985
1951
|
});
|
|
1986
1952
|
for (const x in S)
|
|
1987
1953
|
m.searchParams.set(x, JSON.stringify(S[x]));
|
|
1988
1954
|
}
|
|
1989
1955
|
const p = {
|
|
1990
|
-
...
|
|
1991
|
-
...
|
|
1992
|
-
}, y =
|
|
1956
|
+
...Cn(),
|
|
1957
|
+
...ue(e.options || {})
|
|
1958
|
+
}, y = _(p);
|
|
1993
1959
|
for (const S in y)
|
|
1994
1960
|
m.searchParams.set(S, String(y[S]));
|
|
1995
1961
|
if (n && m.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
1996
|
-
const S =
|
|
1962
|
+
const S = Ae({
|
|
1997
1963
|
query: o
|
|
1998
1964
|
});
|
|
1999
1965
|
for (const x in S)
|
|
2000
1966
|
m.searchParams.set(x, JSON.stringify(S[x]));
|
|
2001
1967
|
}
|
|
2002
1968
|
return m;
|
|
2003
|
-
},
|
|
2004
|
-
async function
|
|
2005
|
-
const t = await
|
|
1969
|
+
}, xn = (e) => "results" in e;
|
|
1970
|
+
async function Ve(e) {
|
|
1971
|
+
const t = await Tn({
|
|
2006
1972
|
...e,
|
|
2007
1973
|
limit: 1
|
|
2008
1974
|
});
|
|
2009
1975
|
return t && t[0] || null;
|
|
2010
1976
|
}
|
|
2011
|
-
const
|
|
2012
|
-
const t =
|
|
2013
|
-
return await (await (e.fetch ??
|
|
2014
|
-
},
|
|
2015
|
-
const o =
|
|
1977
|
+
const wn = async (e) => {
|
|
1978
|
+
const t = Y(e);
|
|
1979
|
+
return await (await (e.fetch ?? Sn)(t.href, e.fetchOptions)).json();
|
|
1980
|
+
}, In = async (e, t, n = Y(e)) => {
|
|
1981
|
+
const o = L(e.canTrack);
|
|
2016
1982
|
if (n.search.includes("preview=")) {
|
|
2017
1983
|
const r = [];
|
|
2018
1984
|
for (const a of t.results) {
|
|
2019
|
-
const s =
|
|
1985
|
+
const s = gn(n.searchParams);
|
|
2020
1986
|
r.push(s || a);
|
|
2021
1987
|
}
|
|
2022
1988
|
t.results = r;
|
|
@@ -2026,7 +1992,7 @@ const En = async (e) => {
|
|
|
2026
1992
|
try {
|
|
2027
1993
|
const r = [];
|
|
2028
1994
|
for (const a of t.results)
|
|
2029
|
-
r.push(await
|
|
1995
|
+
r.push(await _t({
|
|
2030
1996
|
item: a,
|
|
2031
1997
|
canTrack: o
|
|
2032
1998
|
}));
|
|
@@ -2036,10 +2002,10 @@ const En = async (e) => {
|
|
|
2036
2002
|
}
|
|
2037
2003
|
return t.results;
|
|
2038
2004
|
};
|
|
2039
|
-
async function
|
|
2005
|
+
async function Tn(e) {
|
|
2040
2006
|
try {
|
|
2041
|
-
const t =
|
|
2042
|
-
return
|
|
2007
|
+
const t = Y(e), n = await wn(e);
|
|
2008
|
+
return xn(n) ? In(e, n) : (w.error("Error fetching data. ", {
|
|
2043
2009
|
url: t,
|
|
2044
2010
|
content: n,
|
|
2045
2011
|
options: e
|
|
@@ -2048,92 +2014,92 @@ async function Pn(e) {
|
|
|
2048
2014
|
return w.error("Error fetching data. ", t), null;
|
|
2049
2015
|
}
|
|
2050
2016
|
}
|
|
2051
|
-
function
|
|
2017
|
+
function So(e) {
|
|
2052
2018
|
const t = e || (k() ? window.location.search : void 0);
|
|
2053
|
-
return t ?
|
|
2019
|
+
return t ? me(t).indexOf("builder.preview=") !== -1 : !1;
|
|
2054
2020
|
}
|
|
2055
|
-
function
|
|
2021
|
+
function En() {
|
|
2056
2022
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
2057
2023
|
const t = Math.random() * 16 | 0;
|
|
2058
2024
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
2059
2025
|
});
|
|
2060
2026
|
}
|
|
2061
|
-
function
|
|
2062
|
-
return
|
|
2027
|
+
function Be() {
|
|
2028
|
+
return En().replace(/-/g, "");
|
|
2063
2029
|
}
|
|
2064
|
-
const
|
|
2030
|
+
const We = "builderSessionId", Rn = async ({
|
|
2065
2031
|
canTrack: e
|
|
2066
2032
|
}) => {
|
|
2067
2033
|
if (!e)
|
|
2068
2034
|
return;
|
|
2069
2035
|
const t = await ke({
|
|
2070
|
-
name:
|
|
2036
|
+
name: We,
|
|
2071
2037
|
canTrack: e
|
|
2072
2038
|
});
|
|
2073
2039
|
if (I(t))
|
|
2074
2040
|
return t;
|
|
2075
2041
|
{
|
|
2076
|
-
const n =
|
|
2077
|
-
return
|
|
2042
|
+
const n = An();
|
|
2043
|
+
return Pn({
|
|
2078
2044
|
id: n,
|
|
2079
2045
|
canTrack: e
|
|
2080
2046
|
}), n;
|
|
2081
2047
|
}
|
|
2082
|
-
},
|
|
2048
|
+
}, An = () => Be(), Pn = ({
|
|
2083
2049
|
id: e,
|
|
2084
2050
|
canTrack: t
|
|
2085
2051
|
}) => Ce({
|
|
2086
|
-
name:
|
|
2052
|
+
name: We,
|
|
2087
2053
|
value: e,
|
|
2088
2054
|
canTrack: t
|
|
2089
|
-
}),
|
|
2055
|
+
}), Oe = () => k() && typeof localStorage < "u" ? localStorage : void 0, Vn = ({
|
|
2090
2056
|
key: e,
|
|
2091
2057
|
canTrack: t
|
|
2092
2058
|
}) => {
|
|
2093
2059
|
var n;
|
|
2094
2060
|
try {
|
|
2095
|
-
return t ? (n =
|
|
2061
|
+
return t ? (n = Oe()) == null ? void 0 : n.getItem(e) : void 0;
|
|
2096
2062
|
} catch (o) {
|
|
2097
2063
|
console.debug("[LocalStorage] GET error: ", o);
|
|
2098
2064
|
return;
|
|
2099
2065
|
}
|
|
2100
|
-
},
|
|
2066
|
+
}, Bn = ({
|
|
2101
2067
|
key: e,
|
|
2102
2068
|
canTrack: t,
|
|
2103
2069
|
value: n
|
|
2104
2070
|
}) => {
|
|
2105
2071
|
var o;
|
|
2106
2072
|
try {
|
|
2107
|
-
t && ((o =
|
|
2073
|
+
t && ((o = Oe()) == null || o.setItem(e, n));
|
|
2108
2074
|
} catch (i) {
|
|
2109
2075
|
console.debug("[LocalStorage] SET error: ", i);
|
|
2110
2076
|
}
|
|
2111
|
-
}, $e = "builderVisitorId",
|
|
2077
|
+
}, $e = "builderVisitorId", Wn = ({
|
|
2112
2078
|
canTrack: e
|
|
2113
2079
|
}) => {
|
|
2114
2080
|
if (!e)
|
|
2115
2081
|
return;
|
|
2116
|
-
const t =
|
|
2082
|
+
const t = Vn({
|
|
2117
2083
|
key: $e,
|
|
2118
2084
|
canTrack: e
|
|
2119
2085
|
});
|
|
2120
2086
|
if (I(t))
|
|
2121
2087
|
return t;
|
|
2122
2088
|
{
|
|
2123
|
-
const n =
|
|
2124
|
-
return
|
|
2089
|
+
const n = On();
|
|
2090
|
+
return $n({
|
|
2125
2091
|
id: n,
|
|
2126
2092
|
canTrack: e
|
|
2127
2093
|
}), n;
|
|
2128
2094
|
}
|
|
2129
|
-
},
|
|
2095
|
+
}, On = () => Be(), $n = ({
|
|
2130
2096
|
id: e,
|
|
2131
2097
|
canTrack: t
|
|
2132
|
-
}) =>
|
|
2098
|
+
}) => Bn({
|
|
2133
2099
|
key: $e,
|
|
2134
2100
|
value: e,
|
|
2135
2101
|
canTrack: t
|
|
2136
|
-
}),
|
|
2102
|
+
}), Nn = async ({
|
|
2137
2103
|
canTrack: e
|
|
2138
2104
|
}) => {
|
|
2139
2105
|
if (!e)
|
|
@@ -2141,16 +2107,16 @@ const Be = "builderSessionId", Vn = async ({
|
|
|
2141
2107
|
visitorId: void 0,
|
|
2142
2108
|
sessionId: void 0
|
|
2143
2109
|
};
|
|
2144
|
-
const t = await
|
|
2110
|
+
const t = await Rn({
|
|
2145
2111
|
canTrack: e
|
|
2146
|
-
}), n =
|
|
2112
|
+
}), n = Wn({
|
|
2147
2113
|
canTrack: e
|
|
2148
2114
|
});
|
|
2149
2115
|
return {
|
|
2150
2116
|
sessionId: t,
|
|
2151
2117
|
visitorId: n
|
|
2152
2118
|
};
|
|
2153
|
-
},
|
|
2119
|
+
}, Fn = async ({
|
|
2154
2120
|
type: e,
|
|
2155
2121
|
canTrack: t,
|
|
2156
2122
|
apiKey: n,
|
|
@@ -2164,23 +2130,23 @@ const Be = "builderSessionId", Vn = async ({
|
|
|
2164
2130
|
url: location.href,
|
|
2165
2131
|
...o
|
|
2166
2132
|
},
|
|
2167
|
-
...await
|
|
2133
|
+
...await Nn({
|
|
2168
2134
|
canTrack: t
|
|
2169
2135
|
}),
|
|
2170
|
-
userAttributes:
|
|
2136
|
+
userAttributes: he(),
|
|
2171
2137
|
ownerId: n
|
|
2172
2138
|
}
|
|
2173
2139
|
});
|
|
2174
|
-
async function
|
|
2140
|
+
async function Ln(e) {
|
|
2175
2141
|
if (!e.apiKey) {
|
|
2176
2142
|
w.error("Missing API key for track call. Please provide your API key.");
|
|
2177
2143
|
return;
|
|
2178
2144
|
}
|
|
2179
|
-
if (e.canTrack && !
|
|
2145
|
+
if (e.canTrack && !fe() && (k() || T === "reactNative"))
|
|
2180
2146
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
2181
2147
|
method: "POST",
|
|
2182
2148
|
body: JSON.stringify({
|
|
2183
|
-
events: [await
|
|
2149
|
+
events: [await Fn(e)]
|
|
2184
2150
|
}),
|
|
2185
2151
|
headers: {
|
|
2186
2152
|
"content-type": "application/json"
|
|
@@ -2190,14 +2156,14 @@ async function _n(e) {
|
|
|
2190
2156
|
console.error("Failed to track: ", t);
|
|
2191
2157
|
});
|
|
2192
2158
|
}
|
|
2193
|
-
const
|
|
2159
|
+
const vo = (e) => Ln({
|
|
2194
2160
|
...e,
|
|
2195
2161
|
canTrack: !0
|
|
2196
2162
|
});
|
|
2197
2163
|
function ie(e) {
|
|
2198
2164
|
return Math.round(e * 1e3) / 1e3;
|
|
2199
2165
|
}
|
|
2200
|
-
const
|
|
2166
|
+
const Un = (e, t, n = !0) => {
|
|
2201
2167
|
if (!(e instanceof HTMLElement))
|
|
2202
2168
|
return null;
|
|
2203
2169
|
let o = n ? e : e.parentElement;
|
|
@@ -2208,7 +2174,7 @@ const Mn = (e, t, n = !0) => {
|
|
|
2208
2174
|
return o;
|
|
2209
2175
|
} while (o = o.parentElement);
|
|
2210
2176
|
return null;
|
|
2211
|
-
},
|
|
2177
|
+
}, Dn = (e) => Un(e, (t) => {
|
|
2212
2178
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2213
2179
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2214
2180
|
}), re = ({
|
|
@@ -2220,8 +2186,8 @@ const Mn = (e, t, n = !0) => {
|
|
|
2220
2186
|
x: r,
|
|
2221
2187
|
y: a
|
|
2222
2188
|
};
|
|
2223
|
-
},
|
|
2224
|
-
const t = e.target, n = t &&
|
|
2189
|
+
}, ko = (e) => {
|
|
2190
|
+
const t = e.target, n = t && Dn(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2225
2191
|
return {
|
|
2226
2192
|
targetBuilderElement: o || void 0,
|
|
2227
2193
|
metadata: {
|
|
@@ -2236,13 +2202,13 @@ const Mn = (e, t, n = !0) => {
|
|
|
2236
2202
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2237
2203
|
}
|
|
2238
2204
|
};
|
|
2239
|
-
},
|
|
2205
|
+
}, _n = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
2240
2206
|
function Ne(e, t) {
|
|
2241
2207
|
const n = new URL(t.origin), o = n.hostname;
|
|
2242
|
-
return (e ||
|
|
2208
|
+
return (e || _n).findIndex((i) => i.startsWith("*.") ? o.endsWith(i.slice(1)) : i === o) > -1;
|
|
2243
2209
|
}
|
|
2244
|
-
const
|
|
2245
|
-
function
|
|
2210
|
+
const Mn = "0.14.24", ae = {};
|
|
2211
|
+
function jn(e, t) {
|
|
2246
2212
|
let n = ae[e];
|
|
2247
2213
|
if (n || (n = ae[e] = []), n.push(t), k()) {
|
|
2248
2214
|
const o = {
|
|
@@ -2259,8 +2225,8 @@ function zn(e, t) {
|
|
|
2259
2225
|
}
|
|
2260
2226
|
}
|
|
2261
2227
|
}
|
|
2262
|
-
const
|
|
2263
|
-
|
|
2228
|
+
const Co = () => {
|
|
2229
|
+
jn("insertMenu", {
|
|
2264
2230
|
name: "_default",
|
|
2265
2231
|
default: !0,
|
|
2266
2232
|
items: [{
|
|
@@ -2283,13 +2249,13 @@ const xo = () => {
|
|
|
2283
2249
|
});
|
|
2284
2250
|
};
|
|
2285
2251
|
let se = !1;
|
|
2286
|
-
const
|
|
2252
|
+
const Hn = (e = {}) => {
|
|
2287
2253
|
var t, n;
|
|
2288
2254
|
se || (se = !0, k() && ((t = window.parent) == null || t.postMessage({
|
|
2289
2255
|
type: "builder.sdkInfo",
|
|
2290
2256
|
data: {
|
|
2291
2257
|
target: T,
|
|
2292
|
-
version:
|
|
2258
|
+
version: Mn,
|
|
2293
2259
|
supportsPatchUpdates: !1,
|
|
2294
2260
|
// Supports builder-model="..." attribute which is needed to
|
|
2295
2261
|
// scope our '+ add block' button styling
|
|
@@ -2344,7 +2310,7 @@ const qn = (e = {}) => {
|
|
|
2344
2310
|
}
|
|
2345
2311
|
}
|
|
2346
2312
|
})));
|
|
2347
|
-
},
|
|
2313
|
+
}, Kn = ({
|
|
2348
2314
|
model: e,
|
|
2349
2315
|
trustedHosts: t,
|
|
2350
2316
|
callbacks: n
|
|
@@ -2370,12 +2336,12 @@ const qn = (e = {}) => {
|
|
|
2370
2336
|
break;
|
|
2371
2337
|
}
|
|
2372
2338
|
}
|
|
2373
|
-
},
|
|
2339
|
+
}, xo = (e, t, n) => {
|
|
2374
2340
|
if (!k)
|
|
2375
2341
|
return w.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
2376
2342
|
};
|
|
2377
|
-
|
|
2378
|
-
const o =
|
|
2343
|
+
Hn();
|
|
2344
|
+
const o = Kn({
|
|
2379
2345
|
callbacks: {
|
|
2380
2346
|
contentUpdate: t,
|
|
2381
2347
|
animation: () => {
|
|
@@ -2389,7 +2355,48 @@ const qn = (e = {}) => {
|
|
|
2389
2355
|
return window.addEventListener("message", o), () => {
|
|
2390
2356
|
window.removeEventListener("message", o);
|
|
2391
2357
|
};
|
|
2392
|
-
}
|
|
2358
|
+
};
|
|
2359
|
+
function ce(e, ...t) {
|
|
2360
|
+
const n = Object(e);
|
|
2361
|
+
for (let o = 1; o < arguments.length; o++) {
|
|
2362
|
+
const i = arguments[o];
|
|
2363
|
+
if (i != null)
|
|
2364
|
+
for (const r in i)
|
|
2365
|
+
Object.prototype.hasOwnProperty.call(i, r) && (n[r] = i[r]);
|
|
2366
|
+
}
|
|
2367
|
+
return n;
|
|
2368
|
+
}
|
|
2369
|
+
function zn(e) {
|
|
2370
|
+
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2371
|
+
}
|
|
2372
|
+
function qn(e, t) {
|
|
2373
|
+
const n = Yn(e), o = getComputedStyle(t), i = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [i, r];
|
|
2374
|
+
for (const s of a)
|
|
2375
|
+
for (const c of n)
|
|
2376
|
+
c in s || (s[c] = o[c]);
|
|
2377
|
+
}
|
|
2378
|
+
function Yn(e) {
|
|
2379
|
+
const t = [];
|
|
2380
|
+
for (const n of e.steps)
|
|
2381
|
+
for (const o in n.styles)
|
|
2382
|
+
t.indexOf(o) === -1 && t.push(o);
|
|
2383
|
+
return t;
|
|
2384
|
+
}
|
|
2385
|
+
function wo(e) {
|
|
2386
|
+
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2387
|
+
if (!t.length) {
|
|
2388
|
+
zn(e.elementId || e.id || "");
|
|
2389
|
+
return;
|
|
2390
|
+
}
|
|
2391
|
+
Array.from(t).forEach((n) => {
|
|
2392
|
+
qn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ce(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2393
|
+
n.style.transition = `all ${e.duration}s ${K(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ce(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2394
|
+
n.style.transition = "", n.style.transitionDelay = "";
|
|
2395
|
+
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2396
|
+
});
|
|
2397
|
+
});
|
|
2398
|
+
}
|
|
2399
|
+
const Gn = (e) => {
|
|
2393
2400
|
var r;
|
|
2394
2401
|
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);
|
|
2395
2402
|
let i = "";
|
|
@@ -2452,7 +2459,7 @@ ${Jn({
|
|
|
2452
2459
|
})}
|
|
2453
2460
|
${Zn(e.isNestedRender)}
|
|
2454
2461
|
`.trim();
|
|
2455
|
-
return /* @__PURE__ */ l(
|
|
2462
|
+
return /* @__PURE__ */ l(N, { id: "builderio-content", styles: t });
|
|
2456
2463
|
}
|
|
2457
2464
|
const to = ({
|
|
2458
2465
|
content: e,
|
|
@@ -2482,9 +2489,9 @@ const to = ({
|
|
|
2482
2489
|
},
|
|
2483
2490
|
meta: e == null ? void 0 : e.meta
|
|
2484
2491
|
} : void 0;
|
|
2485
|
-
function
|
|
2492
|
+
function le(e) {
|
|
2486
2493
|
var i, r, a, s, c, u, h, d, f;
|
|
2487
|
-
const t =
|
|
2494
|
+
const t = fn({
|
|
2488
2495
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2489
2496
|
variationId: (i = e.content) == null ? void 0 : i.testVariationId,
|
|
2490
2497
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -2497,7 +2504,7 @@ function ce(e) {
|
|
|
2497
2504
|
...g,
|
|
2498
2505
|
[b.name]: {
|
|
2499
2506
|
component: v,
|
|
2500
|
-
...
|
|
2507
|
+
...U(b)
|
|
2501
2508
|
}
|
|
2502
2509
|
}),
|
|
2503
2510
|
{}
|
|
@@ -2522,7 +2529,7 @@ function ce(e) {
|
|
|
2522
2529
|
].reduce(
|
|
2523
2530
|
(g, { component: v, ...b }) => ({
|
|
2524
2531
|
...g,
|
|
2525
|
-
[b.name]:
|
|
2532
|
+
[b.name]: U(b)
|
|
2526
2533
|
}),
|
|
2527
2534
|
{}
|
|
2528
2535
|
),
|
|
@@ -2531,7 +2538,7 @@ function ce(e) {
|
|
|
2531
2538
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
2532
2539
|
};
|
|
2533
2540
|
return /* @__PURE__ */ R(
|
|
2534
|
-
|
|
2541
|
+
Je,
|
|
2535
2542
|
{
|
|
2536
2543
|
content: e.content,
|
|
2537
2544
|
data: e.data,
|
|
@@ -2549,7 +2556,7 @@ function ce(e) {
|
|
|
2549
2556
|
trustedHosts: e.trustedHosts,
|
|
2550
2557
|
children: [
|
|
2551
2558
|
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
2552
|
-
|
|
2559
|
+
D,
|
|
2553
2560
|
{
|
|
2554
2561
|
id: "builderio-variant-visibility",
|
|
2555
2562
|
scriptStr: t
|
|
@@ -2565,7 +2572,7 @@ function ce(e) {
|
|
|
2565
2572
|
}
|
|
2566
2573
|
),
|
|
2567
2574
|
/* @__PURE__ */ l(
|
|
2568
|
-
|
|
2575
|
+
z,
|
|
2569
2576
|
{
|
|
2570
2577
|
blocks: (f = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : f.blocks,
|
|
2571
2578
|
context: o,
|
|
@@ -2579,12 +2586,12 @@ function ce(e) {
|
|
|
2579
2586
|
}
|
|
2580
2587
|
function oo(e) {
|
|
2581
2588
|
var r;
|
|
2582
|
-
const t =
|
|
2583
|
-
canTrack:
|
|
2589
|
+
const t = ln({
|
|
2590
|
+
canTrack: L(e.canTrack),
|
|
2584
2591
|
content: e.content
|
|
2585
2592
|
}), n = function() {
|
|
2586
2593
|
var s;
|
|
2587
|
-
return
|
|
2594
|
+
return mn(
|
|
2588
2595
|
W(e.content).map((c) => ({
|
|
2589
2596
|
id: c.testVariationId,
|
|
2590
2597
|
testRatio: c.testRatio
|
|
@@ -2598,36 +2605,36 @@ function oo(e) {
|
|
|
2598
2605
|
return t ? {
|
|
2599
2606
|
...e.content,
|
|
2600
2607
|
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
2601
|
-
} :
|
|
2608
|
+
} : Dt({
|
|
2602
2609
|
item: e.content,
|
|
2603
|
-
canTrack:
|
|
2610
|
+
canTrack: L(e.canTrack)
|
|
2604
2611
|
});
|
|
2605
2612
|
};
|
|
2606
2613
|
return /* @__PURE__ */ R(C, { children: [
|
|
2607
2614
|
!e.isNestedRender && T !== "reactNative" ? /* @__PURE__ */ l(
|
|
2608
|
-
|
|
2615
|
+
D,
|
|
2609
2616
|
{
|
|
2610
2617
|
id: "builderio-init-variants-fns",
|
|
2611
|
-
scriptStr:
|
|
2618
|
+
scriptStr: un()
|
|
2612
2619
|
}
|
|
2613
2620
|
) : null,
|
|
2614
2621
|
t ? /* @__PURE__ */ R(C, { children: [
|
|
2615
2622
|
/* @__PURE__ */ l(
|
|
2616
|
-
|
|
2623
|
+
N,
|
|
2617
2624
|
{
|
|
2618
2625
|
id: "builderio-variants",
|
|
2619
2626
|
styles: o()
|
|
2620
2627
|
}
|
|
2621
2628
|
),
|
|
2622
2629
|
/* @__PURE__ */ l(
|
|
2623
|
-
|
|
2630
|
+
D,
|
|
2624
2631
|
{
|
|
2625
2632
|
id: "builderio-variants-visibility",
|
|
2626
2633
|
scriptStr: n()
|
|
2627
2634
|
}
|
|
2628
2635
|
),
|
|
2629
2636
|
(r = W(e.content)) == null ? void 0 : r.map((a) => /* @__PURE__ */ l(
|
|
2630
|
-
|
|
2637
|
+
le,
|
|
2631
2638
|
{
|
|
2632
2639
|
isNestedRender: e.isNestedRender,
|
|
2633
2640
|
content: a,
|
|
@@ -2653,7 +2660,7 @@ function oo(e) {
|
|
|
2653
2660
|
))
|
|
2654
2661
|
] }) : null,
|
|
2655
2662
|
/* @__PURE__ */ l(
|
|
2656
|
-
|
|
2663
|
+
le,
|
|
2657
2664
|
{
|
|
2658
2665
|
isNestedRender: e.isNestedRender,
|
|
2659
2666
|
content: i(),
|
|
@@ -2684,7 +2691,7 @@ const io = async ({
|
|
|
2684
2691
|
}) => {
|
|
2685
2692
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
2686
2693
|
(e != null && e.apiKey))
|
|
2687
|
-
return
|
|
2694
|
+
return Ve({
|
|
2688
2695
|
model: t.model,
|
|
2689
2696
|
apiKey: e.apiKey,
|
|
2690
2697
|
apiVersion: e.apiVersion,
|
|
@@ -2739,13 +2746,13 @@ async function ro(e) {
|
|
|
2739
2746
|
}
|
|
2740
2747
|
) });
|
|
2741
2748
|
}
|
|
2742
|
-
const
|
|
2749
|
+
const de = {};
|
|
2743
2750
|
function To(e) {
|
|
2744
2751
|
if (k()) {
|
|
2745
|
-
Object.assign(
|
|
2752
|
+
Object.assign(de, e);
|
|
2746
2753
|
const t = {
|
|
2747
2754
|
type: "builder.settingsChange",
|
|
2748
|
-
data:
|
|
2755
|
+
data: de
|
|
2749
2756
|
};
|
|
2750
2757
|
parent.postMessage(t, "*");
|
|
2751
2758
|
}
|
|
@@ -2767,45 +2774,45 @@ const Eo = async (e) => {
|
|
|
2767
2774
|
return {
|
|
2768
2775
|
apiKey: n.apiKey,
|
|
2769
2776
|
model: n.model,
|
|
2770
|
-
content: await
|
|
2777
|
+
content: await Ve(n)
|
|
2771
2778
|
};
|
|
2772
2779
|
};
|
|
2773
2780
|
export {
|
|
2774
2781
|
Pe as A,
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2782
|
+
z as B,
|
|
2783
|
+
Rt as C,
|
|
2784
|
+
vo as D,
|
|
2785
|
+
xo as E,
|
|
2779
2786
|
Eo as F,
|
|
2780
|
-
|
|
2781
|
-
|
|
2787
|
+
In as G,
|
|
2788
|
+
Tn as H,
|
|
2782
2789
|
ro as S,
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
+
Qt as T,
|
|
2791
|
+
Ln as _,
|
|
2792
|
+
wt as a,
|
|
2793
|
+
po as b,
|
|
2794
|
+
fe as c,
|
|
2795
|
+
go as d,
|
|
2796
|
+
bo as e,
|
|
2790
2797
|
k as f,
|
|
2791
2798
|
M as g,
|
|
2792
|
-
|
|
2799
|
+
L as h,
|
|
2793
2800
|
ho as i,
|
|
2794
|
-
|
|
2801
|
+
So as j,
|
|
2795
2802
|
Io as k,
|
|
2796
2803
|
w as l,
|
|
2797
|
-
|
|
2804
|
+
Kn as m,
|
|
2798
2805
|
H as n,
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2806
|
+
ko as o,
|
|
2807
|
+
Sn as p,
|
|
2808
|
+
$ as q,
|
|
2809
|
+
Co as r,
|
|
2810
|
+
Hn as s,
|
|
2811
|
+
wo as t,
|
|
2812
|
+
yo as u,
|
|
2813
|
+
Ve as v,
|
|
2814
|
+
pn as w,
|
|
2808
2815
|
oo as x,
|
|
2809
|
-
|
|
2816
|
+
jn as y,
|
|
2810
2817
|
To as z
|
|
2811
2818
|
};
|