@builder.io/sdk-react 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/index.cjs +17 -17
- package/lib/browser/index.mjs +366 -367
- package/lib/browser/server-entry-df9eba5d.cjs +2 -0
- package/lib/browser/{server-entry-0aebe4be.js → server-entry-f978b3a5.js} +7 -7
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/index.cjs +20 -20
- package/lib/edge/index.mjs +243 -244
- package/lib/edge/server-entry-df9eba5d.cjs +2 -0
- package/lib/edge/{server-entry-0aebe4be.js → server-entry-f978b3a5.js} +7 -7
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/index.cjs +14 -14
- package/lib/node/index.mjs +204 -205
- package/lib/node/{server-entry-e4cd1e05.js → server-entry-46908b1b.js} +7 -7
- package/lib/node/server-entry-df9eba5d.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/get-content/index.d.ts +2 -2
- package/types/types/targets.d.ts +1 -1
- package/lib/browser/server-entry-a5d2c777.cjs +0 -2
- package/lib/edge/server-entry-a5d2c777.cjs +0 -2
- package/lib/node/server-entry-a5d2c777.cjs +0 -2
package/lib/edge/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as Z, Fragment as P, jsx as p } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as cr, useState as
|
|
4
|
-
import { i as
|
|
5
|
-
import { _ as Fo, h as Uo, f as _o, g as Do, e as Wo, d as Vo, s as Lo, t as $o } from "./server-entry-
|
|
3
|
+
import { createContext as cr, useState as $, useContext as Hn, createElement as ur, useRef as qt, useEffect as ee } from "react";
|
|
4
|
+
import { i as Ie, j as Te, k as $r, l as Fe, m as Zt, n as Kt, T as nt, r as Hr, o as ht, p as Kn, a as Kr, c as Gr, b as dr, q as zr, u as Gn, v as zn, w as Xr } from "./server-entry-f978b3a5.js";
|
|
5
|
+
import { _ as Fo, h as Uo, f as _o, g as Do, e as Wo, d as Vo, s as Lo, t as $o } from "./server-entry-f978b3a5.js";
|
|
6
6
|
function Yr(e) {
|
|
7
7
|
return /* @__PURE__ */ Z(P, { children: [
|
|
8
8
|
e.link ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
@@ -19,11 +19,11 @@ function Yr(e) {
|
|
|
19
19
|
{
|
|
20
20
|
...e.attributes,
|
|
21
21
|
style: e.attributes.style,
|
|
22
|
-
className: e.attributes.className + " button-
|
|
22
|
+
className: e.attributes.className + " button-3ecc5438",
|
|
23
23
|
children: e.text
|
|
24
24
|
}
|
|
25
25
|
) }),
|
|
26
|
-
/* @__PURE__ */ p("style", { children: `.button-
|
|
26
|
+
/* @__PURE__ */ p("style", { children: `.button-3ecc5438 {
|
|
27
27
|
all: unset;
|
|
28
28
|
}` })
|
|
29
29
|
] });
|
|
@@ -66,9 +66,9 @@ const hr = ({
|
|
|
66
66
|
context: t,
|
|
67
67
|
event: r
|
|
68
68
|
}), qr = () => ({
|
|
69
|
-
isEditing:
|
|
70
|
-
isBrowser:
|
|
71
|
-
isServer: !
|
|
69
|
+
isEditing: Ie(),
|
|
70
|
+
isBrowser: Te(),
|
|
71
|
+
isServer: !Te(),
|
|
72
72
|
getUserAttributes: () => $r()
|
|
73
73
|
}), Zr = (e, {
|
|
74
74
|
isExpression: t = !0
|
|
@@ -137,7 +137,7 @@ var F, ti = function(e) {
|
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
function a() {
|
|
140
|
-
this.line =
|
|
140
|
+
this.line = Ce, this.ab = d - fe;
|
|
141
141
|
}
|
|
142
142
|
function s(o, l) {
|
|
143
143
|
Re = d, R.C && (Tt = new a()), j = o, f(), le = l, Ve = o.m;
|
|
@@ -153,9 +153,9 @@ var F, ti = function(e) {
|
|
|
153
153
|
if (o === 32)
|
|
154
154
|
++d;
|
|
155
155
|
else if (o === 13)
|
|
156
|
-
++d, o = x.charCodeAt(d), o === 10 && ++d, R.C && (++
|
|
156
|
+
++d, o = x.charCodeAt(d), o === 10 && ++d, R.C && (++Ce, fe = d);
|
|
157
157
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
158
|
-
++d, R.C && (++
|
|
158
|
+
++d, R.C && (++Ce, fe = d);
|
|
159
159
|
else if (8 < o && 14 > o)
|
|
160
160
|
++d;
|
|
161
161
|
else if (o === 47)
|
|
@@ -164,7 +164,7 @@ var F, ti = function(e) {
|
|
|
164
164
|
var l = R.va && R.C && new a(), c = d, h = x.indexOf("*/", d += 2);
|
|
165
165
|
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2, R.C)
|
|
166
166
|
for (dt.lastIndex = c; (o = dt.exec(x)) && o.index < d; )
|
|
167
|
-
++
|
|
167
|
+
++Ce, fe = o.index + o[0].length;
|
|
168
168
|
R.va && R.va(!0, x.slice(c + 2, h), c, d, l, R.C && new a());
|
|
169
169
|
} else if (o === 47)
|
|
170
170
|
u();
|
|
@@ -190,7 +190,7 @@ var F, ti = function(e) {
|
|
|
190
190
|
case 59:
|
|
191
191
|
return ++d, s(pe);
|
|
192
192
|
case 44:
|
|
193
|
-
return ++d, s(
|
|
193
|
+
return ++d, s(Se);
|
|
194
194
|
case 91:
|
|
195
195
|
return ++d, s(Ut);
|
|
196
196
|
case 93:
|
|
@@ -205,7 +205,7 @@ var F, ti = function(e) {
|
|
|
205
205
|
return ++d, s(Fn);
|
|
206
206
|
case 48:
|
|
207
207
|
if (o = x.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
208
|
-
d += 2, o =
|
|
208
|
+
d += 2, o = H(16), o === null && n(X + 2, "Expected hexadecimal number"), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), s($e, o);
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
211
|
case 49:
|
|
@@ -271,7 +271,7 @@ var F, ti = function(e) {
|
|
|
271
271
|
case 13:
|
|
272
272
|
x.charCodeAt(d) === 10 && ++d;
|
|
273
273
|
case 10:
|
|
274
|
-
R.C && (fe = d, ++
|
|
274
|
+
R.C && (fe = d, ++Ce);
|
|
275
275
|
break;
|
|
276
276
|
default:
|
|
277
277
|
l += String.fromCharCode(c);
|
|
@@ -281,26 +281,26 @@ var F, ti = function(e) {
|
|
|
281
281
|
}
|
|
282
282
|
return;
|
|
283
283
|
case 47:
|
|
284
|
-
o = x.charCodeAt(d + 1), Ve ? (++d, U()) : o === 61 ? S(
|
|
284
|
+
o = x.charCodeAt(d + 1), Ve ? (++d, U()) : o === 61 ? S(Ee, 2) : S(Un, 1);
|
|
285
285
|
return;
|
|
286
286
|
case 37:
|
|
287
287
|
case 42:
|
|
288
|
-
x.charCodeAt(d + 1) === 61 ? S(
|
|
288
|
+
x.charCodeAt(d + 1) === 61 ? S(Ee, 2) : S(Ur, 1);
|
|
289
289
|
return;
|
|
290
290
|
case 124:
|
|
291
291
|
case 38:
|
|
292
|
-
l = x.charCodeAt(d + 1), l === o ? S(o === 124 ? Wn : Vn, 2) : l === 61 ? S(
|
|
292
|
+
l = x.charCodeAt(d + 1), l === o ? S(o === 124 ? Wn : Vn, 2) : l === 61 ? S(Ee, 2) : S(o === 124 ? Rr : Pr, 1);
|
|
293
293
|
return;
|
|
294
294
|
case 94:
|
|
295
|
-
x.charCodeAt(d + 1) === 61 ? S(
|
|
295
|
+
x.charCodeAt(d + 1) === 61 ? S(Ee, 2) : S(Or, 1);
|
|
296
296
|
return;
|
|
297
297
|
case 43:
|
|
298
298
|
case 45:
|
|
299
|
-
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 && ut.test(x.slice(
|
|
299
|
+
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 && ut.test(x.slice(xe, d)) ? (d += 3, u(), f(), v()) : S(Ar, 2) : l === 61 ? S(Ee, 2) : S(Fr, 1);
|
|
300
300
|
return;
|
|
301
301
|
case 60:
|
|
302
302
|
case 62:
|
|
303
|
-
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ? S(
|
|
303
|
+
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ? S(Ee, c + 1) : S(Br, c)) : l === 33 && o === 60 && x.charCodeAt(d + 2) === 45 && x.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), v()) : (l === 61 && (c = x.charCodeAt(d + 2) === 61 ? 3 : 2), S(Mr, c));
|
|
304
304
|
return;
|
|
305
305
|
case 61:
|
|
306
306
|
case 33:
|
|
@@ -345,7 +345,7 @@ var F, ti = function(e) {
|
|
|
345
345
|
}
|
|
346
346
|
++d;
|
|
347
347
|
}
|
|
348
|
-
o = x.slice(c, d), ++d, (l =
|
|
348
|
+
o = x.slice(c, d), ++d, (l = _()) && !/^[gmi]*$/.test(l) && n(c, "Invalid regexp flag");
|
|
349
349
|
try {
|
|
350
350
|
var A = new RegExp(o, l);
|
|
351
351
|
} catch (Y) {
|
|
@@ -353,7 +353,7 @@ var F, ti = function(e) {
|
|
|
353
353
|
}
|
|
354
354
|
s(gn, A);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function H(o, l) {
|
|
357
357
|
for (var c = d, h = 0, A = l === void 0 ? 1 / 0 : l, Y = 0; Y < A; ++Y) {
|
|
358
358
|
var ne = x.charCodeAt(d);
|
|
359
359
|
if (ne = 97 <= ne ? ne - 97 + 10 : 65 <= ne ? ne - 65 + 10 : 48 <= ne && 57 >= ne ? ne - 48 : 1 / 0, ne >= o)
|
|
@@ -364,14 +364,14 @@ var F, ti = function(e) {
|
|
|
364
364
|
}
|
|
365
365
|
function E(o) {
|
|
366
366
|
var l = d, c = !1, h = x.charCodeAt(d) === 48;
|
|
367
|
-
o ||
|
|
367
|
+
o || H(10) !== null || n(l, "Invalid number"), x.charCodeAt(d) === 46 && (++d, H(10), c = !0), o = x.charCodeAt(d), (o === 69 || o === 101) && (o = x.charCodeAt(++d), o !== 43 && o !== 45 || ++d, H(10) === null && n(l, "Invalid number"), c = !0), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), o = x.slice(l, d);
|
|
368
368
|
var A;
|
|
369
369
|
c ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || oe ? n(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s($e, A);
|
|
370
370
|
}
|
|
371
371
|
function N(o) {
|
|
372
|
-
return o =
|
|
372
|
+
return o = H(16, o), o === null && n(X, "Bad character escape sequence"), o;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function _() {
|
|
375
375
|
Ne = !1;
|
|
376
376
|
for (var o, l = !0, c = d; ; ) {
|
|
377
377
|
var h = x.charCodeAt(d);
|
|
@@ -388,17 +388,17 @@ var F, ti = function(e) {
|
|
|
388
388
|
return Ne ? o : x.slice(c, d);
|
|
389
389
|
}
|
|
390
390
|
function G() {
|
|
391
|
-
var o =
|
|
391
|
+
var o = _(), l = Oe;
|
|
392
392
|
!Ne && Dr(o) && (l = jr[o]), s(l, o);
|
|
393
393
|
}
|
|
394
394
|
function b() {
|
|
395
|
-
jt = X,
|
|
395
|
+
jt = X, xe = Re, At = Tt, v();
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function D(o) {
|
|
398
398
|
if (oe = o, d = X, R.C)
|
|
399
399
|
for (; d < fe; )
|
|
400
400
|
fe = x.lastIndexOf(`
|
|
401
|
-
`, fe - 2) + 1, --
|
|
401
|
+
`, fe - 2) + 1, --Ce;
|
|
402
402
|
f(), v();
|
|
403
403
|
}
|
|
404
404
|
function ae() {
|
|
@@ -407,7 +407,7 @@ var F, ti = function(e) {
|
|
|
407
407
|
function se() {
|
|
408
408
|
this.start = It, this.end = null, Et && (this.source = Et);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function K() {
|
|
411
411
|
var o = new ae();
|
|
412
412
|
return R.C && (o.X = new se()), R.vb && (o.sourceFile = R.vb), R.Xa && (o.j = [X, 0]), o;
|
|
413
413
|
}
|
|
@@ -416,19 +416,19 @@ var F, ti = function(e) {
|
|
|
416
416
|
return l.start = o.start, R.C && (l.X = new se(), l.X.start = o.X.start), R.Xa && (l.j = [o.j[0], 0]), l;
|
|
417
417
|
}
|
|
418
418
|
function T(o, l) {
|
|
419
|
-
return o.type = l, o.end =
|
|
419
|
+
return o.type = l, o.end = xe, R.C && (o.X.end = At), R.Xa && (o.j[1] = xe), o;
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function je(o) {
|
|
422
422
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function V(o) {
|
|
425
425
|
return j === o ? (b(), !0) : !1;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
return !R.fc && (j === Rt || j === Pe || ut.test(x.slice(
|
|
427
|
+
function ke() {
|
|
428
|
+
return !R.fc && (j === Rt || j === Pe || ut.test(x.slice(xe, X)));
|
|
429
429
|
}
|
|
430
430
|
function ce() {
|
|
431
|
-
|
|
431
|
+
V(pe) || ke() || I();
|
|
432
432
|
}
|
|
433
433
|
function y(o) {
|
|
434
434
|
j === o ? b() : I();
|
|
@@ -440,14 +440,14 @@ var F, ti = function(e) {
|
|
|
440
440
|
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"), oe && o.type === "Identifier" && ct(o.name) && n(o.start, "Assigning to " + o.name + " in strict mode");
|
|
441
441
|
}
|
|
442
442
|
function O() {
|
|
443
|
-
(j === Un || j ===
|
|
444
|
-
var o = j, l =
|
|
443
|
+
(j === Un || j === Ee && le === "/=") && v(!0);
|
|
444
|
+
var o = j, l = K();
|
|
445
445
|
switch (o) {
|
|
446
446
|
case Ot:
|
|
447
447
|
case yn:
|
|
448
448
|
b();
|
|
449
449
|
var c = o === Ot;
|
|
450
|
-
|
|
450
|
+
V(pe) || ke() ? l.label = null : j !== Oe ? I() : (l.label = de(), ce());
|
|
451
451
|
for (var h = 0; h < z.length; ++h) {
|
|
452
452
|
var A = z[h];
|
|
453
453
|
if ((l.label === null || A.name === l.label.name) && (A.kind !== null && (c || A.kind === "loop") || l.label && c))
|
|
@@ -457,35 +457,35 @@ var F, ti = function(e) {
|
|
|
457
457
|
case bn:
|
|
458
458
|
return b(), ce(), T(l, "DebuggerStatement");
|
|
459
459
|
case Sn:
|
|
460
|
-
return b(), z.push(Dt), l.body = O(), z.pop(), y(Ft), l.test =
|
|
460
|
+
return b(), z.push(Dt), l.body = O(), z.pop(), y(Ft), l.test = W(), ce(), T(l, "DoWhileStatement");
|
|
461
461
|
case Cn:
|
|
462
|
-
return b(), z.push(Dt), y(he), j === pe ?
|
|
462
|
+
return b(), z.push(Dt), y(he), j === pe ? be(l, null) : j === Bt ? (o = K(), b(), pn(o, !0), T(o, "VariableDeclaration"), o.fa.length === 1 && V(lt) ? ot(l, o) : be(l, o)) : (o = Q(!1, !0), V(lt) ? (B(o), ot(l, o)) : be(l, o));
|
|
463
463
|
case Nt:
|
|
464
464
|
return b(), kt(l, !0);
|
|
465
465
|
case En:
|
|
466
|
-
return b(), l.test =
|
|
466
|
+
return b(), l.test = W(), l.da = O(), l.alternate = V(wn) ? O() : null, T(l, "IfStatement");
|
|
467
467
|
case In:
|
|
468
|
-
return Le || R.Ib || n(X, "'return' outside of function"), b(),
|
|
468
|
+
return Le || R.Ib || n(X, "'return' outside of function"), b(), V(pe) || ke() ? l.K = null : (l.K = Q(), ce()), T(l, "ReturnStatement");
|
|
469
469
|
case Mt:
|
|
470
|
-
for (b(), l.Qb =
|
|
471
|
-
j === Pt || j === xn ? (o = j === Pt, h && T(h, "SwitchCase"), l.tb.push(h =
|
|
470
|
+
for (b(), l.Qb = W(), l.tb = [], y(He), z.push(Lr); j !== Pe; )
|
|
471
|
+
j === Pt || j === xn ? (o = j === Pt, h && T(h, "SwitchCase"), l.tb.push(h = K()), h.da = [], b(), o ? h.test = Q() : (c && n(jt, "Multiple default clauses"), c = !0, h.test = null), y(Ke)) : (h || I(), h.da.push(O()));
|
|
472
472
|
return h && T(h, "SwitchCase"), b(), z.pop(), T(l, "SwitchStatement");
|
|
473
473
|
case Tn:
|
|
474
|
-
return b(), ut.test(x.slice(
|
|
474
|
+
return b(), ut.test(x.slice(xe, X)) && n(xe, "Illegal newline after throw"), l.K = Q(), ce(), T(l, "ThrowStatement");
|
|
475
475
|
case jn:
|
|
476
|
-
return b(), l.block =
|
|
476
|
+
return b(), l.block = L(), l.Ea = null, j === vn && (o = K(), b(), y(he), o.Ua = de(), oe && ct(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), y(ue), o.body = L(), l.Ea = T(o, "CatchClause")), l.fb = V(kn) ? L() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), T(l, "TryStatement");
|
|
477
477
|
case Bt:
|
|
478
478
|
return b(), pn(l), ce(), T(l, "VariableDeclaration");
|
|
479
479
|
case Ft:
|
|
480
|
-
return b(), l.test =
|
|
480
|
+
return b(), l.test = W(), z.push(Dt), l.body = O(), z.pop(), T(l, "WhileStatement");
|
|
481
481
|
case An:
|
|
482
|
-
return oe && n(X, "'with' in strict mode"), b(), l.object =
|
|
482
|
+
return oe && n(X, "'with' in strict mode"), b(), l.object = W(), l.body = O(), T(l, "WithStatement");
|
|
483
483
|
case He:
|
|
484
|
-
return
|
|
484
|
+
return L();
|
|
485
485
|
case pe:
|
|
486
486
|
return b(), T(l, "EmptyStatement");
|
|
487
487
|
default:
|
|
488
|
-
if (c = le, A = Q(), o === Oe && A.type === "Identifier" &&
|
|
488
|
+
if (c = le, A = Q(), o === Oe && A.type === "Identifier" && V(Ke)) {
|
|
489
489
|
for (h = 0; h < z.length; ++h)
|
|
490
490
|
z[h].name === c && n(A.start, "Label '" + c + "' is already declared");
|
|
491
491
|
return z.push({
|
|
@@ -496,24 +496,24 @@ var F, ti = function(e) {
|
|
|
496
496
|
return l.la = A, ce(), T(l, "ExpressionStatement");
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function W() {
|
|
500
500
|
y(he);
|
|
501
501
|
var o = Q();
|
|
502
502
|
return y(ue), o;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
var l =
|
|
506
|
-
for (l.body = [], y(He); !
|
|
504
|
+
function L(o) {
|
|
505
|
+
var l = K(), c = !0, h = !1;
|
|
506
|
+
for (l.body = [], y(He); !V(Pe); ) {
|
|
507
507
|
var A = O();
|
|
508
|
-
if (l.body.push(A), c && o &&
|
|
508
|
+
if (l.body.push(A), c && o && je(A)) {
|
|
509
509
|
var Y = h;
|
|
510
|
-
|
|
510
|
+
D(h = !0);
|
|
511
511
|
}
|
|
512
512
|
c = !1;
|
|
513
513
|
}
|
|
514
|
-
return h && !Y &&
|
|
514
|
+
return h && !Y && D(!1), T(l, "BlockStatement");
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function be(o, l) {
|
|
517
517
|
return o.ua = l, y(pe), o.test = j === pe ? null : Q(), y(pe), o.update = j === ue ? null : Q(), y(ue), o.body = O(), z.pop(), T(o, "ForStatement");
|
|
518
518
|
}
|
|
519
519
|
function ot(o, l) {
|
|
@@ -521,15 +521,15 @@ var F, ti = function(e) {
|
|
|
521
521
|
}
|
|
522
522
|
function pn(o, l) {
|
|
523
523
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
524
|
-
var c =
|
|
525
|
-
if (c.id = de(), oe && ct(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua =
|
|
524
|
+
var c = K();
|
|
525
|
+
if (c.id = de(), oe && ct(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = V(_n) ? Q(!0, l) : null, o.fa.push(T(c, "VariableDeclarator")), !V(Se))
|
|
526
526
|
break;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
function Q(o, l) {
|
|
530
530
|
var c = xt(l);
|
|
531
|
-
if (!o && j ===
|
|
532
|
-
for (o = te(c), o.xb = [c];
|
|
531
|
+
if (!o && j === Se) {
|
|
532
|
+
for (o = te(c), o.xb = [c]; V(Se); )
|
|
533
533
|
o.xb.push(xt(l));
|
|
534
534
|
return T(o, "SequenceExpression");
|
|
535
535
|
}
|
|
@@ -537,7 +537,7 @@ var F, ti = function(e) {
|
|
|
537
537
|
}
|
|
538
538
|
function xt(o) {
|
|
539
539
|
var l = St(wt(), -1, o);
|
|
540
|
-
if (
|
|
540
|
+
if (V(Fn)) {
|
|
541
541
|
var c = te(l);
|
|
542
542
|
c.test = l, c.da = Q(!0), y(Ke), c.alternate = Q(!0, o), l = T(c, "ConditionalExpression");
|
|
543
543
|
}
|
|
@@ -553,35 +553,35 @@ var F, ti = function(e) {
|
|
|
553
553
|
}
|
|
554
554
|
function wt() {
|
|
555
555
|
if (j.prefix) {
|
|
556
|
-
var o =
|
|
556
|
+
var o = K(), l = j.$b;
|
|
557
557
|
return o.operator = le, Ve = o.prefix = !0, b(), o.K = wt(), l ? B(o.K) : oe && o.operator === "delete" && o.K.type === "Identifier" && n(o.start, "Deleting local variable in strict mode"), T(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
558
558
|
}
|
|
559
|
-
for (l = We(at()); j.cc && !
|
|
559
|
+
for (l = We(at()); j.cc && !ke(); )
|
|
560
560
|
o = te(l), o.operator = le, o.prefix = !1, o.K = l, B(l), b(), l = T(o, "UpdateExpression");
|
|
561
561
|
return l;
|
|
562
562
|
}
|
|
563
563
|
function We(o, l) {
|
|
564
|
-
if (
|
|
564
|
+
if (V(Bn)) {
|
|
565
565
|
var c = te(o);
|
|
566
566
|
return c.object = o, c.Wa = de(!0), c.bb = !1, We(T(c, "MemberExpression"), l);
|
|
567
567
|
}
|
|
568
|
-
return
|
|
568
|
+
return V(Ut) ? (c = te(o), c.object = o, c.Wa = Q(), c.bb = !0, y(_t), We(T(c, "MemberExpression"), l)) : !l && V(he) ? (c = te(o), c.callee = o, c.arguments = Ct(ue, !1), We(T(c, "CallExpression"), l)) : o;
|
|
569
569
|
}
|
|
570
570
|
function at() {
|
|
571
571
|
switch (j) {
|
|
572
572
|
case On:
|
|
573
|
-
var o =
|
|
573
|
+
var o = K();
|
|
574
574
|
return b(), T(o, "ThisExpression");
|
|
575
575
|
case Oe:
|
|
576
576
|
return de();
|
|
577
577
|
case $e:
|
|
578
578
|
case st:
|
|
579
579
|
case gn:
|
|
580
|
-
return o =
|
|
580
|
+
return o = K(), o.value = le, o.raw = x.slice(X, Re), b(), T(o, "Literal");
|
|
581
581
|
case Pn:
|
|
582
582
|
case Nn:
|
|
583
583
|
case Mn:
|
|
584
|
-
return o =
|
|
584
|
+
return o = K(), o.value = j.$a, o.raw = j.l, b(), T(o, "Literal");
|
|
585
585
|
case he:
|
|
586
586
|
o = It;
|
|
587
587
|
var l = X;
|
|
@@ -589,21 +589,21 @@ var F, ti = function(e) {
|
|
|
589
589
|
var c = Q();
|
|
590
590
|
return c.start = l, c.end = Re, R.C && (c.X.start = o, c.X.end = Tt), R.Xa && (c.j = [l, Re]), y(ue), c;
|
|
591
591
|
case Ut:
|
|
592
|
-
return o =
|
|
592
|
+
return o = K(), b(), o.elements = Ct(_t, !0, !0), T(o, "ArrayExpression");
|
|
593
593
|
case He:
|
|
594
|
-
for (o =
|
|
594
|
+
for (o = K(), l = !0, c = !1, o.h = [], b(); !V(Pe); ) {
|
|
595
595
|
if (l)
|
|
596
596
|
l = !1;
|
|
597
|
-
else if (y(
|
|
597
|
+
else if (y(Se), R.sb && V(Pe))
|
|
598
598
|
break;
|
|
599
599
|
var h = {
|
|
600
600
|
key: j === $e || j === st ? at() : de(!0)
|
|
601
601
|
}, A = !1;
|
|
602
|
-
if (
|
|
602
|
+
if (V(Ke)) {
|
|
603
603
|
h.value = Q(!0);
|
|
604
604
|
var Y = h.kind = "init";
|
|
605
605
|
} else
|
|
606
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? I() : (A = c = !0, Y = h.kind = h.key.name, h.key = j === $e || j === st ? at() : de(!0), j !== he && I(), h.value = kt(
|
|
606
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? I() : (A = c = !0, Y = h.kind = h.key.name, h.key = j === $e || j === st ? at() : de(!0), j !== he && I(), h.value = kt(K(), !1));
|
|
607
607
|
if (h.key.type === "Identifier" && (oe || c))
|
|
608
608
|
for (var ne = 0; ne < o.h.length; ++ne) {
|
|
609
609
|
var Me = o.h[ne];
|
|
@@ -616,20 +616,20 @@ var F, ti = function(e) {
|
|
|
616
616
|
}
|
|
617
617
|
return T(o, "ObjectExpression");
|
|
618
618
|
case Nt:
|
|
619
|
-
return o =
|
|
619
|
+
return o = K(), b(), kt(o, !1);
|
|
620
620
|
case Rn:
|
|
621
|
-
return o =
|
|
621
|
+
return o = K(), b(), o.callee = We(at(), !0), o.arguments = V(he) ? Ct(ue, !1) : Tr, T(o, "NewExpression");
|
|
622
622
|
}
|
|
623
623
|
I();
|
|
624
624
|
}
|
|
625
625
|
function kt(o, l) {
|
|
626
626
|
j === Oe ? o.id = de() : l ? I() : o.id = null, o.oa = [];
|
|
627
627
|
var c = !0;
|
|
628
|
-
for (y(he); !
|
|
629
|
-
c ? c = !1 : y(
|
|
628
|
+
for (y(he); !V(ue); )
|
|
629
|
+
c ? c = !1 : y(Se), o.oa.push(de());
|
|
630
630
|
c = Le;
|
|
631
631
|
var h = z;
|
|
632
|
-
if (Le = !0, z = [], o.body =
|
|
632
|
+
if (Le = !0, z = [], o.body = L(!0), Le = c, z = h, oe || o.body.body.length && je(o.body.body[0])) {
|
|
633
633
|
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
634
634
|
if (h = 0 > c ? o.id : o.oa[c], (Ln(h.name) || ct(h.name)) && n(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
635
635
|
for (var A = 0; A < c; ++A)
|
|
@@ -638,17 +638,17 @@ var F, ti = function(e) {
|
|
|
638
638
|
return T(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
639
639
|
}
|
|
640
640
|
function Ct(o, l, c) {
|
|
641
|
-
for (var h = [], A = !0; !
|
|
641
|
+
for (var h = [], A = !0; !V(o); ) {
|
|
642
642
|
if (A)
|
|
643
643
|
A = !1;
|
|
644
|
-
else if (y(
|
|
644
|
+
else if (y(Se), l && R.sb && V(o))
|
|
645
645
|
break;
|
|
646
|
-
h.push(c && j ===
|
|
646
|
+
h.push(c && j === Se ? null : Q(!0));
|
|
647
647
|
}
|
|
648
648
|
return h;
|
|
649
649
|
}
|
|
650
650
|
function de(o) {
|
|
651
|
-
var l =
|
|
651
|
+
var l = K();
|
|
652
652
|
return o && R.yb === "everywhere" && (o = !1), j === Oe ? (!o && (R.yb && _r(le) || oe && Ln(le)) && x.slice(X, Re).indexOf("\\") === -1 && n(X, "The keyword '" + le + "' is reserved"), l.name = le) : o && j.l ? l.name = j.l : I(), Ve = !1, b(), T(l, "Identifier");
|
|
653
653
|
}
|
|
654
654
|
e.version = "0.5.0";
|
|
@@ -657,8 +657,8 @@ var F, ti = function(e) {
|
|
|
657
657
|
x = String(o), Ae = x.length, R = l || {};
|
|
658
658
|
for (var c in mn)
|
|
659
659
|
Object.prototype.hasOwnProperty.call(R, c) || (R[c] = mn[c]);
|
|
660
|
-
for (Et = R.sourceFile,
|
|
661
|
-
c = O(), o.body.push(c), l &&
|
|
660
|
+
for (Et = R.sourceFile, Ce = 1, d = fe = 0, Ve = !0, f(), c = R.dc, jt = xe = d, R.C && (At = new a()), Le = oe = !1, z = [], v(), o = c || K(), l = !0, c || (o.body = []); j !== Rt; )
|
|
661
|
+
c = O(), o.body.push(c), l && je(c) && D(!0), l = !1;
|
|
662
662
|
return T(o, "Program");
|
|
663
663
|
};
|
|
664
664
|
var mn = {
|
|
@@ -672,7 +672,7 @@ var F, ti = function(e) {
|
|
|
672
672
|
dc: null,
|
|
673
673
|
sourceFile: null,
|
|
674
674
|
vb: null
|
|
675
|
-
}, d = 0, X = 0, Re = 0, It, Tt, j, le, Ve,
|
|
675
|
+
}, d = 0, X = 0, Re = 0, It, Tt, j, le, Ve, Ce, fe, jt = 0, xe = 0, At, Le, z, oe, Tr = [], $e = {
|
|
676
676
|
type: "num"
|
|
677
677
|
}, gn = {
|
|
678
678
|
type: "regexp"
|
|
@@ -806,7 +806,7 @@ var F, ti = function(e) {
|
|
|
806
806
|
m: !0
|
|
807
807
|
}, ue = {
|
|
808
808
|
type: ")"
|
|
809
|
-
},
|
|
809
|
+
}, Se = {
|
|
810
810
|
type: ",",
|
|
811
811
|
m: !0
|
|
812
812
|
}, pe = {
|
|
@@ -826,7 +826,7 @@ var F, ti = function(e) {
|
|
|
826
826
|
}, _n = {
|
|
827
827
|
Cb: !0,
|
|
828
828
|
m: !0
|
|
829
|
-
},
|
|
829
|
+
}, Ee = {
|
|
830
830
|
Cb: !0,
|
|
831
831
|
m: !0
|
|
832
832
|
}, Ar = {
|
|
@@ -872,7 +872,7 @@ var F, ti = function(e) {
|
|
|
872
872
|
}, Lr = {
|
|
873
873
|
kind: "switch"
|
|
874
874
|
};
|
|
875
|
-
}, Gt = Gt = typeof globalThis
|
|
875
|
+
}, Gt = Gt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
876
876
|
ti(Gt.j || (Gt.j = {}));
|
|
877
877
|
function m(e, t) {
|
|
878
878
|
typeof e == "string" && (e = Ue(e, "code"));
|
|
@@ -923,7 +923,7 @@ var Xn = {
|
|
|
923
923
|
VALUE_IN_DESCRIPTOR: !0
|
|
924
924
|
}, Be = {
|
|
925
925
|
REGEXP_TIMEOUT: !0
|
|
926
|
-
}, Jn = [], ge = null, qe = null,
|
|
926
|
+
}, Jn = [], ge = null, qe = null, we = typeof globalThis == "undefined" ? void 0 : globalThis, ni = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
|
|
927
927
|
function tn(e) {
|
|
928
928
|
var t = e >>> 0;
|
|
929
929
|
return t === Number(e) ? t : NaN;
|
|
@@ -952,7 +952,7 @@ function Ue(e, t) {
|
|
|
952
952
|
var r = {}, n;
|
|
953
953
|
for (n in Xn)
|
|
954
954
|
r[n] = Xn[n];
|
|
955
|
-
return r.sourceFile = t,
|
|
955
|
+
return r.sourceFile = t, we.j.parse(e, r);
|
|
956
956
|
}
|
|
957
957
|
F.Jb = function(e) {
|
|
958
958
|
var t = this.o[0];
|
|
@@ -1133,7 +1133,7 @@ function ai(e, t) {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
function si(e, t) {
|
|
1135
1135
|
var r = function(n) {
|
|
1136
|
-
return n = arguments.length ?
|
|
1136
|
+
return n = arguments.length ? we.String(n) : "", ye(e) ? (this.data = n, this) : n;
|
|
1137
1137
|
};
|
|
1138
1138
|
for (e.J = e.i(r, !0), e.g(t, "String", e.J, w), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), w), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), r = 0; r < t.length; r++)
|
|
1139
1139
|
J(e, e.J, t[r], String.prototype[t[r]]);
|
|
@@ -1216,12 +1216,12 @@ function si(e, t) {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
function li(e, t) {
|
|
1218
1218
|
e.mb = e.i(function(r) {
|
|
1219
|
-
return r =
|
|
1219
|
+
return r = we.Boolean(r), ye(e) ? (this.data = r, this) : r;
|
|
1220
1220
|
}, !0), e.g(t, "Boolean", e.mb, w);
|
|
1221
1221
|
}
|
|
1222
1222
|
function ci(e, t) {
|
|
1223
1223
|
var r = function(n) {
|
|
1224
|
-
return n = arguments.length ?
|
|
1224
|
+
return n = arguments.length ? we.Number(n) : 0, ye(e) ? (this.data = n, this) : n;
|
|
1225
1225
|
};
|
|
1226
1226
|
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa, w), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], r = 0; r < t.length; r++)
|
|
1227
1227
|
e.g(e.aa, t[r], Number[t[r]], Ge);
|
|
@@ -1261,9 +1261,9 @@ function ci(e, t) {
|
|
|
1261
1261
|
function ui(e, t) {
|
|
1262
1262
|
var r = function(i, a) {
|
|
1263
1263
|
if (!ye(e))
|
|
1264
|
-
return
|
|
1264
|
+
return we.Date();
|
|
1265
1265
|
var s = [null].concat(Array.from(arguments));
|
|
1266
|
-
return this.data = new (Function.prototype.bind.apply(
|
|
1266
|
+
return this.data = new (Function.prototype.bind.apply(we.Date, s))(), this;
|
|
1267
1267
|
};
|
|
1268
1268
|
e.$ = e.i(r, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, w), e.g(e.$, "now", e.i(Date.now, !1), w), e.g(e.$, "parse", e.i(Date.parse, !1), w), e.g(e.$, "UTC", e.i(Date.UTC, !1), w), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
|
|
1269
1269
|
for (var n = 0; n < t.length; n++)
|
|
@@ -1288,7 +1288,7 @@ function di(e, t) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) || C(e, e.T, "Invalid regexp flag: " + i);
|
|
1290
1290
|
try {
|
|
1291
|
-
var s = new
|
|
1291
|
+
var s = new we.RegExp(n, i);
|
|
1292
1292
|
} catch (u) {
|
|
1293
1293
|
C(e, e.T, u.message);
|
|
1294
1294
|
}
|
|
@@ -2499,7 +2499,7 @@ m.prototype.stepWithStatement = function(e, t, r) {
|
|
|
2499
2499
|
return t.Ca ? (e.pop(), e = sn(this, t.scope, t.value), new k(r.body, e)) : (t.Ca = !0, new k(r.object, t.scope));
|
|
2500
2500
|
};
|
|
2501
2501
|
m.prototype.stepWhileStatement = m.prototype.stepDoWhileStatement;
|
|
2502
|
-
|
|
2502
|
+
we.Interpreter = m;
|
|
2503
2503
|
m.prototype.step = m.prototype.lb;
|
|
2504
2504
|
m.prototype.run = m.prototype.Eb;
|
|
2505
2505
|
m.prototype.appendCode = m.prototype.Jb;
|
|
@@ -2562,16 +2562,16 @@ function theFunction() {
|
|
|
2562
2562
|
}
|
|
2563
2563
|
theFunction();
|
|
2564
2564
|
`, U = (E, N) => {
|
|
2565
|
-
const
|
|
2566
|
-
a == null || a(
|
|
2567
|
-
},
|
|
2568
|
-
f.forEach(([
|
|
2565
|
+
const _ = pr(u, E, N);
|
|
2566
|
+
a == null || a(_);
|
|
2567
|
+
}, H = function(E, N) {
|
|
2568
|
+
f.forEach(([_, G]) => {
|
|
2569
2569
|
const b = JSON.stringify(G);
|
|
2570
|
-
E.setProperty(N, Qn(
|
|
2570
|
+
E.setProperty(N, Qn(_), b);
|
|
2571
2571
|
}), E.setProperty(N, "setRootState", E.createNativeFunction(U));
|
|
2572
2572
|
};
|
|
2573
2573
|
try {
|
|
2574
|
-
const E = new m(S,
|
|
2574
|
+
const E = new m(S, H);
|
|
2575
2575
|
return E.run(), E.pseudoToNative(E.value);
|
|
2576
2576
|
} catch (E) {
|
|
2577
2577
|
Fe.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
@@ -2579,7 +2579,7 @@ theFunction();
|
|
|
2579
2579
|
});
|
|
2580
2580
|
return;
|
|
2581
2581
|
}
|
|
2582
|
-
}, bi = (e) =>
|
|
2582
|
+
}, bi = (e) => Te() ? Qr(e) : yi(e);
|
|
2583
2583
|
function tt({
|
|
2584
2584
|
code: e,
|
|
2585
2585
|
context: t,
|
|
@@ -2812,7 +2812,7 @@ function fn(e) {
|
|
|
2812
2812
|
"medium",
|
|
2813
2813
|
s
|
|
2814
2814
|
)
|
|
2815
|
-
}) : "",
|
|
2815
|
+
}) : "", H = g ? $t({
|
|
2816
2816
|
className: v,
|
|
2817
2817
|
styles: g,
|
|
2818
2818
|
mediaQuery: er(
|
|
@@ -2820,7 +2820,7 @@ function fn(e) {
|
|
|
2820
2820
|
s
|
|
2821
2821
|
)
|
|
2822
2822
|
}) : "";
|
|
2823
|
-
return [S, U,
|
|
2823
|
+
return [S, U, H].join(" ");
|
|
2824
2824
|
}
|
|
2825
2825
|
return /* @__PURE__ */ p(P, { children: r() && t() ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(yt, { styles: r() }) }) : null });
|
|
2826
2826
|
}
|
|
@@ -2837,23 +2837,23 @@ const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) => tt({
|
|
|
2837
2837
|
isExpression: !1
|
|
2838
2838
|
});
|
|
2839
2839
|
function Yt(e) {
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2840
|
+
var n;
|
|
2841
|
+
const t = {}, r = (n = e.block.actions) != null ? n : {};
|
|
2842
|
+
for (const i in r) {
|
|
2843
|
+
if (!r.hasOwnProperty(i))
|
|
2843
2844
|
continue;
|
|
2844
|
-
const
|
|
2845
|
-
let
|
|
2845
|
+
const a = r[i];
|
|
2846
|
+
let s = Ti(i);
|
|
2846
2847
|
if (e.stripPrefix)
|
|
2847
2848
|
switch (nt) {
|
|
2848
|
-
case "
|
|
2849
|
-
|
|
2850
|
-
a = a.replace("v-on:", "");
|
|
2849
|
+
case "vue":
|
|
2850
|
+
s = s.replace("v-on:", "");
|
|
2851
2851
|
break;
|
|
2852
2852
|
case "svelte":
|
|
2853
|
-
|
|
2853
|
+
s = s.replace("on:", "");
|
|
2854
2854
|
break;
|
|
2855
2855
|
}
|
|
2856
|
-
t[
|
|
2856
|
+
t[s] = ji(a, e);
|
|
2857
2857
|
}
|
|
2858
2858
|
return t;
|
|
2859
2859
|
}
|
|
@@ -2886,8 +2886,7 @@ function mt({
|
|
|
2886
2886
|
function Oi(e) {
|
|
2887
2887
|
switch (nt) {
|
|
2888
2888
|
case "svelte":
|
|
2889
|
-
case "
|
|
2890
|
-
case "vue3":
|
|
2889
|
+
case "vue":
|
|
2891
2890
|
case "solid":
|
|
2892
2891
|
return wr(e).join(" ");
|
|
2893
2892
|
case "qwik":
|
|
@@ -2991,7 +2990,7 @@ const Ni = ({
|
|
|
2991
2990
|
};
|
|
2992
2991
|
function nr(e) {
|
|
2993
2992
|
var n, i;
|
|
2994
|
-
const [t, r] =
|
|
2993
|
+
const [t, r] = $(
|
|
2995
2994
|
() => e.isInteractive ? Pi : e.componentRef
|
|
2996
2995
|
);
|
|
2997
2996
|
return /* @__PURE__ */ p(P, { children: e.componentRef ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ Z(
|
|
@@ -3029,7 +3028,7 @@ function nr(e) {
|
|
|
3029
3028
|
) }) : null });
|
|
3030
3029
|
}
|
|
3031
3030
|
function Mi(e) {
|
|
3032
|
-
const [t, r] =
|
|
3031
|
+
const [t, r] = $(() => e.repeatContext);
|
|
3033
3032
|
return /* @__PURE__ */ p(Qt.Provider, { value: t, children: /* @__PURE__ */ p(
|
|
3034
3033
|
bt,
|
|
3035
3034
|
{
|
|
@@ -3040,7 +3039,7 @@ function Mi(e) {
|
|
|
3040
3039
|
) });
|
|
3041
3040
|
}
|
|
3042
3041
|
function bt(e) {
|
|
3043
|
-
var v, S, U,
|
|
3042
|
+
var v, S, U, H;
|
|
3044
3043
|
function t() {
|
|
3045
3044
|
return wi({
|
|
3046
3045
|
block: e.block,
|
|
@@ -3069,36 +3068,36 @@ function bt(e) {
|
|
|
3069
3068
|
return e.block.tagName || "div";
|
|
3070
3069
|
}
|
|
3071
3070
|
function a() {
|
|
3072
|
-
var
|
|
3073
|
-
if ((
|
|
3071
|
+
var _, G;
|
|
3072
|
+
if ((_ = e.block.repeat) != null && _.collection)
|
|
3074
3073
|
return !!((G = r == null ? void 0 : r()) != null && G.length);
|
|
3075
3074
|
const E = "hide" in n() ? n().hide : !1;
|
|
3076
3075
|
return ("show" in n() ? n().show : !0) && !E;
|
|
3077
3076
|
}
|
|
3078
3077
|
function s() {
|
|
3079
|
-
var N;
|
|
3080
|
-
return !((N = t == null ? void 0 : t()) != null && N.component) && !r() ? n().children
|
|
3078
|
+
var N, _;
|
|
3079
|
+
return !((N = t == null ? void 0 : t()) != null && N.component) && !r() ? (_ = n().children) != null ? _ : [] : [];
|
|
3081
3080
|
}
|
|
3082
3081
|
function u() {
|
|
3083
|
-
var E, N,
|
|
3082
|
+
var E, N, _, G, b, D;
|
|
3084
3083
|
return {
|
|
3085
|
-
blockChildren: n().children
|
|
3086
|
-
componentRef: (
|
|
3084
|
+
blockChildren: (E = n().children) != null ? E : [],
|
|
3085
|
+
componentRef: (N = t == null ? void 0 : t()) == null ? void 0 : N.component,
|
|
3087
3086
|
componentOptions: {
|
|
3088
3087
|
...Jr(n()),
|
|
3089
3088
|
builderContext: e.context,
|
|
3090
|
-
...((
|
|
3089
|
+
...((_ = t == null ? void 0 : t()) == null ? void 0 : _.name) === "Symbol" || ((G = t == null ? void 0 : t()) == null ? void 0 : G.name) === "Columns" ? {
|
|
3091
3090
|
builderComponents: e.registeredComponents
|
|
3092
3091
|
} : {}
|
|
3093
3092
|
},
|
|
3094
3093
|
context: f,
|
|
3095
3094
|
registeredComponents: e.registeredComponents,
|
|
3096
3095
|
builderBlock: n(),
|
|
3097
|
-
includeBlockProps: ((
|
|
3098
|
-
isInteractive: !((
|
|
3096
|
+
includeBlockProps: ((b = t == null ? void 0 : t()) == null ? void 0 : b.noWrap) === !0,
|
|
3097
|
+
isInteractive: !((D = t == null ? void 0 : t()) != null && D.isRSC)
|
|
3099
3098
|
};
|
|
3100
3099
|
}
|
|
3101
|
-
const [f, g] =
|
|
3100
|
+
const [f, g] = $(() => e.context);
|
|
3102
3101
|
return /* @__PURE__ */ p(P, { children: a() ? /* @__PURE__ */ p(P, { children: (v = t == null ? void 0 : t()) != null && v.noWrap ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
3103
3102
|
nr,
|
|
3104
3103
|
{
|
|
@@ -3160,7 +3159,7 @@ function bt(e) {
|
|
|
3160
3159
|
},
|
|
3161
3160
|
"block-" + E.id
|
|
3162
3161
|
)),
|
|
3163
|
-
(
|
|
3162
|
+
(H = s()) == null ? void 0 : H.map((E) => /* @__PURE__ */ p(
|
|
3164
3163
|
fn,
|
|
3165
3164
|
{
|
|
3166
3165
|
block: E,
|
|
@@ -3180,7 +3179,7 @@ function Bi(e) {
|
|
|
3180
3179
|
}
|
|
3181
3180
|
function r() {
|
|
3182
3181
|
var i, a;
|
|
3183
|
-
|
|
3182
|
+
Ie() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3184
3183
|
{
|
|
3185
3184
|
type: "builder.clickEmptyBlocks",
|
|
3186
3185
|
data: {
|
|
@@ -3193,7 +3192,7 @@ function Bi(e) {
|
|
|
3193
3192
|
}
|
|
3194
3193
|
function n() {
|
|
3195
3194
|
var i, a;
|
|
3196
|
-
|
|
3195
|
+
Ie() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3197
3196
|
{
|
|
3198
3197
|
type: "builder.hoverEmptyBlocks",
|
|
3199
3198
|
data: {
|
|
@@ -3262,35 +3261,35 @@ function hn(e) {
|
|
|
3262
3261
|
}
|
|
3263
3262
|
function Fi(e) {
|
|
3264
3263
|
var G;
|
|
3265
|
-
const [t, r] =
|
|
3264
|
+
const [t, r] = $(
|
|
3266
3265
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3267
|
-
), [n, i] =
|
|
3266
|
+
), [n, i] = $(() => e.columns || []), [a, s] = $(
|
|
3268
3267
|
() => e.stackColumnsAt || "tablet"
|
|
3269
3268
|
);
|
|
3270
3269
|
function u(b) {
|
|
3271
|
-
var
|
|
3272
|
-
return ((
|
|
3270
|
+
var D;
|
|
3271
|
+
return ((D = n[b]) == null ? void 0 : D.width) || 100 / n.length;
|
|
3273
3272
|
}
|
|
3274
3273
|
function f(b) {
|
|
3275
|
-
const
|
|
3276
|
-
return `calc(${u(b)}% - ${
|
|
3274
|
+
const D = t * (n.length - 1) / n.length;
|
|
3275
|
+
return `calc(${u(b)}% - ${D}px)`;
|
|
3277
3276
|
}
|
|
3278
3277
|
function g({
|
|
3279
3278
|
stackedStyle: b,
|
|
3280
|
-
desktopStyle:
|
|
3279
|
+
desktopStyle: D
|
|
3281
3280
|
}) {
|
|
3282
|
-
return a === "tablet" ? b :
|
|
3281
|
+
return a === "tablet" ? b : D;
|
|
3283
3282
|
}
|
|
3284
3283
|
function v({
|
|
3285
3284
|
stackedStyle: b,
|
|
3286
|
-
desktopStyle:
|
|
3285
|
+
desktopStyle: D
|
|
3287
3286
|
}) {
|
|
3288
|
-
return a === "never" ?
|
|
3287
|
+
return a === "never" ? D : b;
|
|
3289
3288
|
}
|
|
3290
|
-
const [S, U] =
|
|
3289
|
+
const [S, U] = $(
|
|
3291
3290
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3292
3291
|
);
|
|
3293
|
-
function
|
|
3292
|
+
function H() {
|
|
3294
3293
|
return {
|
|
3295
3294
|
"--flex-dir": S,
|
|
3296
3295
|
"--flex-dir-tablet": g({
|
|
@@ -3300,12 +3299,12 @@ function Fi(e) {
|
|
|
3300
3299
|
};
|
|
3301
3300
|
}
|
|
3302
3301
|
function E(b) {
|
|
3303
|
-
const
|
|
3302
|
+
const D = b === 0 ? 0 : t, ae = f(b), se = `${D}px`, K = "100%", te = 0;
|
|
3304
3303
|
return {
|
|
3305
3304
|
width: ae,
|
|
3306
3305
|
["marginLeft"]: se,
|
|
3307
3306
|
"--column-width-mobile": v({
|
|
3308
|
-
stackedStyle:
|
|
3307
|
+
stackedStyle: K,
|
|
3309
3308
|
desktopStyle: ae
|
|
3310
3309
|
}),
|
|
3311
3310
|
"--column-margin-left-mobile": v({
|
|
@@ -3313,7 +3312,7 @@ function Fi(e) {
|
|
|
3313
3312
|
desktopStyle: se
|
|
3314
3313
|
}),
|
|
3315
3314
|
"--column-width-tablet": g({
|
|
3316
|
-
stackedStyle:
|
|
3315
|
+
stackedStyle: K,
|
|
3317
3316
|
desktopStyle: ae
|
|
3318
3317
|
}),
|
|
3319
3318
|
"--column-margin-left-tablet": g({
|
|
@@ -3328,7 +3327,7 @@ function Fi(e) {
|
|
|
3328
3327
|
((se = (ae = e.builderContext.content) == null ? void 0 : ae.meta) == null ? void 0 : se.breakpoints) || {}
|
|
3329
3328
|
)[b].max;
|
|
3330
3329
|
}
|
|
3331
|
-
function
|
|
3330
|
+
function _() {
|
|
3332
3331
|
return `
|
|
3333
3332
|
@media (max-width: ${N("medium")}px) {
|
|
3334
3333
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -3360,20 +3359,20 @@ function Fi(e) {
|
|
|
3360
3359
|
"div",
|
|
3361
3360
|
{
|
|
3362
3361
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-53636e90`,
|
|
3363
|
-
style:
|
|
3362
|
+
style: H(),
|
|
3364
3363
|
children: [
|
|
3365
|
-
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(yt, { styles:
|
|
3366
|
-
(G = e.columns) == null ? void 0 : G.map((b,
|
|
3364
|
+
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(yt, { styles: _() }) }),
|
|
3365
|
+
(G = e.columns) == null ? void 0 : G.map((b, D) => /* @__PURE__ */ ur(
|
|
3367
3366
|
"div",
|
|
3368
3367
|
{
|
|
3369
3368
|
className: "builder-column div-53636e90-2",
|
|
3370
|
-
style: E(
|
|
3371
|
-
key:
|
|
3369
|
+
style: E(D),
|
|
3370
|
+
key: D
|
|
3372
3371
|
},
|
|
3373
3372
|
/* @__PURE__ */ p(
|
|
3374
3373
|
hn,
|
|
3375
3374
|
{
|
|
3376
|
-
path: `component.options.columns.${
|
|
3375
|
+
path: `component.options.columns.${D}.blocks`,
|
|
3377
3376
|
parent: e.builderBlock.id,
|
|
3378
3377
|
styleProp: {
|
|
3379
3378
|
flexGrow: "1"
|
|
@@ -3792,10 +3791,10 @@ const Li = {
|
|
|
3792
3791
|
}]
|
|
3793
3792
|
};
|
|
3794
3793
|
function Ki(e) {
|
|
3795
|
-
const t = qt(null), [r, n] =
|
|
3794
|
+
const t = qt(null), [r, n] = $(() => []), [i, a] = $(() => []);
|
|
3796
3795
|
return ee(() => {
|
|
3797
3796
|
var u;
|
|
3798
|
-
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window
|
|
3797
|
+
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window == "undefined")
|
|
3799
3798
|
return;
|
|
3800
3799
|
const s = t.current.getElementsByTagName("script");
|
|
3801
3800
|
for (let f = 0; f < s.length; f++) {
|
|
@@ -3856,7 +3855,7 @@ const Gi = {
|
|
|
3856
3855
|
}]
|
|
3857
3856
|
}, zi = ["text/javascript", "application/javascript", "application/ecmascript"], Xi = (e) => zi.includes(e.type);
|
|
3858
3857
|
function Yi(e) {
|
|
3859
|
-
const t = qt(null), [r, n] =
|
|
3858
|
+
const t = qt(null), [r, n] = $(() => []), [i, a] = $(() => []), [s, u] = $(() => !1);
|
|
3860
3859
|
function f() {
|
|
3861
3860
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3862
3861
|
return;
|
|
@@ -4019,7 +4018,7 @@ function Qi(e) {
|
|
|
4019
4018
|
src: e.imgSrc || e.image,
|
|
4020
4019
|
...e.attributes
|
|
4021
4020
|
},
|
|
4022
|
-
|
|
4021
|
+
Ie() && e.imgSrc || "default-key"
|
|
4023
4022
|
);
|
|
4024
4023
|
}
|
|
4025
4024
|
const eo = {
|
|
@@ -4439,7 +4438,7 @@ const ir = () => [{
|
|
|
4439
4438
|
})), lo = ({
|
|
4440
4439
|
canTrack: e,
|
|
4441
4440
|
content: t
|
|
4442
|
-
}) => !(!(ft(t).length > 0) || !e ||
|
|
4441
|
+
}) => !(!(ft(t).length > 0) || !e || Te()), co = (e) => e === "react" || e === "reactNative", Er = co(nt), uo = () => `
|
|
4443
4442
|
window.${kr} = ${ao}
|
|
4444
4443
|
window.${Cr} = ${so}
|
|
4445
4444
|
`, fo = (e, t) => `
|
|
@@ -4502,7 +4501,7 @@ const po = (e, t, r = !0) => {
|
|
|
4502
4501
|
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4503
4502
|
}
|
|
4504
4503
|
};
|
|
4505
|
-
}, vo = "0.
|
|
4504
|
+
}, vo = "0.11.0", yo = () => {
|
|
4506
4505
|
Hr("insertMenu", {
|
|
4507
4506
|
name: "_default",
|
|
4508
4507
|
default: !0,
|
|
@@ -4528,7 +4527,7 @@ const po = (e, t, r = !0) => {
|
|
|
4528
4527
|
let sr = !1;
|
|
4529
4528
|
const bo = (e = {}) => {
|
|
4530
4529
|
var t, r;
|
|
4531
|
-
sr || (sr = !0,
|
|
4530
|
+
sr || (sr = !0, Te() && ((t = window.parent) == null || t.postMessage({
|
|
4532
4531
|
type: "builder.sdkInfo",
|
|
4533
4532
|
data: {
|
|
4534
4533
|
target: nt,
|
|
@@ -4565,8 +4564,8 @@ const bo = (e = {}) => {
|
|
|
4565
4564
|
error: S.message
|
|
4566
4565
|
}
|
|
4567
4566
|
}, "*") : v && typeof v.then == "function" ? v.then((U) => {
|
|
4568
|
-
var
|
|
4569
|
-
(
|
|
4567
|
+
var H;
|
|
4568
|
+
(H = window.parent) == null || H.postMessage({
|
|
4570
4569
|
type: "builder.evaluateResult",
|
|
4571
4570
|
data: {
|
|
4572
4571
|
id: f,
|
|
@@ -4586,10 +4585,10 @@ const bo = (e = {}) => {
|
|
|
4586
4585
|
})));
|
|
4587
4586
|
};
|
|
4588
4587
|
function xo(e) {
|
|
4589
|
-
var
|
|
4590
|
-
const t = qt(null), [r, n] =
|
|
4588
|
+
var K, te, T, je, V, ke, ce;
|
|
4589
|
+
const t = qt(null), [r, n] = $(() => 0);
|
|
4591
4590
|
function i(y) {
|
|
4592
|
-
var B, O,
|
|
4591
|
+
var B, O, W, L, be;
|
|
4593
4592
|
const I = {
|
|
4594
4593
|
...e.builderContextSignal.content,
|
|
4595
4594
|
...y,
|
|
@@ -4600,7 +4599,7 @@ function xo(e) {
|
|
|
4600
4599
|
meta: {
|
|
4601
4600
|
...(O = e.builderContextSignal.content) == null ? void 0 : O.meta,
|
|
4602
4601
|
...y == null ? void 0 : y.meta,
|
|
4603
|
-
breakpoints: ((
|
|
4602
|
+
breakpoints: ((W = y == null ? void 0 : y.meta) == null ? void 0 : W.breakpoints) || ((be = (L = e.builderContextSignal.content) == null ? void 0 : L.meta) == null ? void 0 : be.breakpoints)
|
|
4604
4603
|
}
|
|
4605
4604
|
};
|
|
4606
4605
|
e.setBuilderContextSignal((ot) => ({
|
|
@@ -4608,10 +4607,10 @@ function xo(e) {
|
|
|
4608
4607
|
content: I
|
|
4609
4608
|
}));
|
|
4610
4609
|
}
|
|
4611
|
-
|
|
4612
|
-
const [a, s] =
|
|
4610
|
+
$(() => 0);
|
|
4611
|
+
const [a, s] = $(
|
|
4613
4612
|
() => !1
|
|
4614
|
-
), [u, f] =
|
|
4613
|
+
), [u, f] = $(
|
|
4615
4614
|
() => e.contentWrapper || "div"
|
|
4616
4615
|
);
|
|
4617
4616
|
function g(y) {
|
|
@@ -4620,19 +4619,19 @@ function xo(e) {
|
|
|
4620
4619
|
if (I)
|
|
4621
4620
|
switch (I.type) {
|
|
4622
4621
|
case "builder.configureSdk": {
|
|
4623
|
-
const O = I.data, { breakpoints:
|
|
4624
|
-
if (!
|
|
4622
|
+
const O = I.data, { breakpoints: W, contentId: L } = O;
|
|
4623
|
+
if (!L || L !== ((B = e.builderContextSignal.content) == null ? void 0 : B.id))
|
|
4625
4624
|
return;
|
|
4626
|
-
|
|
4625
|
+
W && i({
|
|
4627
4626
|
meta: {
|
|
4628
|
-
breakpoints:
|
|
4627
|
+
breakpoints: W
|
|
4629
4628
|
}
|
|
4630
4629
|
}), n(r + 1);
|
|
4631
4630
|
break;
|
|
4632
4631
|
}
|
|
4633
4632
|
case "builder.contentUpdate": {
|
|
4634
|
-
const O = I.data,
|
|
4635
|
-
|
|
4633
|
+
const O = I.data, W = O.key || O.alias || O.entry || O.modelName, L = O.data;
|
|
4634
|
+
W === e.model && (i(L), n(r + 1));
|
|
4636
4635
|
break;
|
|
4637
4636
|
}
|
|
4638
4637
|
}
|
|
@@ -4648,24 +4647,24 @@ function xo(e) {
|
|
|
4648
4647
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4649
4648
|
});
|
|
4650
4649
|
}
|
|
4651
|
-
const [S, U] =
|
|
4650
|
+
const [S, U] = $(() => ({})), [H, E] = $(() => !1);
|
|
4652
4651
|
function N(y) {
|
|
4653
4652
|
var I, B;
|
|
4654
4653
|
if (e.builderContextSignal.content) {
|
|
4655
|
-
const O = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId,
|
|
4654
|
+
const O = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, W = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
|
|
4656
4655
|
Kn({
|
|
4657
4656
|
type: "click",
|
|
4658
4657
|
canTrack: ht(e.canTrack),
|
|
4659
|
-
contentId:
|
|
4658
|
+
contentId: W,
|
|
4660
4659
|
apiKey: e.apiKey,
|
|
4661
|
-
variationId: O !==
|
|
4660
|
+
variationId: O !== W ? O : void 0,
|
|
4662
4661
|
...go(y),
|
|
4663
|
-
unique:
|
|
4662
|
+
unique: !H
|
|
4664
4663
|
});
|
|
4665
4664
|
}
|
|
4666
|
-
|
|
4665
|
+
H || E(!0);
|
|
4667
4666
|
}
|
|
4668
|
-
function
|
|
4667
|
+
function _(y) {
|
|
4669
4668
|
return y.replace(
|
|
4670
4669
|
/{{([^}]+)}}/g,
|
|
4671
4670
|
(I, B) => tt({
|
|
@@ -4679,31 +4678,31 @@ function xo(e) {
|
|
|
4679
4678
|
}
|
|
4680
4679
|
function G({ url: y, key: I }) {
|
|
4681
4680
|
zr(y).then((B) => B.json()).then((B) => {
|
|
4682
|
-
var
|
|
4681
|
+
var W, L;
|
|
4683
4682
|
const O = {
|
|
4684
4683
|
...e.builderContextSignal.rootState,
|
|
4685
4684
|
[I]: B
|
|
4686
4685
|
};
|
|
4687
|
-
(
|
|
4686
|
+
(L = (W = e.builderContextSignal).rootSetState) == null || L.call(W, O), S[I] = !0;
|
|
4688
4687
|
}).catch((B) => {
|
|
4689
4688
|
console.error("error fetching dynamic data", y, B);
|
|
4690
4689
|
});
|
|
4691
4690
|
}
|
|
4692
4691
|
function b() {
|
|
4693
|
-
var I, B;
|
|
4694
|
-
const y = ((B = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : B.httpRequests)
|
|
4695
|
-
Object.entries(y).forEach(([
|
|
4696
|
-
if (
|
|
4697
|
-
const
|
|
4692
|
+
var I, B, O;
|
|
4693
|
+
const y = (O = (B = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : B.httpRequests) != null ? O : {};
|
|
4694
|
+
Object.entries(y).forEach(([W, L]) => {
|
|
4695
|
+
if (L && (!S[W] || Ie())) {
|
|
4696
|
+
const be = _(L);
|
|
4698
4697
|
G({
|
|
4699
|
-
url:
|
|
4700
|
-
key:
|
|
4698
|
+
url: be,
|
|
4699
|
+
key: W
|
|
4701
4700
|
});
|
|
4702
4701
|
}
|
|
4703
4702
|
});
|
|
4704
4703
|
}
|
|
4705
|
-
function
|
|
4706
|
-
|
|
4704
|
+
function D() {
|
|
4705
|
+
Ie() && window.dispatchEvent(
|
|
4707
4706
|
new CustomEvent(
|
|
4708
4707
|
"builder:component:stateChange",
|
|
4709
4708
|
{
|
|
@@ -4736,19 +4735,19 @@ function xo(e) {
|
|
|
4736
4735
|
(O = window.parent) == null || O.postMessage(B, "*");
|
|
4737
4736
|
}), window.addEventListener(
|
|
4738
4737
|
"builder:component:stateChangeListenerActivated",
|
|
4739
|
-
|
|
4738
|
+
D
|
|
4740
4739
|
);
|
|
4741
4740
|
}
|
|
4742
4741
|
function se(y) {
|
|
4743
4742
|
const I = new URL(location.href).searchParams, B = I.get("builder.preview"), O = I.get(
|
|
4744
4743
|
`builder.preview.${B}`
|
|
4745
|
-
),
|
|
4746
|
-
B === e.model &&
|
|
4744
|
+
), W = I.get("apiKey") || I.get("builder.space");
|
|
4745
|
+
B === e.model && W === e.apiKey && (!e.content || O === e.content.id) && dr({
|
|
4747
4746
|
model: e.model,
|
|
4748
4747
|
apiKey: e.apiKey,
|
|
4749
4748
|
apiVersion: e.builderContextSignal.apiVersion
|
|
4750
|
-
}).then((
|
|
4751
|
-
|
|
4749
|
+
}).then((L) => {
|
|
4750
|
+
L && i(L);
|
|
4752
4751
|
});
|
|
4753
4752
|
}
|
|
4754
4753
|
return ee(() => {
|
|
@@ -4777,15 +4776,15 @@ function xo(e) {
|
|
|
4777
4776
|
};
|
|
4778
4777
|
}, []), ee(() => {
|
|
4779
4778
|
var y, I;
|
|
4780
|
-
if (
|
|
4781
|
-
if (
|
|
4782
|
-
const O = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId,
|
|
4779
|
+
if (Te()) {
|
|
4780
|
+
if (Ie() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && ht(e.canTrack)) {
|
|
4781
|
+
const O = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, W = (I = e.builderContextSignal.content) == null ? void 0 : I.id, L = e.apiKey;
|
|
4783
4782
|
Kn({
|
|
4784
4783
|
type: "impression",
|
|
4785
4784
|
canTrack: !0,
|
|
4786
|
-
contentId:
|
|
4787
|
-
apiKey:
|
|
4788
|
-
variationId: O !==
|
|
4785
|
+
contentId: W,
|
|
4786
|
+
apiKey: L,
|
|
4787
|
+
variationId: O !== W ? O : void 0
|
|
4789
4788
|
});
|
|
4790
4789
|
}
|
|
4791
4790
|
Kr() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
@@ -4793,23 +4792,23 @@ function xo(e) {
|
|
|
4793
4792
|
}, []), ee(() => {
|
|
4794
4793
|
e.apiKey || Fe.error(
|
|
4795
4794
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4796
|
-
), v(), b(),
|
|
4795
|
+
), v(), b(), D();
|
|
4797
4796
|
}, []), ee(() => {
|
|
4798
4797
|
e.content && i(e.content);
|
|
4799
4798
|
}, [e.content]), ee(() => {
|
|
4800
4799
|
}, [a]), ee(() => {
|
|
4801
4800
|
v();
|
|
4802
4801
|
}, [
|
|
4803
|
-
(te = (
|
|
4802
|
+
(te = (K = e.builderContextSignal.content) == null ? void 0 : K.data) == null ? void 0 : te.jsCode,
|
|
4804
4803
|
e.builderContextSignal.rootState
|
|
4805
4804
|
]), ee(() => {
|
|
4806
4805
|
b();
|
|
4807
|
-
}, [(
|
|
4808
|
-
|
|
4806
|
+
}, [(je = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : je.httpRequests]), ee(() => {
|
|
4807
|
+
D();
|
|
4809
4808
|
}, [e.builderContextSignal.rootState]), ee(() => () => {
|
|
4810
|
-
|
|
4809
|
+
Te() && (window.removeEventListener("message", g), window.removeEventListener(
|
|
4811
4810
|
"builder:component:stateChangeListenerActivated",
|
|
4812
|
-
|
|
4811
|
+
D
|
|
4813
4812
|
));
|
|
4814
4813
|
}, []), /* @__PURE__ */ p(Qt.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ ur(
|
|
4815
4814
|
u,
|
|
@@ -4817,21 +4816,21 @@ function xo(e) {
|
|
|
4817
4816
|
key: r,
|
|
4818
4817
|
ref: t,
|
|
4819
4818
|
onClick: (y) => N(y),
|
|
4820
|
-
"builder-content-id": (
|
|
4819
|
+
"builder-content-id": (V = e.builderContextSignal.content) == null ? void 0 : V.id,
|
|
4821
4820
|
"builder-model": e.model,
|
|
4822
4821
|
...e.showContent ? {} : {
|
|
4823
4822
|
hidden: !0,
|
|
4824
4823
|
"aria-hidden": !0
|
|
4825
4824
|
},
|
|
4826
4825
|
...e.contentWrapperProps,
|
|
4827
|
-
className: `variant-${((
|
|
4826
|
+
className: `variant-${((ke = e.content) == null ? void 0 : ke.testVariationId) || ((ce = e.content) == null ? void 0 : ce.id)}`
|
|
4828
4827
|
},
|
|
4829
4828
|
e.children
|
|
4830
4829
|
) }) : null });
|
|
4831
4830
|
}
|
|
4832
4831
|
const So = (e) => {
|
|
4833
|
-
var a;
|
|
4834
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), r = t.split(",")[0], n = e.fileUrl
|
|
4832
|
+
var a, s;
|
|
4833
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), r = t.split(",")[0], n = (s = e.fileUrl) != null ? s : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
4835
4834
|
let i = "";
|
|
4836
4835
|
if (n && t && r && (i += `
|
|
4837
4836
|
@font-face {
|
|
@@ -4841,16 +4840,16 @@ font-display: fallback;
|
|
|
4841
4840
|
font-weight: 400;
|
|
4842
4841
|
}
|
|
4843
4842
|
`.trim()), e.files)
|
|
4844
|
-
for (const
|
|
4845
|
-
if (!(String(Number(
|
|
4843
|
+
for (const u in e.files) {
|
|
4844
|
+
if (!(String(Number(u)) === u))
|
|
4846
4845
|
continue;
|
|
4847
|
-
const
|
|
4848
|
-
|
|
4846
|
+
const g = e.files[u];
|
|
4847
|
+
g && g !== n && (i += `
|
|
4849
4848
|
@font-face {
|
|
4850
4849
|
font-family: "${t}";
|
|
4851
|
-
src: url('${
|
|
4850
|
+
src: url('${g}') format('woff2');
|
|
4852
4851
|
font-display: fallback;
|
|
4853
|
-
font-weight: ${
|
|
4852
|
+
font-weight: ${u};
|
|
4854
4853
|
}
|
|
4855
4854
|
`.trim());
|
|
4856
4855
|
}
|
|
@@ -4865,7 +4864,7 @@ font-weight: ${s};
|
|
|
4865
4864
|
contentId: t
|
|
4866
4865
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4867
4866
|
function Co(e) {
|
|
4868
|
-
const [t, r] =
|
|
4867
|
+
const [t, r] = $(
|
|
4869
4868
|
() => `
|
|
4870
4869
|
${ko({
|
|
4871
4870
|
cssCode: e.cssCode,
|
|
@@ -4920,25 +4919,25 @@ const Eo = ({
|
|
|
4920
4919
|
meta: e == null ? void 0 : e.meta
|
|
4921
4920
|
} : void 0;
|
|
4922
4921
|
function lr(e) {
|
|
4923
|
-
var f, g, v, S, U,
|
|
4924
|
-
const [t, r] =
|
|
4922
|
+
var f, g, v, S, U, H, E;
|
|
4923
|
+
const [t, r] = $(
|
|
4925
4924
|
() => {
|
|
4926
|
-
var N,
|
|
4925
|
+
var N, _;
|
|
4927
4926
|
return ho({
|
|
4928
4927
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4929
4928
|
variationId: (N = e.content) == null ? void 0 : N.testVariationId,
|
|
4930
4929
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4931
|
-
contentId: (
|
|
4930
|
+
contentId: (_ = e.content) == null ? void 0 : _.id
|
|
4932
4931
|
});
|
|
4933
4932
|
}
|
|
4934
4933
|
);
|
|
4935
4934
|
function n(N) {
|
|
4936
|
-
u((
|
|
4937
|
-
...
|
|
4935
|
+
u((_) => ({
|
|
4936
|
+
..._,
|
|
4938
4937
|
rootState: N
|
|
4939
4938
|
}));
|
|
4940
4939
|
}
|
|
4941
|
-
const [i, a] =
|
|
4940
|
+
const [i, a] = $(
|
|
4942
4941
|
() => [
|
|
4943
4942
|
...ir(),
|
|
4944
4943
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
@@ -4949,16 +4948,16 @@ function lr(e) {
|
|
|
4949
4948
|
...Gn,
|
|
4950
4949
|
...e.customComponents || []
|
|
4951
4950
|
].reduce(
|
|
4952
|
-
(N, { component:
|
|
4951
|
+
(N, { component: _, ...G }) => ({
|
|
4953
4952
|
...N,
|
|
4954
4953
|
[G.name]: {
|
|
4955
|
-
component:
|
|
4954
|
+
component: _,
|
|
4956
4955
|
...zn(G)
|
|
4957
4956
|
}
|
|
4958
4957
|
}),
|
|
4959
4958
|
{}
|
|
4960
4959
|
)
|
|
4961
|
-
), [s, u] =
|
|
4960
|
+
), [s, u] = $(() => ({
|
|
4962
4961
|
content: Io({
|
|
4963
4962
|
content: e.content,
|
|
4964
4963
|
data: e.data
|
|
@@ -4983,7 +4982,7 @@ function lr(e) {
|
|
|
4983
4982
|
...Gn,
|
|
4984
4983
|
...e.customComponents || []
|
|
4985
4984
|
].reduce(
|
|
4986
|
-
(N, { component:
|
|
4985
|
+
(N, { component: _, ...G }) => ({
|
|
4987
4986
|
...N,
|
|
4988
4987
|
[G.name]: zn(G)
|
|
4989
4988
|
}),
|
|
@@ -5028,7 +5027,7 @@ function lr(e) {
|
|
|
5028
5027
|
/* @__PURE__ */ p(
|
|
5029
5028
|
hn,
|
|
5030
5029
|
{
|
|
5031
|
-
blocks: (E = (
|
|
5030
|
+
blocks: (E = (H = s.content) == null ? void 0 : H.data) == null ? void 0 : E.blocks,
|
|
5032
5031
|
context: s,
|
|
5033
5032
|
registeredComponents: i
|
|
5034
5033
|
}
|
|
@@ -5041,7 +5040,7 @@ function lr(e) {
|
|
|
5041
5040
|
}
|
|
5042
5041
|
function Ir(e) {
|
|
5043
5042
|
var s, u;
|
|
5044
|
-
const [t, r] =
|
|
5043
|
+
const [t, r] = $(
|
|
5045
5044
|
() => lo({
|
|
5046
5045
|
canTrack: ht(e.canTrack),
|
|
5047
5046
|
content: e.content
|
|
@@ -5160,7 +5159,7 @@ function jo(e) {
|
|
|
5160
5159
|
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5161
5160
|
].filter(Boolean).join(" ");
|
|
5162
5161
|
}
|
|
5163
|
-
const [r, n] =
|
|
5162
|
+
const [r, n] = $(() => {
|
|
5164
5163
|
var f;
|
|
5165
5164
|
return (f = e.symbol) == null ? void 0 : f.content;
|
|
5166
5165
|
});
|
|
@@ -5215,7 +5214,7 @@ export {
|
|
|
5215
5214
|
Do as getAllContent,
|
|
5216
5215
|
Wo as getBuilderSearchParams,
|
|
5217
5216
|
Vo as getContent,
|
|
5218
|
-
|
|
5217
|
+
Ie as isEditing,
|
|
5219
5218
|
Kr as isPreviewing,
|
|
5220
5219
|
Hr as register,
|
|
5221
5220
|
Lo as setEditorSettings,
|