@builder.io/sdk-react 0.7.5 → 0.8.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 +8 -8
- package/lib/browser/index.mjs +161 -158
- package/lib/edge/index.cjs +9 -9
- package/lib/edge/index.mjs +174 -171
- package/lib/node/index.cjs +8 -8
- package/lib/node/index.mjs +130 -127
- package/package.json +7 -1
- package/types/constants/sdk-version.d.ts +1 -1
package/lib/edge/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as Z, Fragment as
|
|
3
|
-
import { createContext as cr, useState as
|
|
2
|
+
import { jsxs as Z, Fragment as P, jsx as p } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as cr, useState as H, useContext as Hn, createElement as ur, useRef as Jt, useEffect as ee } from "react";
|
|
4
4
|
import { i as Ee, j as Ie, k as Wr, l as Fe, m as qt, n as Ht, T as tt, r as Hr, o as dt, 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-0aebe4be.mjs";
|
|
5
5
|
import { _ as Uo, h as Bo, f as _o, g as Do, e as Vo, d as Lo, s as $o, t as Wo } from "./server-entry-0aebe4be.mjs";
|
|
6
6
|
function Yr(e) {
|
|
7
|
-
return /* @__PURE__ */ Z(
|
|
8
|
-
e.link ? /* @__PURE__ */ p(
|
|
7
|
+
return /* @__PURE__ */ Z(P, { children: [
|
|
8
|
+
e.link ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
9
9
|
"a",
|
|
10
10
|
{
|
|
11
11
|
...e.attributes,
|
|
@@ -14,7 +14,7 @@ function Yr(e) {
|
|
|
14
14
|
role: "button",
|
|
15
15
|
children: e.text
|
|
16
16
|
}
|
|
17
|
-
) }) : /* @__PURE__ */ p(
|
|
17
|
+
) }) : /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
18
18
|
"button",
|
|
19
19
|
{
|
|
20
20
|
...e.attributes,
|
|
@@ -203,7 +203,7 @@ var B, ti = function(e) {
|
|
|
203
203
|
return ++d, s(Un);
|
|
204
204
|
case 48:
|
|
205
205
|
if (o = x.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
206
|
-
d += 2, o =
|
|
206
|
+
d += 2, o = K(16), o === null && n(X + 2, "Expected hexadecimal number"), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), s($e, o);
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
case 49:
|
|
@@ -243,13 +243,13 @@ var B, ti = function(e) {
|
|
|
243
243
|
l += "\r";
|
|
244
244
|
break;
|
|
245
245
|
case 120:
|
|
246
|
-
l += String.fromCharCode(
|
|
246
|
+
l += String.fromCharCode(N(2));
|
|
247
247
|
break;
|
|
248
248
|
case 117:
|
|
249
|
-
l += String.fromCharCode(
|
|
249
|
+
l += String.fromCharCode(N(4));
|
|
250
250
|
break;
|
|
251
251
|
case 85:
|
|
252
|
-
l += String.fromCharCode(
|
|
252
|
+
l += String.fromCharCode(N(8));
|
|
253
253
|
break;
|
|
254
254
|
case 116:
|
|
255
255
|
l += " ";
|
|
@@ -315,10 +315,10 @@ var B, ti = function(e) {
|
|
|
315
315
|
if (d >= je)
|
|
316
316
|
return s(At);
|
|
317
317
|
if (o = x.charCodeAt(d), r(o) || o === 92)
|
|
318
|
-
return
|
|
318
|
+
return $();
|
|
319
319
|
if (g(o) === !1) {
|
|
320
320
|
if (o = String.fromCharCode(o), o === "\\" || Wn.test(o))
|
|
321
|
-
return
|
|
321
|
+
return $();
|
|
322
322
|
n(d, "Unexpected character '" + o + "'");
|
|
323
323
|
}
|
|
324
324
|
}
|
|
@@ -343,7 +343,7 @@ var B, ti = function(e) {
|
|
|
343
343
|
}
|
|
344
344
|
++d;
|
|
345
345
|
}
|
|
346
|
-
o = x.slice(c, d), ++d, (l =
|
|
346
|
+
o = x.slice(c, d), ++d, (l = L()) && !/^[gmi]*$/.test(l) && n(c, "Invalid regexp flag");
|
|
347
347
|
try {
|
|
348
348
|
var R = new RegExp(o, l);
|
|
349
349
|
} catch (Y) {
|
|
@@ -351,7 +351,7 @@ var B, ti = function(e) {
|
|
|
351
351
|
}
|
|
352
352
|
s(gn, R);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function K(o, l) {
|
|
355
355
|
for (var c = d, h = 0, R = l === void 0 ? 1 / 0 : l, Y = 0; Y < R; ++Y) {
|
|
356
356
|
var ne = x.charCodeAt(d);
|
|
357
357
|
if (ne = 97 <= ne ? ne - 97 + 10 : 65 <= ne ? ne - 65 + 10 : 48 <= ne && 57 >= ne ? ne - 48 : 1 / 0, ne >= o)
|
|
@@ -362,21 +362,21 @@ var B, ti = function(e) {
|
|
|
362
362
|
}
|
|
363
363
|
function E(o) {
|
|
364
364
|
var l = d, c = !1, h = x.charCodeAt(d) === 48;
|
|
365
|
-
o ||
|
|
365
|
+
o || K(10) !== null || n(l, "Invalid number"), x.charCodeAt(d) === 46 && (++d, K(10), c = !0), o = x.charCodeAt(d), (o === 69 || o === 101) && (o = x.charCodeAt(++d), o !== 43 && o !== 45 || ++d, K(10) === null && n(l, "Invalid number"), c = !0), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), o = x.slice(l, d);
|
|
366
366
|
var R;
|
|
367
367
|
c ? R = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || oe ? n(l, "Invalid number") : R = parseInt(o, 8) : R = parseInt(o, 10), s($e, R);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
return o =
|
|
369
|
+
function N(o) {
|
|
370
|
+
return o = K(16, o), o === null && n(X, "Bad character escape sequence"), o;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function L() {
|
|
373
373
|
Pe = !1;
|
|
374
374
|
for (var o, l = !0, c = d; ; ) {
|
|
375
375
|
var h = x.charCodeAt(d);
|
|
376
376
|
if (t(h))
|
|
377
377
|
Pe && (o += x.charAt(d)), ++d;
|
|
378
378
|
else if (h === 92) {
|
|
379
|
-
Pe || (o = x.slice(c, d)), Pe = !0, x.charCodeAt(++d) !== 117 && n(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h =
|
|
379
|
+
Pe || (o = x.slice(c, d)), Pe = !0, x.charCodeAt(++d) !== 117 && n(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = N(4);
|
|
380
380
|
var R = String.fromCharCode(h);
|
|
381
381
|
R || n(d - 1, "Invalid Unicode escape"), (l ? r(h) : t(h)) || n(d - 4, "Invalid Unicode escape"), o += R;
|
|
382
382
|
} else
|
|
@@ -385,14 +385,14 @@ var B, ti = function(e) {
|
|
|
385
385
|
}
|
|
386
386
|
return Pe ? o : x.slice(c, d);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
var o =
|
|
388
|
+
function $() {
|
|
389
|
+
var o = L(), l = Re;
|
|
390
390
|
!Pe && Dr(o) && (l = jr[o]), s(l, o);
|
|
391
391
|
}
|
|
392
392
|
function y() {
|
|
393
393
|
Tt = X, xe = Ae, jt = It, v();
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function G(o) {
|
|
396
396
|
if (oe = o, d = X, O.C)
|
|
397
397
|
for (; d < de; )
|
|
398
398
|
de = x.lastIndexOf(`
|
|
@@ -405,7 +405,7 @@ var B, ti = function(e) {
|
|
|
405
405
|
function se() {
|
|
406
406
|
this.start = Et, this.end = null, Ct && (this.source = Ct);
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function W() {
|
|
409
409
|
var o = new ae();
|
|
410
410
|
return O.C && (o.X = new se()), O.vb && (o.sourceFile = O.vb), O.Xa && (o.j = [X, 0]), o;
|
|
411
411
|
}
|
|
@@ -439,7 +439,7 @@ var B, ti = function(e) {
|
|
|
439
439
|
}
|
|
440
440
|
function U() {
|
|
441
441
|
(A === Bn || A === Ce && le === "/=") && v(!0);
|
|
442
|
-
var o = A, l =
|
|
442
|
+
var o = A, l = W();
|
|
443
443
|
switch (o) {
|
|
444
444
|
case Rt:
|
|
445
445
|
case yn:
|
|
@@ -457,7 +457,7 @@ var B, ti = function(e) {
|
|
|
457
457
|
case Sn:
|
|
458
458
|
return y(), z.push(_t), l.body = U(), z.pop(), C(Ft), l.test = ye(), T(), I(l, "DoWhileStatement");
|
|
459
459
|
case Cn:
|
|
460
|
-
return y(), z.push(_t), C(fe), A === he ? yt(l, null) : A === Mt ? (o =
|
|
460
|
+
return y(), z.push(_t), C(fe), A === he ? yt(l, null) : A === Mt ? (o = W(), y(), pn(o, !0), I(o, "VariableDeclaration"), o.fa.length === 1 && D(at) ? hn(l, o) : yt(l, o)) : (o = Q(!1, !0), D(at) ? (V(o), hn(l, o)) : yt(l, o));
|
|
461
461
|
case Pt:
|
|
462
462
|
return y(), wt(l, !0);
|
|
463
463
|
case En:
|
|
@@ -466,12 +466,12 @@ var B, ti = function(e) {
|
|
|
466
466
|
return Le || O.Ib || n(X, "'return' outside of function"), y(), D(he) || j() ? l.K = null : (l.K = Q(), T()), I(l, "ReturnStatement");
|
|
467
467
|
case Nt:
|
|
468
468
|
for (y(), l.Qb = ye(), l.tb = [], C(We), z.push($r); A !== Oe; )
|
|
469
|
-
A === Ot || A === bn ? (o = A === Ot, h && I(h, "SwitchCase"), l.tb.push(h =
|
|
469
|
+
A === Ot || A === bn ? (o = A === Ot, h && I(h, "SwitchCase"), l.tb.push(h = W()), h.da = [], y(), o ? h.test = Q() : (c && n(Tt, "Multiple default clauses"), c = !0, h.test = null), C(He)) : (h || M(), h.da.push(U()));
|
|
470
470
|
return h && I(h, "SwitchCase"), y(), z.pop(), I(l, "SwitchStatement");
|
|
471
471
|
case Tn:
|
|
472
472
|
return y(), lt.test(x.slice(xe, X)) && n(xe, "Illegal newline after throw"), l.K = Q(), T(), I(l, "ThrowStatement");
|
|
473
473
|
case jn:
|
|
474
|
-
return y(), l.block = we(), l.Ea = null, A === vn && (o =
|
|
474
|
+
return y(), l.block = we(), l.Ea = null, A === vn && (o = W(), y(), C(fe), o.Ua = ue(), oe && st(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), C(ce), o.body = we(), l.Ea = I(o, "CatchClause")), l.fb = D(kn) ? we() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), I(l, "TryStatement");
|
|
475
475
|
case Mt:
|
|
476
476
|
return y(), pn(l), T(), I(l, "VariableDeclaration");
|
|
477
477
|
case Ft:
|
|
@@ -500,16 +500,16 @@ var B, ti = function(e) {
|
|
|
500
500
|
return C(ce), o;
|
|
501
501
|
}
|
|
502
502
|
function we(o) {
|
|
503
|
-
var l =
|
|
503
|
+
var l = W(), c = !0, h = !1;
|
|
504
504
|
for (l.body = [], C(We); !D(Oe); ) {
|
|
505
505
|
var R = U();
|
|
506
506
|
if (l.body.push(R), c && o && Te(R)) {
|
|
507
507
|
var Y = h;
|
|
508
|
-
|
|
508
|
+
G(h = !0);
|
|
509
509
|
}
|
|
510
510
|
c = !1;
|
|
511
511
|
}
|
|
512
|
-
return h && !Y &&
|
|
512
|
+
return h && !Y && G(!1), I(l, "BlockStatement");
|
|
513
513
|
}
|
|
514
514
|
function yt(o, l) {
|
|
515
515
|
return o.ua = l, C(he), o.test = A === he ? null : Q(), C(he), o.update = A === ce ? null : Q(), C(ce), o.body = U(), z.pop(), I(o, "ForStatement");
|
|
@@ -519,7 +519,7 @@ var B, ti = function(e) {
|
|
|
519
519
|
}
|
|
520
520
|
function pn(o, l) {
|
|
521
521
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
522
|
-
var c =
|
|
522
|
+
var c = W();
|
|
523
523
|
if (c.id = ue(), oe && st(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = D(_n) ? Q(!0, l) : null, o.fa.push(I(c, "VariableDeclarator")), !D(be))
|
|
524
524
|
break;
|
|
525
525
|
}
|
|
@@ -551,7 +551,7 @@ var B, ti = function(e) {
|
|
|
551
551
|
}
|
|
552
552
|
function St() {
|
|
553
553
|
if (A.prefix) {
|
|
554
|
-
var o =
|
|
554
|
+
var o = W(), l = A.$b;
|
|
555
555
|
return o.operator = le, Ve = o.prefix = !0, y(), o.K = St(), l ? V(o.K) : oe && o.operator === "delete" && o.K.type === "Identifier" && n(o.start, "Deleting local variable in strict mode"), I(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
556
556
|
}
|
|
557
557
|
for (l = De(it()); A.cc && !j(); )
|
|
@@ -568,18 +568,18 @@ var B, ti = function(e) {
|
|
|
568
568
|
function it() {
|
|
569
569
|
switch (A) {
|
|
570
570
|
case On:
|
|
571
|
-
var o =
|
|
571
|
+
var o = W();
|
|
572
572
|
return y(), I(o, "ThisExpression");
|
|
573
573
|
case Re:
|
|
574
574
|
return ue();
|
|
575
575
|
case $e:
|
|
576
576
|
case ot:
|
|
577
577
|
case gn:
|
|
578
|
-
return o =
|
|
578
|
+
return o = W(), o.value = le, o.raw = x.slice(X, Ae), y(), I(o, "Literal");
|
|
579
579
|
case Pn:
|
|
580
580
|
case Nn:
|
|
581
581
|
case Mn:
|
|
582
|
-
return o =
|
|
582
|
+
return o = W(), o.value = A.$a, o.raw = A.l, y(), I(o, "Literal");
|
|
583
583
|
case fe:
|
|
584
584
|
o = Et;
|
|
585
585
|
var l = X;
|
|
@@ -587,9 +587,9 @@ var B, ti = function(e) {
|
|
|
587
587
|
var c = Q();
|
|
588
588
|
return c.start = l, c.end = Ae, O.C && (c.X.start = o, c.X.end = It), O.Xa && (c.j = [l, Ae]), C(ce), c;
|
|
589
589
|
case Ut:
|
|
590
|
-
return o =
|
|
590
|
+
return o = W(), y(), o.elements = kt(Bt, !0, !0), I(o, "ArrayExpression");
|
|
591
591
|
case We:
|
|
592
|
-
for (o =
|
|
592
|
+
for (o = W(), l = !0, c = !1, o.h = [], y(); !D(Oe); ) {
|
|
593
593
|
if (l)
|
|
594
594
|
l = !1;
|
|
595
595
|
else if (C(be), O.sb && D(Oe))
|
|
@@ -601,7 +601,7 @@ var B, ti = function(e) {
|
|
|
601
601
|
h.value = Q(!0);
|
|
602
602
|
var Y = h.kind = "init";
|
|
603
603
|
} else
|
|
604
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? M() : (R = c = !0, Y = h.kind = h.key.name, h.key = A === $e || A === ot ? it() : ue(!0), A !== fe && M(), h.value = wt(
|
|
604
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? M() : (R = c = !0, Y = h.kind = h.key.name, h.key = A === $e || A === ot ? it() : ue(!0), A !== fe && M(), h.value = wt(W(), !1));
|
|
605
605
|
if (h.key.type === "Identifier" && (oe || c))
|
|
606
606
|
for (var ne = 0; ne < o.h.length; ++ne) {
|
|
607
607
|
var Ne = o.h[ne];
|
|
@@ -614,9 +614,9 @@ var B, ti = function(e) {
|
|
|
614
614
|
}
|
|
615
615
|
return I(o, "ObjectExpression");
|
|
616
616
|
case Pt:
|
|
617
|
-
return o =
|
|
617
|
+
return o = W(), y(), wt(o, !1);
|
|
618
618
|
case Rn:
|
|
619
|
-
return o =
|
|
619
|
+
return o = W(), y(), o.callee = De(it(), !0), o.arguments = D(fe) ? kt(ce, !1) : Tr, I(o, "NewExpression");
|
|
620
620
|
}
|
|
621
621
|
M();
|
|
622
622
|
}
|
|
@@ -646,7 +646,7 @@ var B, ti = function(e) {
|
|
|
646
646
|
return h;
|
|
647
647
|
}
|
|
648
648
|
function ue(o) {
|
|
649
|
-
var l =
|
|
649
|
+
var l = W();
|
|
650
650
|
return o && O.yb === "everywhere" && (o = !1), A === Re ? (!o && (O.yb && _r(le) || oe && $n(le)) && x.slice(X, Ae).indexOf("\\") === -1 && n(X, "The keyword '" + le + "' is reserved"), l.name = le) : o && A.l ? l.name = A.l : M(), Ve = !1, y(), I(l, "Identifier");
|
|
651
651
|
}
|
|
652
652
|
e.version = "0.5.0";
|
|
@@ -655,8 +655,8 @@ var B, ti = function(e) {
|
|
|
655
655
|
x = String(o), je = x.length, O = l || {};
|
|
656
656
|
for (var c in mn)
|
|
657
657
|
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = mn[c]);
|
|
658
|
-
for (Ct = O.sourceFile, ke = 1, d = de = 0, Ve = !0, f(), c = O.dc, Tt = xe = d, O.C && (jt = new a()), Le = oe = !1, z = [], v(), o = c ||
|
|
659
|
-
c = U(), o.body.push(c), l && Te(c) &&
|
|
658
|
+
for (Ct = O.sourceFile, ke = 1, d = de = 0, Ve = !0, f(), c = O.dc, Tt = xe = d, O.C && (jt = new a()), Le = oe = !1, z = [], v(), o = c || W(), l = !0, c || (o.body = []); A !== At; )
|
|
659
|
+
c = U(), o.body.push(c), l && Te(c) && G(!0), l = !1;
|
|
660
660
|
return I(o, "Program");
|
|
661
661
|
};
|
|
662
662
|
var mn = {
|
|
@@ -2544,8 +2544,8 @@ const vi = (e) => e.split(`
|
|
|
2544
2544
|
event: r,
|
|
2545
2545
|
state: u
|
|
2546
2546
|
}), g = f.map(([E]) => {
|
|
2547
|
-
const
|
|
2548
|
-
return `var ${E} = ${
|
|
2547
|
+
const N = Qn(E);
|
|
2548
|
+
return `var ${E} = ${N} === undefined ? undefined : JSON.parse(${N});`;
|
|
2549
2549
|
}).join(`
|
|
2550
2550
|
`), v = vi(s);
|
|
2551
2551
|
if (v === "") {
|
|
@@ -2559,17 +2559,17 @@ function theFunction() {
|
|
|
2559
2559
|
${v}
|
|
2560
2560
|
}
|
|
2561
2561
|
theFunction();
|
|
2562
|
-
`, _ = (E,
|
|
2563
|
-
const
|
|
2564
|
-
a == null || a(
|
|
2565
|
-
},
|
|
2566
|
-
f.forEach(([
|
|
2567
|
-
const y = JSON.stringify(
|
|
2568
|
-
E.setProperty(
|
|
2569
|
-
}), E.setProperty(
|
|
2562
|
+
`, _ = (E, N) => {
|
|
2563
|
+
const L = pr(u, E, N);
|
|
2564
|
+
a == null || a(L);
|
|
2565
|
+
}, K = function(E, N) {
|
|
2566
|
+
f.forEach(([L, $]) => {
|
|
2567
|
+
const y = JSON.stringify($);
|
|
2568
|
+
E.setProperty(N, Qn(L), y);
|
|
2569
|
+
}), E.setProperty(N, "setRootState", E.createNativeFunction(_));
|
|
2570
2570
|
};
|
|
2571
2571
|
try {
|
|
2572
|
-
const E = new m(b,
|
|
2572
|
+
const E = new m(b, K);
|
|
2573
2573
|
return E.run(), E.pseudoToNative(E.value);
|
|
2574
2574
|
} catch (E) {
|
|
2575
2575
|
Fe.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
@@ -2810,7 +2810,7 @@ function dn(e) {
|
|
|
2810
2810
|
"medium",
|
|
2811
2811
|
s
|
|
2812
2812
|
)
|
|
2813
|
-
}) : "",
|
|
2813
|
+
}) : "", K = g ? $t({
|
|
2814
2814
|
className: v,
|
|
2815
2815
|
styles: g,
|
|
2816
2816
|
mediaQuery: er(
|
|
@@ -2818,9 +2818,9 @@ function dn(e) {
|
|
|
2818
2818
|
s
|
|
2819
2819
|
)
|
|
2820
2820
|
}) : "";
|
|
2821
|
-
return [b, _,
|
|
2821
|
+
return [b, _, K].join(" ");
|
|
2822
2822
|
}
|
|
2823
|
-
return /* @__PURE__ */ p(
|
|
2823
|
+
return /* @__PURE__ */ p(P, { children: r() && t() ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(gt, { styles: r() }) }) : null });
|
|
2824
2824
|
}
|
|
2825
2825
|
function Ii(e) {
|
|
2826
2826
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -2890,9 +2890,9 @@ function Oi(e) {
|
|
|
2890
2890
|
}
|
|
2891
2891
|
}
|
|
2892
2892
|
function tr(e) {
|
|
2893
|
-
return /* @__PURE__ */ Z(
|
|
2893
|
+
return /* @__PURE__ */ Z(P, { children: [
|
|
2894
2894
|
" ",
|
|
2895
|
-
e.hasChildren ? /* @__PURE__ */ p(
|
|
2895
|
+
e.hasChildren ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ Z(
|
|
2896
2896
|
e.Wrapper,
|
|
2897
2897
|
{
|
|
2898
2898
|
...ht({
|
|
@@ -2913,7 +2913,7 @@ function tr(e) {
|
|
|
2913
2913
|
" "
|
|
2914
2914
|
]
|
|
2915
2915
|
}
|
|
2916
|
-
) }) : /* @__PURE__ */ p(
|
|
2916
|
+
) }) : /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
2917
2917
|
e.Wrapper,
|
|
2918
2918
|
{
|
|
2919
2919
|
...ht({
|
|
@@ -2983,10 +2983,10 @@ const Ni = ({
|
|
|
2983
2983
|
};
|
|
2984
2984
|
function nr(e) {
|
|
2985
2985
|
var n, i;
|
|
2986
|
-
const [t, r] =
|
|
2986
|
+
const [t, r] = H(
|
|
2987
2987
|
() => e.isInteractive ? Pi : e.componentRef
|
|
2988
2988
|
);
|
|
2989
|
-
return /* @__PURE__ */ p(
|
|
2989
|
+
return /* @__PURE__ */ p(P, { children: e.componentRef ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ Z(
|
|
2990
2990
|
t,
|
|
2991
2991
|
{
|
|
2992
2992
|
...Ni({
|
|
@@ -3021,7 +3021,7 @@ function nr(e) {
|
|
|
3021
3021
|
) }) : null });
|
|
3022
3022
|
}
|
|
3023
3023
|
function Mi(e) {
|
|
3024
|
-
const [t, r] =
|
|
3024
|
+
const [t, r] = H(() => e.repeatContext);
|
|
3025
3025
|
return /* @__PURE__ */ p(Zt.Provider, { value: t, children: /* @__PURE__ */ p(
|
|
3026
3026
|
vt,
|
|
3027
3027
|
{
|
|
@@ -3032,7 +3032,7 @@ function Mi(e) {
|
|
|
3032
3032
|
) });
|
|
3033
3033
|
}
|
|
3034
3034
|
function vt(e) {
|
|
3035
|
-
var v, b, _,
|
|
3035
|
+
var v, b, _, K;
|
|
3036
3036
|
function t() {
|
|
3037
3037
|
return wi({
|
|
3038
3038
|
block: e.block,
|
|
@@ -3061,34 +3061,37 @@ function vt(e) {
|
|
|
3061
3061
|
return e.block.tagName || "div";
|
|
3062
3062
|
}
|
|
3063
3063
|
function a() {
|
|
3064
|
-
var
|
|
3065
|
-
|
|
3064
|
+
var L, $;
|
|
3065
|
+
if ((L = e.block.repeat) != null && L.collection)
|
|
3066
|
+
return !!(($ = r == null ? void 0 : r()) != null && $.length);
|
|
3067
|
+
const E = "hide" in n() ? n().hide : !1;
|
|
3068
|
+
return ("show" in n() ? n().show : !0) && !E;
|
|
3066
3069
|
}
|
|
3067
3070
|
function s() {
|
|
3068
|
-
var
|
|
3069
|
-
return !((
|
|
3071
|
+
var N;
|
|
3072
|
+
return !((N = t == null ? void 0 : t()) != null && N.component) && !r() ? n().children ?? [] : [];
|
|
3070
3073
|
}
|
|
3071
3074
|
function u() {
|
|
3072
|
-
var E,
|
|
3075
|
+
var E, N, L, $, y;
|
|
3073
3076
|
return {
|
|
3074
3077
|
blockChildren: n().children ?? [],
|
|
3075
3078
|
componentRef: (E = t == null ? void 0 : t()) == null ? void 0 : E.component,
|
|
3076
3079
|
componentOptions: {
|
|
3077
3080
|
...Jr(n()),
|
|
3078
3081
|
builderContext: e.context,
|
|
3079
|
-
...((
|
|
3082
|
+
...((N = t == null ? void 0 : t()) == null ? void 0 : N.name) === "Symbol" || ((L = t == null ? void 0 : t()) == null ? void 0 : L.name) === "Columns" ? {
|
|
3080
3083
|
builderComponents: e.registeredComponents
|
|
3081
3084
|
} : {}
|
|
3082
3085
|
},
|
|
3083
3086
|
context: f,
|
|
3084
3087
|
registeredComponents: e.registeredComponents,
|
|
3085
3088
|
builderBlock: n(),
|
|
3086
|
-
includeBlockProps: ((
|
|
3089
|
+
includeBlockProps: (($ = t == null ? void 0 : t()) == null ? void 0 : $.noWrap) === !0,
|
|
3087
3090
|
isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
|
|
3088
3091
|
};
|
|
3089
3092
|
}
|
|
3090
|
-
const [f, g] =
|
|
3091
|
-
return /* @__PURE__ */ p(
|
|
3093
|
+
const [f, g] = H(() => e.context);
|
|
3094
|
+
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(
|
|
3092
3095
|
nr,
|
|
3093
3096
|
{
|
|
3094
3097
|
componentRef: u().componentRef,
|
|
@@ -3100,8 +3103,8 @@ function vt(e) {
|
|
|
3100
3103
|
includeBlockProps: u().includeBlockProps,
|
|
3101
3104
|
isInteractive: u().isInteractive
|
|
3102
3105
|
}
|
|
3103
|
-
) }) : /* @__PURE__ */ Z(
|
|
3104
|
-
Lt(i()) ? /* @__PURE__ */ p(
|
|
3106
|
+
) }) : /* @__PURE__ */ Z(P, { children: [
|
|
3107
|
+
Lt(i()) ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
3105
3108
|
tr,
|
|
3106
3109
|
{
|
|
3107
3110
|
Wrapper: i(),
|
|
@@ -3110,16 +3113,16 @@ function vt(e) {
|
|
|
3110
3113
|
hasChildren: !1
|
|
3111
3114
|
}
|
|
3112
3115
|
) }) : null,
|
|
3113
|
-
!Lt(i()) && r() ? /* @__PURE__ */ p(
|
|
3116
|
+
!Lt(i()) && r() ? /* @__PURE__ */ p(P, { children: (b = r()) == null ? void 0 : b.map((E, N) => /* @__PURE__ */ p(
|
|
3114
3117
|
Mi,
|
|
3115
3118
|
{
|
|
3116
3119
|
repeatContext: E.context,
|
|
3117
3120
|
block: E.block,
|
|
3118
3121
|
registeredComponents: e.registeredComponents
|
|
3119
3122
|
},
|
|
3120
|
-
|
|
3123
|
+
N
|
|
3121
3124
|
)) }) : null,
|
|
3122
|
-
!Lt(i()) && !r() ? /* @__PURE__ */ p(
|
|
3125
|
+
!Lt(i()) && !r() ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ Z(
|
|
3123
3126
|
tr,
|
|
3124
3127
|
{
|
|
3125
3128
|
Wrapper: i(),
|
|
@@ -3149,7 +3152,7 @@ function vt(e) {
|
|
|
3149
3152
|
},
|
|
3150
3153
|
"block-" + E.id
|
|
3151
3154
|
)),
|
|
3152
|
-
(
|
|
3155
|
+
(K = s()) == null ? void 0 : K.map((E) => /* @__PURE__ */ p(
|
|
3153
3156
|
dn,
|
|
3154
3157
|
{
|
|
3155
3158
|
block: E,
|
|
@@ -3193,7 +3196,7 @@ function Fi(e) {
|
|
|
3193
3196
|
"*"
|
|
3194
3197
|
));
|
|
3195
3198
|
}
|
|
3196
|
-
return /* @__PURE__ */ Z(
|
|
3199
|
+
return /* @__PURE__ */ Z(P, { children: [
|
|
3197
3200
|
/* @__PURE__ */ p(
|
|
3198
3201
|
"div",
|
|
3199
3202
|
{
|
|
@@ -3225,7 +3228,7 @@ function fn(e) {
|
|
|
3225
3228
|
path: e.path,
|
|
3226
3229
|
styleProp: e.styleProp,
|
|
3227
3230
|
children: [
|
|
3228
|
-
e.blocks ? /* @__PURE__ */ p(
|
|
3231
|
+
e.blocks ? /* @__PURE__ */ p(P, { children: (n = e.blocks) == null ? void 0 : n.map((a) => /* @__PURE__ */ p(
|
|
3229
3232
|
vt,
|
|
3230
3233
|
{
|
|
3231
3234
|
block: a,
|
|
@@ -3234,7 +3237,7 @@ function fn(e) {
|
|
|
3234
3237
|
},
|
|
3235
3238
|
"render-block-" + a.id
|
|
3236
3239
|
)) }) : null,
|
|
3237
|
-
e.blocks ? /* @__PURE__ */ p(
|
|
3240
|
+
e.blocks ? /* @__PURE__ */ p(P, { children: (i = e.blocks) == null ? void 0 : i.map((a) => /* @__PURE__ */ p(
|
|
3238
3241
|
dn,
|
|
3239
3242
|
{
|
|
3240
3243
|
block: a,
|
|
@@ -3247,36 +3250,36 @@ function fn(e) {
|
|
|
3247
3250
|
);
|
|
3248
3251
|
}
|
|
3249
3252
|
function Ui(e) {
|
|
3250
|
-
var
|
|
3251
|
-
const [t, r] =
|
|
3253
|
+
var $;
|
|
3254
|
+
const [t, r] = H(
|
|
3252
3255
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3253
|
-
), [n, i] =
|
|
3256
|
+
), [n, i] = H(() => e.columns || []), [a, s] = H(
|
|
3254
3257
|
() => e.stackColumnsAt || "tablet"
|
|
3255
3258
|
);
|
|
3256
3259
|
function u(y) {
|
|
3257
|
-
var
|
|
3258
|
-
return ((
|
|
3260
|
+
var G;
|
|
3261
|
+
return ((G = n[y]) == null ? void 0 : G.width) || 100 / n.length;
|
|
3259
3262
|
}
|
|
3260
3263
|
function f(y) {
|
|
3261
|
-
const
|
|
3262
|
-
return `calc(${u(y)}% - ${
|
|
3264
|
+
const G = t * (n.length - 1) / n.length;
|
|
3265
|
+
return `calc(${u(y)}% - ${G}px)`;
|
|
3263
3266
|
}
|
|
3264
3267
|
function g({
|
|
3265
3268
|
stackedStyle: y,
|
|
3266
|
-
desktopStyle:
|
|
3269
|
+
desktopStyle: G
|
|
3267
3270
|
}) {
|
|
3268
|
-
return a === "tablet" ? y :
|
|
3271
|
+
return a === "tablet" ? y : G;
|
|
3269
3272
|
}
|
|
3270
3273
|
function v({
|
|
3271
3274
|
stackedStyle: y,
|
|
3272
|
-
desktopStyle:
|
|
3275
|
+
desktopStyle: G
|
|
3273
3276
|
}) {
|
|
3274
|
-
return a === "never" ?
|
|
3277
|
+
return a === "never" ? G : y;
|
|
3275
3278
|
}
|
|
3276
|
-
const [b, _] =
|
|
3279
|
+
const [b, _] = H(
|
|
3277
3280
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3278
3281
|
);
|
|
3279
|
-
function
|
|
3282
|
+
function K() {
|
|
3280
3283
|
return {
|
|
3281
3284
|
"--flex-dir": b,
|
|
3282
3285
|
"--flex-dir-tablet": g({
|
|
@@ -3286,12 +3289,12 @@ function Ui(e) {
|
|
|
3286
3289
|
};
|
|
3287
3290
|
}
|
|
3288
3291
|
function E(y) {
|
|
3289
|
-
const
|
|
3292
|
+
const G = y === 0 ? 0 : t, ae = f(y), se = `${G}px`, W = "100%", te = 0;
|
|
3290
3293
|
return {
|
|
3291
3294
|
width: ae,
|
|
3292
3295
|
["marginLeft"]: se,
|
|
3293
3296
|
"--column-width-mobile": v({
|
|
3294
|
-
stackedStyle:
|
|
3297
|
+
stackedStyle: W,
|
|
3295
3298
|
desktopStyle: ae
|
|
3296
3299
|
}),
|
|
3297
3300
|
"--column-margin-left-mobile": v({
|
|
@@ -3299,7 +3302,7 @@ function Ui(e) {
|
|
|
3299
3302
|
desktopStyle: se
|
|
3300
3303
|
}),
|
|
3301
3304
|
"--column-width-tablet": g({
|
|
3302
|
-
stackedStyle:
|
|
3305
|
+
stackedStyle: W,
|
|
3303
3306
|
desktopStyle: ae
|
|
3304
3307
|
}),
|
|
3305
3308
|
"--column-margin-left-tablet": g({
|
|
@@ -3308,15 +3311,15 @@ function Ui(e) {
|
|
|
3308
3311
|
})
|
|
3309
3312
|
};
|
|
3310
3313
|
}
|
|
3311
|
-
function
|
|
3314
|
+
function N(y) {
|
|
3312
3315
|
var ae, se;
|
|
3313
3316
|
return Sr(
|
|
3314
3317
|
((se = (ae = e.builderContext.content) == null ? void 0 : ae.meta) == null ? void 0 : se.breakpoints) || {}
|
|
3315
3318
|
)[y].max;
|
|
3316
3319
|
}
|
|
3317
|
-
function
|
|
3320
|
+
function L() {
|
|
3318
3321
|
return `
|
|
3319
|
-
@media (max-width: ${
|
|
3322
|
+
@media (max-width: ${N("medium")}px) {
|
|
3320
3323
|
.${e.builderBlock.id}-breakpoints {
|
|
3321
3324
|
flex-direction: var(--flex-dir-tablet);
|
|
3322
3325
|
align-items: stretch;
|
|
@@ -3328,7 +3331,7 @@ function Ui(e) {
|
|
|
3328
3331
|
}
|
|
3329
3332
|
}
|
|
3330
3333
|
|
|
3331
|
-
@media (max-width: ${
|
|
3334
|
+
@media (max-width: ${N("small")}px) {
|
|
3332
3335
|
.${e.builderBlock.id}-breakpoints {
|
|
3333
3336
|
flex-direction: var(--flex-dir);
|
|
3334
3337
|
align-items: stretch;
|
|
@@ -3341,25 +3344,25 @@ function Ui(e) {
|
|
|
3341
3344
|
},
|
|
3342
3345
|
`;
|
|
3343
3346
|
}
|
|
3344
|
-
return /* @__PURE__ */ Z(
|
|
3347
|
+
return /* @__PURE__ */ Z(P, { children: [
|
|
3345
3348
|
/* @__PURE__ */ Z(
|
|
3346
3349
|
"div",
|
|
3347
3350
|
{
|
|
3348
3351
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-53636e90`,
|
|
3349
|
-
style:
|
|
3352
|
+
style: K(),
|
|
3350
3353
|
children: [
|
|
3351
|
-
/* @__PURE__ */ p(
|
|
3352
|
-
(
|
|
3354
|
+
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(gt, { styles: L() }) }),
|
|
3355
|
+
($ = e.columns) == null ? void 0 : $.map((y, G) => /* @__PURE__ */ ur(
|
|
3353
3356
|
"div",
|
|
3354
3357
|
{
|
|
3355
3358
|
className: "builder-column div-53636e90-2",
|
|
3356
|
-
style: E(
|
|
3357
|
-
key:
|
|
3359
|
+
style: E(G),
|
|
3360
|
+
key: G
|
|
3358
3361
|
},
|
|
3359
3362
|
/* @__PURE__ */ p(
|
|
3360
3363
|
fn,
|
|
3361
3364
|
{
|
|
3362
|
-
path: `component.options.columns.${
|
|
3365
|
+
path: `component.options.columns.${G}.blocks`,
|
|
3363
3366
|
parent: e.builderBlock.id,
|
|
3364
3367
|
styleProp: {
|
|
3365
3368
|
flexGrow: "1"
|
|
@@ -3446,10 +3449,10 @@ function Vi(e) {
|
|
|
3446
3449
|
};
|
|
3447
3450
|
return e.aspectRatio ? f : void 0;
|
|
3448
3451
|
}
|
|
3449
|
-
return /* @__PURE__ */ Z(
|
|
3450
|
-
/* @__PURE__ */ Z(
|
|
3452
|
+
return /* @__PURE__ */ Z(P, { children: [
|
|
3453
|
+
/* @__PURE__ */ Z(P, { children: [
|
|
3451
3454
|
/* @__PURE__ */ Z("picture", { children: [
|
|
3452
|
-
r() ? /* @__PURE__ */ p(
|
|
3455
|
+
r() ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p("source", { type: "image/webp", srcSet: r() }) }) : null,
|
|
3453
3456
|
/* @__PURE__ */ p(
|
|
3454
3457
|
"img",
|
|
3455
3458
|
{
|
|
@@ -3468,7 +3471,7 @@ function Vi(e) {
|
|
|
3468
3471
|
}
|
|
3469
3472
|
)
|
|
3470
3473
|
] }),
|
|
3471
|
-
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ p(
|
|
3474
|
+
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
3472
3475
|
"div",
|
|
3473
3476
|
{
|
|
3474
3477
|
className: "builder-image-sizer div-dbab4030",
|
|
@@ -3477,8 +3480,8 @@ function Vi(e) {
|
|
|
3477
3480
|
}
|
|
3478
3481
|
}
|
|
3479
3482
|
) }) : null,
|
|
3480
|
-
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(
|
|
3481
|
-
!e.fitContent && e.children ? /* @__PURE__ */ p(
|
|
3483
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(P, { children: e.children }) : null,
|
|
3484
|
+
!e.fitContent && e.children ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p("div", { className: "div-dbab4030-2", children: e.children }) }) : null
|
|
3482
3485
|
] }),
|
|
3483
3486
|
/* @__PURE__ */ p("style", { children: `.img-dbab4030 {
|
|
3484
3487
|
opacity: 1;
|
|
@@ -3778,7 +3781,7 @@ const $i = {
|
|
|
3778
3781
|
}]
|
|
3779
3782
|
};
|
|
3780
3783
|
function Ki(e) {
|
|
3781
|
-
const t = Jt(null), [r, n] =
|
|
3784
|
+
const t = Jt(null), [r, n] = H(() => []), [i, a] = H(() => []);
|
|
3782
3785
|
return ee(() => {
|
|
3783
3786
|
var u;
|
|
3784
3787
|
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window > "u")
|
|
@@ -3842,7 +3845,7 @@ const Gi = {
|
|
|
3842
3845
|
}]
|
|
3843
3846
|
}, zi = ["text/javascript", "application/javascript", "application/ecmascript"], Xi = (e) => zi.includes(e.type);
|
|
3844
3847
|
function Yi(e) {
|
|
3845
|
-
const t = Jt(null), [r, n] =
|
|
3848
|
+
const t = Jt(null), [r, n] = H(() => []), [i, a] = H(() => []), [s, u] = H(() => !1);
|
|
3846
3849
|
function f() {
|
|
3847
3850
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3848
3851
|
return;
|
|
@@ -4252,7 +4255,7 @@ function oo(e) {
|
|
|
4252
4255
|
children: e.lazyLoad ? null : /* @__PURE__ */ p("source", { type: "video/mp4", src: e.video })
|
|
4253
4256
|
}
|
|
4254
4257
|
),
|
|
4255
|
-
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */ p(
|
|
4258
|
+
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
4256
4259
|
"div",
|
|
4257
4260
|
{
|
|
4258
4261
|
style: {
|
|
@@ -4263,7 +4266,7 @@ function oo(e) {
|
|
|
4263
4266
|
}
|
|
4264
4267
|
}
|
|
4265
4268
|
) }) : null,
|
|
4266
|
-
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(
|
|
4269
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
4267
4270
|
"div",
|
|
4268
4271
|
{
|
|
4269
4272
|
style: {
|
|
@@ -4274,7 +4277,7 @@ function oo(e) {
|
|
|
4274
4277
|
children: e.children
|
|
4275
4278
|
}
|
|
4276
4279
|
) }) : null,
|
|
4277
|
-
(g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length && !e.fitContent ? /* @__PURE__ */ p(
|
|
4280
|
+
(g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length && !e.fitContent ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
4278
4281
|
"div",
|
|
4279
4282
|
{
|
|
4280
4283
|
style: {
|
|
@@ -4488,7 +4491,7 @@ const po = (e, t, r = !0) => {
|
|
|
4488
4491
|
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4489
4492
|
}
|
|
4490
4493
|
};
|
|
4491
|
-
}, vo = "0.
|
|
4494
|
+
}, vo = "0.8.0", yo = () => {
|
|
4492
4495
|
Hr("insertMenu", {
|
|
4493
4496
|
name: "_default",
|
|
4494
4497
|
default: !0,
|
|
@@ -4551,8 +4554,8 @@ const xo = (e = {}) => {
|
|
|
4551
4554
|
error: b.message
|
|
4552
4555
|
}
|
|
4553
4556
|
}, "*") : v && typeof v.then == "function" ? v.then((_) => {
|
|
4554
|
-
var
|
|
4555
|
-
(
|
|
4557
|
+
var K;
|
|
4558
|
+
(K = window.parent) == null || K.postMessage({
|
|
4556
4559
|
type: "builder.evaluateResult",
|
|
4557
4560
|
data: {
|
|
4558
4561
|
id: f,
|
|
@@ -4572,8 +4575,8 @@ const xo = (e = {}) => {
|
|
|
4572
4575
|
})));
|
|
4573
4576
|
};
|
|
4574
4577
|
function bo(e) {
|
|
4575
|
-
var ae, se,
|
|
4576
|
-
const t = Jt(null), [r, n] =
|
|
4578
|
+
var ae, se, W, te, I, Te, D;
|
|
4579
|
+
const t = Jt(null), [r, n] = H(() => 0);
|
|
4577
4580
|
function i(j) {
|
|
4578
4581
|
var C, M, V, U, ye;
|
|
4579
4582
|
const T = {
|
|
@@ -4594,8 +4597,8 @@ function bo(e) {
|
|
|
4594
4597
|
content: T
|
|
4595
4598
|
}));
|
|
4596
4599
|
}
|
|
4597
|
-
|
|
4598
|
-
const [a, s] =
|
|
4600
|
+
H(() => 0);
|
|
4601
|
+
const [a, s] = H(
|
|
4599
4602
|
() => !1
|
|
4600
4603
|
);
|
|
4601
4604
|
function u(j) {
|
|
@@ -4632,8 +4635,8 @@ function bo(e) {
|
|
|
4632
4635
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4633
4636
|
});
|
|
4634
4637
|
}
|
|
4635
|
-
const [g, v] =
|
|
4636
|
-
function
|
|
4638
|
+
const [g, v] = H(() => ({})), [b, _] = H(() => !1);
|
|
4639
|
+
function K(j) {
|
|
4637
4640
|
var T, C;
|
|
4638
4641
|
if (e.builderContextSignal.content) {
|
|
4639
4642
|
const M = (T = e.builderContextSignal.content) == null ? void 0 : T.testVariationId, V = (C = e.builderContextSignal.content) == null ? void 0 : C.id;
|
|
@@ -4661,7 +4664,7 @@ function bo(e) {
|
|
|
4661
4664
|
})
|
|
4662
4665
|
);
|
|
4663
4666
|
}
|
|
4664
|
-
function
|
|
4667
|
+
function N({ url: j, key: T }) {
|
|
4665
4668
|
zr(j).then((C) => C.json()).then((C) => {
|
|
4666
4669
|
var V, U;
|
|
4667
4670
|
const M = {
|
|
@@ -4673,20 +4676,20 @@ function bo(e) {
|
|
|
4673
4676
|
console.error("error fetching dynamic data", j, C);
|
|
4674
4677
|
});
|
|
4675
4678
|
}
|
|
4676
|
-
function
|
|
4679
|
+
function L() {
|
|
4677
4680
|
var T, C;
|
|
4678
4681
|
const j = ((C = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : C.httpRequests) ?? {};
|
|
4679
4682
|
Object.entries(j).forEach(([M, V]) => {
|
|
4680
4683
|
if (V && (!g[M] || Ee())) {
|
|
4681
4684
|
const U = E(V);
|
|
4682
|
-
|
|
4685
|
+
N({
|
|
4683
4686
|
url: U,
|
|
4684
4687
|
key: M
|
|
4685
4688
|
});
|
|
4686
4689
|
}
|
|
4687
4690
|
});
|
|
4688
4691
|
}
|
|
4689
|
-
function
|
|
4692
|
+
function $() {
|
|
4690
4693
|
Ee() && window.dispatchEvent(
|
|
4691
4694
|
new CustomEvent(
|
|
4692
4695
|
"builder:component:stateChange",
|
|
@@ -4720,10 +4723,10 @@ function bo(e) {
|
|
|
4720
4723
|
(M = window.parent) == null || M.postMessage(C, "*");
|
|
4721
4724
|
}), window.addEventListener(
|
|
4722
4725
|
"builder:component:stateChangeListenerActivated",
|
|
4723
|
-
|
|
4726
|
+
$
|
|
4724
4727
|
);
|
|
4725
4728
|
}
|
|
4726
|
-
function
|
|
4729
|
+
function G(j) {
|
|
4727
4730
|
const T = new URL(location.href).searchParams, C = T.get("builder.preview"), M = T.get(
|
|
4728
4731
|
`builder.preview.${C}`
|
|
4729
4732
|
), V = T.get("apiKey") || T.get("builder.space");
|
|
@@ -4751,12 +4754,12 @@ function bo(e) {
|
|
|
4751
4754
|
var j;
|
|
4752
4755
|
return (j = t.current) == null || j.addEventListener(
|
|
4753
4756
|
"initpreviewingbldr",
|
|
4754
|
-
|
|
4757
|
+
G
|
|
4755
4758
|
), () => {
|
|
4756
4759
|
var T;
|
|
4757
4760
|
return (T = t.current) == null ? void 0 : T.removeEventListener(
|
|
4758
4761
|
"initpreviewingbldr",
|
|
4759
|
-
|
|
4762
|
+
G
|
|
4760
4763
|
);
|
|
4761
4764
|
};
|
|
4762
4765
|
}, []), ee(() => {
|
|
@@ -4777,7 +4780,7 @@ function bo(e) {
|
|
|
4777
4780
|
}, []), ee(() => {
|
|
4778
4781
|
e.apiKey || Fe.error(
|
|
4779
4782
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4780
|
-
), f(),
|
|
4783
|
+
), f(), L(), $();
|
|
4781
4784
|
}, []), ee(() => {
|
|
4782
4785
|
e.content && i(e.content);
|
|
4783
4786
|
}, [e.content]), ee(() => {
|
|
@@ -4787,20 +4790,20 @@ function bo(e) {
|
|
|
4787
4790
|
(se = (ae = e.builderContextSignal.content) == null ? void 0 : ae.data) == null ? void 0 : se.jsCode,
|
|
4788
4791
|
e.builderContextSignal.rootState
|
|
4789
4792
|
]), ee(() => {
|
|
4790
|
-
|
|
4791
|
-
}, [(te = (
|
|
4792
|
-
|
|
4793
|
+
L();
|
|
4794
|
+
}, [(te = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : te.httpRequests]), ee(() => {
|
|
4795
|
+
$();
|
|
4793
4796
|
}, [e.builderContextSignal.rootState]), ee(() => () => {
|
|
4794
4797
|
Ie() && (window.removeEventListener("message", u), window.removeEventListener(
|
|
4795
4798
|
"builder:component:stateChangeListenerActivated",
|
|
4796
|
-
|
|
4799
|
+
$
|
|
4797
4800
|
));
|
|
4798
|
-
}, []), /* @__PURE__ */ p(Zt.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(
|
|
4801
|
+
}, []), /* @__PURE__ */ p(Zt.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ ur(
|
|
4799
4802
|
"div",
|
|
4800
4803
|
{
|
|
4801
4804
|
key: r,
|
|
4802
4805
|
ref: t,
|
|
4803
|
-
onClick: (j) =>
|
|
4806
|
+
onClick: (j) => K(j),
|
|
4804
4807
|
"builder-content-id": (I = e.builderContextSignal.content) == null ? void 0 : I.id,
|
|
4805
4808
|
"builder-model": e.model,
|
|
4806
4809
|
...e.showContent ? {} : {
|
|
@@ -4848,7 +4851,7 @@ font-weight: ${s};
|
|
|
4848
4851
|
contentId: t
|
|
4849
4852
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4850
4853
|
function Co(e) {
|
|
4851
|
-
const [t, r] =
|
|
4854
|
+
const [t, r] = H(
|
|
4852
4855
|
() => `
|
|
4853
4856
|
${ko({
|
|
4854
4857
|
cssCode: e.cssCode,
|
|
@@ -4903,25 +4906,25 @@ const Eo = ({
|
|
|
4903
4906
|
meta: e == null ? void 0 : e.meta
|
|
4904
4907
|
} : void 0;
|
|
4905
4908
|
function lr(e) {
|
|
4906
|
-
var f, g, v, b, _,
|
|
4907
|
-
const [t, r] =
|
|
4909
|
+
var f, g, v, b, _, K, E;
|
|
4910
|
+
const [t, r] = H(
|
|
4908
4911
|
() => {
|
|
4909
|
-
var
|
|
4912
|
+
var N, L;
|
|
4910
4913
|
return ho({
|
|
4911
4914
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4912
|
-
variationId: (
|
|
4915
|
+
variationId: (N = e.content) == null ? void 0 : N.testVariationId,
|
|
4913
4916
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4914
|
-
contentId: (
|
|
4917
|
+
contentId: (L = e.content) == null ? void 0 : L.id
|
|
4915
4918
|
});
|
|
4916
4919
|
}
|
|
4917
4920
|
);
|
|
4918
|
-
function n(
|
|
4919
|
-
u((
|
|
4920
|
-
...
|
|
4921
|
-
rootState:
|
|
4921
|
+
function n(N) {
|
|
4922
|
+
u((L) => ({
|
|
4923
|
+
...L,
|
|
4924
|
+
rootState: N
|
|
4922
4925
|
}));
|
|
4923
4926
|
}
|
|
4924
|
-
const [i, a] =
|
|
4927
|
+
const [i, a] = H(
|
|
4925
4928
|
() => [
|
|
4926
4929
|
...ir(),
|
|
4927
4930
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
@@ -4932,16 +4935,16 @@ function lr(e) {
|
|
|
4932
4935
|
...Gn,
|
|
4933
4936
|
...e.customComponents || []
|
|
4934
4937
|
].reduce(
|
|
4935
|
-
(
|
|
4936
|
-
...
|
|
4937
|
-
[
|
|
4938
|
-
component:
|
|
4939
|
-
...zn(
|
|
4938
|
+
(N, { component: L, ...$ }) => ({
|
|
4939
|
+
...N,
|
|
4940
|
+
[$.name]: {
|
|
4941
|
+
component: L,
|
|
4942
|
+
...zn($)
|
|
4940
4943
|
}
|
|
4941
4944
|
}),
|
|
4942
4945
|
{}
|
|
4943
4946
|
)
|
|
4944
|
-
), [s, u] =
|
|
4947
|
+
), [s, u] = H(() => ({
|
|
4945
4948
|
content: Io({
|
|
4946
4949
|
content: e.content,
|
|
4947
4950
|
data: e.data
|
|
@@ -4966,9 +4969,9 @@ function lr(e) {
|
|
|
4966
4969
|
...Gn,
|
|
4967
4970
|
...e.customComponents || []
|
|
4968
4971
|
].reduce(
|
|
4969
|
-
(
|
|
4970
|
-
...
|
|
4971
|
-
[
|
|
4972
|
+
(N, { component: L, ...$ }) => ({
|
|
4973
|
+
...N,
|
|
4974
|
+
[$.name]: zn($)
|
|
4972
4975
|
}),
|
|
4973
4976
|
{}
|
|
4974
4977
|
),
|
|
@@ -4995,8 +4998,8 @@ function lr(e) {
|
|
|
4995
4998
|
builderContextSignal: s,
|
|
4996
4999
|
setBuilderContextSignal: u,
|
|
4997
5000
|
children: [
|
|
4998
|
-
e.isSsrAbTest ? /* @__PURE__ */ p(
|
|
4999
|
-
/* @__PURE__ */ p(
|
|
5001
|
+
e.isSsrAbTest ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(Yt, { scriptStr: t }) }) : null,
|
|
5002
|
+
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
5000
5003
|
Co,
|
|
5001
5004
|
{
|
|
5002
5005
|
contentId: (f = s.content) == null ? void 0 : f.id,
|
|
@@ -5007,7 +5010,7 @@ function lr(e) {
|
|
|
5007
5010
|
/* @__PURE__ */ p(
|
|
5008
5011
|
fn,
|
|
5009
5012
|
{
|
|
5010
|
-
blocks: (E = (
|
|
5013
|
+
blocks: (E = (K = s.content) == null ? void 0 : K.data) == null ? void 0 : E.blocks,
|
|
5011
5014
|
context: s,
|
|
5012
5015
|
registeredComponents: i
|
|
5013
5016
|
}
|
|
@@ -5020,7 +5023,7 @@ function lr(e) {
|
|
|
5020
5023
|
}
|
|
5021
5024
|
function Ir(e) {
|
|
5022
5025
|
var s, u;
|
|
5023
|
-
const [t, r] =
|
|
5026
|
+
const [t, r] = H(
|
|
5024
5027
|
() => lo({
|
|
5025
5028
|
canTrack: dt(e.canTrack),
|
|
5026
5029
|
content: e.content
|
|
@@ -5050,9 +5053,9 @@ function Ir(e) {
|
|
|
5050
5053
|
});
|
|
5051
5054
|
}
|
|
5052
5055
|
return ee(() => {
|
|
5053
|
-
}, []), /* @__PURE__ */ Z(
|
|
5054
|
-
!e.__isNestedRender && tt !== "reactNative" ? /* @__PURE__ */ p(
|
|
5055
|
-
t ? /* @__PURE__ */ Z(
|
|
5056
|
+
}, []), /* @__PURE__ */ Z(P, { children: [
|
|
5057
|
+
!e.__isNestedRender && tt !== "reactNative" ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(Yt, { scriptStr: uo() }) }) : null,
|
|
5058
|
+
t ? /* @__PURE__ */ Z(P, { children: [
|
|
5056
5059
|
/* @__PURE__ */ p(
|
|
5057
5060
|
gt,
|
|
5058
5061
|
{
|
|
@@ -5131,7 +5134,7 @@ function jo(e) {
|
|
|
5131
5134
|
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5132
5135
|
].filter(Boolean).join(" ");
|
|
5133
5136
|
}
|
|
5134
|
-
const [r, n] =
|
|
5137
|
+
const [r, n] = H(() => {
|
|
5135
5138
|
var f;
|
|
5136
5139
|
return (f = e.symbol) == null ? void 0 : f.content;
|
|
5137
5140
|
});
|