@builder.io/sdk-react 0.9.0 → 0.10.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 +363 -362
- 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 +239 -238
- 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 +200 -199
- 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/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(
|
|
@@ -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,24 @@ 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
2849
|
case "vue2":
|
|
2849
2850
|
case "vue3":
|
|
2850
|
-
|
|
2851
|
+
s = s.replace("v-on:", "");
|
|
2851
2852
|
break;
|
|
2852
2853
|
case "svelte":
|
|
2853
|
-
|
|
2854
|
+
s = s.replace("on:", "");
|
|
2854
2855
|
break;
|
|
2855
2856
|
}
|
|
2856
|
-
t[
|
|
2857
|
+
t[s] = ji(a, e);
|
|
2857
2858
|
}
|
|
2858
2859
|
return t;
|
|
2859
2860
|
}
|
|
@@ -2991,7 +2992,7 @@ const Ni = ({
|
|
|
2991
2992
|
};
|
|
2992
2993
|
function nr(e) {
|
|
2993
2994
|
var n, i;
|
|
2994
|
-
const [t, r] =
|
|
2995
|
+
const [t, r] = $(
|
|
2995
2996
|
() => e.isInteractive ? Pi : e.componentRef
|
|
2996
2997
|
);
|
|
2997
2998
|
return /* @__PURE__ */ p(P, { children: e.componentRef ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ Z(
|
|
@@ -3029,7 +3030,7 @@ function nr(e) {
|
|
|
3029
3030
|
) }) : null });
|
|
3030
3031
|
}
|
|
3031
3032
|
function Mi(e) {
|
|
3032
|
-
const [t, r] =
|
|
3033
|
+
const [t, r] = $(() => e.repeatContext);
|
|
3033
3034
|
return /* @__PURE__ */ p(Qt.Provider, { value: t, children: /* @__PURE__ */ p(
|
|
3034
3035
|
bt,
|
|
3035
3036
|
{
|
|
@@ -3040,7 +3041,7 @@ function Mi(e) {
|
|
|
3040
3041
|
) });
|
|
3041
3042
|
}
|
|
3042
3043
|
function bt(e) {
|
|
3043
|
-
var v, S, U,
|
|
3044
|
+
var v, S, U, H;
|
|
3044
3045
|
function t() {
|
|
3045
3046
|
return wi({
|
|
3046
3047
|
block: e.block,
|
|
@@ -3069,36 +3070,36 @@ function bt(e) {
|
|
|
3069
3070
|
return e.block.tagName || "div";
|
|
3070
3071
|
}
|
|
3071
3072
|
function a() {
|
|
3072
|
-
var
|
|
3073
|
-
if ((
|
|
3073
|
+
var _, G;
|
|
3074
|
+
if ((_ = e.block.repeat) != null && _.collection)
|
|
3074
3075
|
return !!((G = r == null ? void 0 : r()) != null && G.length);
|
|
3075
3076
|
const E = "hide" in n() ? n().hide : !1;
|
|
3076
3077
|
return ("show" in n() ? n().show : !0) && !E;
|
|
3077
3078
|
}
|
|
3078
3079
|
function s() {
|
|
3079
|
-
var N;
|
|
3080
|
-
return !((N = t == null ? void 0 : t()) != null && N.component) && !r() ? n().children
|
|
3080
|
+
var N, _;
|
|
3081
|
+
return !((N = t == null ? void 0 : t()) != null && N.component) && !r() ? (_ = n().children) != null ? _ : [] : [];
|
|
3081
3082
|
}
|
|
3082
3083
|
function u() {
|
|
3083
|
-
var E, N,
|
|
3084
|
+
var E, N, _, G, b, D;
|
|
3084
3085
|
return {
|
|
3085
|
-
blockChildren: n().children
|
|
3086
|
-
componentRef: (
|
|
3086
|
+
blockChildren: (E = n().children) != null ? E : [],
|
|
3087
|
+
componentRef: (N = t == null ? void 0 : t()) == null ? void 0 : N.component,
|
|
3087
3088
|
componentOptions: {
|
|
3088
3089
|
...Jr(n()),
|
|
3089
3090
|
builderContext: e.context,
|
|
3090
|
-
...((
|
|
3091
|
+
...((_ = t == null ? void 0 : t()) == null ? void 0 : _.name) === "Symbol" || ((G = t == null ? void 0 : t()) == null ? void 0 : G.name) === "Columns" ? {
|
|
3091
3092
|
builderComponents: e.registeredComponents
|
|
3092
3093
|
} : {}
|
|
3093
3094
|
},
|
|
3094
3095
|
context: f,
|
|
3095
3096
|
registeredComponents: e.registeredComponents,
|
|
3096
3097
|
builderBlock: n(),
|
|
3097
|
-
includeBlockProps: ((
|
|
3098
|
-
isInteractive: !((
|
|
3098
|
+
includeBlockProps: ((b = t == null ? void 0 : t()) == null ? void 0 : b.noWrap) === !0,
|
|
3099
|
+
isInteractive: !((D = t == null ? void 0 : t()) != null && D.isRSC)
|
|
3099
3100
|
};
|
|
3100
3101
|
}
|
|
3101
|
-
const [f, g] =
|
|
3102
|
+
const [f, g] = $(() => e.context);
|
|
3102
3103
|
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
3104
|
nr,
|
|
3104
3105
|
{
|
|
@@ -3160,7 +3161,7 @@ function bt(e) {
|
|
|
3160
3161
|
},
|
|
3161
3162
|
"block-" + E.id
|
|
3162
3163
|
)),
|
|
3163
|
-
(
|
|
3164
|
+
(H = s()) == null ? void 0 : H.map((E) => /* @__PURE__ */ p(
|
|
3164
3165
|
fn,
|
|
3165
3166
|
{
|
|
3166
3167
|
block: E,
|
|
@@ -3180,7 +3181,7 @@ function Bi(e) {
|
|
|
3180
3181
|
}
|
|
3181
3182
|
function r() {
|
|
3182
3183
|
var i, a;
|
|
3183
|
-
|
|
3184
|
+
Ie() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3184
3185
|
{
|
|
3185
3186
|
type: "builder.clickEmptyBlocks",
|
|
3186
3187
|
data: {
|
|
@@ -3193,7 +3194,7 @@ function Bi(e) {
|
|
|
3193
3194
|
}
|
|
3194
3195
|
function n() {
|
|
3195
3196
|
var i, a;
|
|
3196
|
-
|
|
3197
|
+
Ie() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3197
3198
|
{
|
|
3198
3199
|
type: "builder.hoverEmptyBlocks",
|
|
3199
3200
|
data: {
|
|
@@ -3262,35 +3263,35 @@ function hn(e) {
|
|
|
3262
3263
|
}
|
|
3263
3264
|
function Fi(e) {
|
|
3264
3265
|
var G;
|
|
3265
|
-
const [t, r] =
|
|
3266
|
+
const [t, r] = $(
|
|
3266
3267
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3267
|
-
), [n, i] =
|
|
3268
|
+
), [n, i] = $(() => e.columns || []), [a, s] = $(
|
|
3268
3269
|
() => e.stackColumnsAt || "tablet"
|
|
3269
3270
|
);
|
|
3270
3271
|
function u(b) {
|
|
3271
|
-
var
|
|
3272
|
-
return ((
|
|
3272
|
+
var D;
|
|
3273
|
+
return ((D = n[b]) == null ? void 0 : D.width) || 100 / n.length;
|
|
3273
3274
|
}
|
|
3274
3275
|
function f(b) {
|
|
3275
|
-
const
|
|
3276
|
-
return `calc(${u(b)}% - ${
|
|
3276
|
+
const D = t * (n.length - 1) / n.length;
|
|
3277
|
+
return `calc(${u(b)}% - ${D}px)`;
|
|
3277
3278
|
}
|
|
3278
3279
|
function g({
|
|
3279
3280
|
stackedStyle: b,
|
|
3280
|
-
desktopStyle:
|
|
3281
|
+
desktopStyle: D
|
|
3281
3282
|
}) {
|
|
3282
|
-
return a === "tablet" ? b :
|
|
3283
|
+
return a === "tablet" ? b : D;
|
|
3283
3284
|
}
|
|
3284
3285
|
function v({
|
|
3285
3286
|
stackedStyle: b,
|
|
3286
|
-
desktopStyle:
|
|
3287
|
+
desktopStyle: D
|
|
3287
3288
|
}) {
|
|
3288
|
-
return a === "never" ?
|
|
3289
|
+
return a === "never" ? D : b;
|
|
3289
3290
|
}
|
|
3290
|
-
const [S, U] =
|
|
3291
|
+
const [S, U] = $(
|
|
3291
3292
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3292
3293
|
);
|
|
3293
|
-
function
|
|
3294
|
+
function H() {
|
|
3294
3295
|
return {
|
|
3295
3296
|
"--flex-dir": S,
|
|
3296
3297
|
"--flex-dir-tablet": g({
|
|
@@ -3300,12 +3301,12 @@ function Fi(e) {
|
|
|
3300
3301
|
};
|
|
3301
3302
|
}
|
|
3302
3303
|
function E(b) {
|
|
3303
|
-
const
|
|
3304
|
+
const D = b === 0 ? 0 : t, ae = f(b), se = `${D}px`, K = "100%", te = 0;
|
|
3304
3305
|
return {
|
|
3305
3306
|
width: ae,
|
|
3306
3307
|
["marginLeft"]: se,
|
|
3307
3308
|
"--column-width-mobile": v({
|
|
3308
|
-
stackedStyle:
|
|
3309
|
+
stackedStyle: K,
|
|
3309
3310
|
desktopStyle: ae
|
|
3310
3311
|
}),
|
|
3311
3312
|
"--column-margin-left-mobile": v({
|
|
@@ -3313,7 +3314,7 @@ function Fi(e) {
|
|
|
3313
3314
|
desktopStyle: se
|
|
3314
3315
|
}),
|
|
3315
3316
|
"--column-width-tablet": g({
|
|
3316
|
-
stackedStyle:
|
|
3317
|
+
stackedStyle: K,
|
|
3317
3318
|
desktopStyle: ae
|
|
3318
3319
|
}),
|
|
3319
3320
|
"--column-margin-left-tablet": g({
|
|
@@ -3328,7 +3329,7 @@ function Fi(e) {
|
|
|
3328
3329
|
((se = (ae = e.builderContext.content) == null ? void 0 : ae.meta) == null ? void 0 : se.breakpoints) || {}
|
|
3329
3330
|
)[b].max;
|
|
3330
3331
|
}
|
|
3331
|
-
function
|
|
3332
|
+
function _() {
|
|
3332
3333
|
return `
|
|
3333
3334
|
@media (max-width: ${N("medium")}px) {
|
|
3334
3335
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -3360,20 +3361,20 @@ function Fi(e) {
|
|
|
3360
3361
|
"div",
|
|
3361
3362
|
{
|
|
3362
3363
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-53636e90`,
|
|
3363
|
-
style:
|
|
3364
|
+
style: H(),
|
|
3364
3365
|
children: [
|
|
3365
|
-
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(yt, { styles:
|
|
3366
|
-
(G = e.columns) == null ? void 0 : G.map((b,
|
|
3366
|
+
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(yt, { styles: _() }) }),
|
|
3367
|
+
(G = e.columns) == null ? void 0 : G.map((b, D) => /* @__PURE__ */ ur(
|
|
3367
3368
|
"div",
|
|
3368
3369
|
{
|
|
3369
3370
|
className: "builder-column div-53636e90-2",
|
|
3370
|
-
style: E(
|
|
3371
|
-
key:
|
|
3371
|
+
style: E(D),
|
|
3372
|
+
key: D
|
|
3372
3373
|
},
|
|
3373
3374
|
/* @__PURE__ */ p(
|
|
3374
3375
|
hn,
|
|
3375
3376
|
{
|
|
3376
|
-
path: `component.options.columns.${
|
|
3377
|
+
path: `component.options.columns.${D}.blocks`,
|
|
3377
3378
|
parent: e.builderBlock.id,
|
|
3378
3379
|
styleProp: {
|
|
3379
3380
|
flexGrow: "1"
|
|
@@ -3792,10 +3793,10 @@ const Li = {
|
|
|
3792
3793
|
}]
|
|
3793
3794
|
};
|
|
3794
3795
|
function Ki(e) {
|
|
3795
|
-
const t = qt(null), [r, n] =
|
|
3796
|
+
const t = qt(null), [r, n] = $(() => []), [i, a] = $(() => []);
|
|
3796
3797
|
return ee(() => {
|
|
3797
3798
|
var u;
|
|
3798
|
-
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window
|
|
3799
|
+
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window == "undefined")
|
|
3799
3800
|
return;
|
|
3800
3801
|
const s = t.current.getElementsByTagName("script");
|
|
3801
3802
|
for (let f = 0; f < s.length; f++) {
|
|
@@ -3856,7 +3857,7 @@ const Gi = {
|
|
|
3856
3857
|
}]
|
|
3857
3858
|
}, zi = ["text/javascript", "application/javascript", "application/ecmascript"], Xi = (e) => zi.includes(e.type);
|
|
3858
3859
|
function Yi(e) {
|
|
3859
|
-
const t = qt(null), [r, n] =
|
|
3860
|
+
const t = qt(null), [r, n] = $(() => []), [i, a] = $(() => []), [s, u] = $(() => !1);
|
|
3860
3861
|
function f() {
|
|
3861
3862
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3862
3863
|
return;
|
|
@@ -4019,7 +4020,7 @@ function Qi(e) {
|
|
|
4019
4020
|
src: e.imgSrc || e.image,
|
|
4020
4021
|
...e.attributes
|
|
4021
4022
|
},
|
|
4022
|
-
|
|
4023
|
+
Ie() && e.imgSrc || "default-key"
|
|
4023
4024
|
);
|
|
4024
4025
|
}
|
|
4025
4026
|
const eo = {
|
|
@@ -4439,7 +4440,7 @@ const ir = () => [{
|
|
|
4439
4440
|
})), lo = ({
|
|
4440
4441
|
canTrack: e,
|
|
4441
4442
|
content: t
|
|
4442
|
-
}) => !(!(ft(t).length > 0) || !e ||
|
|
4443
|
+
}) => !(!(ft(t).length > 0) || !e || Te()), co = (e) => e === "react" || e === "reactNative", Er = co(nt), uo = () => `
|
|
4443
4444
|
window.${kr} = ${ao}
|
|
4444
4445
|
window.${Cr} = ${so}
|
|
4445
4446
|
`, fo = (e, t) => `
|
|
@@ -4502,7 +4503,7 @@ const po = (e, t, r = !0) => {
|
|
|
4502
4503
|
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4503
4504
|
}
|
|
4504
4505
|
};
|
|
4505
|
-
}, vo = "0.
|
|
4506
|
+
}, vo = "0.10.0", yo = () => {
|
|
4506
4507
|
Hr("insertMenu", {
|
|
4507
4508
|
name: "_default",
|
|
4508
4509
|
default: !0,
|
|
@@ -4528,7 +4529,7 @@ const po = (e, t, r = !0) => {
|
|
|
4528
4529
|
let sr = !1;
|
|
4529
4530
|
const bo = (e = {}) => {
|
|
4530
4531
|
var t, r;
|
|
4531
|
-
sr || (sr = !0,
|
|
4532
|
+
sr || (sr = !0, Te() && ((t = window.parent) == null || t.postMessage({
|
|
4532
4533
|
type: "builder.sdkInfo",
|
|
4533
4534
|
data: {
|
|
4534
4535
|
target: nt,
|
|
@@ -4565,8 +4566,8 @@ const bo = (e = {}) => {
|
|
|
4565
4566
|
error: S.message
|
|
4566
4567
|
}
|
|
4567
4568
|
}, "*") : v && typeof v.then == "function" ? v.then((U) => {
|
|
4568
|
-
var
|
|
4569
|
-
(
|
|
4569
|
+
var H;
|
|
4570
|
+
(H = window.parent) == null || H.postMessage({
|
|
4570
4571
|
type: "builder.evaluateResult",
|
|
4571
4572
|
data: {
|
|
4572
4573
|
id: f,
|
|
@@ -4586,10 +4587,10 @@ const bo = (e = {}) => {
|
|
|
4586
4587
|
})));
|
|
4587
4588
|
};
|
|
4588
4589
|
function xo(e) {
|
|
4589
|
-
var
|
|
4590
|
-
const t = qt(null), [r, n] =
|
|
4590
|
+
var K, te, T, je, V, ke, ce;
|
|
4591
|
+
const t = qt(null), [r, n] = $(() => 0);
|
|
4591
4592
|
function i(y) {
|
|
4592
|
-
var B, O,
|
|
4593
|
+
var B, O, W, L, be;
|
|
4593
4594
|
const I = {
|
|
4594
4595
|
...e.builderContextSignal.content,
|
|
4595
4596
|
...y,
|
|
@@ -4600,7 +4601,7 @@ function xo(e) {
|
|
|
4600
4601
|
meta: {
|
|
4601
4602
|
...(O = e.builderContextSignal.content) == null ? void 0 : O.meta,
|
|
4602
4603
|
...y == null ? void 0 : y.meta,
|
|
4603
|
-
breakpoints: ((
|
|
4604
|
+
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
4605
|
}
|
|
4605
4606
|
};
|
|
4606
4607
|
e.setBuilderContextSignal((ot) => ({
|
|
@@ -4608,10 +4609,10 @@ function xo(e) {
|
|
|
4608
4609
|
content: I
|
|
4609
4610
|
}));
|
|
4610
4611
|
}
|
|
4611
|
-
|
|
4612
|
-
const [a, s] =
|
|
4612
|
+
$(() => 0);
|
|
4613
|
+
const [a, s] = $(
|
|
4613
4614
|
() => !1
|
|
4614
|
-
), [u, f] =
|
|
4615
|
+
), [u, f] = $(
|
|
4615
4616
|
() => e.contentWrapper || "div"
|
|
4616
4617
|
);
|
|
4617
4618
|
function g(y) {
|
|
@@ -4620,19 +4621,19 @@ function xo(e) {
|
|
|
4620
4621
|
if (I)
|
|
4621
4622
|
switch (I.type) {
|
|
4622
4623
|
case "builder.configureSdk": {
|
|
4623
|
-
const O = I.data, { breakpoints:
|
|
4624
|
-
if (!
|
|
4624
|
+
const O = I.data, { breakpoints: W, contentId: L } = O;
|
|
4625
|
+
if (!L || L !== ((B = e.builderContextSignal.content) == null ? void 0 : B.id))
|
|
4625
4626
|
return;
|
|
4626
|
-
|
|
4627
|
+
W && i({
|
|
4627
4628
|
meta: {
|
|
4628
|
-
breakpoints:
|
|
4629
|
+
breakpoints: W
|
|
4629
4630
|
}
|
|
4630
4631
|
}), n(r + 1);
|
|
4631
4632
|
break;
|
|
4632
4633
|
}
|
|
4633
4634
|
case "builder.contentUpdate": {
|
|
4634
|
-
const O = I.data,
|
|
4635
|
-
|
|
4635
|
+
const O = I.data, W = O.key || O.alias || O.entry || O.modelName, L = O.data;
|
|
4636
|
+
W === e.model && (i(L), n(r + 1));
|
|
4636
4637
|
break;
|
|
4637
4638
|
}
|
|
4638
4639
|
}
|
|
@@ -4648,24 +4649,24 @@ function xo(e) {
|
|
|
4648
4649
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4649
4650
|
});
|
|
4650
4651
|
}
|
|
4651
|
-
const [S, U] =
|
|
4652
|
+
const [S, U] = $(() => ({})), [H, E] = $(() => !1);
|
|
4652
4653
|
function N(y) {
|
|
4653
4654
|
var I, B;
|
|
4654
4655
|
if (e.builderContextSignal.content) {
|
|
4655
|
-
const O = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId,
|
|
4656
|
+
const O = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, W = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
|
|
4656
4657
|
Kn({
|
|
4657
4658
|
type: "click",
|
|
4658
4659
|
canTrack: ht(e.canTrack),
|
|
4659
|
-
contentId:
|
|
4660
|
+
contentId: W,
|
|
4660
4661
|
apiKey: e.apiKey,
|
|
4661
|
-
variationId: O !==
|
|
4662
|
+
variationId: O !== W ? O : void 0,
|
|
4662
4663
|
...go(y),
|
|
4663
|
-
unique:
|
|
4664
|
+
unique: !H
|
|
4664
4665
|
});
|
|
4665
4666
|
}
|
|
4666
|
-
|
|
4667
|
+
H || E(!0);
|
|
4667
4668
|
}
|
|
4668
|
-
function
|
|
4669
|
+
function _(y) {
|
|
4669
4670
|
return y.replace(
|
|
4670
4671
|
/{{([^}]+)}}/g,
|
|
4671
4672
|
(I, B) => tt({
|
|
@@ -4679,31 +4680,31 @@ function xo(e) {
|
|
|
4679
4680
|
}
|
|
4680
4681
|
function G({ url: y, key: I }) {
|
|
4681
4682
|
zr(y).then((B) => B.json()).then((B) => {
|
|
4682
|
-
var
|
|
4683
|
+
var W, L;
|
|
4683
4684
|
const O = {
|
|
4684
4685
|
...e.builderContextSignal.rootState,
|
|
4685
4686
|
[I]: B
|
|
4686
4687
|
};
|
|
4687
|
-
(
|
|
4688
|
+
(L = (W = e.builderContextSignal).rootSetState) == null || L.call(W, O), S[I] = !0;
|
|
4688
4689
|
}).catch((B) => {
|
|
4689
4690
|
console.error("error fetching dynamic data", y, B);
|
|
4690
4691
|
});
|
|
4691
4692
|
}
|
|
4692
4693
|
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
|
|
4694
|
+
var I, B, O;
|
|
4695
|
+
const y = (O = (B = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : B.httpRequests) != null ? O : {};
|
|
4696
|
+
Object.entries(y).forEach(([W, L]) => {
|
|
4697
|
+
if (L && (!S[W] || Ie())) {
|
|
4698
|
+
const be = _(L);
|
|
4698
4699
|
G({
|
|
4699
|
-
url:
|
|
4700
|
-
key:
|
|
4700
|
+
url: be,
|
|
4701
|
+
key: W
|
|
4701
4702
|
});
|
|
4702
4703
|
}
|
|
4703
4704
|
});
|
|
4704
4705
|
}
|
|
4705
|
-
function
|
|
4706
|
-
|
|
4706
|
+
function D() {
|
|
4707
|
+
Ie() && window.dispatchEvent(
|
|
4707
4708
|
new CustomEvent(
|
|
4708
4709
|
"builder:component:stateChange",
|
|
4709
4710
|
{
|
|
@@ -4736,19 +4737,19 @@ function xo(e) {
|
|
|
4736
4737
|
(O = window.parent) == null || O.postMessage(B, "*");
|
|
4737
4738
|
}), window.addEventListener(
|
|
4738
4739
|
"builder:component:stateChangeListenerActivated",
|
|
4739
|
-
|
|
4740
|
+
D
|
|
4740
4741
|
);
|
|
4741
4742
|
}
|
|
4742
4743
|
function se(y) {
|
|
4743
4744
|
const I = new URL(location.href).searchParams, B = I.get("builder.preview"), O = I.get(
|
|
4744
4745
|
`builder.preview.${B}`
|
|
4745
|
-
),
|
|
4746
|
-
B === e.model &&
|
|
4746
|
+
), W = I.get("apiKey") || I.get("builder.space");
|
|
4747
|
+
B === e.model && W === e.apiKey && (!e.content || O === e.content.id) && dr({
|
|
4747
4748
|
model: e.model,
|
|
4748
4749
|
apiKey: e.apiKey,
|
|
4749
4750
|
apiVersion: e.builderContextSignal.apiVersion
|
|
4750
|
-
}).then((
|
|
4751
|
-
|
|
4751
|
+
}).then((L) => {
|
|
4752
|
+
L && i(L);
|
|
4752
4753
|
});
|
|
4753
4754
|
}
|
|
4754
4755
|
return ee(() => {
|
|
@@ -4777,15 +4778,15 @@ function xo(e) {
|
|
|
4777
4778
|
};
|
|
4778
4779
|
}, []), ee(() => {
|
|
4779
4780
|
var y, I;
|
|
4780
|
-
if (
|
|
4781
|
-
if (
|
|
4782
|
-
const O = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId,
|
|
4781
|
+
if (Te()) {
|
|
4782
|
+
if (Ie() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && ht(e.canTrack)) {
|
|
4783
|
+
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
4784
|
Kn({
|
|
4784
4785
|
type: "impression",
|
|
4785
4786
|
canTrack: !0,
|
|
4786
|
-
contentId:
|
|
4787
|
-
apiKey:
|
|
4788
|
-
variationId: O !==
|
|
4787
|
+
contentId: W,
|
|
4788
|
+
apiKey: L,
|
|
4789
|
+
variationId: O !== W ? O : void 0
|
|
4789
4790
|
});
|
|
4790
4791
|
}
|
|
4791
4792
|
Kr() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
@@ -4793,23 +4794,23 @@ function xo(e) {
|
|
|
4793
4794
|
}, []), ee(() => {
|
|
4794
4795
|
e.apiKey || Fe.error(
|
|
4795
4796
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4796
|
-
), v(), b(),
|
|
4797
|
+
), v(), b(), D();
|
|
4797
4798
|
}, []), ee(() => {
|
|
4798
4799
|
e.content && i(e.content);
|
|
4799
4800
|
}, [e.content]), ee(() => {
|
|
4800
4801
|
}, [a]), ee(() => {
|
|
4801
4802
|
v();
|
|
4802
4803
|
}, [
|
|
4803
|
-
(te = (
|
|
4804
|
+
(te = (K = e.builderContextSignal.content) == null ? void 0 : K.data) == null ? void 0 : te.jsCode,
|
|
4804
4805
|
e.builderContextSignal.rootState
|
|
4805
4806
|
]), ee(() => {
|
|
4806
4807
|
b();
|
|
4807
|
-
}, [(
|
|
4808
|
-
|
|
4808
|
+
}, [(je = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : je.httpRequests]), ee(() => {
|
|
4809
|
+
D();
|
|
4809
4810
|
}, [e.builderContextSignal.rootState]), ee(() => () => {
|
|
4810
|
-
|
|
4811
|
+
Te() && (window.removeEventListener("message", g), window.removeEventListener(
|
|
4811
4812
|
"builder:component:stateChangeListenerActivated",
|
|
4812
|
-
|
|
4813
|
+
D
|
|
4813
4814
|
));
|
|
4814
4815
|
}, []), /* @__PURE__ */ p(Qt.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ ur(
|
|
4815
4816
|
u,
|
|
@@ -4817,21 +4818,21 @@ function xo(e) {
|
|
|
4817
4818
|
key: r,
|
|
4818
4819
|
ref: t,
|
|
4819
4820
|
onClick: (y) => N(y),
|
|
4820
|
-
"builder-content-id": (
|
|
4821
|
+
"builder-content-id": (V = e.builderContextSignal.content) == null ? void 0 : V.id,
|
|
4821
4822
|
"builder-model": e.model,
|
|
4822
4823
|
...e.showContent ? {} : {
|
|
4823
4824
|
hidden: !0,
|
|
4824
4825
|
"aria-hidden": !0
|
|
4825
4826
|
},
|
|
4826
4827
|
...e.contentWrapperProps,
|
|
4827
|
-
className: `variant-${((
|
|
4828
|
+
className: `variant-${((ke = e.content) == null ? void 0 : ke.testVariationId) || ((ce = e.content) == null ? void 0 : ce.id)}`
|
|
4828
4829
|
},
|
|
4829
4830
|
e.children
|
|
4830
4831
|
) }) : null });
|
|
4831
4832
|
}
|
|
4832
4833
|
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
|
|
4834
|
+
var a, s;
|
|
4835
|
+
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
4836
|
let i = "";
|
|
4836
4837
|
if (n && t && r && (i += `
|
|
4837
4838
|
@font-face {
|
|
@@ -4841,16 +4842,16 @@ font-display: fallback;
|
|
|
4841
4842
|
font-weight: 400;
|
|
4842
4843
|
}
|
|
4843
4844
|
`.trim()), e.files)
|
|
4844
|
-
for (const
|
|
4845
|
-
if (!(String(Number(
|
|
4845
|
+
for (const u in e.files) {
|
|
4846
|
+
if (!(String(Number(u)) === u))
|
|
4846
4847
|
continue;
|
|
4847
|
-
const
|
|
4848
|
-
|
|
4848
|
+
const g = e.files[u];
|
|
4849
|
+
g && g !== n && (i += `
|
|
4849
4850
|
@font-face {
|
|
4850
4851
|
font-family: "${t}";
|
|
4851
|
-
src: url('${
|
|
4852
|
+
src: url('${g}') format('woff2');
|
|
4852
4853
|
font-display: fallback;
|
|
4853
|
-
font-weight: ${
|
|
4854
|
+
font-weight: ${u};
|
|
4854
4855
|
}
|
|
4855
4856
|
`.trim());
|
|
4856
4857
|
}
|
|
@@ -4865,7 +4866,7 @@ font-weight: ${s};
|
|
|
4865
4866
|
contentId: t
|
|
4866
4867
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4867
4868
|
function Co(e) {
|
|
4868
|
-
const [t, r] =
|
|
4869
|
+
const [t, r] = $(
|
|
4869
4870
|
() => `
|
|
4870
4871
|
${ko({
|
|
4871
4872
|
cssCode: e.cssCode,
|
|
@@ -4920,25 +4921,25 @@ const Eo = ({
|
|
|
4920
4921
|
meta: e == null ? void 0 : e.meta
|
|
4921
4922
|
} : void 0;
|
|
4922
4923
|
function lr(e) {
|
|
4923
|
-
var f, g, v, S, U,
|
|
4924
|
-
const [t, r] =
|
|
4924
|
+
var f, g, v, S, U, H, E;
|
|
4925
|
+
const [t, r] = $(
|
|
4925
4926
|
() => {
|
|
4926
|
-
var N,
|
|
4927
|
+
var N, _;
|
|
4927
4928
|
return ho({
|
|
4928
4929
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4929
4930
|
variationId: (N = e.content) == null ? void 0 : N.testVariationId,
|
|
4930
4931
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4931
|
-
contentId: (
|
|
4932
|
+
contentId: (_ = e.content) == null ? void 0 : _.id
|
|
4932
4933
|
});
|
|
4933
4934
|
}
|
|
4934
4935
|
);
|
|
4935
4936
|
function n(N) {
|
|
4936
|
-
u((
|
|
4937
|
-
...
|
|
4937
|
+
u((_) => ({
|
|
4938
|
+
..._,
|
|
4938
4939
|
rootState: N
|
|
4939
4940
|
}));
|
|
4940
4941
|
}
|
|
4941
|
-
const [i, a] =
|
|
4942
|
+
const [i, a] = $(
|
|
4942
4943
|
() => [
|
|
4943
4944
|
...ir(),
|
|
4944
4945
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
@@ -4949,16 +4950,16 @@ function lr(e) {
|
|
|
4949
4950
|
...Gn,
|
|
4950
4951
|
...e.customComponents || []
|
|
4951
4952
|
].reduce(
|
|
4952
|
-
(N, { component:
|
|
4953
|
+
(N, { component: _, ...G }) => ({
|
|
4953
4954
|
...N,
|
|
4954
4955
|
[G.name]: {
|
|
4955
|
-
component:
|
|
4956
|
+
component: _,
|
|
4956
4957
|
...zn(G)
|
|
4957
4958
|
}
|
|
4958
4959
|
}),
|
|
4959
4960
|
{}
|
|
4960
4961
|
)
|
|
4961
|
-
), [s, u] =
|
|
4962
|
+
), [s, u] = $(() => ({
|
|
4962
4963
|
content: Io({
|
|
4963
4964
|
content: e.content,
|
|
4964
4965
|
data: e.data
|
|
@@ -4983,7 +4984,7 @@ function lr(e) {
|
|
|
4983
4984
|
...Gn,
|
|
4984
4985
|
...e.customComponents || []
|
|
4985
4986
|
].reduce(
|
|
4986
|
-
(N, { component:
|
|
4987
|
+
(N, { component: _, ...G }) => ({
|
|
4987
4988
|
...N,
|
|
4988
4989
|
[G.name]: zn(G)
|
|
4989
4990
|
}),
|
|
@@ -5028,7 +5029,7 @@ function lr(e) {
|
|
|
5028
5029
|
/* @__PURE__ */ p(
|
|
5029
5030
|
hn,
|
|
5030
5031
|
{
|
|
5031
|
-
blocks: (E = (
|
|
5032
|
+
blocks: (E = (H = s.content) == null ? void 0 : H.data) == null ? void 0 : E.blocks,
|
|
5032
5033
|
context: s,
|
|
5033
5034
|
registeredComponents: i
|
|
5034
5035
|
}
|
|
@@ -5041,7 +5042,7 @@ function lr(e) {
|
|
|
5041
5042
|
}
|
|
5042
5043
|
function Ir(e) {
|
|
5043
5044
|
var s, u;
|
|
5044
|
-
const [t, r] =
|
|
5045
|
+
const [t, r] = $(
|
|
5045
5046
|
() => lo({
|
|
5046
5047
|
canTrack: ht(e.canTrack),
|
|
5047
5048
|
content: e.content
|
|
@@ -5160,7 +5161,7 @@ function jo(e) {
|
|
|
5160
5161
|
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5161
5162
|
].filter(Boolean).join(" ");
|
|
5162
5163
|
}
|
|
5163
|
-
const [r, n] =
|
|
5164
|
+
const [r, n] = $(() => {
|
|
5164
5165
|
var f;
|
|
5165
5166
|
return (f = e.symbol) == null ? void 0 : f.content;
|
|
5166
5167
|
});
|
|
@@ -5215,7 +5216,7 @@ export {
|
|
|
5215
5216
|
Do as getAllContent,
|
|
5216
5217
|
Wo as getBuilderSearchParams,
|
|
5217
5218
|
Vo as getContent,
|
|
5218
|
-
|
|
5219
|
+
Ie as isEditing,
|
|
5219
5220
|
Kr as isPreviewing,
|
|
5220
5221
|
Hr as register,
|
|
5221
5222
|
Lo as setEditorSettings,
|