@builder.io/sdk-react-nextjs 0.6.2-0 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/browser/USE_CLIENT_BUNDLE-7df521d2.mjs +620 -0
- package/lib/browser/USE_CLIENT_BUNDLE-ba140db3.js +23 -0
- package/lib/browser/USE_SERVER_BUNDLE-4eda8de6.mjs +11 -0
- package/lib/{edge/USE_SERVER_BUNDLE-dc7c843d.js → browser/USE_SERVER_BUNDLE-7d2b1f4f.js} +1 -1
- package/lib/browser/bundle-a1b650c9.js +76 -0
- package/lib/browser/{bundle-b0c14a2f.mjs → bundle-c727cf36.mjs} +420 -378
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +14 -14
- package/lib/edge/USE_CLIENT_BUNDLE-88bd3402.mjs +620 -0
- package/lib/edge/USE_CLIENT_BUNDLE-c1e8e1b1.js +23 -0
- package/lib/edge/USE_SERVER_BUNDLE-6554eb5e.mjs +11 -0
- package/lib/{node/USE_SERVER_BUNDLE-e7c2df57.js → edge/USE_SERVER_BUNDLE-b339a170.js} +1 -1
- package/lib/edge/bundle-56d2ffe3.js +96 -0
- package/lib/edge/{bundle-e2e962a8.mjs → bundle-75be1e37.mjs} +1764 -1722
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +14 -14
- package/lib/node/USE_CLIENT_BUNDLE-7df521d2.mjs +620 -0
- package/lib/node/USE_CLIENT_BUNDLE-ba140db3.js +23 -0
- package/lib/node/USE_SERVER_BUNDLE-4eda8de6.mjs +11 -0
- package/lib/{browser/USE_SERVER_BUNDLE-e7c2df57.js → node/USE_SERVER_BUNDLE-7d2b1f4f.js} +1 -1
- package/lib/node/bundle-a1b650c9.js +76 -0
- package/lib/node/{bundle-b0c14a2f.mjs → bundle-c727cf36.mjs} +420 -378
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +14 -14
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/fetch-builder-props.d.ts +13 -0
- package/types/types/components.d.ts +0 -1
- package/lib/browser/USE_CLIENT_BUNDLE-778eeeb3.js +0 -23
- package/lib/browser/USE_CLIENT_BUNDLE-a73198a1.mjs +0 -664
- package/lib/browser/USE_SERVER_BUNDLE-80e10cfe.mjs +0 -11
- package/lib/browser/bundle-c3b66b2f.js +0 -76
- package/lib/edge/USE_CLIENT_BUNDLE-777b23e5.mjs +0 -664
- package/lib/edge/USE_CLIENT_BUNDLE-7b4d63a6.js +0 -23
- package/lib/edge/USE_SERVER_BUNDLE-2c7d68ff.mjs +0 -11
- package/lib/edge/bundle-8124c323.js +0 -96
- package/lib/node/USE_CLIENT_BUNDLE-778eeeb3.js +0 -23
- package/lib/node/USE_CLIENT_BUNDLE-a73198a1.mjs +0 -664
- package/lib/node/USE_SERVER_BUNDLE-80e10cfe.mjs +0 -11
- package/lib/node/bundle-c3b66b2f.js +0 -76
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { LRUCache as
|
|
1
|
+
import { LRUCache as Re } from "lru-cache";
|
|
2
2
|
import { jsx as l, Fragment as x, jsxs as w } from "react/jsx-runtime";
|
|
3
|
-
import { createElement as
|
|
4
|
-
import { I as
|
|
3
|
+
import { createElement as Ee } from "react";
|
|
4
|
+
import { I as Ae, B as q, a as Ve, b as $e, C as Be, E as Pe, F as Fe, c as Oe, d as We, S as Ne, V as Le, e as Me } from "./USE_CLIENT_BUNDLE-7df521d2.mjs";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const
|
|
6
|
+
const A = (e) => JSON.parse(JSON.stringify(e)), ae = {
|
|
7
7
|
small: {
|
|
8
8
|
min: 320,
|
|
9
9
|
default: 321,
|
|
@@ -19,11 +19,11 @@ const E = (e) => JSON.parse(JSON.stringify(e)), oe = {
|
|
|
19
19
|
default: 991,
|
|
20
20
|
max: 1200
|
|
21
21
|
}
|
|
22
|
-
},
|
|
22
|
+
}, G = (e, t = ae) => `@media (max-width: ${t[e].max}px)`, se = ({
|
|
23
23
|
small: e,
|
|
24
24
|
medium: t
|
|
25
25
|
}) => {
|
|
26
|
-
const n =
|
|
26
|
+
const n = A(ae);
|
|
27
27
|
if (!e || !t)
|
|
28
28
|
return n;
|
|
29
29
|
const o = Math.floor(e / 2);
|
|
@@ -45,29 +45,29 @@ const E = (e) => JSON.parse(JSON.stringify(e)), oe = {
|
|
|
45
45
|
min: r,
|
|
46
46
|
default: r + 1
|
|
47
47
|
}, n;
|
|
48
|
-
},
|
|
48
|
+
}, I = "rsc", T = "[Builder.io]: ", k = {
|
|
49
49
|
log: (...e) => console.log(T, ...e),
|
|
50
50
|
error: (...e) => console.error(T, ...e),
|
|
51
51
|
warn: (...e) => console.warn(T, ...e),
|
|
52
52
|
debug: (...e) => console.debug(T, ...e)
|
|
53
53
|
};
|
|
54
|
-
function
|
|
54
|
+
function v() {
|
|
55
55
|
return typeof window < "u" && typeof document < "u";
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
57
|
+
function Ue() {
|
|
58
|
+
return v() && window.self !== window.top;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
return
|
|
60
|
+
function L() {
|
|
61
|
+
return Ue() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
62
62
|
}
|
|
63
|
-
const
|
|
64
|
-
if (
|
|
63
|
+
const _e = () => {
|
|
64
|
+
if (v()) {
|
|
65
65
|
const e = new URL(location.href);
|
|
66
66
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
67
67
|
} else
|
|
68
68
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
69
|
-
},
|
|
70
|
-
const e =
|
|
69
|
+
}, je = () => typeof navigator == "object" && navigator.userAgent || "", ce = () => {
|
|
70
|
+
const e = je(), t = {
|
|
71
71
|
Android() {
|
|
72
72
|
return e.match(/Android/i);
|
|
73
73
|
},
|
|
@@ -84,15 +84,15 @@ const Me = () => {
|
|
|
84
84
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
85
85
|
},
|
|
86
86
|
any() {
|
|
87
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
87
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || I === "reactNative";
|
|
88
88
|
}
|
|
89
|
-
}, n = e.match(/Tablet|iPad/i), o =
|
|
89
|
+
}, n = e.match(/Tablet|iPad/i), o = _e();
|
|
90
90
|
return {
|
|
91
91
|
urlPath: o == null ? void 0 : o.pathname,
|
|
92
92
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
93
93
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
94
94
|
};
|
|
95
|
-
},
|
|
95
|
+
}, Ke = ({
|
|
96
96
|
builder: e,
|
|
97
97
|
context: t,
|
|
98
98
|
event: n,
|
|
@@ -104,7 +104,7 @@ const Me = () => {
|
|
|
104
104
|
builder: e,
|
|
105
105
|
context: t,
|
|
106
106
|
event: n
|
|
107
|
-
}),
|
|
107
|
+
}), He = ({
|
|
108
108
|
code: e,
|
|
109
109
|
builder: t,
|
|
110
110
|
context: n,
|
|
@@ -113,15 +113,15 @@ const Me = () => {
|
|
|
113
113
|
rootSetState: r,
|
|
114
114
|
rootState: a
|
|
115
115
|
}) => {
|
|
116
|
-
const c =
|
|
116
|
+
const c = Ke({
|
|
117
117
|
builder: t,
|
|
118
118
|
context: n,
|
|
119
119
|
event: o,
|
|
120
|
-
state:
|
|
120
|
+
state: De(a, i, r)
|
|
121
121
|
});
|
|
122
122
|
return new Function(...c.map(([s]) => s), e)(...c.map(([, s]) => s));
|
|
123
123
|
};
|
|
124
|
-
function
|
|
124
|
+
function De(e, t, n) {
|
|
125
125
|
if (e === t)
|
|
126
126
|
throw new Error("rootState === localState");
|
|
127
127
|
return new Proxy(e, {
|
|
@@ -133,7 +133,7 @@ function Ke(e, t, n) {
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function M({
|
|
137
137
|
code: e,
|
|
138
138
|
context: t,
|
|
139
139
|
localState: n,
|
|
@@ -147,10 +147,10 @@ function N({
|
|
|
147
147
|
return;
|
|
148
148
|
}
|
|
149
149
|
const c = {
|
|
150
|
-
isEditing:
|
|
151
|
-
isBrowser:
|
|
152
|
-
isServer: !
|
|
153
|
-
getUserAttributes: () =>
|
|
150
|
+
isEditing: L(),
|
|
151
|
+
isBrowser: v(),
|
|
152
|
+
isServer: !v(),
|
|
153
|
+
getUserAttributes: () => ce()
|
|
154
154
|
}, f = {
|
|
155
155
|
code: /* we disable this for cases where we definitely don't want a return */ a && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
156
156
|
builder: c,
|
|
@@ -161,7 +161,7 @@ function N({
|
|
|
161
161
|
localState: n
|
|
162
162
|
};
|
|
163
163
|
try {
|
|
164
|
-
return
|
|
164
|
+
return He(f);
|
|
165
165
|
} catch (g) {
|
|
166
166
|
k.error("Failed code evaluation: " + g.message, {
|
|
167
167
|
code: e
|
|
@@ -169,13 +169,13 @@ function N({
|
|
|
169
169
|
return;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
const
|
|
172
|
+
const ze = (e, t, n) => {
|
|
173
173
|
if (Object(e) !== e)
|
|
174
174
|
return e;
|
|
175
175
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
176
176
|
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;
|
|
177
177
|
};
|
|
178
|
-
const
|
|
178
|
+
const qe = ({
|
|
179
179
|
block: e,
|
|
180
180
|
context: t,
|
|
181
181
|
localState: n,
|
|
@@ -184,7 +184,7 @@ const De = ({
|
|
|
184
184
|
}) => {
|
|
185
185
|
if (!e.bindings)
|
|
186
186
|
return e;
|
|
187
|
-
const r =
|
|
187
|
+
const r = A(e), a = {
|
|
188
188
|
...r,
|
|
189
189
|
properties: {
|
|
190
190
|
...r.properties
|
|
@@ -194,18 +194,18 @@ const De = ({
|
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
196
|
for (const c in e.bindings) {
|
|
197
|
-
const s = e.bindings[c], u =
|
|
197
|
+
const s = e.bindings[c], u = M({
|
|
198
198
|
code: s,
|
|
199
199
|
localState: n,
|
|
200
200
|
rootState: o,
|
|
201
201
|
rootSetState: i,
|
|
202
202
|
context: t
|
|
203
203
|
});
|
|
204
|
-
|
|
204
|
+
ze(a, c, u);
|
|
205
205
|
}
|
|
206
206
|
return a;
|
|
207
207
|
};
|
|
208
|
-
function
|
|
208
|
+
function E({
|
|
209
209
|
block: e,
|
|
210
210
|
context: t,
|
|
211
211
|
shouldEvaluateBindings: n,
|
|
@@ -214,7 +214,7 @@ function re({
|
|
|
214
214
|
rootSetState: r
|
|
215
215
|
}) {
|
|
216
216
|
const a = e;
|
|
217
|
-
return n ?
|
|
217
|
+
return n ? qe({
|
|
218
218
|
block: a,
|
|
219
219
|
localState: o,
|
|
220
220
|
rootState: i,
|
|
@@ -222,26 +222,73 @@ function re({
|
|
|
222
222
|
context: t
|
|
223
223
|
}) : a;
|
|
224
224
|
}
|
|
225
|
-
const
|
|
225
|
+
const Ge = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), C = (e) => e != null, le = (e) => Object.entries(e).map(([n, o]) => {
|
|
226
226
|
if (typeof o == "string")
|
|
227
|
-
return `${
|
|
228
|
-
}).filter(
|
|
229
|
-
`),
|
|
227
|
+
return `${Ge(n)}: ${o};`;
|
|
228
|
+
}).filter(C), Je = (e) => le(e).join(`
|
|
229
|
+
`), B = ({
|
|
230
230
|
mediaQuery: e,
|
|
231
231
|
className: t,
|
|
232
232
|
styles: n
|
|
233
233
|
}) => {
|
|
234
234
|
const o = `.${t} {
|
|
235
|
-
${
|
|
235
|
+
${Je(n)}
|
|
236
236
|
}`;
|
|
237
237
|
return e ? `${e} {
|
|
238
238
|
${o}
|
|
239
239
|
}` : o;
|
|
240
240
|
};
|
|
241
|
-
function
|
|
241
|
+
function V(e) {
|
|
242
242
|
return /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function U(e) {
|
|
245
|
+
const t = function() {
|
|
246
|
+
const i = E({
|
|
247
|
+
block: e.block,
|
|
248
|
+
localState: e.context.localState,
|
|
249
|
+
rootState: e.context.rootState,
|
|
250
|
+
rootSetState: e.context.rootSetState,
|
|
251
|
+
context: e.context.context,
|
|
252
|
+
shouldEvaluateBindings: !0
|
|
253
|
+
});
|
|
254
|
+
return C(i.hide) ? !i.hide : C(i.show) ? i.show : !0;
|
|
255
|
+
}, n = function() {
|
|
256
|
+
var d;
|
|
257
|
+
const i = E({
|
|
258
|
+
block: e.block,
|
|
259
|
+
localState: e.context.localState,
|
|
260
|
+
rootState: e.context.rootState,
|
|
261
|
+
rootSetState: e.context.rootSetState,
|
|
262
|
+
context: e.context.context,
|
|
263
|
+
shouldEvaluateBindings: !0
|
|
264
|
+
}), r = i.responsiveStyles, a = e.context.content, c = se(
|
|
265
|
+
((d = a == null ? void 0 : a.meta) == null ? void 0 : d.breakpoints) || {}
|
|
266
|
+
), s = r == null ? void 0 : r.large, u = r == null ? void 0 : r.medium, f = r == null ? void 0 : r.small, g = i.id;
|
|
267
|
+
if (!g)
|
|
268
|
+
return "";
|
|
269
|
+
const p = s ? B({
|
|
270
|
+
className: g,
|
|
271
|
+
styles: s
|
|
272
|
+
}) : "", m = u ? B({
|
|
273
|
+
className: g,
|
|
274
|
+
styles: u,
|
|
275
|
+
mediaQuery: G(
|
|
276
|
+
"medium",
|
|
277
|
+
c
|
|
278
|
+
)
|
|
279
|
+
}) : "", h = f ? B({
|
|
280
|
+
className: g,
|
|
281
|
+
styles: f,
|
|
282
|
+
mediaQuery: G(
|
|
283
|
+
"small",
|
|
284
|
+
c
|
|
285
|
+
)
|
|
286
|
+
}) : "";
|
|
287
|
+
return [p, m, h].join(" ");
|
|
288
|
+
};
|
|
289
|
+
return /* @__PURE__ */ l(x, { children: n() && t() ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(V, { styles: n() }) }) : null });
|
|
290
|
+
}
|
|
291
|
+
function Ye(e) {
|
|
245
292
|
var t;
|
|
246
293
|
return {
|
|
247
294
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -252,13 +299,13 @@ function Ge(e) {
|
|
|
252
299
|
builderBlock: e
|
|
253
300
|
};
|
|
254
301
|
}
|
|
255
|
-
const
|
|
302
|
+
const Xe = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], P = (e) => typeof e == "string" && Xe.includes(e.toLowerCase()), Qe = ({
|
|
256
303
|
block: e,
|
|
257
304
|
context: t,
|
|
258
305
|
registeredComponents: n
|
|
259
306
|
}) => {
|
|
260
307
|
var r;
|
|
261
|
-
const o = (r =
|
|
308
|
+
const o = (r = E({
|
|
262
309
|
block: e,
|
|
263
310
|
localState: t.localState,
|
|
264
311
|
rootState: t.rootState,
|
|
@@ -274,7 +321,7 @@ const Je = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
274
321
|
console.warn(`
|
|
275
322
|
Could not find a registered component named "${o}".
|
|
276
323
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
277
|
-
},
|
|
324
|
+
}, Ze = ({
|
|
278
325
|
block: e,
|
|
279
326
|
context: t
|
|
280
327
|
}) => {
|
|
@@ -284,7 +331,7 @@ const Je = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
284
331
|
} = e;
|
|
285
332
|
if (!(n != null && n.collection))
|
|
286
333
|
return;
|
|
287
|
-
const i =
|
|
334
|
+
const i = M({
|
|
288
335
|
code: n.collection,
|
|
289
336
|
localState: t.localState,
|
|
290
337
|
rootState: t.rootState,
|
|
@@ -308,10 +355,10 @@ const Je = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
308
355
|
block: o
|
|
309
356
|
}));
|
|
310
357
|
};
|
|
311
|
-
function
|
|
358
|
+
function et(e) {
|
|
312
359
|
const t = e.repeatContext;
|
|
313
360
|
return /* @__PURE__ */ l(
|
|
314
|
-
|
|
361
|
+
$,
|
|
315
362
|
{
|
|
316
363
|
block: e.block,
|
|
317
364
|
context: t,
|
|
@@ -319,10 +366,10 @@ function Qe(e) {
|
|
|
319
366
|
}
|
|
320
367
|
);
|
|
321
368
|
}
|
|
322
|
-
function
|
|
369
|
+
function tt(e) {
|
|
323
370
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
324
371
|
}
|
|
325
|
-
const
|
|
372
|
+
const nt = (e) => `on${tt(e)}`, ot = (e, t) => (n) => M({
|
|
326
373
|
code: e,
|
|
327
374
|
context: t.context,
|
|
328
375
|
localState: t.localState,
|
|
@@ -337,9 +384,9 @@ function On(e) {
|
|
|
337
384
|
if (!n.hasOwnProperty(o))
|
|
338
385
|
continue;
|
|
339
386
|
const i = n[o];
|
|
340
|
-
let r =
|
|
387
|
+
let r = nt(o);
|
|
341
388
|
if (e.stripPrefix)
|
|
342
|
-
switch (
|
|
389
|
+
switch (I) {
|
|
343
390
|
case "vue2":
|
|
344
391
|
case "vue3":
|
|
345
392
|
r = r.replace("v-on:", "");
|
|
@@ -348,37 +395,37 @@ function On(e) {
|
|
|
348
395
|
r = r.replace("on:", "");
|
|
349
396
|
break;
|
|
350
397
|
}
|
|
351
|
-
t[r] =
|
|
398
|
+
t[r] = ot(i, e);
|
|
352
399
|
}
|
|
353
400
|
return t;
|
|
354
401
|
}
|
|
355
|
-
function
|
|
402
|
+
function it(e) {
|
|
356
403
|
return e.className = e.class, delete e.class, e;
|
|
357
404
|
}
|
|
358
|
-
const
|
|
405
|
+
const rt = (e) => ({
|
|
359
406
|
href: e.href
|
|
360
407
|
});
|
|
361
|
-
function
|
|
408
|
+
function at({
|
|
362
409
|
block: e,
|
|
363
410
|
context: t
|
|
364
411
|
}) {
|
|
365
412
|
var o;
|
|
366
413
|
const n = {
|
|
367
|
-
...
|
|
414
|
+
...rt(e),
|
|
368
415
|
...e.properties,
|
|
369
416
|
"builder-id": e.id,
|
|
370
|
-
style: e.style ?
|
|
417
|
+
style: e.style ? st(e.style) : void 0,
|
|
371
418
|
class: [e.id, "builder-block", e.class, (o = e.properties) == null ? void 0 : o.class].filter(Boolean).join(" ")
|
|
372
419
|
};
|
|
373
|
-
return
|
|
420
|
+
return it(n);
|
|
374
421
|
}
|
|
375
|
-
function
|
|
376
|
-
switch (
|
|
422
|
+
function st(e) {
|
|
423
|
+
switch (I) {
|
|
377
424
|
case "svelte":
|
|
378
425
|
case "vue2":
|
|
379
426
|
case "vue3":
|
|
380
427
|
case "solid":
|
|
381
|
-
return
|
|
428
|
+
return le(e).join(" ");
|
|
382
429
|
case "qwik":
|
|
383
430
|
case "reactNative":
|
|
384
431
|
case "react":
|
|
@@ -386,7 +433,7 @@ function rt(e) {
|
|
|
386
433
|
return e;
|
|
387
434
|
}
|
|
388
435
|
}
|
|
389
|
-
const
|
|
436
|
+
const ct = ({
|
|
390
437
|
componentOptions: e,
|
|
391
438
|
builderBlock: t,
|
|
392
439
|
context: n,
|
|
@@ -406,19 +453,19 @@ const at = ({
|
|
|
406
453
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
407
454
|
*/
|
|
408
455
|
...i ? {
|
|
409
|
-
attributes:
|
|
456
|
+
attributes: at({
|
|
410
457
|
block: t,
|
|
411
458
|
context: a
|
|
412
459
|
})
|
|
413
460
|
} : {}
|
|
414
461
|
};
|
|
415
|
-
function
|
|
462
|
+
function J(e) {
|
|
416
463
|
var n, o;
|
|
417
|
-
const t = e.isInteractive ?
|
|
464
|
+
const t = e.isInteractive ? Ae : e.componentRef;
|
|
418
465
|
return /* @__PURE__ */ l(x, { children: e.componentRef ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ w(
|
|
419
466
|
t,
|
|
420
467
|
{
|
|
421
|
-
...
|
|
468
|
+
...ct({
|
|
422
469
|
componentOptions: e.componentOptions,
|
|
423
470
|
builderBlock: e.builderBlock,
|
|
424
471
|
context: e.context,
|
|
@@ -429,7 +476,7 @@ function z(e) {
|
|
|
429
476
|
}),
|
|
430
477
|
children: [
|
|
431
478
|
(n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ l(
|
|
432
|
-
|
|
479
|
+
$,
|
|
433
480
|
{
|
|
434
481
|
block: i,
|
|
435
482
|
context: e.context,
|
|
@@ -438,7 +485,7 @@ function z(e) {
|
|
|
438
485
|
"block-" + i.id
|
|
439
486
|
)),
|
|
440
487
|
(o = e.blockChildren) == null ? void 0 : o.map((i) => /* @__PURE__ */ l(
|
|
441
|
-
|
|
488
|
+
U,
|
|
442
489
|
{
|
|
443
490
|
block: i,
|
|
444
491
|
context: e.context
|
|
@@ -449,21 +496,21 @@ function z(e) {
|
|
|
449
496
|
}
|
|
450
497
|
) }) : null });
|
|
451
498
|
}
|
|
452
|
-
function
|
|
499
|
+
function $(e) {
|
|
453
500
|
var u, f, g, p;
|
|
454
501
|
const t = function() {
|
|
455
|
-
return
|
|
502
|
+
return Qe({
|
|
456
503
|
block: e.block,
|
|
457
504
|
context: e.context,
|
|
458
505
|
registeredComponents: e.registeredComponents
|
|
459
506
|
});
|
|
460
507
|
}, n = function() {
|
|
461
|
-
return
|
|
508
|
+
return Ze({
|
|
462
509
|
block: e.block,
|
|
463
510
|
context: e.context
|
|
464
511
|
});
|
|
465
512
|
}, o = function() {
|
|
466
|
-
return n() ? e.block :
|
|
513
|
+
return n() ? e.block : E({
|
|
467
514
|
block: e.block,
|
|
468
515
|
localState: e.context.localState,
|
|
469
516
|
rootState: e.context.rootState,
|
|
@@ -479,12 +526,12 @@ function A(e) {
|
|
|
479
526
|
var d;
|
|
480
527
|
return !((d = t()) != null && d.component) && !n() ? o().children ?? [] : [];
|
|
481
528
|
}, c = function() {
|
|
482
|
-
var h, d, b,
|
|
529
|
+
var h, d, b, S, y;
|
|
483
530
|
return {
|
|
484
531
|
blockChildren: o().children ?? [],
|
|
485
532
|
componentRef: (h = t()) == null ? void 0 : h.component,
|
|
486
533
|
componentOptions: {
|
|
487
|
-
...
|
|
534
|
+
...Ye(o()),
|
|
488
535
|
builderContext: e.context,
|
|
489
536
|
...((d = t()) == null ? void 0 : d.name) === "Symbol" || ((b = t()) == null ? void 0 : b.name) === "Columns" ? {
|
|
490
537
|
builderComponents: e.registeredComponents
|
|
@@ -493,13 +540,13 @@ function A(e) {
|
|
|
493
540
|
context: s,
|
|
494
541
|
registeredComponents: e.registeredComponents,
|
|
495
542
|
builderBlock: o(),
|
|
496
|
-
includeBlockProps: ((
|
|
543
|
+
includeBlockProps: ((S = t()) == null ? void 0 : S.noWrap) === !0,
|
|
497
544
|
isInteractive: !((y = t()) != null && y.isRSC)
|
|
498
545
|
};
|
|
499
546
|
}, s = e.context;
|
|
500
|
-
return /* @__PURE__ */ l(x, { children: r() ? /* @__PURE__ */ l(x, { children: (u = t()) != null && u.noWrap ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(
|
|
501
|
-
|
|
502
|
-
|
|
547
|
+
return /* @__PURE__ */ l(x, { children: r() ? /* @__PURE__ */ l(x, { children: (u = t()) != null && u.noWrap ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(J, { ...c() }) }) : /* @__PURE__ */ w(x, { children: [
|
|
548
|
+
P(i()) ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(
|
|
549
|
+
q,
|
|
503
550
|
{
|
|
504
551
|
Wrapper: i(),
|
|
505
552
|
block: o(),
|
|
@@ -507,8 +554,8 @@ function A(e) {
|
|
|
507
554
|
hasChildren: !1
|
|
508
555
|
}
|
|
509
556
|
) }) : null,
|
|
510
|
-
!
|
|
511
|
-
|
|
557
|
+
!P(i()) && n() ? /* @__PURE__ */ l(x, { children: (f = n()) == null ? void 0 : f.map((m, h) => /* @__PURE__ */ l(
|
|
558
|
+
et,
|
|
512
559
|
{
|
|
513
560
|
repeatContext: m.context,
|
|
514
561
|
block: m.block,
|
|
@@ -516,17 +563,17 @@ function A(e) {
|
|
|
516
563
|
},
|
|
517
564
|
h
|
|
518
565
|
)) }) : null,
|
|
519
|
-
!
|
|
520
|
-
|
|
566
|
+
!P(i()) && !n() ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ w(
|
|
567
|
+
q,
|
|
521
568
|
{
|
|
522
569
|
Wrapper: i(),
|
|
523
570
|
block: o(),
|
|
524
571
|
context: e.context,
|
|
525
572
|
hasChildren: !0,
|
|
526
573
|
children: [
|
|
527
|
-
/* @__PURE__ */ l(
|
|
574
|
+
/* @__PURE__ */ l(J, { ...c() }),
|
|
528
575
|
(g = a()) == null ? void 0 : g.map((m) => /* @__PURE__ */ l(
|
|
529
|
-
|
|
576
|
+
$,
|
|
530
577
|
{
|
|
531
578
|
block: m,
|
|
532
579
|
context: s,
|
|
@@ -535,7 +582,7 @@ function A(e) {
|
|
|
535
582
|
"block-" + m.id
|
|
536
583
|
)),
|
|
537
584
|
(p = a()) == null ? void 0 : p.map((m) => /* @__PURE__ */ l(
|
|
538
|
-
|
|
585
|
+
U,
|
|
539
586
|
{
|
|
540
587
|
block: m,
|
|
541
588
|
context: s
|
|
@@ -547,10 +594,10 @@ function A(e) {
|
|
|
547
594
|
) }) : null
|
|
548
595
|
] }) }) : null });
|
|
549
596
|
}
|
|
550
|
-
function
|
|
597
|
+
function _(e) {
|
|
551
598
|
var t, n;
|
|
552
599
|
return /* @__PURE__ */ w(
|
|
553
|
-
|
|
600
|
+
Ve,
|
|
554
601
|
{
|
|
555
602
|
blocks: e.blocks,
|
|
556
603
|
parent: e.parent,
|
|
@@ -558,7 +605,7 @@ function M(e) {
|
|
|
558
605
|
styleProp: e.styleProp,
|
|
559
606
|
children: [
|
|
560
607
|
e.blocks ? /* @__PURE__ */ l(x, { children: (t = e.blocks) == null ? void 0 : t.map((o) => /* @__PURE__ */ l(
|
|
561
|
-
|
|
608
|
+
$,
|
|
562
609
|
{
|
|
563
610
|
block: o,
|
|
564
611
|
context: e.context,
|
|
@@ -567,7 +614,7 @@ function M(e) {
|
|
|
567
614
|
"render-block-" + o.id
|
|
568
615
|
)) }) : null,
|
|
569
616
|
e.blocks ? /* @__PURE__ */ l(x, { children: (n = e.blocks) == null ? void 0 : n.map((o) => /* @__PURE__ */ l(
|
|
570
|
-
|
|
617
|
+
U,
|
|
571
618
|
{
|
|
572
619
|
block: o,
|
|
573
620
|
context: e.context
|
|
@@ -578,7 +625,7 @@ function M(e) {
|
|
|
578
625
|
}
|
|
579
626
|
);
|
|
580
627
|
}
|
|
581
|
-
function
|
|
628
|
+
function lt(e) {
|
|
582
629
|
var m;
|
|
583
630
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], o = e.stackColumnsAt || "tablet", i = function(d) {
|
|
584
631
|
var b;
|
|
@@ -605,31 +652,31 @@ function st(e) {
|
|
|
605
652
|
})
|
|
606
653
|
};
|
|
607
654
|
}, f = function(d) {
|
|
608
|
-
const b = d === 0 ? 0 : t,
|
|
655
|
+
const b = d === 0 ? 0 : t, S = r(d), y = `${b}px`, D = "100%", z = 0;
|
|
609
656
|
return {
|
|
610
|
-
width:
|
|
657
|
+
width: S,
|
|
611
658
|
["marginLeft"]: y,
|
|
612
659
|
"--column-width-mobile": c({
|
|
613
|
-
stackedStyle:
|
|
614
|
-
desktopStyle:
|
|
660
|
+
stackedStyle: D,
|
|
661
|
+
desktopStyle: S
|
|
615
662
|
}),
|
|
616
663
|
"--column-margin-left-mobile": c({
|
|
617
|
-
stackedStyle:
|
|
664
|
+
stackedStyle: z,
|
|
618
665
|
desktopStyle: y
|
|
619
666
|
}),
|
|
620
667
|
"--column-width-tablet": a({
|
|
621
|
-
stackedStyle:
|
|
622
|
-
desktopStyle:
|
|
668
|
+
stackedStyle: D,
|
|
669
|
+
desktopStyle: S
|
|
623
670
|
}),
|
|
624
671
|
"--column-margin-left-tablet": a({
|
|
625
|
-
stackedStyle:
|
|
672
|
+
stackedStyle: z,
|
|
626
673
|
desktopStyle: y
|
|
627
674
|
})
|
|
628
675
|
};
|
|
629
676
|
}, g = function(d) {
|
|
630
|
-
var
|
|
631
|
-
return
|
|
632
|
-
((y = (
|
|
677
|
+
var S, y;
|
|
678
|
+
return se(
|
|
679
|
+
((y = (S = e.builderContext.content) == null ? void 0 : S.meta) == null ? void 0 : y.breakpoints) || {}
|
|
633
680
|
)[d].max;
|
|
634
681
|
}, p = function() {
|
|
635
682
|
return `
|
|
@@ -665,8 +712,8 @@ function st(e) {
|
|
|
665
712
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-119431c8`,
|
|
666
713
|
style: u(),
|
|
667
714
|
children: [
|
|
668
|
-
/* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(
|
|
669
|
-
(m = e.columns) == null ? void 0 : m.map((h, d) => /* @__PURE__ */
|
|
715
|
+
/* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(V, { styles: p() }) }),
|
|
716
|
+
(m = e.columns) == null ? void 0 : m.map((h, d) => /* @__PURE__ */ Ee(
|
|
670
717
|
"div",
|
|
671
718
|
{
|
|
672
719
|
className: "builder-column div-119431c8-2",
|
|
@@ -674,7 +721,7 @@ function st(e) {
|
|
|
674
721
|
key: d
|
|
675
722
|
},
|
|
676
723
|
/* @__PURE__ */ l(
|
|
677
|
-
|
|
724
|
+
_,
|
|
678
725
|
{
|
|
679
726
|
path: `component.options.columns.${d}.blocks`,
|
|
680
727
|
parent: e.builderBlock.id,
|
|
@@ -700,22 +747,22 @@ function st(e) {
|
|
|
700
747
|
}` })
|
|
701
748
|
] });
|
|
702
749
|
}
|
|
703
|
-
function
|
|
750
|
+
function Y(e) {
|
|
704
751
|
return e.replace(/http(s)?:/, "");
|
|
705
752
|
}
|
|
706
|
-
function
|
|
753
|
+
function ut(e = "", t, n) {
|
|
707
754
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
|
|
708
755
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + i + t + "=" + encodeURIComponent(n);
|
|
709
756
|
}
|
|
710
|
-
function
|
|
757
|
+
function dt(e, t) {
|
|
711
758
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
712
759
|
return e;
|
|
713
760
|
if (t === "master")
|
|
714
|
-
return
|
|
761
|
+
return Y(e);
|
|
715
762
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
716
763
|
if (n) {
|
|
717
764
|
const o = e.split(n[0]), i = n[3], r = t.match("x") ? t : `${t}x`;
|
|
718
|
-
return
|
|
765
|
+
return Y(`${o[0]}_${r}${i}`);
|
|
719
766
|
}
|
|
720
767
|
return null;
|
|
721
768
|
}
|
|
@@ -726,33 +773,33 @@ function Wn(e) {
|
|
|
726
773
|
if (e.match(/builder\.io/)) {
|
|
727
774
|
let n = e;
|
|
728
775
|
const o = Number(e.split("?width=")[1]);
|
|
729
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((i) => i !== o).map((i) => `${
|
|
776
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((i) => i !== o).map((i) => `${ut(e, "width", i)} ${i}w`).concat([n]).join(", ");
|
|
730
777
|
}
|
|
731
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
778
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [dt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
732
779
|
}
|
|
733
780
|
const R = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
734
781
|
...t,
|
|
735
782
|
testVariationId: t.id,
|
|
736
783
|
id: e == null ? void 0 : e.id
|
|
737
|
-
})),
|
|
784
|
+
})), mt = ({
|
|
738
785
|
canTrack: e,
|
|
739
786
|
content: t
|
|
740
|
-
}) => !(!(R(t).length > 0) || !e ||
|
|
741
|
-
function
|
|
787
|
+
}) => !(!(R(t).length > 0) || !e || v());
|
|
788
|
+
function ft(e, t, n) {
|
|
742
789
|
var a;
|
|
743
790
|
function o() {
|
|
744
791
|
function c(h, d, b) {
|
|
745
|
-
let
|
|
792
|
+
let S = "";
|
|
746
793
|
if (b) {
|
|
747
794
|
const y = /* @__PURE__ */ new Date();
|
|
748
|
-
y.setTime(y.getTime() + b * 24 * 60 * 60 * 1e3),
|
|
795
|
+
y.setTime(y.getTime() + b * 24 * 60 * 60 * 1e3), S = "; expires=" + y.toUTCString();
|
|
749
796
|
}
|
|
750
|
-
document.cookie = h + "=" + (d || "") +
|
|
797
|
+
document.cookie = h + "=" + (d || "") + S + "; path=/; Secure; SameSite=None";
|
|
751
798
|
}
|
|
752
799
|
function s(h) {
|
|
753
800
|
const d = h + "=", b = document.cookie.split(";");
|
|
754
|
-
for (let
|
|
755
|
-
let y = b[
|
|
801
|
+
for (let S = 0; S < b.length; S++) {
|
|
802
|
+
let y = b[S];
|
|
756
803
|
for (; y.charAt(0) === " "; )
|
|
757
804
|
y = y.substring(1, y.length);
|
|
758
805
|
if (y.indexOf(d) === 0)
|
|
@@ -785,7 +832,7 @@ function dt(e, t, n) {
|
|
|
785
832
|
r.innerHTML = c;
|
|
786
833
|
}
|
|
787
834
|
}
|
|
788
|
-
function
|
|
835
|
+
function ht(e, t, n) {
|
|
789
836
|
var s;
|
|
790
837
|
if (!navigator.cookieEnabled)
|
|
791
838
|
return;
|
|
@@ -810,18 +857,18 @@ function mt(e, t, n) {
|
|
|
810
857
|
return;
|
|
811
858
|
}
|
|
812
859
|
}
|
|
813
|
-
const
|
|
814
|
-
const e =
|
|
860
|
+
const gt = (e) => e === "react" || e === "reactNative", ue = gt(I), de = "builderIoAbTest", me = "builderIoRenderContent", pt = () => {
|
|
861
|
+
const e = ft.toString().replace(/\s+/g, " "), t = ht.toString().replace(/\s+/g, " ");
|
|
815
862
|
return `
|
|
816
|
-
window.${
|
|
817
|
-
window.${
|
|
863
|
+
window.${de} = ${e}
|
|
864
|
+
window.${me} = ${t}
|
|
818
865
|
`;
|
|
819
|
-
},
|
|
820
|
-
window.${
|
|
866
|
+
}, bt = (e, t) => `
|
|
867
|
+
window.${de}("${t}",${JSON.stringify(e)}, ${ue})`, yt = ({
|
|
821
868
|
contentId: e,
|
|
822
869
|
variationId: t
|
|
823
870
|
}) => `
|
|
824
|
-
window.${
|
|
871
|
+
window.${me}("${t}", "${e}", ${ue})`, xt = {
|
|
825
872
|
name: "Core:Button",
|
|
826
873
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
827
874
|
defaultStyles: {
|
|
@@ -854,7 +901,7 @@ const ft = (e) => e === "react" || e === "reactNative", se = ft(C), ce = "builde
|
|
|
854
901
|
}],
|
|
855
902
|
static: !0,
|
|
856
903
|
noWrap: !0
|
|
857
|
-
},
|
|
904
|
+
}, St = {
|
|
858
905
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
859
906
|
name: "Columns",
|
|
860
907
|
isRSC: !0,
|
|
@@ -1055,13 +1102,13 @@ const ft = (e) => e === "react" || e === "reactNative", se = ft(C), ce = "builde
|
|
|
1055
1102
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1056
1103
|
advanced: !0
|
|
1057
1104
|
}]
|
|
1058
|
-
},
|
|
1105
|
+
}, vt = {
|
|
1059
1106
|
name: "Fragment",
|
|
1060
1107
|
static: !0,
|
|
1061
1108
|
hidden: !0,
|
|
1062
1109
|
canHaveChildren: !0,
|
|
1063
1110
|
noWrap: !0
|
|
1064
|
-
},
|
|
1111
|
+
}, kt = {
|
|
1065
1112
|
name: "Image",
|
|
1066
1113
|
static: !0,
|
|
1067
1114
|
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",
|
|
@@ -1161,7 +1208,7 @@ const ft = (e) => e === "react" || e === "reactNative", se = ft(C), ce = "builde
|
|
|
1161
1208
|
advanced: !0,
|
|
1162
1209
|
defaultValue: 0.7041
|
|
1163
1210
|
}]
|
|
1164
|
-
},
|
|
1211
|
+
}, wt = {
|
|
1165
1212
|
name: "Core:Section",
|
|
1166
1213
|
static: !0,
|
|
1167
1214
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1200,7 +1247,7 @@ const ft = (e) => e === "react" || e === "reactNative", se = ft(C), ce = "builde
|
|
|
1200
1247
|
}
|
|
1201
1248
|
}
|
|
1202
1249
|
}]
|
|
1203
|
-
},
|
|
1250
|
+
}, Ct = {
|
|
1204
1251
|
name: "Symbol",
|
|
1205
1252
|
noWrap: !0,
|
|
1206
1253
|
static: !0,
|
|
@@ -1233,7 +1280,7 @@ const ft = (e) => e === "react" || e === "reactNative", se = ft(C), ce = "builde
|
|
|
1233
1280
|
hideFromUI: !0,
|
|
1234
1281
|
type: "boolean"
|
|
1235
1282
|
}]
|
|
1236
|
-
},
|
|
1283
|
+
}, It = {
|
|
1237
1284
|
name: "Text",
|
|
1238
1285
|
static: !0,
|
|
1239
1286
|
isRSC: !0,
|
|
@@ -1252,10 +1299,10 @@ const ft = (e) => e === "react" || e === "reactNative", se = ft(C), ce = "builde
|
|
|
1252
1299
|
textAlign: "center"
|
|
1253
1300
|
}
|
|
1254
1301
|
};
|
|
1255
|
-
function
|
|
1302
|
+
function Tt(e) {
|
|
1256
1303
|
var t;
|
|
1257
1304
|
return /* @__PURE__ */ l(
|
|
1258
|
-
"
|
|
1305
|
+
"div",
|
|
1259
1306
|
{
|
|
1260
1307
|
className: "builder-text",
|
|
1261
1308
|
dangerouslySetInnerHTML: { __html: ((t = e.text) == null ? void 0 : t.toString()) || "" },
|
|
@@ -1265,7 +1312,7 @@ function Ct(e) {
|
|
|
1265
1312
|
}
|
|
1266
1313
|
);
|
|
1267
1314
|
}
|
|
1268
|
-
const
|
|
1315
|
+
const Rt = {
|
|
1269
1316
|
name: "Video",
|
|
1270
1317
|
canHaveChildren: !0,
|
|
1271
1318
|
defaultStyles: {
|
|
@@ -1346,7 +1393,7 @@ const It = {
|
|
|
1346
1393
|
defaultValue: !0,
|
|
1347
1394
|
advanced: !0
|
|
1348
1395
|
}]
|
|
1349
|
-
},
|
|
1396
|
+
}, Et = {
|
|
1350
1397
|
name: "Embed",
|
|
1351
1398
|
static: !0,
|
|
1352
1399
|
inputs: [{
|
|
@@ -1371,7 +1418,7 @@ const It = {
|
|
|
1371
1418
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1372
1419
|
hideFromUI: !0
|
|
1373
1420
|
}]
|
|
1374
|
-
},
|
|
1421
|
+
}, At = ["text/javascript", "application/javascript", "application/ecmascript"], Nn = (e) => At.includes(e.type), Vt = {
|
|
1375
1422
|
// friendlyName?
|
|
1376
1423
|
name: "Raw:Img",
|
|
1377
1424
|
hideFromInsertMenu: !0,
|
|
@@ -1385,7 +1432,7 @@ const It = {
|
|
|
1385
1432
|
}],
|
|
1386
1433
|
noWrap: !0,
|
|
1387
1434
|
static: !0
|
|
1388
|
-
},
|
|
1435
|
+
}, $t = {
|
|
1389
1436
|
name: "Custom Code",
|
|
1390
1437
|
static: !0,
|
|
1391
1438
|
requiredPermissions: ["editCode"],
|
|
@@ -1407,55 +1454,55 @@ const It = {
|
|
|
1407
1454
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
1408
1455
|
advanced: !0
|
|
1409
1456
|
}]
|
|
1410
|
-
},
|
|
1411
|
-
component: Ee,
|
|
1412
|
-
...bt
|
|
1413
|
-
}, {
|
|
1414
|
-
component: st,
|
|
1415
|
-
...yt
|
|
1416
|
-
}, {
|
|
1417
|
-
component: Ae,
|
|
1418
|
-
...At
|
|
1419
|
-
}, {
|
|
1420
|
-
component: Ve,
|
|
1421
|
-
...Tt
|
|
1422
|
-
}, {
|
|
1457
|
+
}, X = () => [{
|
|
1423
1458
|
component: $e,
|
|
1424
1459
|
...xt
|
|
1425
1460
|
}, {
|
|
1426
|
-
component:
|
|
1427
|
-
...
|
|
1461
|
+
component: lt,
|
|
1462
|
+
...St
|
|
1428
1463
|
}, {
|
|
1429
1464
|
component: Be,
|
|
1465
|
+
...$t
|
|
1466
|
+
}, {
|
|
1467
|
+
component: Pe,
|
|
1430
1468
|
...Et
|
|
1431
1469
|
}, {
|
|
1432
1470
|
component: Fe,
|
|
1433
|
-
...
|
|
1471
|
+
...vt
|
|
1434
1472
|
}, {
|
|
1435
|
-
component:
|
|
1473
|
+
component: Oe,
|
|
1436
1474
|
...kt
|
|
1437
1475
|
}, {
|
|
1438
|
-
component:
|
|
1476
|
+
component: We,
|
|
1477
|
+
...Vt
|
|
1478
|
+
}, {
|
|
1479
|
+
component: Ne,
|
|
1439
1480
|
...wt
|
|
1440
1481
|
}, {
|
|
1441
|
-
component:
|
|
1482
|
+
component: xn,
|
|
1483
|
+
...Ct
|
|
1484
|
+
}, {
|
|
1485
|
+
component: Tt,
|
|
1442
1486
|
...It
|
|
1443
|
-
}
|
|
1487
|
+
}, {
|
|
1488
|
+
component: Le,
|
|
1489
|
+
...Rt
|
|
1490
|
+
}], Q = [], Ln = (e) => ({
|
|
1444
1491
|
type: "builder.registerComponent",
|
|
1445
|
-
data:
|
|
1446
|
-
}),
|
|
1492
|
+
data: F(e)
|
|
1493
|
+
}), Bt = (e) => {
|
|
1447
1494
|
const t = e.toString().trim();
|
|
1448
1495
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
1449
|
-
},
|
|
1496
|
+
}, Pt = (e) => typeof e == "function" ? Bt(e) : A(e), F = ({
|
|
1450
1497
|
inputs: e,
|
|
1451
1498
|
...t
|
|
1452
1499
|
}) => ({
|
|
1453
|
-
...
|
|
1500
|
+
...A(t),
|
|
1454
1501
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [i, r]) => ({
|
|
1455
1502
|
...o,
|
|
1456
|
-
[i]:
|
|
1503
|
+
[i]: Pt(r)
|
|
1457
1504
|
}), {}))
|
|
1458
|
-
}),
|
|
1505
|
+
}), Ft = (e) => {
|
|
1459
1506
|
var r;
|
|
1460
1507
|
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);
|
|
1461
1508
|
let i = "";
|
|
@@ -1481,22 +1528,22 @@ font-weight: ${a};
|
|
|
1481
1528
|
`.trim());
|
|
1482
1529
|
}
|
|
1483
1530
|
return i;
|
|
1484
|
-
},
|
|
1531
|
+
}, Ot = ({
|
|
1485
1532
|
customFonts: e
|
|
1486
1533
|
}) => {
|
|
1487
1534
|
var t;
|
|
1488
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
1489
|
-
},
|
|
1535
|
+
return ((t = e == null ? void 0 : e.map((n) => Ft(n))) == null ? void 0 : t.join(" ")) || "";
|
|
1536
|
+
}, Wt = ({
|
|
1490
1537
|
cssCode: e,
|
|
1491
1538
|
contentId: t
|
|
1492
1539
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
1493
|
-
function
|
|
1540
|
+
function Nt(e) {
|
|
1494
1541
|
const t = `
|
|
1495
|
-
${
|
|
1542
|
+
${Wt({
|
|
1496
1543
|
cssCode: e.cssCode,
|
|
1497
1544
|
contentId: e.contentId
|
|
1498
1545
|
})}
|
|
1499
|
-
${
|
|
1546
|
+
${Ot({
|
|
1500
1547
|
customFonts: e.customFonts
|
|
1501
1548
|
})}
|
|
1502
1549
|
|
|
@@ -1513,9 +1560,9 @@ ${Bt({
|
|
|
1513
1560
|
font-family: inherit;
|
|
1514
1561
|
}
|
|
1515
1562
|
`.trim();
|
|
1516
|
-
return /* @__PURE__ */ l(
|
|
1563
|
+
return /* @__PURE__ */ l(V, { styles: t });
|
|
1517
1564
|
}
|
|
1518
|
-
const
|
|
1565
|
+
const Lt = ({
|
|
1519
1566
|
content: e,
|
|
1520
1567
|
data: t,
|
|
1521
1568
|
locale: n
|
|
@@ -1537,7 +1584,7 @@ const Wt = ({
|
|
|
1537
1584
|
...o,
|
|
1538
1585
|
...i
|
|
1539
1586
|
};
|
|
1540
|
-
},
|
|
1587
|
+
}, Mt = ({
|
|
1541
1588
|
content: e,
|
|
1542
1589
|
data: t
|
|
1543
1590
|
}) => e ? {
|
|
@@ -1548,22 +1595,22 @@ const Wt = ({
|
|
|
1548
1595
|
},
|
|
1549
1596
|
meta: e == null ? void 0 : e.meta
|
|
1550
1597
|
} : void 0;
|
|
1551
|
-
function
|
|
1598
|
+
function Ut() {
|
|
1552
1599
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
1553
1600
|
}
|
|
1554
|
-
function
|
|
1555
|
-
const e =
|
|
1601
|
+
function _t() {
|
|
1602
|
+
const e = Ut().fetch;
|
|
1556
1603
|
if (typeof e > "u")
|
|
1557
1604
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
1558
1605
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
1559
1606
|
return e;
|
|
1560
1607
|
}
|
|
1561
|
-
const
|
|
1608
|
+
const jt = _t(), Kt = (e) => {
|
|
1562
1609
|
if (e === "localhost" || e === "127.0.0.1")
|
|
1563
1610
|
return e;
|
|
1564
1611
|
const t = e.split(".");
|
|
1565
1612
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
1566
|
-
},
|
|
1613
|
+
}, fe = ({
|
|
1567
1614
|
name: e,
|
|
1568
1615
|
canTrack: t
|
|
1569
1616
|
}) => {
|
|
@@ -1574,14 +1621,14 @@ const _t = Mt(), Ut = (e) => {
|
|
|
1574
1621
|
k.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
1575
1622
|
return;
|
|
1576
1623
|
}
|
|
1577
|
-
},
|
|
1624
|
+
}, he = async (e) => fe(e), Ht = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(C).join("; "), Dt = [["secure", ""], ["SameSite", "None"]], zt = ({
|
|
1578
1625
|
name: e,
|
|
1579
1626
|
value: t,
|
|
1580
1627
|
expires: n
|
|
1581
1628
|
}) => {
|
|
1582
|
-
const i = (
|
|
1583
|
-
return
|
|
1584
|
-
},
|
|
1629
|
+
const i = (v() ? location.protocol === "https:" : !0) ? Dt : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [[e, t], ...r, ["path", "/"], ["domain", Kt(window.location.hostname)], ...i];
|
|
1630
|
+
return Ht(a);
|
|
1631
|
+
}, ge = async ({
|
|
1585
1632
|
name: e,
|
|
1586
1633
|
value: t,
|
|
1587
1634
|
expires: n,
|
|
@@ -1590,7 +1637,7 @@ const _t = Mt(), Ut = (e) => {
|
|
|
1590
1637
|
try {
|
|
1591
1638
|
if (!o)
|
|
1592
1639
|
return;
|
|
1593
|
-
const i =
|
|
1640
|
+
const i = zt({
|
|
1594
1641
|
name: e,
|
|
1595
1642
|
value: t,
|
|
1596
1643
|
expires: n
|
|
@@ -1600,88 +1647,88 @@ const _t = Mt(), Ut = (e) => {
|
|
|
1600
1647
|
k.warn("[COOKIE] SET error: ", (i == null ? void 0 : i.message) || i);
|
|
1601
1648
|
}
|
|
1602
1649
|
};
|
|
1603
|
-
function
|
|
1650
|
+
function qt() {
|
|
1604
1651
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
1605
1652
|
const t = Math.random() * 16 | 0;
|
|
1606
1653
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
1607
1654
|
});
|
|
1608
1655
|
}
|
|
1609
|
-
function
|
|
1610
|
-
return
|
|
1656
|
+
function pe() {
|
|
1657
|
+
return qt().replace(/-/g, "");
|
|
1611
1658
|
}
|
|
1612
|
-
const
|
|
1659
|
+
const be = "builderSessionId", Gt = async ({
|
|
1613
1660
|
canTrack: e
|
|
1614
1661
|
}) => {
|
|
1615
1662
|
if (!e)
|
|
1616
1663
|
return;
|
|
1617
|
-
const t = await
|
|
1618
|
-
name:
|
|
1664
|
+
const t = await he({
|
|
1665
|
+
name: be,
|
|
1619
1666
|
canTrack: e
|
|
1620
1667
|
});
|
|
1621
|
-
if (
|
|
1668
|
+
if (C(t))
|
|
1622
1669
|
return t;
|
|
1623
1670
|
{
|
|
1624
|
-
const n =
|
|
1625
|
-
return
|
|
1671
|
+
const n = Jt();
|
|
1672
|
+
return Yt({
|
|
1626
1673
|
id: n,
|
|
1627
1674
|
canTrack: e
|
|
1628
1675
|
}), n;
|
|
1629
1676
|
}
|
|
1630
|
-
},
|
|
1677
|
+
}, Jt = () => pe(), Yt = ({
|
|
1631
1678
|
id: e,
|
|
1632
1679
|
canTrack: t
|
|
1633
|
-
}) =>
|
|
1634
|
-
name:
|
|
1680
|
+
}) => ge({
|
|
1681
|
+
name: be,
|
|
1635
1682
|
value: e,
|
|
1636
1683
|
canTrack: t
|
|
1637
|
-
}),
|
|
1684
|
+
}), ye = () => v() && typeof localStorage < "u" ? localStorage : void 0, Xt = ({
|
|
1638
1685
|
key: e,
|
|
1639
1686
|
canTrack: t
|
|
1640
1687
|
}) => {
|
|
1641
1688
|
var n;
|
|
1642
1689
|
try {
|
|
1643
|
-
return t ? (n =
|
|
1690
|
+
return t ? (n = ye()) == null ? void 0 : n.getItem(e) : void 0;
|
|
1644
1691
|
} catch (o) {
|
|
1645
1692
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1646
1693
|
return;
|
|
1647
1694
|
}
|
|
1648
|
-
},
|
|
1695
|
+
}, Qt = ({
|
|
1649
1696
|
key: e,
|
|
1650
1697
|
canTrack: t,
|
|
1651
1698
|
value: n
|
|
1652
1699
|
}) => {
|
|
1653
1700
|
var o;
|
|
1654
1701
|
try {
|
|
1655
|
-
t && ((o =
|
|
1702
|
+
t && ((o = ye()) == null || o.setItem(e, n));
|
|
1656
1703
|
} catch (i) {
|
|
1657
1704
|
console.debug("[LocalStorage] SET error: ", i);
|
|
1658
1705
|
}
|
|
1659
|
-
},
|
|
1706
|
+
}, xe = "builderVisitorId", Zt = ({
|
|
1660
1707
|
canTrack: e
|
|
1661
1708
|
}) => {
|
|
1662
1709
|
if (!e)
|
|
1663
1710
|
return;
|
|
1664
|
-
const t =
|
|
1665
|
-
key:
|
|
1711
|
+
const t = Xt({
|
|
1712
|
+
key: xe,
|
|
1666
1713
|
canTrack: e
|
|
1667
1714
|
});
|
|
1668
|
-
if (
|
|
1715
|
+
if (C(t))
|
|
1669
1716
|
return t;
|
|
1670
1717
|
{
|
|
1671
|
-
const n =
|
|
1672
|
-
return
|
|
1718
|
+
const n = en();
|
|
1719
|
+
return tn({
|
|
1673
1720
|
id: n,
|
|
1674
1721
|
canTrack: e
|
|
1675
1722
|
}), n;
|
|
1676
1723
|
}
|
|
1677
|
-
},
|
|
1724
|
+
}, en = () => pe(), tn = ({
|
|
1678
1725
|
id: e,
|
|
1679
1726
|
canTrack: t
|
|
1680
|
-
}) =>
|
|
1681
|
-
key:
|
|
1727
|
+
}) => Qt({
|
|
1728
|
+
key: xe,
|
|
1682
1729
|
value: e,
|
|
1683
1730
|
canTrack: t
|
|
1684
|
-
}),
|
|
1731
|
+
}), nn = async ({
|
|
1685
1732
|
canTrack: e
|
|
1686
1733
|
}) => {
|
|
1687
1734
|
if (!e)
|
|
@@ -1689,16 +1736,16 @@ const he = "builderSessionId", zt = async ({
|
|
|
1689
1736
|
visitorId: void 0,
|
|
1690
1737
|
sessionId: void 0
|
|
1691
1738
|
};
|
|
1692
|
-
const t = await
|
|
1739
|
+
const t = await Gt({
|
|
1693
1740
|
canTrack: e
|
|
1694
|
-
}), n =
|
|
1741
|
+
}), n = Zt({
|
|
1695
1742
|
canTrack: e
|
|
1696
1743
|
});
|
|
1697
1744
|
return {
|
|
1698
1745
|
sessionId: t,
|
|
1699
1746
|
visitorId: n
|
|
1700
1747
|
};
|
|
1701
|
-
},
|
|
1748
|
+
}, on = async ({
|
|
1702
1749
|
type: e,
|
|
1703
1750
|
canTrack: t,
|
|
1704
1751
|
apiKey: n,
|
|
@@ -1712,23 +1759,23 @@ const he = "builderSessionId", zt = async ({
|
|
|
1712
1759
|
url: location.href,
|
|
1713
1760
|
...o
|
|
1714
1761
|
},
|
|
1715
|
-
...await
|
|
1762
|
+
...await nn({
|
|
1716
1763
|
canTrack: t
|
|
1717
1764
|
}),
|
|
1718
|
-
userAttributes:
|
|
1765
|
+
userAttributes: ce(),
|
|
1719
1766
|
ownerId: n
|
|
1720
1767
|
}
|
|
1721
1768
|
});
|
|
1722
|
-
async function
|
|
1769
|
+
async function rn(e) {
|
|
1723
1770
|
if (!e.apiKey) {
|
|
1724
1771
|
k.error("Missing API key for track call. Please provide your API key.");
|
|
1725
1772
|
return;
|
|
1726
1773
|
}
|
|
1727
|
-
if (e.canTrack && !
|
|
1774
|
+
if (e.canTrack && !L() && (v() || I === "reactNative"))
|
|
1728
1775
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
1729
1776
|
method: "POST",
|
|
1730
1777
|
body: JSON.stringify({
|
|
1731
|
-
events: [await
|
|
1778
|
+
events: [await on(e)]
|
|
1732
1779
|
}),
|
|
1733
1780
|
headers: {
|
|
1734
1781
|
"content-type": "application/json"
|
|
@@ -1738,13 +1785,13 @@ async function nn(e) {
|
|
|
1738
1785
|
console.error("Failed to track: ", t);
|
|
1739
1786
|
});
|
|
1740
1787
|
}
|
|
1741
|
-
const Mn = (e) =>
|
|
1788
|
+
const Mn = (e) => rn({
|
|
1742
1789
|
...e,
|
|
1743
1790
|
canTrack: !0
|
|
1744
|
-
}),
|
|
1745
|
-
function
|
|
1746
|
-
let n =
|
|
1747
|
-
if (n || (n =
|
|
1791
|
+
}), an = "0.6.3", Z = {};
|
|
1792
|
+
function sn(e, t) {
|
|
1793
|
+
let n = Z[e];
|
|
1794
|
+
if (n || (n = Z[e] = []), n.push(t), v()) {
|
|
1748
1795
|
const o = {
|
|
1749
1796
|
type: "builder.register",
|
|
1750
1797
|
data: {
|
|
@@ -1759,8 +1806,8 @@ function rn(e, t) {
|
|
|
1759
1806
|
}
|
|
1760
1807
|
}
|
|
1761
1808
|
}
|
|
1762
|
-
const
|
|
1763
|
-
|
|
1809
|
+
const Un = () => {
|
|
1810
|
+
sn("insertMenu", {
|
|
1764
1811
|
name: "_default",
|
|
1765
1812
|
default: !0,
|
|
1766
1813
|
items: [{
|
|
@@ -1782,14 +1829,14 @@ const _n = () => {
|
|
|
1782
1829
|
}]
|
|
1783
1830
|
});
|
|
1784
1831
|
};
|
|
1785
|
-
let
|
|
1786
|
-
const
|
|
1832
|
+
let ee = !1;
|
|
1833
|
+
const _n = (e = {}) => {
|
|
1787
1834
|
var t, n;
|
|
1788
|
-
|
|
1835
|
+
ee || (ee = !0, v() && ((t = window.parent) == null || t.postMessage({
|
|
1789
1836
|
type: "builder.sdkInfo",
|
|
1790
1837
|
data: {
|
|
1791
|
-
target:
|
|
1792
|
-
version:
|
|
1838
|
+
target: I,
|
|
1839
|
+
version: an,
|
|
1793
1840
|
supportsPatchUpdates: !1,
|
|
1794
1841
|
// Supports builder-model="..." attribute which is needed to
|
|
1795
1842
|
// scope our '+ add block' button styling
|
|
@@ -1842,10 +1889,10 @@ const Un = (e = {}) => {
|
|
|
1842
1889
|
}
|
|
1843
1890
|
})));
|
|
1844
1891
|
};
|
|
1845
|
-
function
|
|
1892
|
+
function te(e) {
|
|
1846
1893
|
return Math.round(e * 1e3) / 1e3;
|
|
1847
1894
|
}
|
|
1848
|
-
const
|
|
1895
|
+
const cn = (e, t, n = !0) => {
|
|
1849
1896
|
if (!(e instanceof HTMLElement))
|
|
1850
1897
|
return null;
|
|
1851
1898
|
let o = n ? e : e.parentElement;
|
|
@@ -1856,28 +1903,28 @@ const an = (e, t, n = !0) => {
|
|
|
1856
1903
|
return o;
|
|
1857
1904
|
} while (o = o.parentElement);
|
|
1858
1905
|
return null;
|
|
1859
|
-
},
|
|
1906
|
+
}, ln = (e) => cn(e, (t) => {
|
|
1860
1907
|
const n = t.getAttribute("builder-id") || t.id;
|
|
1861
1908
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
1862
|
-
}),
|
|
1909
|
+
}), ne = ({
|
|
1863
1910
|
event: e,
|
|
1864
1911
|
target: t
|
|
1865
1912
|
}) => {
|
|
1866
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, i = e.clientY - n.top, r =
|
|
1913
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, i = e.clientY - n.top, r = te(o / n.width), a = te(i / n.height);
|
|
1867
1914
|
return {
|
|
1868
1915
|
x: r,
|
|
1869
1916
|
y: a
|
|
1870
1917
|
};
|
|
1871
1918
|
}, jn = (e) => {
|
|
1872
|
-
const t = e.target, n = t &&
|
|
1919
|
+
const t = e.target, n = t && ln(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
1873
1920
|
return {
|
|
1874
1921
|
targetBuilderElement: o || void 0,
|
|
1875
1922
|
metadata: {
|
|
1876
|
-
targetOffset: t ?
|
|
1923
|
+
targetOffset: t ? ne({
|
|
1877
1924
|
event: e,
|
|
1878
1925
|
target: t
|
|
1879
1926
|
}) : void 0,
|
|
1880
|
-
builderTargetOffset: n ?
|
|
1927
|
+
builderTargetOffset: n ? ne({
|
|
1881
1928
|
event: e,
|
|
1882
1929
|
target: n
|
|
1883
1930
|
}) : void 0,
|
|
@@ -1885,14 +1932,14 @@ const an = (e, t, n = !0) => {
|
|
|
1885
1932
|
}
|
|
1886
1933
|
};
|
|
1887
1934
|
};
|
|
1888
|
-
function
|
|
1889
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
1935
|
+
function un() {
|
|
1936
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Re({
|
|
1890
1937
|
max: 500,
|
|
1891
1938
|
// how long to live in ms
|
|
1892
1939
|
ttl: 1e3 * 60 * 5
|
|
1893
1940
|
}));
|
|
1894
1941
|
}
|
|
1895
|
-
function
|
|
1942
|
+
function O(e) {
|
|
1896
1943
|
return /* @__PURE__ */ l(
|
|
1897
1944
|
"script",
|
|
1898
1945
|
{
|
|
@@ -1901,38 +1948,38 @@ function P(e) {
|
|
|
1901
1948
|
}
|
|
1902
1949
|
);
|
|
1903
1950
|
}
|
|
1904
|
-
function
|
|
1951
|
+
function oe(e) {
|
|
1905
1952
|
var i, r, a, c, s, u, f, g, p;
|
|
1906
|
-
const t =
|
|
1953
|
+
const t = yt({
|
|
1907
1954
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
1908
1955
|
variationId: (i = e.content) == null ? void 0 : i.testVariationId,
|
|
1909
1956
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
1910
1957
|
contentId: (r = e.content) == null ? void 0 : r.id
|
|
1911
1958
|
}), n = [
|
|
1912
|
-
...
|
|
1959
|
+
...X(),
|
|
1913
1960
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
1914
1961
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
1915
1962
|
// existing usage.
|
|
1916
1963
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
1917
1964
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
1918
|
-
...
|
|
1965
|
+
...Q,
|
|
1919
1966
|
...e.customComponents || []
|
|
1920
1967
|
].reduce(
|
|
1921
1968
|
(m, { component: h, ...d }) => ({
|
|
1922
1969
|
...m,
|
|
1923
1970
|
[d.name]: {
|
|
1924
1971
|
component: h,
|
|
1925
|
-
|
|
1972
|
+
...F(d)
|
|
1926
1973
|
}
|
|
1927
1974
|
}),
|
|
1928
1975
|
{}
|
|
1929
1976
|
), o = {
|
|
1930
|
-
content:
|
|
1977
|
+
content: Mt({
|
|
1931
1978
|
content: e.content,
|
|
1932
1979
|
data: e.data
|
|
1933
1980
|
}),
|
|
1934
1981
|
localState: void 0,
|
|
1935
|
-
rootState:
|
|
1982
|
+
rootState: Lt({
|
|
1936
1983
|
content: e.content,
|
|
1937
1984
|
data: e.data,
|
|
1938
1985
|
locale: e.locale
|
|
@@ -1942,25 +1989,25 @@ function ee(e) {
|
|
|
1942
1989
|
apiKey: e.apiKey,
|
|
1943
1990
|
apiVersion: e.apiVersion,
|
|
1944
1991
|
componentInfos: [
|
|
1945
|
-
...
|
|
1992
|
+
...X(),
|
|
1946
1993
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
1947
1994
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
1948
1995
|
// existing usage.
|
|
1949
1996
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
1950
1997
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
1951
|
-
...
|
|
1998
|
+
...Q,
|
|
1952
1999
|
...e.customComponents || []
|
|
1953
2000
|
].reduce(
|
|
1954
2001
|
(m, { component: h, ...d }) => ({
|
|
1955
2002
|
...m,
|
|
1956
|
-
[d.name]:
|
|
2003
|
+
[d.name]: F(d)
|
|
1957
2004
|
}),
|
|
1958
2005
|
{}
|
|
1959
2006
|
),
|
|
1960
2007
|
inheritedStyles: {}
|
|
1961
2008
|
};
|
|
1962
2009
|
return /* @__PURE__ */ w(
|
|
1963
|
-
|
|
2010
|
+
Me,
|
|
1964
2011
|
{
|
|
1965
2012
|
content: e.content,
|
|
1966
2013
|
model: e.model,
|
|
@@ -1974,9 +2021,9 @@ function ee(e) {
|
|
|
1974
2021
|
showContent: e.showContent,
|
|
1975
2022
|
builderContextSignal: o,
|
|
1976
2023
|
children: [
|
|
1977
|
-
e.isSsrAbTest ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(
|
|
2024
|
+
e.isSsrAbTest ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(O, { scriptStr: t }) }) : null,
|
|
1978
2025
|
/* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(
|
|
1979
|
-
|
|
2026
|
+
Nt,
|
|
1980
2027
|
{
|
|
1981
2028
|
contentId: (a = o.content) == null ? void 0 : a.id,
|
|
1982
2029
|
cssCode: (s = (c = o.content) == null ? void 0 : c.data) == null ? void 0 : s.cssCode,
|
|
@@ -1984,7 +2031,7 @@ function ee(e) {
|
|
|
1984
2031
|
}
|
|
1985
2032
|
) }),
|
|
1986
2033
|
/* @__PURE__ */ l(
|
|
1987
|
-
|
|
2034
|
+
_,
|
|
1988
2035
|
{
|
|
1989
2036
|
blocks: (p = (g = o.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
|
|
1990
2037
|
context: o,
|
|
@@ -1995,24 +2042,24 @@ function ee(e) {
|
|
|
1995
2042
|
}
|
|
1996
2043
|
);
|
|
1997
2044
|
}
|
|
1998
|
-
const
|
|
2045
|
+
const W = (e) => C(e) ? e : !0, dn = "builder.tests", j = (e) => `${dn}.${e}`, mn = ({
|
|
1999
2046
|
contentId: e
|
|
2000
|
-
}) =>
|
|
2001
|
-
name:
|
|
2047
|
+
}) => he({
|
|
2048
|
+
name: j(e),
|
|
2002
2049
|
canTrack: !0
|
|
2003
|
-
}),
|
|
2050
|
+
}), fn = ({
|
|
2004
2051
|
contentId: e
|
|
2005
|
-
}) =>
|
|
2006
|
-
name:
|
|
2052
|
+
}) => fe({
|
|
2053
|
+
name: j(e),
|
|
2007
2054
|
canTrack: !0
|
|
2008
|
-
}),
|
|
2055
|
+
}), hn = ({
|
|
2009
2056
|
contentId: e,
|
|
2010
2057
|
value: t
|
|
2011
|
-
}) =>
|
|
2012
|
-
name:
|
|
2058
|
+
}) => ge({
|
|
2059
|
+
name: j(e),
|
|
2013
2060
|
value: t,
|
|
2014
2061
|
canTrack: !0
|
|
2015
|
-
}),
|
|
2062
|
+
}), Se = (e) => C(e.id) && C(e.variations) && Object.keys(e.variations).length > 0, gn = ({
|
|
2016
2063
|
id: e,
|
|
2017
2064
|
variations: t
|
|
2018
2065
|
}) => {
|
|
@@ -2025,15 +2072,15 @@ const B = (e) => I(e) ? e : !0, ln = "builder.tests", _ = (e) => `${ln}.${e}`, u
|
|
|
2025
2072
|
return r;
|
|
2026
2073
|
}
|
|
2027
2074
|
return e;
|
|
2028
|
-
},
|
|
2029
|
-
const t =
|
|
2030
|
-
return
|
|
2075
|
+
}, ve = (e) => {
|
|
2076
|
+
const t = gn(e);
|
|
2077
|
+
return hn({
|
|
2031
2078
|
contentId: e.id,
|
|
2032
2079
|
value: t
|
|
2033
2080
|
}).catch((n) => {
|
|
2034
2081
|
k.error("could not store A/B test variation: ", n);
|
|
2035
2082
|
}), t;
|
|
2036
|
-
},
|
|
2083
|
+
}, ke = ({
|
|
2037
2084
|
item: e,
|
|
2038
2085
|
testGroupId: t
|
|
2039
2086
|
}) => {
|
|
@@ -2047,7 +2094,7 @@ const B = (e) => I(e) ? e : !0, ln = "builder.tests", _ = (e) => `${ln}.${e}`, u
|
|
|
2047
2094
|
testVariationId: n.id,
|
|
2048
2095
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
2049
2096
|
};
|
|
2050
|
-
},
|
|
2097
|
+
}, pn = ({
|
|
2051
2098
|
item: e,
|
|
2052
2099
|
canTrack: t
|
|
2053
2100
|
}) => {
|
|
@@ -2055,14 +2102,14 @@ const B = (e) => I(e) ? e : !0, ln = "builder.tests", _ = (e) => `${ln}.${e}`, u
|
|
|
2055
2102
|
return e;
|
|
2056
2103
|
if (!e)
|
|
2057
2104
|
return;
|
|
2058
|
-
if (!
|
|
2105
|
+
if (!Se(e))
|
|
2059
2106
|
return e;
|
|
2060
|
-
const n =
|
|
2107
|
+
const n = fn({
|
|
2061
2108
|
contentId: e.id
|
|
2062
|
-
}) ||
|
|
2109
|
+
}) || ve({
|
|
2063
2110
|
variations: e.variations,
|
|
2064
2111
|
id: e.id
|
|
2065
|
-
}), o =
|
|
2112
|
+
}), o = ke({
|
|
2066
2113
|
item: e,
|
|
2067
2114
|
testGroupId: n
|
|
2068
2115
|
});
|
|
@@ -2070,18 +2117,18 @@ const B = (e) => I(e) ? e : !0, ln = "builder.tests", _ = (e) => `${ln}.${e}`, u
|
|
|
2070
2117
|
...e,
|
|
2071
2118
|
...o
|
|
2072
2119
|
};
|
|
2073
|
-
},
|
|
2120
|
+
}, bn = async ({
|
|
2074
2121
|
item: e,
|
|
2075
2122
|
canTrack: t
|
|
2076
2123
|
}) => {
|
|
2077
|
-
if (!t || !
|
|
2124
|
+
if (!t || !Se(e))
|
|
2078
2125
|
return e;
|
|
2079
|
-
const o = await
|
|
2126
|
+
const o = await mn({
|
|
2080
2127
|
contentId: e.id
|
|
2081
|
-
}) ||
|
|
2128
|
+
}) || ve({
|
|
2082
2129
|
variations: e.variations,
|
|
2083
2130
|
id: e.id
|
|
2084
|
-
}), i =
|
|
2131
|
+
}), i = ke({
|
|
2085
2132
|
item: e,
|
|
2086
2133
|
testGroupId: o
|
|
2087
2134
|
});
|
|
@@ -2090,14 +2137,14 @@ const B = (e) => I(e) ? e : !0, ln = "builder.tests", _ = (e) => `${ln}.${e}`, u
|
|
|
2090
2137
|
...i
|
|
2091
2138
|
};
|
|
2092
2139
|
};
|
|
2093
|
-
function
|
|
2140
|
+
function we(e) {
|
|
2094
2141
|
var r, a, c;
|
|
2095
|
-
const t =
|
|
2096
|
-
canTrack:
|
|
2142
|
+
const t = mt({
|
|
2143
|
+
canTrack: W(e.canTrack),
|
|
2097
2144
|
content: e.content
|
|
2098
2145
|
}), n = function() {
|
|
2099
2146
|
var u;
|
|
2100
|
-
return
|
|
2147
|
+
return bt(
|
|
2101
2148
|
R(e.content).map((f) => ({
|
|
2102
2149
|
id: f.testVariationId,
|
|
2103
2150
|
testRatio: f.testRatio
|
|
@@ -2111,24 +2158,24 @@ function ve(e) {
|
|
|
2111
2158
|
return t ? {
|
|
2112
2159
|
...e.content,
|
|
2113
2160
|
testVariationId: (u = e.content) == null ? void 0 : u.id
|
|
2114
|
-
} :
|
|
2161
|
+
} : pn({
|
|
2115
2162
|
item: e.content,
|
|
2116
|
-
canTrack:
|
|
2163
|
+
canTrack: W(e.canTrack)
|
|
2117
2164
|
});
|
|
2118
2165
|
};
|
|
2119
2166
|
return /* @__PURE__ */ w(x, { children: [
|
|
2120
|
-
!e.__isNestedRender &&
|
|
2167
|
+
!e.__isNestedRender && I !== "reactNative" ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(O, { scriptStr: pt() }) }) : null,
|
|
2121
2168
|
t ? /* @__PURE__ */ w(x, { children: [
|
|
2122
2169
|
/* @__PURE__ */ l(
|
|
2123
|
-
|
|
2170
|
+
V,
|
|
2124
2171
|
{
|
|
2125
2172
|
id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
|
|
2126
2173
|
styles: o()
|
|
2127
2174
|
}
|
|
2128
2175
|
),
|
|
2129
|
-
/* @__PURE__ */ l(
|
|
2176
|
+
/* @__PURE__ */ l(O, { scriptStr: n() }),
|
|
2130
2177
|
(a = R(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */ l(
|
|
2131
|
-
|
|
2178
|
+
oe,
|
|
2132
2179
|
{
|
|
2133
2180
|
content: s,
|
|
2134
2181
|
showContent: !1,
|
|
@@ -2149,7 +2196,7 @@ function ve(e) {
|
|
|
2149
2196
|
))
|
|
2150
2197
|
] }) : null,
|
|
2151
2198
|
/* @__PURE__ */ l(
|
|
2152
|
-
|
|
2199
|
+
oe,
|
|
2153
2200
|
{
|
|
2154
2201
|
content: i(),
|
|
2155
2202
|
classNameProp: `variant-${(c = e.content) == null ? void 0 : c.id}`,
|
|
@@ -2169,13 +2216,13 @@ function ve(e) {
|
|
|
2169
2216
|
)
|
|
2170
2217
|
] });
|
|
2171
2218
|
}
|
|
2172
|
-
const
|
|
2219
|
+
const yn = async ({
|
|
2173
2220
|
builderContextValue: e,
|
|
2174
2221
|
symbol: t
|
|
2175
2222
|
}) => {
|
|
2176
2223
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
2177
2224
|
(e != null && e.apiKey))
|
|
2178
|
-
return
|
|
2225
|
+
return H({
|
|
2179
2226
|
model: t.model,
|
|
2180
2227
|
apiKey: e.apiKey,
|
|
2181
2228
|
apiVersion: e.apiVersion,
|
|
@@ -2188,7 +2235,7 @@ const pn = async ({
|
|
|
2188
2235
|
k.error("Could not fetch symbol content: ", n);
|
|
2189
2236
|
});
|
|
2190
2237
|
};
|
|
2191
|
-
async function
|
|
2238
|
+
async function xn(e) {
|
|
2192
2239
|
var o, i, r, a;
|
|
2193
2240
|
const t = function() {
|
|
2194
2241
|
var s, u;
|
|
@@ -2198,12 +2245,12 @@ async function bn(e) {
|
|
|
2198
2245
|
(s = e.symbol) != null && s.inline ? "builder-inline-symbol" : void 0,
|
|
2199
2246
|
(u = e.symbol) != null && u.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
2200
2247
|
].filter(Boolean).join(" ");
|
|
2201
|
-
}, n = ((o = e.symbol) == null ? void 0 : o.content) || await
|
|
2248
|
+
}, n = ((o = e.symbol) == null ? void 0 : o.content) || await yn({
|
|
2202
2249
|
symbol: e.symbol,
|
|
2203
2250
|
builderContextValue: e.builderContext
|
|
2204
2251
|
});
|
|
2205
2252
|
return /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
|
|
2206
|
-
|
|
2253
|
+
we,
|
|
2207
2254
|
{
|
|
2208
2255
|
__isNestedRender: !0,
|
|
2209
2256
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -2220,63 +2267,63 @@ async function bn(e) {
|
|
|
2220
2267
|
}
|
|
2221
2268
|
) });
|
|
2222
2269
|
}
|
|
2223
|
-
const Kn =
|
|
2270
|
+
const Kn = _, Hn = we;
|
|
2224
2271
|
function Dn() {
|
|
2225
|
-
return !
|
|
2272
|
+
return !v() || L() ? !1 : location.search.indexOf("builder.preview=") !== -1;
|
|
2226
2273
|
}
|
|
2227
|
-
const
|
|
2274
|
+
const ie = {};
|
|
2228
2275
|
function zn(e) {
|
|
2229
|
-
if (
|
|
2230
|
-
Object.assign(
|
|
2276
|
+
if (v()) {
|
|
2277
|
+
Object.assign(ie, e);
|
|
2231
2278
|
const t = {
|
|
2232
2279
|
type: "builder.settingsChange",
|
|
2233
|
-
data:
|
|
2280
|
+
data: ie
|
|
2234
2281
|
};
|
|
2235
2282
|
parent.postMessage(t, "*");
|
|
2236
2283
|
}
|
|
2237
2284
|
}
|
|
2238
|
-
const
|
|
2285
|
+
const Sn = (e) => {
|
|
2239
2286
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
2240
2287
|
return n || k.warn("No previewed ID found in search params."), n;
|
|
2241
2288
|
};
|
|
2242
|
-
function
|
|
2243
|
-
|
|
2244
|
-
const t =
|
|
2289
|
+
function vn(e) {
|
|
2290
|
+
un();
|
|
2291
|
+
const t = Sn(e);
|
|
2245
2292
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
2246
2293
|
}
|
|
2247
|
-
function
|
|
2294
|
+
function N(e, t = null, n = ".") {
|
|
2248
2295
|
return Object.keys(e).reduce((o, i) => {
|
|
2249
2296
|
const r = e[i], a = [t, i].filter(Boolean).join(n);
|
|
2250
2297
|
return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
|
|
2251
2298
|
...o,
|
|
2252
|
-
...
|
|
2299
|
+
...N(r, a, n)
|
|
2253
2300
|
} : {
|
|
2254
2301
|
...o,
|
|
2255
2302
|
[a]: r
|
|
2256
2303
|
};
|
|
2257
2304
|
}, {});
|
|
2258
2305
|
}
|
|
2259
|
-
const
|
|
2306
|
+
const re = "builder.", kn = "options.", wn = (e) => {
|
|
2260
2307
|
const t = {};
|
|
2261
2308
|
return e.forEach((n, o) => {
|
|
2262
2309
|
t[o] = n;
|
|
2263
2310
|
}), t;
|
|
2264
|
-
},
|
|
2311
|
+
}, Ce = (e) => {
|
|
2265
2312
|
if (!e)
|
|
2266
2313
|
return {};
|
|
2267
|
-
const t =
|
|
2314
|
+
const t = Ie(e), n = {};
|
|
2268
2315
|
return Object.keys(t).forEach((o) => {
|
|
2269
|
-
if (o.startsWith(
|
|
2270
|
-
const i = o.replace(
|
|
2316
|
+
if (o.startsWith(re)) {
|
|
2317
|
+
const i = o.replace(re, "").replace(kn, "");
|
|
2271
2318
|
n[i] = t[o];
|
|
2272
2319
|
}
|
|
2273
2320
|
}), n;
|
|
2274
|
-
},
|
|
2275
|
-
if (!
|
|
2321
|
+
}, Cn = () => {
|
|
2322
|
+
if (!v())
|
|
2276
2323
|
return {};
|
|
2277
2324
|
const e = new URLSearchParams(window.location.search);
|
|
2278
|
-
return
|
|
2279
|
-
},
|
|
2325
|
+
return Ce(e);
|
|
2326
|
+
}, Ie = (e) => e instanceof URLSearchParams ? wn(e) : e, In = "v3", K = (e) => {
|
|
2280
2327
|
const {
|
|
2281
2328
|
limit: t = 30,
|
|
2282
2329
|
userAttributes: n,
|
|
@@ -2287,53 +2334,53 @@ const ne = "builder.", vn = "options.", Sn = (e) => {
|
|
|
2287
2334
|
includeRefs: c = !0,
|
|
2288
2335
|
enrich: s,
|
|
2289
2336
|
locale: u,
|
|
2290
|
-
apiVersion: f =
|
|
2337
|
+
apiVersion: f = In
|
|
2291
2338
|
} = e;
|
|
2292
2339
|
if (!a)
|
|
2293
2340
|
throw new Error("Missing API key");
|
|
2294
2341
|
if (!["v2", "v3"].includes(f))
|
|
2295
2342
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${f}'`);
|
|
2296
2343
|
const g = new URL(`https://cdn.builder.io/api/${f}/content/${r}?apiKey=${a}&limit=${t}&noTraverse=${i}&includeRefs=${c}${u ? `&locale=${u}` : ""}${s ? `&enrich=${s}` : ""}`), p = {
|
|
2297
|
-
...
|
|
2298
|
-
...
|
|
2299
|
-
}, m =
|
|
2344
|
+
...Cn(),
|
|
2345
|
+
...Ie(e.options || {})
|
|
2346
|
+
}, m = N(p);
|
|
2300
2347
|
for (const h in m)
|
|
2301
2348
|
g.searchParams.set(h, String(m[h]));
|
|
2302
2349
|
if (n && g.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
2303
|
-
const h =
|
|
2350
|
+
const h = N({
|
|
2304
2351
|
query: o
|
|
2305
2352
|
});
|
|
2306
2353
|
for (const d in h)
|
|
2307
2354
|
g.searchParams.set(d, JSON.stringify(h[d]));
|
|
2308
2355
|
}
|
|
2309
2356
|
return g;
|
|
2310
|
-
},
|
|
2311
|
-
async function
|
|
2312
|
-
const t = await
|
|
2357
|
+
}, Tn = (e) => "results" in e;
|
|
2358
|
+
async function H(e) {
|
|
2359
|
+
const t = await Te({
|
|
2313
2360
|
...e,
|
|
2314
2361
|
limit: 1
|
|
2315
2362
|
});
|
|
2316
2363
|
return t && t.results[0] || null;
|
|
2317
2364
|
}
|
|
2318
|
-
const qn =
|
|
2319
|
-
const t =
|
|
2320
|
-
return await (await
|
|
2321
|
-
},
|
|
2322
|
-
const o =
|
|
2365
|
+
const qn = H, Rn = async (e) => {
|
|
2366
|
+
const t = K(e);
|
|
2367
|
+
return await (await jt(t.href)).json();
|
|
2368
|
+
}, En = async (e, t, n = K(e)) => {
|
|
2369
|
+
const o = W(e.canTrack);
|
|
2323
2370
|
if (n.search.includes("preview=")) {
|
|
2324
2371
|
const r = [];
|
|
2325
2372
|
for (const a of t.results) {
|
|
2326
|
-
const c =
|
|
2373
|
+
const c = vn(n.searchParams);
|
|
2327
2374
|
r.push(c || a);
|
|
2328
2375
|
}
|
|
2329
2376
|
t.results = r;
|
|
2330
2377
|
}
|
|
2331
|
-
if (!o || !(
|
|
2378
|
+
if (!o || !(v() || I === "reactNative"))
|
|
2332
2379
|
return t;
|
|
2333
2380
|
try {
|
|
2334
2381
|
const r = [];
|
|
2335
2382
|
for (const a of t.results)
|
|
2336
|
-
r.push(await
|
|
2383
|
+
r.push(await bn({
|
|
2337
2384
|
item: a,
|
|
2338
2385
|
canTrack: o
|
|
2339
2386
|
}));
|
|
@@ -2343,10 +2390,10 @@ const qn = j, In = async (e) => {
|
|
|
2343
2390
|
}
|
|
2344
2391
|
return t;
|
|
2345
2392
|
};
|
|
2346
|
-
async function
|
|
2393
|
+
async function Te(e) {
|
|
2347
2394
|
try {
|
|
2348
|
-
const t =
|
|
2349
|
-
return
|
|
2395
|
+
const t = K(e), n = await Rn(e);
|
|
2396
|
+
return Tn(n) ? En(e, n) : (k.error("Error fetching data. ", {
|
|
2350
2397
|
url: t,
|
|
2351
2398
|
content: n,
|
|
2352
2399
|
options: e
|
|
@@ -2355,7 +2402,7 @@ async function we(e) {
|
|
|
2355
2402
|
return k.error("Error fetching data. ", t), null;
|
|
2356
2403
|
}
|
|
2357
2404
|
}
|
|
2358
|
-
const Gn =
|
|
2405
|
+
const Gn = Te, Jn = async (e) => {
|
|
2359
2406
|
var o, i, r;
|
|
2360
2407
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((i = e.userAttributes) == null ? void 0 : i.urlPath), n = {
|
|
2361
2408
|
...e,
|
|
@@ -2367,53 +2414,48 @@ const Gn = we, Jn = async (e) => {
|
|
|
2367
2414
|
urlPath: t
|
|
2368
2415
|
} : {}
|
|
2369
2416
|
},
|
|
2370
|
-
options:
|
|
2417
|
+
options: Ce(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
|
|
2371
2418
|
};
|
|
2372
2419
|
return {
|
|
2373
2420
|
apiKey: n.apiKey,
|
|
2374
2421
|
model: n.model,
|
|
2375
|
-
content: await
|
|
2422
|
+
content: await H(n)
|
|
2376
2423
|
};
|
|
2377
2424
|
};
|
|
2378
2425
|
export {
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
Tn as F,
|
|
2385
|
-
Se as G,
|
|
2386
|
-
Mn as H,
|
|
2387
|
-
L as I,
|
|
2388
|
-
Jn as J,
|
|
2426
|
+
Ce as A,
|
|
2427
|
+
_ as B,
|
|
2428
|
+
we as C,
|
|
2429
|
+
Mn as D,
|
|
2430
|
+
Jn as E,
|
|
2389
2431
|
Kn as R,
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2432
|
+
xn as S,
|
|
2433
|
+
Tt as T,
|
|
2434
|
+
rn as _,
|
|
2435
|
+
On as a,
|
|
2436
|
+
Wn as b,
|
|
2437
|
+
Nn as c,
|
|
2438
|
+
C as d,
|
|
2439
|
+
v as e,
|
|
2440
|
+
Ln as f,
|
|
2441
|
+
at as g,
|
|
2442
|
+
M as h,
|
|
2443
|
+
L as i,
|
|
2444
|
+
jn as j,
|
|
2445
|
+
A as k,
|
|
2404
2446
|
k as l,
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2447
|
+
jt as m,
|
|
2448
|
+
un as n,
|
|
2449
|
+
Hn as o,
|
|
2450
|
+
lt as p,
|
|
2451
|
+
Dn as q,
|
|
2452
|
+
Un as r,
|
|
2453
|
+
_n as s,
|
|
2454
|
+
sn as t,
|
|
2455
|
+
zn as u,
|
|
2456
|
+
Te as v,
|
|
2457
|
+
H as w,
|
|
2458
|
+
Gn as x,
|
|
2459
|
+
qn as y,
|
|
2460
|
+
En as z
|
|
2419
2461
|
};
|