@builder.io/sdk-react-nextjs 0.16.0 → 0.16.1
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/blocks-exports.cjs +11 -11
- package/lib/browser/blocks-exports.mjs +240 -206
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-d8d62ced.cjs → server-entry-555ce264.cjs} +1 -1
- package/lib/browser/{server-entry-86458005.js → server-entry-8a4d2728.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +5 -5
- package/lib/edge/blocks-exports.mjs +48 -14
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{server-entry-d8d62ced.cjs → server-entry-555ce264.cjs} +1 -1
- package/lib/edge/{server-entry-86458005.js → server-entry-8a4d2728.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +11 -11
- package/lib/node/blocks-exports.mjs +229 -195
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-6421aefe.cjs → node-runtime-1e70fe16.cjs} +1 -1
- package/lib/node/{node-runtime-423addf8.js → node-runtime-753c71f6.js} +1 -1
- package/lib/node/{server-entry-6f84d0f2.cjs → server-entry-61a8c25a.cjs} +1 -1
- package/lib/node/{server-entry-1644208f.js → server-entry-e47775d7.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/cjs/components/content/components/styles.d.ts +2 -1
- package/types/cjs/components/content-variants/content-variants.types.d.ts +4 -0
- package/types/cjs/components/inlined-script.d.ts +2 -1
- package/types/cjs/components/inlined-styles.d.ts +2 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/context/types.d.ts +1 -0
- package/types/cjs/types/builder-props.d.ts +3 -0
- package/types/esm/components/content/components/styles.d.ts +2 -1
- package/types/esm/components/content-variants/content-variants.types.d.ts +4 -0
- package/types/esm/components/inlined-script.d.ts +2 -1
- package/types/esm/components/inlined-styles.d.ts +2 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/context/types.d.ts +1 -0
- package/types/esm/types/builder-props.d.ts +3 -0
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
var Ne = Object.defineProperty;
|
|
3
3
|
var Ae = (e, t, n) => t in e ? Ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var ee = (e, t, n) => (Ae(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { TARGET as H, checkIsDefined as K, logger as J, isBrowser as z, fastClone as ie, isEditing as V, init as Ve, getDefaultCanTrack as q, _track as ue, isPreviewing as $e, createEditorListener as Fe, fetch as Le, registerInsertMenu as je, setupBrowserForEditing as De, createRegisterComponentMessage as Oe, fetchOneEntry as
|
|
7
|
-
import { getFunctionArguments as Me, runInNode as Ue, parseCode as _e, getBuilderGlobals as Ke, set as ze } from "./node-runtime-
|
|
5
|
+
import { jsx as l, Fragment as I, jsxs as P } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as H, checkIsDefined as K, logger as J, isBrowser as z, fastClone as ie, isEditing as V, init as Ve, getDefaultCanTrack as q, _track as ue, isPreviewing as $e, createEditorListener as Fe, fetch as Le, registerInsertMenu as je, setupBrowserForEditing as De, createRegisterComponentMessage as Oe, fetchOneEntry as pe, serializeComponentInfo as me, handleABTestingSync as He } from "./server-entry-e47775d7.js";
|
|
7
|
+
import { getFunctionArguments as Me, runInNode as Ue, parseCode as _e, getBuilderGlobals as Ke, set as ze } from "./node-runtime-753c71f6.js";
|
|
8
8
|
import { useRef as oe, useState as N, useEffect as R, createContext as qe } from "react";
|
|
9
9
|
import { useRouter as Ye } from "next/navigation";
|
|
10
10
|
import "lru-cache";
|
|
11
11
|
const Je = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Qe = (e) => typeof e == "string" && Je.has(e.toLowerCase());
|
|
12
12
|
function ae(e) {
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ l(I, { children: Qe(e.TagName) ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(I, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
14
14
|
}
|
|
15
15
|
const D = () => {
|
|
16
16
|
switch (H) {
|
|
@@ -40,7 +40,7 @@ function Ge(e) {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ l(
|
|
44
44
|
ae,
|
|
45
45
|
{
|
|
46
46
|
attributes: t(),
|
|
@@ -64,14 +64,14 @@ const Ze = ({
|
|
|
64
64
|
event: i,
|
|
65
65
|
localState: o,
|
|
66
66
|
rootSetState: a,
|
|
67
|
-
rootState:
|
|
67
|
+
rootState: c
|
|
68
68
|
}) => {
|
|
69
69
|
const r = Me({
|
|
70
70
|
builder: t,
|
|
71
71
|
context: n,
|
|
72
72
|
event: i,
|
|
73
73
|
state: ke({
|
|
74
|
-
rootState:
|
|
74
|
+
rootState: c,
|
|
75
75
|
localState: o,
|
|
76
76
|
rootSetState: a
|
|
77
77
|
})
|
|
@@ -91,8 +91,8 @@ function ke({
|
|
|
91
91
|
return typeof a == "object" && a !== null ? ke({
|
|
92
92
|
rootState: a,
|
|
93
93
|
localState: void 0,
|
|
94
|
-
rootSetState: n ? (
|
|
95
|
-
i[o] =
|
|
94
|
+
rootSetState: n ? (c) => {
|
|
95
|
+
i[o] = c, n(i);
|
|
96
96
|
} : void 0
|
|
97
97
|
}) : a;
|
|
98
98
|
},
|
|
@@ -140,14 +140,14 @@ function O({
|
|
|
140
140
|
rootState: i,
|
|
141
141
|
rootSetState: o,
|
|
142
142
|
event: a,
|
|
143
|
-
isExpression:
|
|
143
|
+
isExpression: c = !0,
|
|
144
144
|
enableCache: r
|
|
145
145
|
}) {
|
|
146
146
|
if (e === "")
|
|
147
147
|
return;
|
|
148
148
|
const s = {
|
|
149
149
|
code: _e(e, {
|
|
150
|
-
isExpression:
|
|
150
|
+
isExpression: c
|
|
151
151
|
}),
|
|
152
152
|
builder: Ke(),
|
|
153
153
|
context: t,
|
|
@@ -184,7 +184,7 @@ const it = ({
|
|
|
184
184
|
}) => {
|
|
185
185
|
if (!e.bindings)
|
|
186
186
|
return e;
|
|
187
|
-
const a = ie(e),
|
|
187
|
+
const a = ie(e), c = {
|
|
188
188
|
...a,
|
|
189
189
|
properties: {
|
|
190
190
|
...a.properties
|
|
@@ -202,9 +202,9 @@ const it = ({
|
|
|
202
202
|
context: t,
|
|
203
203
|
enableCache: !0
|
|
204
204
|
});
|
|
205
|
-
ze(
|
|
205
|
+
ze(c, r, d);
|
|
206
206
|
}
|
|
207
|
-
return
|
|
207
|
+
return c;
|
|
208
208
|
};
|
|
209
209
|
function Y({
|
|
210
210
|
block: e,
|
|
@@ -214,14 +214,14 @@ function Y({
|
|
|
214
214
|
rootState: o,
|
|
215
215
|
rootSetState: a
|
|
216
216
|
}) {
|
|
217
|
-
const
|
|
217
|
+
const c = e;
|
|
218
218
|
return n ? it({
|
|
219
|
-
block:
|
|
219
|
+
block: c,
|
|
220
220
|
localState: i,
|
|
221
221
|
rootState: o,
|
|
222
222
|
rootSetState: a,
|
|
223
223
|
context: t
|
|
224
|
-
}) :
|
|
224
|
+
}) : c;
|
|
225
225
|
}
|
|
226
226
|
const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", Ce = (e) => Object.entries(e).map(([n, i]) => {
|
|
227
227
|
if (typeof i == "string")
|
|
@@ -266,7 +266,7 @@ function Ie(e) {
|
|
|
266
266
|
return e;
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
const
|
|
269
|
+
const ct = ({
|
|
270
270
|
block: e,
|
|
271
271
|
context: t,
|
|
272
272
|
registeredComponents: n
|
|
@@ -288,7 +288,7 @@ const lt = ({
|
|
|
288
288
|
console.warn(`
|
|
289
289
|
Could not find a registered component named "${i}".
|
|
290
290
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
291
|
-
},
|
|
291
|
+
}, lt = ({
|
|
292
292
|
block: e,
|
|
293
293
|
context: t
|
|
294
294
|
}) => {
|
|
@@ -308,7 +308,7 @@ const lt = ({
|
|
|
308
308
|
});
|
|
309
309
|
if (!Array.isArray(o))
|
|
310
310
|
return;
|
|
311
|
-
const a = n.collection.split(".").pop(),
|
|
311
|
+
const a = n.collection.split(".").pop(), c = n.itemName || (a ? a + "Item" : "item");
|
|
312
312
|
return o.map((s, d) => ({
|
|
313
313
|
context: {
|
|
314
314
|
...t,
|
|
@@ -316,8 +316,8 @@ const lt = ({
|
|
|
316
316
|
...t.localState,
|
|
317
317
|
$index: d,
|
|
318
318
|
$item: s,
|
|
319
|
-
[
|
|
320
|
-
[`$${
|
|
319
|
+
[c]: s,
|
|
320
|
+
[`$${c}Index`]: d
|
|
321
321
|
}
|
|
322
322
|
},
|
|
323
323
|
block: i
|
|
@@ -386,11 +386,12 @@ const lt = ({
|
|
|
386
386
|
}, n;
|
|
387
387
|
};
|
|
388
388
|
function Q(e) {
|
|
389
|
-
return /* @__PURE__ */
|
|
389
|
+
return /* @__PURE__ */ l(
|
|
390
390
|
"style",
|
|
391
391
|
{
|
|
392
392
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
393
|
-
"data-id": e.id
|
|
393
|
+
"data-id": e.id,
|
|
394
|
+
nonce: e.nonce
|
|
394
395
|
}
|
|
395
396
|
);
|
|
396
397
|
}
|
|
@@ -414,15 +415,15 @@ function ft(e) {
|
|
|
414
415
|
rootSetState: e.context.rootSetState,
|
|
415
416
|
context: e.context.context,
|
|
416
417
|
shouldEvaluateBindings: !0
|
|
417
|
-
}), a = o.responsiveStyles,
|
|
418
|
-
((S =
|
|
418
|
+
}), a = o.responsiveStyles, c = e.context.content, r = Te(
|
|
419
|
+
((S = c == null ? void 0 : c.meta) == null ? void 0 : S.breakpoints) || {}
|
|
419
420
|
), s = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, m = a == null ? void 0 : a.small, u = o.id;
|
|
420
421
|
if (!u)
|
|
421
422
|
return "";
|
|
422
423
|
const h = s ? U({
|
|
423
424
|
className: u,
|
|
424
425
|
styles: s
|
|
425
|
-
}) : "",
|
|
426
|
+
}) : "", p = d ? U({
|
|
426
427
|
className: u,
|
|
427
428
|
styles: d,
|
|
428
429
|
mediaQuery: fe(
|
|
@@ -453,12 +454,19 @@ function ft(e) {
|
|
|
453
454
|
}
|
|
454
455
|
return [
|
|
455
456
|
h,
|
|
456
|
-
|
|
457
|
+
p,
|
|
457
458
|
w,
|
|
458
459
|
A
|
|
459
460
|
].join(" ");
|
|
460
461
|
};
|
|
461
|
-
return /* @__PURE__ */
|
|
462
|
+
return /* @__PURE__ */ l(I, { children: n() && t() ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
|
|
463
|
+
Q,
|
|
464
|
+
{
|
|
465
|
+
id: "builderio-block",
|
|
466
|
+
styles: n(),
|
|
467
|
+
nonce: e.context.nonce
|
|
468
|
+
}
|
|
469
|
+
) }) : null });
|
|
462
470
|
}
|
|
463
471
|
function ht(e) {
|
|
464
472
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -480,17 +488,17 @@ function Re(e) {
|
|
|
480
488
|
if (!n.hasOwnProperty(o))
|
|
481
489
|
continue;
|
|
482
490
|
const a = n[o];
|
|
483
|
-
let
|
|
491
|
+
let c = gt(o);
|
|
484
492
|
if (e.stripPrefix)
|
|
485
493
|
switch (H) {
|
|
486
494
|
case "vue":
|
|
487
|
-
|
|
495
|
+
c = c.replace("v-on:", "");
|
|
488
496
|
break;
|
|
489
497
|
case "svelte":
|
|
490
|
-
|
|
498
|
+
c = c.replace("on:", "");
|
|
491
499
|
break;
|
|
492
500
|
}
|
|
493
|
-
t[
|
|
501
|
+
t[c] = bt(a, e);
|
|
494
502
|
}
|
|
495
503
|
return t;
|
|
496
504
|
}
|
|
@@ -499,16 +507,16 @@ function yt({
|
|
|
499
507
|
}) {
|
|
500
508
|
return e;
|
|
501
509
|
}
|
|
502
|
-
const
|
|
510
|
+
const vt = (e) => ({
|
|
503
511
|
href: e.href
|
|
504
512
|
});
|
|
505
|
-
function
|
|
513
|
+
function ce({
|
|
506
514
|
block: e,
|
|
507
515
|
context: t
|
|
508
516
|
}) {
|
|
509
517
|
var i;
|
|
510
518
|
const n = {
|
|
511
|
-
...
|
|
519
|
+
...vt(e),
|
|
512
520
|
...e.properties,
|
|
513
521
|
"builder-id": e.id,
|
|
514
522
|
style: rt({
|
|
@@ -523,12 +531,12 @@ function le({
|
|
|
523
531
|
block: e
|
|
524
532
|
});
|
|
525
533
|
}
|
|
526
|
-
function
|
|
527
|
-
return /* @__PURE__ */
|
|
534
|
+
function xt(e) {
|
|
535
|
+
return /* @__PURE__ */ l(
|
|
528
536
|
ae,
|
|
529
537
|
{
|
|
530
538
|
TagName: e.Wrapper,
|
|
531
|
-
attributes:
|
|
539
|
+
attributes: ce({
|
|
532
540
|
block: e.block,
|
|
533
541
|
context: e.context
|
|
534
542
|
}),
|
|
@@ -547,7 +555,7 @@ function vt(e) {
|
|
|
547
555
|
function St(e) {
|
|
548
556
|
function t() {
|
|
549
557
|
return e.includeBlockProps ? {
|
|
550
|
-
...
|
|
558
|
+
...ce({
|
|
551
559
|
block: e.block,
|
|
552
560
|
context: e.context
|
|
553
561
|
}),
|
|
@@ -560,16 +568,16 @@ function St(e) {
|
|
|
560
568
|
})
|
|
561
569
|
} : {};
|
|
562
570
|
}
|
|
563
|
-
return /* @__PURE__ */
|
|
571
|
+
return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
564
572
|
}
|
|
565
|
-
const
|
|
573
|
+
const pt = ({
|
|
566
574
|
componentOptions: e,
|
|
567
575
|
builderBlock: t,
|
|
568
576
|
context: n,
|
|
569
577
|
componentRef: i,
|
|
570
578
|
includeBlockProps: o,
|
|
571
579
|
isInteractive: a,
|
|
572
|
-
contextValue:
|
|
580
|
+
contextValue: c
|
|
573
581
|
}) => {
|
|
574
582
|
const r = {
|
|
575
583
|
...e,
|
|
@@ -578,9 +586,9 @@ const xt = ({
|
|
|
578
586
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
579
587
|
*/
|
|
580
588
|
...o ? {
|
|
581
|
-
attributes:
|
|
589
|
+
attributes: ce({
|
|
582
590
|
block: t,
|
|
583
|
-
context:
|
|
591
|
+
context: c
|
|
584
592
|
})
|
|
585
593
|
} : {}
|
|
586
594
|
};
|
|
@@ -595,10 +603,10 @@ const xt = ({
|
|
|
595
603
|
function he(e) {
|
|
596
604
|
var n;
|
|
597
605
|
const t = e.isInteractive ? St : e.componentRef;
|
|
598
|
-
return /* @__PURE__ */
|
|
606
|
+
return /* @__PURE__ */ l(I, { children: e.componentRef ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
|
|
599
607
|
t,
|
|
600
608
|
{
|
|
601
|
-
...
|
|
609
|
+
...pt({
|
|
602
610
|
componentOptions: e.componentOptions,
|
|
603
611
|
builderBlock: e.builderBlock,
|
|
604
612
|
context: e.context,
|
|
@@ -608,7 +616,7 @@ function he(e) {
|
|
|
608
616
|
isInteractive: e.isInteractive,
|
|
609
617
|
contextValue: e.context
|
|
610
618
|
}),
|
|
611
|
-
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */
|
|
619
|
+
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ l(
|
|
612
620
|
G,
|
|
613
621
|
{
|
|
614
622
|
block: i,
|
|
@@ -623,7 +631,7 @@ function he(e) {
|
|
|
623
631
|
}
|
|
624
632
|
function kt(e) {
|
|
625
633
|
const t = e.repeatContext;
|
|
626
|
-
return /* @__PURE__ */
|
|
634
|
+
return /* @__PURE__ */ l(
|
|
627
635
|
G,
|
|
628
636
|
{
|
|
629
637
|
block: e.block,
|
|
@@ -636,13 +644,13 @@ function kt(e) {
|
|
|
636
644
|
function G(e) {
|
|
637
645
|
var s, d, m;
|
|
638
646
|
const t = function() {
|
|
639
|
-
return
|
|
647
|
+
return ct({
|
|
640
648
|
block: e.block,
|
|
641
649
|
context: e.context,
|
|
642
650
|
registeredComponents: e.registeredComponents
|
|
643
651
|
});
|
|
644
652
|
}, n = function() {
|
|
645
|
-
return
|
|
653
|
+
return lt({
|
|
646
654
|
block: e.block,
|
|
647
655
|
context: e.context
|
|
648
656
|
});
|
|
@@ -657,22 +665,22 @@ function G(e) {
|
|
|
657
665
|
shouldEvaluateBindings: !0
|
|
658
666
|
});
|
|
659
667
|
}, o = function() {
|
|
660
|
-
var
|
|
661
|
-
return e.block.tagName === "a" || ((
|
|
668
|
+
var p;
|
|
669
|
+
return e.block.tagName === "a" || ((p = i().properties) == null ? void 0 : p.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
662
670
|
}, a = function() {
|
|
663
671
|
var w, y;
|
|
664
672
|
if ((w = e.block.repeat) != null && w.collection)
|
|
665
673
|
return !!((y = n()) != null && y.length);
|
|
666
674
|
const h = "hide" in i() ? i().hide : !1;
|
|
667
675
|
return ("show" in i() ? i().show : !0) && !h;
|
|
668
|
-
},
|
|
669
|
-
var
|
|
670
|
-
return !((
|
|
676
|
+
}, c = function() {
|
|
677
|
+
var p, w;
|
|
678
|
+
return !((p = t()) != null && p.component) && !n() ? (w = i().children) != null ? w : [] : [];
|
|
671
679
|
}, r = function() {
|
|
672
|
-
var h,
|
|
680
|
+
var h, p, w, y;
|
|
673
681
|
return {
|
|
674
682
|
blockChildren: (h = i().children) != null ? h : [],
|
|
675
|
-
componentRef: (
|
|
683
|
+
componentRef: (p = t()) == null ? void 0 : p.component,
|
|
676
684
|
componentOptions: {
|
|
677
685
|
...Xe(i()),
|
|
678
686
|
...ut(t(), i()),
|
|
@@ -691,9 +699,9 @@ function G(e) {
|
|
|
691
699
|
isInteractive: !((y = t()) != null && y.isRSC)
|
|
692
700
|
};
|
|
693
701
|
};
|
|
694
|
-
return /* @__PURE__ */
|
|
695
|
-
/* @__PURE__ */
|
|
696
|
-
(s = t()) != null && s.noWrap ? /* @__PURE__ */
|
|
702
|
+
return /* @__PURE__ */ l(I, { children: a() ? /* @__PURE__ */ P(I, { children: [
|
|
703
|
+
/* @__PURE__ */ l(ft, { block: e.block, context: e.context }),
|
|
704
|
+
(s = t()) != null && s.noWrap ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
|
|
697
705
|
he,
|
|
698
706
|
{
|
|
699
707
|
componentRef: r().componentRef,
|
|
@@ -706,7 +714,7 @@ function G(e) {
|
|
|
706
714
|
includeBlockProps: r().includeBlockProps,
|
|
707
715
|
isInteractive: r().isInteractive
|
|
708
716
|
}
|
|
709
|
-
) }) : /* @__PURE__ */
|
|
717
|
+
) }) : /* @__PURE__ */ l(I, { children: n() ? /* @__PURE__ */ l(I, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ l(
|
|
710
718
|
kt,
|
|
711
719
|
{
|
|
712
720
|
repeatContext: u.context,
|
|
@@ -716,13 +724,13 @@ function G(e) {
|
|
|
716
724
|
},
|
|
717
725
|
h
|
|
718
726
|
)) }) : /* @__PURE__ */ P(
|
|
719
|
-
|
|
727
|
+
xt,
|
|
720
728
|
{
|
|
721
729
|
Wrapper: o(),
|
|
722
730
|
block: i(),
|
|
723
731
|
context: e.context,
|
|
724
732
|
children: [
|
|
725
|
-
/* @__PURE__ */
|
|
733
|
+
/* @__PURE__ */ l(
|
|
726
734
|
he,
|
|
727
735
|
{
|
|
728
736
|
componentRef: r().componentRef,
|
|
@@ -736,7 +744,7 @@ function G(e) {
|
|
|
736
744
|
isInteractive: r().isInteractive
|
|
737
745
|
}
|
|
738
746
|
),
|
|
739
|
-
(d =
|
|
747
|
+
(d = c()) == null ? void 0 : d.map((u) => /* @__PURE__ */ l(
|
|
740
748
|
G,
|
|
741
749
|
{
|
|
742
750
|
block: u,
|
|
@@ -783,7 +791,7 @@ function Ct(e) {
|
|
|
783
791
|
));
|
|
784
792
|
}
|
|
785
793
|
return /* @__PURE__ */ P(I, { children: [
|
|
786
|
-
/* @__PURE__ */
|
|
794
|
+
/* @__PURE__ */ l(
|
|
787
795
|
e.BlocksWrapper,
|
|
788
796
|
{
|
|
789
797
|
className: t() + " props-blocks-wrapper-7cd1560e",
|
|
@@ -797,16 +805,16 @@ function Ct(e) {
|
|
|
797
805
|
children: e.children
|
|
798
806
|
}
|
|
799
807
|
),
|
|
800
|
-
/* @__PURE__ */
|
|
808
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-7cd1560e {
|
|
801
809
|
display: flex;
|
|
802
810
|
flex-direction: column;
|
|
803
811
|
align-items: stretch;
|
|
804
812
|
}` })
|
|
805
813
|
] });
|
|
806
814
|
}
|
|
807
|
-
function
|
|
815
|
+
function le(e) {
|
|
808
816
|
var t, n, i;
|
|
809
|
-
return /* @__PURE__ */
|
|
817
|
+
return /* @__PURE__ */ l(
|
|
810
818
|
Ct,
|
|
811
819
|
{
|
|
812
820
|
blocks: e.blocks,
|
|
@@ -815,7 +823,7 @@ function ce(e) {
|
|
|
815
823
|
styleProp: e.styleProp,
|
|
816
824
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
817
825
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
818
|
-
children: e.blocks ? /* @__PURE__ */
|
|
826
|
+
children: e.blocks ? /* @__PURE__ */ l(I, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
819
827
|
G,
|
|
820
828
|
{
|
|
821
829
|
block: o,
|
|
@@ -836,7 +844,7 @@ function wt(e) {
|
|
|
836
844
|
}, a = function(b) {
|
|
837
845
|
var k;
|
|
838
846
|
return ((k = n[b]) == null ? void 0 : k.width) || 100 / n.length;
|
|
839
|
-
},
|
|
847
|
+
}, c = function(b) {
|
|
840
848
|
const k = a(b), T = t * (n.length - 1) * (k / 100);
|
|
841
849
|
return `calc(${k}% - ${T}px)`;
|
|
842
850
|
}, r = function({
|
|
@@ -858,7 +866,7 @@ function wt(e) {
|
|
|
858
866
|
})
|
|
859
867
|
};
|
|
860
868
|
}, u = function(b) {
|
|
861
|
-
const k = b === 0 ? 0 : t, T =
|
|
869
|
+
const k = b === 0 ? 0 : t, T = c(b), B = `${k}px`, L = "100%", j = 0;
|
|
862
870
|
return {
|
|
863
871
|
...{
|
|
864
872
|
display: "flex",
|
|
@@ -889,7 +897,7 @@ function wt(e) {
|
|
|
889
897
|
return Te(
|
|
890
898
|
((B = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : B.breakpoints) || {}
|
|
891
899
|
)[b].max;
|
|
892
|
-
},
|
|
900
|
+
}, p = function() {
|
|
893
901
|
return `
|
|
894
902
|
@media (max-width: ${h("medium")}px) {
|
|
895
903
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -928,18 +936,25 @@ function wt(e) {
|
|
|
928
936
|
/* @__PURE__ */ P(
|
|
929
937
|
"div",
|
|
930
938
|
{
|
|
931
|
-
className: It((y = e.builderBlock) == null ? void 0 : y.id) + " div-
|
|
939
|
+
className: It((y = e.builderBlock) == null ? void 0 : y.id) + " div-c89348d2",
|
|
932
940
|
style: m(),
|
|
933
941
|
children: [
|
|
934
|
-
/* @__PURE__ */
|
|
935
|
-
|
|
942
|
+
/* @__PURE__ */ l(
|
|
943
|
+
Q,
|
|
944
|
+
{
|
|
945
|
+
id: "builderio-columns",
|
|
946
|
+
styles: p(),
|
|
947
|
+
nonce: e.builderContext.nonce
|
|
948
|
+
}
|
|
949
|
+
),
|
|
950
|
+
(A = e.columns) == null ? void 0 : A.map((S, b) => /* @__PURE__ */ l(
|
|
936
951
|
ae,
|
|
937
952
|
{
|
|
938
953
|
TagName: o(S),
|
|
939
954
|
actionAttributes: {},
|
|
940
955
|
attributes: w(S, b),
|
|
941
|
-
children: /* @__PURE__ */
|
|
942
|
-
|
|
956
|
+
children: /* @__PURE__ */ l(
|
|
957
|
+
le,
|
|
943
958
|
{
|
|
944
959
|
path: `component.options.columns.${b}.blocks`,
|
|
945
960
|
parent: e.builderBlock.id,
|
|
@@ -958,14 +973,14 @@ function wt(e) {
|
|
|
958
973
|
]
|
|
959
974
|
}
|
|
960
975
|
),
|
|
961
|
-
/* @__PURE__ */
|
|
976
|
+
/* @__PURE__ */ l("style", { children: `.div-c89348d2 {
|
|
962
977
|
display: flex;
|
|
963
978
|
line-height: normal;
|
|
964
979
|
}` })
|
|
965
980
|
] });
|
|
966
981
|
}
|
|
967
982
|
function Tt(e) {
|
|
968
|
-
return /* @__PURE__ */
|
|
983
|
+
return /* @__PURE__ */ l("span", { children: e.children });
|
|
969
984
|
}
|
|
970
985
|
function ge(e) {
|
|
971
986
|
return e.replace(/http(s)?:/, "");
|
|
@@ -998,7 +1013,7 @@ function te(e) {
|
|
|
998
1013
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Pt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
999
1014
|
}
|
|
1000
1015
|
function Et(e) {
|
|
1001
|
-
var o, a,
|
|
1016
|
+
var o, a, c, r, s, d;
|
|
1002
1017
|
function t() {
|
|
1003
1018
|
var h;
|
|
1004
1019
|
const u = e.image || e.src;
|
|
@@ -1030,8 +1045,8 @@ function Et(e) {
|
|
|
1030
1045
|
return /* @__PURE__ */ P(I, { children: [
|
|
1031
1046
|
/* @__PURE__ */ P(I, { children: [
|
|
1032
1047
|
/* @__PURE__ */ P("picture", { children: [
|
|
1033
|
-
n() ? /* @__PURE__ */
|
|
1034
|
-
/* @__PURE__ */
|
|
1048
|
+
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1049
|
+
/* @__PURE__ */ l(
|
|
1035
1050
|
"img",
|
|
1036
1051
|
{
|
|
1037
1052
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1050,7 +1065,7 @@ function Et(e) {
|
|
|
1050
1065
|
}
|
|
1051
1066
|
)
|
|
1052
1067
|
] }),
|
|
1053
|
-
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */
|
|
1068
|
+
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
|
|
1054
1069
|
"div",
|
|
1055
1070
|
{
|
|
1056
1071
|
className: "builder-image-sizer div-ac3dff4a",
|
|
@@ -1059,10 +1074,10 @@ function Et(e) {
|
|
|
1059
1074
|
}
|
|
1060
1075
|
}
|
|
1061
1076
|
) : null,
|
|
1062
|
-
(r = (
|
|
1063
|
-
!e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */
|
|
1077
|
+
(r = (c = e.builderBlock) == null ? void 0 : c.children) != null && r.length && e.fitContent ? /* @__PURE__ */ l(I, { children: e.children }) : null,
|
|
1078
|
+
!e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */ l("div", { className: "div-ac3dff4a-2", children: e.children }) : null
|
|
1064
1079
|
] }),
|
|
1065
|
-
/* @__PURE__ */
|
|
1080
|
+
/* @__PURE__ */ l("style", { children: `.img-ac3dff4a {
|
|
1066
1081
|
opacity: 1;
|
|
1067
1082
|
transition: opacity 0.2s ease-in-out;
|
|
1068
1083
|
}.div-ac3dff4a {
|
|
@@ -1082,7 +1097,7 @@ function Et(e) {
|
|
|
1082
1097
|
] });
|
|
1083
1098
|
}
|
|
1084
1099
|
function Bt(e) {
|
|
1085
|
-
return /* @__PURE__ */
|
|
1100
|
+
return /* @__PURE__ */ l(
|
|
1086
1101
|
"section",
|
|
1087
1102
|
{
|
|
1088
1103
|
...e.attributes,
|
|
@@ -1371,7 +1386,7 @@ const Wt = {
|
|
|
1371
1386
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1372
1387
|
onChange: (e) => {
|
|
1373
1388
|
e.delete("srcset"), e.delete("noWebp");
|
|
1374
|
-
function n(
|
|
1389
|
+
function n(c, r = 6e4) {
|
|
1375
1390
|
return new Promise((s, d) => {
|
|
1376
1391
|
const m = document.createElement("img");
|
|
1377
1392
|
let u = !1;
|
|
@@ -1379,21 +1394,21 @@ const Wt = {
|
|
|
1379
1394
|
u = !0, s(m);
|
|
1380
1395
|
}, m.addEventListener("error", (h) => {
|
|
1381
1396
|
console.warn("Image load failed", h.error), d(h.error);
|
|
1382
|
-
}), m.src =
|
|
1397
|
+
}), m.src = c, setTimeout(() => {
|
|
1383
1398
|
u || d(new Error("Image load timed out"));
|
|
1384
1399
|
}, r);
|
|
1385
1400
|
});
|
|
1386
1401
|
}
|
|
1387
|
-
function i(
|
|
1388
|
-
return Math.round(
|
|
1402
|
+
function i(c) {
|
|
1403
|
+
return Math.round(c * 1e3) / 1e3;
|
|
1389
1404
|
}
|
|
1390
1405
|
const o = e.get("image"), a = e.get("aspectRatio");
|
|
1391
|
-
if (fetch(o).then((
|
|
1392
|
-
|
|
1406
|
+
if (fetch(o).then((c) => c.blob()).then((c) => {
|
|
1407
|
+
c.type.includes("svg") && e.set("noWebp", !0);
|
|
1393
1408
|
}), o && (!a || a === 0.7041))
|
|
1394
|
-
return n(o).then((
|
|
1409
|
+
return n(o).then((c) => {
|
|
1395
1410
|
const r = e.get("aspectRatio");
|
|
1396
|
-
e.get("image") === o && (!r || r === 0.7041) &&
|
|
1411
|
+
e.get("image") === o && (!r || r === 0.7041) && c.width && c.height && (e.set("aspectRatio", i(c.height / c.width)), e.set("height", c.height), e.set("width", c.width));
|
|
1397
1412
|
});
|
|
1398
1413
|
}
|
|
1399
1414
|
}, {
|
|
@@ -1517,7 +1532,7 @@ const Wt = {
|
|
|
1517
1532
|
};
|
|
1518
1533
|
function Lt(e) {
|
|
1519
1534
|
var t, n, i;
|
|
1520
|
-
return /* @__PURE__ */
|
|
1535
|
+
return /* @__PURE__ */ l(
|
|
1521
1536
|
"div",
|
|
1522
1537
|
{
|
|
1523
1538
|
style: {
|
|
@@ -1526,8 +1541,8 @@ function Lt(e) {
|
|
|
1526
1541
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1527
1542
|
"builder-slot": e.name
|
|
1528
1543
|
},
|
|
1529
|
-
children: /* @__PURE__ */
|
|
1530
|
-
|
|
1544
|
+
children: /* @__PURE__ */ l(
|
|
1545
|
+
le,
|
|
1531
1546
|
{
|
|
1532
1547
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1533
1548
|
path: `symbol.data.${e.name}`,
|
|
@@ -1601,7 +1616,7 @@ const jt = {
|
|
|
1601
1616
|
};
|
|
1602
1617
|
function Ot(e) {
|
|
1603
1618
|
var t;
|
|
1604
|
-
return /* @__PURE__ */
|
|
1619
|
+
return /* @__PURE__ */ l(
|
|
1605
1620
|
"div",
|
|
1606
1621
|
{
|
|
1607
1622
|
className: "builder-text",
|
|
@@ -1641,9 +1656,9 @@ function Mt(e) {
|
|
|
1641
1656
|
var r;
|
|
1642
1657
|
if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
|
|
1643
1658
|
return;
|
|
1644
|
-
const
|
|
1645
|
-
for (let s = 0; s <
|
|
1646
|
-
const d =
|
|
1659
|
+
const c = t.current.getElementsByTagName("script");
|
|
1660
|
+
for (let s = 0; s < c.length; s++) {
|
|
1661
|
+
const d = c[s];
|
|
1647
1662
|
if (d.src) {
|
|
1648
1663
|
if (n.includes(d.src))
|
|
1649
1664
|
continue;
|
|
@@ -1664,7 +1679,7 @@ function Mt(e) {
|
|
|
1664
1679
|
}
|
|
1665
1680
|
}
|
|
1666
1681
|
}
|
|
1667
|
-
}, []), /* @__PURE__ */
|
|
1682
|
+
}, []), /* @__PURE__ */ l(
|
|
1668
1683
|
"div",
|
|
1669
1684
|
{
|
|
1670
1685
|
ref: t,
|
|
@@ -1690,7 +1705,7 @@ const Ut = {
|
|
|
1690
1705
|
}]
|
|
1691
1706
|
}, _t = ["text/javascript", "application/javascript", "application/ecmascript"], Kt = (e) => _t.includes(e.type);
|
|
1692
1707
|
function zt(e) {
|
|
1693
|
-
const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []), [
|
|
1708
|
+
const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []), [c, r] = N(() => !1);
|
|
1694
1709
|
function s() {
|
|
1695
1710
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1696
1711
|
return;
|
|
@@ -1710,8 +1725,8 @@ function zt(e) {
|
|
|
1710
1725
|
}
|
|
1711
1726
|
}
|
|
1712
1727
|
return R(() => {
|
|
1713
|
-
t.current && !
|
|
1714
|
-
}, [t.current,
|
|
1728
|
+
t.current && !c && (r(!0), s());
|
|
1729
|
+
}, [t.current, c]), /* @__PURE__ */ l(
|
|
1715
1730
|
"div",
|
|
1716
1731
|
{
|
|
1717
1732
|
className: "builder-embed",
|
|
@@ -1736,7 +1751,7 @@ const qt = {
|
|
|
1736
1751
|
static: !0
|
|
1737
1752
|
};
|
|
1738
1753
|
function Yt(e) {
|
|
1739
|
-
return /* @__PURE__ */
|
|
1754
|
+
return /* @__PURE__ */ l(
|
|
1740
1755
|
"img",
|
|
1741
1756
|
{
|
|
1742
1757
|
style: {
|
|
@@ -1836,7 +1851,7 @@ const Jt = {
|
|
|
1836
1851
|
}
|
|
1837
1852
|
};
|
|
1838
1853
|
function Qt(e) {
|
|
1839
|
-
var i, o, a,
|
|
1854
|
+
var i, o, a, c, r, s, d;
|
|
1840
1855
|
function t() {
|
|
1841
1856
|
return {
|
|
1842
1857
|
...e.autoPlay === !0 ? {
|
|
@@ -1868,7 +1883,7 @@ function Qt(e) {
|
|
|
1868
1883
|
position: "relative"
|
|
1869
1884
|
},
|
|
1870
1885
|
children: [
|
|
1871
|
-
/* @__PURE__ */
|
|
1886
|
+
/* @__PURE__ */ l(
|
|
1872
1887
|
"video",
|
|
1873
1888
|
{
|
|
1874
1889
|
className: "builder-video",
|
|
@@ -1890,10 +1905,10 @@ function Qt(e) {
|
|
|
1890
1905
|
},
|
|
1891
1906
|
src: e.video || "no-src",
|
|
1892
1907
|
poster: e.posterImage,
|
|
1893
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
1908
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
|
|
1894
1909
|
}
|
|
1895
1910
|
),
|
|
1896
|
-
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */
|
|
1911
|
+
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
|
|
1897
1912
|
"div",
|
|
1898
1913
|
{
|
|
1899
1914
|
style: {
|
|
@@ -1904,7 +1919,7 @@ function Qt(e) {
|
|
|
1904
1919
|
}
|
|
1905
1920
|
}
|
|
1906
1921
|
) : null,
|
|
1907
|
-
(r = (
|
|
1922
|
+
(r = (c = e.builderBlock) == null ? void 0 : c.children) != null && r.length && e.fitContent ? /* @__PURE__ */ l(
|
|
1908
1923
|
"div",
|
|
1909
1924
|
{
|
|
1910
1925
|
style: {
|
|
@@ -1915,7 +1930,7 @@ function Qt(e) {
|
|
|
1915
1930
|
children: e.children
|
|
1916
1931
|
}
|
|
1917
1932
|
) : null,
|
|
1918
|
-
(d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */
|
|
1933
|
+
(d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(
|
|
1919
1934
|
"div",
|
|
1920
1935
|
{
|
|
1921
1936
|
style: {
|
|
@@ -2082,11 +2097,12 @@ const Gt = () => [{
|
|
|
2082
2097
|
"${t}", "${e}", ${Be}
|
|
2083
2098
|
)`;
|
|
2084
2099
|
function ne(e) {
|
|
2085
|
-
return /* @__PURE__ */
|
|
2100
|
+
return /* @__PURE__ */ l(
|
|
2086
2101
|
"script",
|
|
2087
2102
|
{
|
|
2088
2103
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
2089
|
-
"data-id": e.id
|
|
2104
|
+
"data-id": e.id,
|
|
2105
|
+
nonce: e.nonce || ""
|
|
2090
2106
|
}
|
|
2091
2107
|
);
|
|
2092
2108
|
}
|
|
@@ -2102,12 +2118,13 @@ const rn = qe({
|
|
|
2102
2118
|
componentInfos: {},
|
|
2103
2119
|
inheritedStyles: {},
|
|
2104
2120
|
BlocksWrapper: "div",
|
|
2105
|
-
BlocksWrapperProps: {}
|
|
2121
|
+
BlocksWrapperProps: {},
|
|
2122
|
+
nonce: ""
|
|
2106
2123
|
});
|
|
2107
2124
|
function ye(e) {
|
|
2108
2125
|
return Math.round(e * 1e3) / 1e3;
|
|
2109
2126
|
}
|
|
2110
|
-
const
|
|
2127
|
+
const cn = (e, t, n = !0) => {
|
|
2111
2128
|
if (!(e instanceof HTMLElement))
|
|
2112
2129
|
return null;
|
|
2113
2130
|
let i = n ? e : e.parentElement;
|
|
@@ -2118,28 +2135,28 @@ const ln = (e, t, n = !0) => {
|
|
|
2118
2135
|
return i;
|
|
2119
2136
|
} while (i = i.parentElement);
|
|
2120
2137
|
return null;
|
|
2121
|
-
},
|
|
2138
|
+
}, ln = (e) => cn(e, (t) => {
|
|
2122
2139
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2123
2140
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2124
|
-
}),
|
|
2141
|
+
}), ve = ({
|
|
2125
2142
|
event: e,
|
|
2126
2143
|
target: t
|
|
2127
2144
|
}) => {
|
|
2128
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ye(i / n.width),
|
|
2145
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ye(i / n.width), c = ye(o / n.height);
|
|
2129
2146
|
return {
|
|
2130
2147
|
x: a,
|
|
2131
|
-
y:
|
|
2148
|
+
y: c
|
|
2132
2149
|
};
|
|
2133
2150
|
}, sn = (e) => {
|
|
2134
|
-
const t = e.target, n = t &&
|
|
2151
|
+
const t = e.target, n = t && ln(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2135
2152
|
return {
|
|
2136
2153
|
targetBuilderElement: i || void 0,
|
|
2137
2154
|
metadata: {
|
|
2138
|
-
targetOffset: t ?
|
|
2155
|
+
targetOffset: t ? ve({
|
|
2139
2156
|
event: e,
|
|
2140
2157
|
target: t
|
|
2141
2158
|
}) : void 0,
|
|
2142
|
-
builderTargetOffset: n ?
|
|
2159
|
+
builderTargetOffset: n ? ve({
|
|
2143
2160
|
event: e,
|
|
2144
2161
|
target: n
|
|
2145
2162
|
}) : void 0,
|
|
@@ -2153,7 +2170,7 @@ async function dn({
|
|
|
2153
2170
|
}) {
|
|
2154
2171
|
return Ve(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
|
|
2155
2172
|
}
|
|
2156
|
-
function
|
|
2173
|
+
function xe(e, ...t) {
|
|
2157
2174
|
const n = Object(e);
|
|
2158
2175
|
for (let i = 1; i < arguments.length; i++) {
|
|
2159
2176
|
const o = arguments[i];
|
|
@@ -2167,8 +2184,8 @@ function un(e) {
|
|
|
2167
2184
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2168
2185
|
}
|
|
2169
2186
|
function mn(e, t) {
|
|
2170
|
-
const n = fn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles,
|
|
2171
|
-
for (const r of
|
|
2187
|
+
const n = fn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, c = [o, a];
|
|
2188
|
+
for (const r of c)
|
|
2172
2189
|
for (const s of n)
|
|
2173
2190
|
s in r || (r[s] = i[s]);
|
|
2174
2191
|
}
|
|
@@ -2186,16 +2203,16 @@ function hn(e) {
|
|
|
2186
2203
|
return;
|
|
2187
2204
|
}
|
|
2188
2205
|
Array.from(t).forEach((n) => {
|
|
2189
|
-
mn(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
2190
|
-
n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
2206
|
+
mn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", xe(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2207
|
+
n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), xe(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2191
2208
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2192
2209
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2193
2210
|
});
|
|
2194
2211
|
});
|
|
2195
2212
|
}
|
|
2196
2213
|
const gn = (e) => {
|
|
2197
|
-
var a,
|
|
2198
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
2214
|
+
var a, c;
|
|
2215
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (c = e.fileUrl) != null ? c : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
2199
2216
|
let o = "";
|
|
2200
2217
|
if (i && t && n && (o += `
|
|
2201
2218
|
@font-face {
|
|
@@ -2227,7 +2244,7 @@ font-weight: ${r};
|
|
|
2227
2244
|
}, yn = ({
|
|
2228
2245
|
cssCode: e,
|
|
2229
2246
|
contentId: t
|
|
2230
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
2247
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", vn = `
|
|
2231
2248
|
.builder-button {
|
|
2232
2249
|
all: unset;
|
|
2233
2250
|
}
|
|
@@ -2244,29 +2261,29 @@ font-weight: ${r};
|
|
|
2244
2261
|
text-align: inherit;
|
|
2245
2262
|
font-family: inherit;
|
|
2246
2263
|
}
|
|
2247
|
-
`,
|
|
2248
|
-
function
|
|
2264
|
+
`, xn = (e) => e ? "" : vn, Sn = (e) => `variant-${e}`;
|
|
2265
|
+
function pn(e) {
|
|
2249
2266
|
var B, L, j, X, Z, se, de;
|
|
2250
2267
|
const t = oe(null);
|
|
2251
2268
|
function n(g) {
|
|
2252
|
-
var
|
|
2269
|
+
var v, x;
|
|
2253
2270
|
const f = {
|
|
2254
2271
|
...e.builderContextSignal.rootState,
|
|
2255
2272
|
...g
|
|
2256
2273
|
};
|
|
2257
|
-
e.builderContextSignal.rootSetState ? (
|
|
2274
|
+
e.builderContextSignal.rootSetState ? (x = (v = e.builderContextSignal).rootSetState) == null || x.call(v, f) : e.builderContextSignal.rootState = f;
|
|
2258
2275
|
}
|
|
2259
2276
|
function i(g) {
|
|
2260
|
-
var
|
|
2277
|
+
var v, x, C, E, M;
|
|
2261
2278
|
const f = {
|
|
2262
2279
|
...e.builderContextSignal.content,
|
|
2263
2280
|
...g,
|
|
2264
2281
|
data: {
|
|
2265
|
-
...(
|
|
2282
|
+
...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
|
|
2266
2283
|
...g == null ? void 0 : g.data
|
|
2267
2284
|
},
|
|
2268
2285
|
meta: {
|
|
2269
|
-
...(
|
|
2286
|
+
...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
|
|
2270
2287
|
...g == null ? void 0 : g.meta,
|
|
2271
2288
|
breakpoints: ((C = g == null ? void 0 : g.meta) == null ? void 0 : C.breakpoints) || ((M = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : M.breakpoints)
|
|
2272
2289
|
}
|
|
@@ -2284,7 +2301,7 @@ function xn(e) {
|
|
|
2284
2301
|
"aria-hidden": !0
|
|
2285
2302
|
};
|
|
2286
2303
|
}
|
|
2287
|
-
const [a,
|
|
2304
|
+
const [a, c] = N(
|
|
2288
2305
|
() => e.contentWrapper || "div"
|
|
2289
2306
|
);
|
|
2290
2307
|
function r(g) {
|
|
@@ -2294,10 +2311,10 @@ function xn(e) {
|
|
|
2294
2311
|
callbacks: {
|
|
2295
2312
|
configureSdk: (f) => {
|
|
2296
2313
|
var C;
|
|
2297
|
-
const { breakpoints:
|
|
2298
|
-
!
|
|
2314
|
+
const { breakpoints: v, contentId: x } = f;
|
|
2315
|
+
!x || x !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || v && i({
|
|
2299
2316
|
meta: {
|
|
2300
|
-
breakpoints:
|
|
2317
|
+
breakpoints: v
|
|
2301
2318
|
}
|
|
2302
2319
|
});
|
|
2303
2320
|
},
|
|
@@ -2311,8 +2328,8 @@ function xn(e) {
|
|
|
2311
2328
|
})(g);
|
|
2312
2329
|
}
|
|
2313
2330
|
function s() {
|
|
2314
|
-
var f,
|
|
2315
|
-
const g = (
|
|
2331
|
+
var f, v;
|
|
2332
|
+
const g = (v = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : v.jsCode;
|
|
2316
2333
|
g && O({
|
|
2317
2334
|
code: g,
|
|
2318
2335
|
context: e.context || {},
|
|
@@ -2325,26 +2342,26 @@ function xn(e) {
|
|
|
2325
2342
|
enableCache: !1
|
|
2326
2343
|
});
|
|
2327
2344
|
}
|
|
2328
|
-
const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [
|
|
2345
|
+
const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [p, w] = N(() => !1);
|
|
2329
2346
|
function y(g) {
|
|
2330
|
-
var f,
|
|
2347
|
+
var f, v;
|
|
2331
2348
|
if (e.builderContextSignal.content) {
|
|
2332
|
-
const
|
|
2349
|
+
const x = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, C = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
|
|
2333
2350
|
ue({
|
|
2334
2351
|
type: "click",
|
|
2335
2352
|
canTrack: q(e.canTrack),
|
|
2336
2353
|
contentId: C,
|
|
2337
2354
|
apiKey: e.apiKey,
|
|
2338
|
-
variationId:
|
|
2355
|
+
variationId: x !== C ? x : void 0,
|
|
2339
2356
|
...sn(g),
|
|
2340
|
-
unique: !
|
|
2357
|
+
unique: !p
|
|
2341
2358
|
});
|
|
2342
2359
|
}
|
|
2343
|
-
|
|
2360
|
+
p || w(!0);
|
|
2344
2361
|
}
|
|
2345
2362
|
function A() {
|
|
2346
|
-
var f,
|
|
2347
|
-
const g = (
|
|
2363
|
+
var f, v, x;
|
|
2364
|
+
const g = (x = (v = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : v.httpRequests) != null ? x : {};
|
|
2348
2365
|
Object.entries(g).forEach(([C, E]) => {
|
|
2349
2366
|
if (!E || u[C] || d[C] && !V())
|
|
2350
2367
|
return;
|
|
@@ -2402,19 +2419,19 @@ function xn(e) {
|
|
|
2402
2419
|
}), Object.values(
|
|
2403
2420
|
e.builderContextSignal.componentInfos
|
|
2404
2421
|
).forEach((f) => {
|
|
2405
|
-
var
|
|
2406
|
-
const
|
|
2407
|
-
(
|
|
2422
|
+
var x;
|
|
2423
|
+
const v = Oe(f);
|
|
2424
|
+
(x = window.parent) == null || x.postMessage(v, "*");
|
|
2408
2425
|
}), window.addEventListener(
|
|
2409
2426
|
"builder:component:stateChangeListenerActivated",
|
|
2410
2427
|
S
|
|
2411
2428
|
);
|
|
2412
2429
|
}
|
|
2413
2430
|
function k(g) {
|
|
2414
|
-
const f = new URL(location.href).searchParams,
|
|
2415
|
-
`builder.overrides.${
|
|
2431
|
+
const f = new URL(location.href).searchParams, v = f.get("builder.preview"), x = f.get(
|
|
2432
|
+
`builder.overrides.${v}`
|
|
2416
2433
|
), C = f.get("apiKey") || f.get("builder.space");
|
|
2417
|
-
|
|
2434
|
+
v === e.model && C === e.apiKey && (!e.content || x === e.content.id) && pe({
|
|
2418
2435
|
model: e.model,
|
|
2419
2436
|
apiKey: e.apiKey,
|
|
2420
2437
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -2451,13 +2468,13 @@ function xn(e) {
|
|
|
2451
2468
|
var g, f;
|
|
2452
2469
|
if (z()) {
|
|
2453
2470
|
if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
|
|
2454
|
-
const
|
|
2471
|
+
const x = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, C = (f = e.builderContextSignal.content) == null ? void 0 : f.id, E = e.apiKey;
|
|
2455
2472
|
ue({
|
|
2456
2473
|
type: "impression",
|
|
2457
2474
|
canTrack: !0,
|
|
2458
2475
|
contentId: C,
|
|
2459
2476
|
apiKey: E,
|
|
2460
|
-
variationId:
|
|
2477
|
+
variationId: x !== C ? x : void 0
|
|
2461
2478
|
});
|
|
2462
2479
|
}
|
|
2463
2480
|
$e() && V();
|
|
@@ -2484,7 +2501,7 @@ function xn(e) {
|
|
|
2484
2501
|
"builder:component:stateChangeListenerActivated",
|
|
2485
2502
|
S
|
|
2486
2503
|
));
|
|
2487
|
-
}, []), /* @__PURE__ */
|
|
2504
|
+
}, []), /* @__PURE__ */ l(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
2488
2505
|
a,
|
|
2489
2506
|
{
|
|
2490
2507
|
ref: t,
|
|
@@ -2509,18 +2526,25 @@ ${yn({
|
|
|
2509
2526
|
${bn({
|
|
2510
2527
|
customFonts: e.customFonts
|
|
2511
2528
|
})}
|
|
2512
|
-
${
|
|
2529
|
+
${xn(e.isNestedRender)}
|
|
2513
2530
|
`.trim();
|
|
2514
|
-
return /* @__PURE__ */
|
|
2531
|
+
return /* @__PURE__ */ l(
|
|
2532
|
+
Q,
|
|
2533
|
+
{
|
|
2534
|
+
id: "builderio-content",
|
|
2535
|
+
styles: t,
|
|
2536
|
+
nonce: e.nonce
|
|
2537
|
+
}
|
|
2538
|
+
);
|
|
2515
2539
|
}
|
|
2516
2540
|
const Cn = ({
|
|
2517
2541
|
content: e,
|
|
2518
2542
|
data: t,
|
|
2519
2543
|
locale: n
|
|
2520
2544
|
}) => {
|
|
2521
|
-
var a,
|
|
2545
|
+
var a, c, r;
|
|
2522
2546
|
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
2523
|
-
return (r = (
|
|
2547
|
+
return (r = (c = e == null ? void 0 : e.data) == null ? void 0 : c.inputs) == null || r.forEach((s) => {
|
|
2524
2548
|
s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
|
|
2525
2549
|
}), {
|
|
2526
2550
|
...i,
|
|
@@ -2542,7 +2566,7 @@ const Cn = ({
|
|
|
2542
2566
|
meta: e == null ? void 0 : e.meta
|
|
2543
2567
|
} : void 0;
|
|
2544
2568
|
function Se(e) {
|
|
2545
|
-
var o, a,
|
|
2569
|
+
var o, a, c, r, s, d, m, u, h;
|
|
2546
2570
|
const t = an({
|
|
2547
2571
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2548
2572
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
@@ -2552,8 +2576,8 @@ function Se(e) {
|
|
|
2552
2576
|
...be(),
|
|
2553
2577
|
...e.customComponents || []
|
|
2554
2578
|
].reduce(
|
|
2555
|
-
(
|
|
2556
|
-
...
|
|
2579
|
+
(p, { component: w, ...y }) => ({
|
|
2580
|
+
...p,
|
|
2557
2581
|
[y.name]: {
|
|
2558
2582
|
component: w,
|
|
2559
2583
|
...me(y)
|
|
@@ -2580,19 +2604,21 @@ function Se(e) {
|
|
|
2580
2604
|
...be(),
|
|
2581
2605
|
...e.customComponents || []
|
|
2582
2606
|
].reduce(
|
|
2583
|
-
(
|
|
2584
|
-
...
|
|
2607
|
+
(p, { component: w, ...y }) => ({
|
|
2608
|
+
...p,
|
|
2585
2609
|
[y.name]: me(y)
|
|
2586
2610
|
}),
|
|
2587
2611
|
{}
|
|
2588
2612
|
),
|
|
2589
2613
|
inheritedStyles: {},
|
|
2590
2614
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
2591
|
-
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
2615
|
+
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
2616
|
+
nonce: e.nonce || ""
|
|
2592
2617
|
};
|
|
2593
2618
|
return /* @__PURE__ */ P(
|
|
2594
|
-
|
|
2619
|
+
pn,
|
|
2595
2620
|
{
|
|
2621
|
+
nonce: e.nonce,
|
|
2596
2622
|
content: e.content,
|
|
2597
2623
|
data: e.data,
|
|
2598
2624
|
model: e.model,
|
|
@@ -2607,24 +2633,26 @@ function Se(e) {
|
|
|
2607
2633
|
contentWrapperProps: e.contentWrapperProps,
|
|
2608
2634
|
trustedHosts: e.trustedHosts,
|
|
2609
2635
|
children: [
|
|
2610
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
2636
|
+
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
2611
2637
|
ne,
|
|
2612
2638
|
{
|
|
2613
2639
|
id: "builderio-variant-visibility",
|
|
2614
|
-
scriptStr: t
|
|
2640
|
+
scriptStr: t,
|
|
2641
|
+
nonce: e.nonce || ""
|
|
2615
2642
|
}
|
|
2616
2643
|
) : null,
|
|
2617
|
-
/* @__PURE__ */
|
|
2644
|
+
/* @__PURE__ */ l(
|
|
2618
2645
|
kn,
|
|
2619
2646
|
{
|
|
2647
|
+
nonce: e.nonce || "",
|
|
2620
2648
|
isNestedRender: e.isNestedRender,
|
|
2621
|
-
contentId: (
|
|
2649
|
+
contentId: (c = i.content) == null ? void 0 : c.id,
|
|
2622
2650
|
cssCode: (s = (r = i.content) == null ? void 0 : r.data) == null ? void 0 : s.cssCode,
|
|
2623
2651
|
customFonts: (m = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
|
|
2624
2652
|
}
|
|
2625
2653
|
),
|
|
2626
|
-
/* @__PURE__ */
|
|
2627
|
-
|
|
2654
|
+
/* @__PURE__ */ l(
|
|
2655
|
+
le,
|
|
2628
2656
|
{
|
|
2629
2657
|
blocks: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.blocks,
|
|
2630
2658
|
context: i,
|
|
@@ -2663,33 +2691,37 @@ function wn(e) {
|
|
|
2663
2691
|
});
|
|
2664
2692
|
};
|
|
2665
2693
|
return /* @__PURE__ */ P(I, { children: [
|
|
2666
|
-
!e.isNestedRender && H !== "reactNative" ? /* @__PURE__ */
|
|
2694
|
+
!e.isNestedRender && H !== "reactNative" ? /* @__PURE__ */ l(
|
|
2667
2695
|
ne,
|
|
2668
2696
|
{
|
|
2669
2697
|
id: "builderio-init-variants-fns",
|
|
2670
|
-
scriptStr: nn()
|
|
2698
|
+
scriptStr: nn(),
|
|
2699
|
+
nonce: e.nonce || ""
|
|
2671
2700
|
}
|
|
2672
2701
|
) : null,
|
|
2673
2702
|
t ? /* @__PURE__ */ P(I, { children: [
|
|
2674
|
-
/* @__PURE__ */
|
|
2703
|
+
/* @__PURE__ */ l(
|
|
2675
2704
|
Q,
|
|
2676
2705
|
{
|
|
2677
2706
|
id: "builderio-variants",
|
|
2678
|
-
styles: i()
|
|
2707
|
+
styles: i(),
|
|
2708
|
+
nonce: e.nonce || ""
|
|
2679
2709
|
}
|
|
2680
2710
|
),
|
|
2681
|
-
/* @__PURE__ */
|
|
2711
|
+
/* @__PURE__ */ l(
|
|
2682
2712
|
ne,
|
|
2683
2713
|
{
|
|
2684
2714
|
id: "builderio-variants-visibility",
|
|
2685
|
-
scriptStr: n()
|
|
2715
|
+
scriptStr: n(),
|
|
2716
|
+
nonce: e.nonce || ""
|
|
2686
2717
|
}
|
|
2687
2718
|
),
|
|
2688
|
-
(a = _(e.content)) == null ? void 0 : a.map((
|
|
2719
|
+
(a = _(e.content)) == null ? void 0 : a.map((c) => /* @__PURE__ */ l(
|
|
2689
2720
|
Se,
|
|
2690
2721
|
{
|
|
2691
2722
|
isNestedRender: e.isNestedRender,
|
|
2692
|
-
|
|
2723
|
+
nonce: e.nonce,
|
|
2724
|
+
content: c,
|
|
2693
2725
|
showContent: !1,
|
|
2694
2726
|
model: e.model,
|
|
2695
2727
|
data: e.data,
|
|
@@ -2708,12 +2740,13 @@ function wn(e) {
|
|
|
2708
2740
|
contentWrapperProps: e.contentWrapperProps,
|
|
2709
2741
|
trustedHosts: e.trustedHosts
|
|
2710
2742
|
},
|
|
2711
|
-
|
|
2743
|
+
c.testVariationId
|
|
2712
2744
|
))
|
|
2713
2745
|
] }) : null,
|
|
2714
|
-
/* @__PURE__ */
|
|
2746
|
+
/* @__PURE__ */ l(
|
|
2715
2747
|
Se,
|
|
2716
2748
|
{
|
|
2749
|
+
nonce: e.nonce,
|
|
2717
2750
|
isNestedRender: e.isNestedRender,
|
|
2718
2751
|
content: o(),
|
|
2719
2752
|
showContent: !0,
|
|
@@ -2743,7 +2776,7 @@ const Tn = async ({
|
|
|
2743
2776
|
}) => {
|
|
2744
2777
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
2745
2778
|
(e != null && e.apiKey))
|
|
2746
|
-
return
|
|
2779
|
+
return pe({
|
|
2747
2780
|
model: t.model,
|
|
2748
2781
|
apiKey: e.apiKey,
|
|
2749
2782
|
apiVersion: e.apiVersion,
|
|
@@ -2757,7 +2790,7 @@ const Tn = async ({
|
|
|
2757
2790
|
});
|
|
2758
2791
|
};
|
|
2759
2792
|
async function Rn(e) {
|
|
2760
|
-
var a,
|
|
2793
|
+
var a, c, r, s, d;
|
|
2761
2794
|
const t = function() {
|
|
2762
2795
|
return "div";
|
|
2763
2796
|
}, n = function() {
|
|
@@ -2774,15 +2807,16 @@ async function Rn(e) {
|
|
|
2774
2807
|
symbol: e.symbol,
|
|
2775
2808
|
builderContextValue: e.builderContext
|
|
2776
2809
|
});
|
|
2777
|
-
return /* @__PURE__ */
|
|
2810
|
+
return /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
2778
2811
|
wn,
|
|
2779
2812
|
{
|
|
2813
|
+
nonce: e.builderContext.nonce,
|
|
2780
2814
|
isNestedRender: !0,
|
|
2781
2815
|
apiVersion: e.builderContext.apiVersion,
|
|
2782
2816
|
apiKey: e.builderContext.apiKey,
|
|
2783
2817
|
context: {
|
|
2784
2818
|
...e.builderContext.context,
|
|
2785
|
-
symbolId: (
|
|
2819
|
+
symbolId: (c = e.builderBlock) == null ? void 0 : c.id
|
|
2786
2820
|
},
|
|
2787
2821
|
customComponents: Object.values(e.builderComponents),
|
|
2788
2822
|
data: {
|
|
@@ -2800,7 +2834,7 @@ async function Rn(e) {
|
|
|
2800
2834
|
) });
|
|
2801
2835
|
}
|
|
2802
2836
|
export {
|
|
2803
|
-
|
|
2837
|
+
le as Blocks,
|
|
2804
2838
|
rn as BuilderContext,
|
|
2805
2839
|
Ge as Button,
|
|
2806
2840
|
wt as Columns,
|