@builder.io/sdk-react 1.1.1 → 2.0.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/README.md +4 -0
- package/lib/browser/blocks-exports.cjs +25 -25
- package/lib/browser/blocks-exports.mjs +505 -583
- 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-65ef631d.js → server-entry-709e09e3.js} +1 -1
- package/lib/browser/{server-entry-94ed11a2.cjs → server-entry-e0454364.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-72b84877.cjs → accordion-12c2d408.cjs} +1 -1
- package/lib/edge/{accordion-cbe33da4.js → accordion-bd80745a.js} +1 -1
- package/lib/edge/{blocks-88689ec9.js → blocks-6d6258ba.js} +688 -684
- package/lib/edge/{blocks-1afa415a.cjs → blocks-ac8970f1.cjs} +13 -13
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-841d9178.js → button-4e842584.js} +2 -2
- package/lib/edge/{button-25700a5b.cjs → button-c2e45e64.cjs} +1 -1
- package/lib/edge/{columns-17e098f2.js → columns-a51238cc.js} +16 -16
- package/lib/edge/columns-bc2b0674.cjs +28 -0
- package/lib/edge/content-variants-3fe9b1c0.cjs +134 -0
- package/lib/edge/{content-variants-27523e14.js → content-variants-f3c6baad.js} +166 -248
- package/lib/edge/{form-1b0ea78b.js → form-00c8cc55.js} +3 -3
- package/lib/edge/{form-a97b8e7f.cjs → form-b4cdf7cd.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-6096152c.js → get-class-prop-name-1bbed5bf.js} +1 -1
- package/lib/edge/{get-class-prop-name-a119460c.cjs → get-class-prop-name-3c5f7a7d.cjs} +1 -1
- package/lib/edge/{img-f9912657.cjs → img-6671da9a.cjs} +1 -1
- package/lib/edge/{img-ea259737.js → img-e7db1475.js} +1 -1
- 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/{input-0cfeed6a.cjs → input-0f7a9f1c.cjs} +1 -1
- package/lib/edge/{input-32508fbe.js → input-2db47a83.js} +1 -1
- package/lib/edge/{select-d18bf3dd.js → select-2facacf2.js} +1 -1
- package/lib/edge/{select-19d699ed.cjs → select-f0859c5f.cjs} +1 -1
- package/lib/edge/{server-entry-ed17153b.js → server-entry-75aa714e.js} +1 -1
- package/lib/edge/{server-entry-f7ebd44f.cjs → server-entry-ff6a2e2d.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-7c690d3a.js → slot-8159ca1d.js} +3 -3
- package/lib/edge/{slot-c0a5ac83.cjs → slot-aee43b86.cjs} +1 -1
- package/lib/edge/{symbol-e3eb2159.js → symbol-36a155f3.js} +2 -2
- package/lib/edge/{symbol-4c9196cb.cjs → symbol-a244cc31.cjs} +1 -1
- package/lib/edge/{tabs-10e32767.cjs → tabs-4112a80e.cjs} +1 -1
- package/lib/edge/{tabs-46c4603d.js → tabs-f5357a4e.js} +3 -3
- package/lib/node/blocks-exports.cjs +25 -25
- package/lib/node/blocks-exports.mjs +504 -582
- 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-162b3ad2.js → node-runtime-80c4bfc8.js} +1 -1
- package/lib/node/{node-runtime-d5983829.cjs → node-runtime-eb72e084.cjs} +1 -1
- package/lib/node/{server-entry-879010db.cjs → server-entry-b2103255.cjs} +1 -1
- package/lib/node/{server-entry-771cfa6f.js → server-entry-e8ac67b5.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/components/block/block.helpers.d.ts +8 -8
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/columns-c934b550.cjs +0 -28
- package/lib/edge/content-variants-c7dd50a4.cjs +0 -134
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { lazy as y, useRef as le, useState as
|
|
3
|
-
import { isBrowser as
|
|
4
|
-
import { Video as xe, Button as ye, Columns as ve, Fragment as Se, Image as
|
|
5
|
-
import { triggerAnimation as Ve, evaluate as Q, InlinedStyles as ne, ComponentsContext as Re, Blocks as Ee } from "./blocks-
|
|
6
|
-
import "./get-class-prop-name-
|
|
1
|
+
import { jsx as f, jsxs as L, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import { lazy as y, useRef as le, useState as C, useEffect as x } from "react";
|
|
3
|
+
import { isBrowser as H, TARGET as te, isEditing as F, registerInsertMenu as se, setupBrowserForEditing as de, createRegisterComponentMessage as ue, getDefaultCanTrack as W, _track as J, isPreviewing as ce, fetchOneEntry as me, logger as pe, createEditorListener as ge, fetch as fe, fastClone as he, serializeComponentInfo as Y, handleABTestingSync as be } from "./server-entry-75aa714e.js";
|
|
4
|
+
import { Video as xe, Button as ye, Columns as ve, Fragment as Se, Image as Te, Section as ke, Symbol as Ce, Text as Ie, BuilderContext as we } from "./blocks-exports.mjs";
|
|
5
|
+
import { triggerAnimation as Ve, evaluate as Q, InlinedStyles as ne, ComponentsContext as Re, Blocks as Ee } from "./blocks-6d6258ba.js";
|
|
6
|
+
import "./get-class-prop-name-1bbed5bf.js";
|
|
7
7
|
import "./dynamic-renderer-8b343325.js";
|
|
8
|
-
const
|
|
8
|
+
const A = {
|
|
9
9
|
"@type": "@builder.io/sdk:Element",
|
|
10
10
|
layerName: "Accordion item title",
|
|
11
11
|
responsiveStyles: {
|
|
@@ -34,7 +34,7 @@ const W = {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}]
|
|
37
|
-
},
|
|
37
|
+
}, B = {
|
|
38
38
|
"@type": "@builder.io/sdk:Element",
|
|
39
39
|
layerName: "Accordion item detail",
|
|
40
40
|
responsiveStyles: {
|
|
@@ -82,19 +82,19 @@ const W = {
|
|
|
82
82
|
name: "title",
|
|
83
83
|
type: "uiBlocks",
|
|
84
84
|
hideFromUI: !0,
|
|
85
|
-
defaultValue: [
|
|
85
|
+
defaultValue: [A]
|
|
86
86
|
}, {
|
|
87
87
|
name: "detail",
|
|
88
88
|
type: "uiBlocks",
|
|
89
89
|
hideFromUI: !0,
|
|
90
|
-
defaultValue: [
|
|
90
|
+
defaultValue: [B]
|
|
91
91
|
}],
|
|
92
92
|
defaultValue: [{
|
|
93
|
-
title: [
|
|
94
|
-
detail: [
|
|
93
|
+
title: [A],
|
|
94
|
+
detail: [B]
|
|
95
95
|
}, {
|
|
96
|
-
title: [
|
|
97
|
-
detail: [
|
|
96
|
+
title: [A],
|
|
97
|
+
detail: [B]
|
|
98
98
|
}],
|
|
99
99
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
100
100
|
}, {
|
|
@@ -129,7 +129,7 @@ const W = {
|
|
|
129
129
|
builderComponents: !0,
|
|
130
130
|
builderLinkComponent: !0
|
|
131
131
|
}
|
|
132
|
-
}, Pe = y(() => import("./accordion-
|
|
132
|
+
}, Pe = y(() => import("./accordion-bd80745a.js")), We = {
|
|
133
133
|
name: "Core:Button",
|
|
134
134
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
135
135
|
defaultStyles: {
|
|
@@ -163,12 +163,9 @@ const W = {
|
|
|
163
163
|
static: !0,
|
|
164
164
|
noWrap: !0,
|
|
165
165
|
shouldReceiveBuilderProps: {
|
|
166
|
-
builderBlock: !1,
|
|
167
|
-
builderContext: !1,
|
|
168
|
-
builderComponents: !1,
|
|
169
166
|
builderLinkComponent: !0
|
|
170
167
|
}
|
|
171
|
-
},
|
|
168
|
+
}, Ae = {
|
|
172
169
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
173
170
|
name: "Columns",
|
|
174
171
|
isRSC: !0,
|
|
@@ -342,8 +339,8 @@ const W = {
|
|
|
342
339
|
}],
|
|
343
340
|
onChange: (e) => {
|
|
344
341
|
function t() {
|
|
345
|
-
n.forEach((
|
|
346
|
-
|
|
342
|
+
n.forEach((i) => {
|
|
343
|
+
i.delete("width");
|
|
347
344
|
});
|
|
348
345
|
}
|
|
349
346
|
const n = e.get("columns");
|
|
@@ -375,19 +372,13 @@ const W = {
|
|
|
375
372
|
builderComponents: !0,
|
|
376
373
|
builderLinkComponent: !0
|
|
377
374
|
}
|
|
378
|
-
},
|
|
379
|
-
shouldReceiveBuilderProps: {
|
|
380
|
-
builderBlock: !1,
|
|
381
|
-
builderContext: !1,
|
|
382
|
-
builderComponents: !1,
|
|
383
|
-
builderLinkComponent: !1
|
|
384
|
-
},
|
|
375
|
+
}, Be = {
|
|
385
376
|
name: "Fragment",
|
|
386
377
|
static: !0,
|
|
387
378
|
hidden: !0,
|
|
388
379
|
canHaveChildren: !0,
|
|
389
380
|
noWrap: !0
|
|
390
|
-
},
|
|
381
|
+
}, De = {
|
|
391
382
|
name: "Image",
|
|
392
383
|
static: !0,
|
|
393
384
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -407,7 +398,7 @@ const W = {
|
|
|
407
398
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
408
399
|
onChange: (e) => {
|
|
409
400
|
e.delete("srcset"), e.delete("noWebp");
|
|
410
|
-
function n(
|
|
401
|
+
function n(a, o = 6e4) {
|
|
411
402
|
return new Promise((m, h) => {
|
|
412
403
|
const I = document.createElement("img");
|
|
413
404
|
let k = !1;
|
|
@@ -415,21 +406,21 @@ const W = {
|
|
|
415
406
|
k = !0, m(I);
|
|
416
407
|
}, I.addEventListener("error", (w) => {
|
|
417
408
|
console.warn("Image load failed", w.error), h(w.error);
|
|
418
|
-
}), I.src =
|
|
409
|
+
}), I.src = a, setTimeout(() => {
|
|
419
410
|
k || h(new Error("Image load timed out"));
|
|
420
411
|
}, o);
|
|
421
412
|
});
|
|
422
413
|
}
|
|
423
|
-
function a
|
|
424
|
-
return Math.round(
|
|
414
|
+
function i(a) {
|
|
415
|
+
return Math.round(a * 1e3) / 1e3;
|
|
425
416
|
}
|
|
426
417
|
const d = e.get("image"), c = e.get("aspectRatio");
|
|
427
|
-
if (fetch(d).then((
|
|
428
|
-
|
|
418
|
+
if (fetch(d).then((a) => a.blob()).then((a) => {
|
|
419
|
+
a.type.includes("svg") && e.set("noWebp", !0);
|
|
429
420
|
}), d && (!c || c === 0.7041))
|
|
430
|
-
return n(d).then((
|
|
421
|
+
return n(d).then((a) => {
|
|
431
422
|
const o = e.get("aspectRatio");
|
|
432
|
-
e.get("image") === d && (!o || o === 0.7041) &&
|
|
423
|
+
e.get("image") === d && (!o || o === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
433
424
|
});
|
|
434
425
|
}
|
|
435
426
|
}, {
|
|
@@ -493,18 +484,9 @@ const W = {
|
|
|
493
484
|
defaultValue: 0.7041
|
|
494
485
|
}],
|
|
495
486
|
shouldReceiveBuilderProps: {
|
|
496
|
-
builderBlock: !0
|
|
497
|
-
builderContext: !1,
|
|
498
|
-
builderComponents: !1,
|
|
499
|
-
builderLinkComponent: !1
|
|
487
|
+
builderBlock: !0
|
|
500
488
|
}
|
|
501
|
-
},
|
|
502
|
-
shouldReceiveBuilderProps: {
|
|
503
|
-
builderBlock: !1,
|
|
504
|
-
builderContext: !1,
|
|
505
|
-
builderComponents: !1,
|
|
506
|
-
builderLinkComponent: !1
|
|
507
|
-
},
|
|
489
|
+
}, Ue = {
|
|
508
490
|
name: "Core:Section",
|
|
509
491
|
static: !0,
|
|
510
492
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -543,7 +525,7 @@ const W = {
|
|
|
543
525
|
}
|
|
544
526
|
}
|
|
545
527
|
}]
|
|
546
|
-
},
|
|
528
|
+
}, Le = {
|
|
547
529
|
name: "Slot",
|
|
548
530
|
isRSC: !0,
|
|
549
531
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -557,12 +539,9 @@ const W = {
|
|
|
557
539
|
defaultValue: "children"
|
|
558
540
|
}],
|
|
559
541
|
shouldReceiveBuilderProps: {
|
|
560
|
-
|
|
561
|
-
builderContext: !0,
|
|
562
|
-
builderComponents: !1,
|
|
563
|
-
builderLinkComponent: !1
|
|
542
|
+
builderContext: !0
|
|
564
543
|
}
|
|
565
|
-
},
|
|
544
|
+
}, He = y(() => import("./slot-8159ca1d.js")), $e = {
|
|
566
545
|
name: "Symbol",
|
|
567
546
|
noWrap: !0,
|
|
568
547
|
static: !0,
|
|
@@ -601,7 +580,7 @@ const W = {
|
|
|
601
580
|
builderComponents: !0,
|
|
602
581
|
builderLinkComponent: !0
|
|
603
582
|
}
|
|
604
|
-
},
|
|
583
|
+
}, D = {
|
|
605
584
|
"@type": "@builder.io/sdk:Element",
|
|
606
585
|
responsiveStyles: {
|
|
607
586
|
large: {
|
|
@@ -623,7 +602,7 @@ const W = {
|
|
|
623
602
|
text: "New tab"
|
|
624
603
|
}
|
|
625
604
|
}
|
|
626
|
-
},
|
|
605
|
+
}, U = {
|
|
627
606
|
"@type": "@builder.io/sdk:Element",
|
|
628
607
|
responsiveStyles: {
|
|
629
608
|
large: {
|
|
@@ -649,16 +628,16 @@ const W = {
|
|
|
649
628
|
name: "label",
|
|
650
629
|
type: "uiBlocks",
|
|
651
630
|
hideFromUI: !0,
|
|
652
|
-
defaultValue: [
|
|
631
|
+
defaultValue: [D]
|
|
653
632
|
}, {
|
|
654
633
|
name: "content",
|
|
655
634
|
type: "uiBlocks",
|
|
656
635
|
hideFromUI: !0,
|
|
657
|
-
defaultValue: [
|
|
636
|
+
defaultValue: [U]
|
|
658
637
|
}],
|
|
659
638
|
defaultValue: [{
|
|
660
639
|
label: [{
|
|
661
|
-
...
|
|
640
|
+
...D,
|
|
662
641
|
component: {
|
|
663
642
|
name: "Text",
|
|
664
643
|
options: {
|
|
@@ -667,7 +646,7 @@ const W = {
|
|
|
667
646
|
}
|
|
668
647
|
}],
|
|
669
648
|
content: [{
|
|
670
|
-
...
|
|
649
|
+
...U,
|
|
671
650
|
component: {
|
|
672
651
|
name: "Text",
|
|
673
652
|
options: {
|
|
@@ -677,7 +656,7 @@ const W = {
|
|
|
677
656
|
}]
|
|
678
657
|
}, {
|
|
679
658
|
label: [{
|
|
680
|
-
...
|
|
659
|
+
...D,
|
|
681
660
|
component: {
|
|
682
661
|
name: "Text",
|
|
683
662
|
options: {
|
|
@@ -686,7 +665,7 @@ const W = {
|
|
|
686
665
|
}
|
|
687
666
|
}],
|
|
688
667
|
content: [{
|
|
689
|
-
...
|
|
668
|
+
...U,
|
|
690
669
|
component: {
|
|
691
670
|
name: "Text",
|
|
692
671
|
options: {
|
|
@@ -742,12 +721,9 @@ const W = {
|
|
|
742
721
|
builderComponents: !0,
|
|
743
722
|
builderLinkComponent: !0
|
|
744
723
|
}
|
|
745
|
-
}, qe = y(() => import("./tabs-
|
|
724
|
+
}, qe = y(() => import("./tabs-f5357a4e.js")), je = {
|
|
746
725
|
shouldReceiveBuilderProps: {
|
|
747
|
-
builderBlock: !1
|
|
748
|
-
builderContext: !1,
|
|
749
|
-
builderComponents: !1,
|
|
750
|
-
builderLinkComponent: !1
|
|
726
|
+
builderBlock: !1
|
|
751
727
|
},
|
|
752
728
|
name: "Text",
|
|
753
729
|
static: !0,
|
|
@@ -767,12 +743,6 @@ const W = {
|
|
|
767
743
|
textAlign: "center"
|
|
768
744
|
}
|
|
769
745
|
}, Ke = {
|
|
770
|
-
shouldReceiveBuilderProps: {
|
|
771
|
-
builderBlock: !1,
|
|
772
|
-
builderContext: !1,
|
|
773
|
-
builderComponents: !1,
|
|
774
|
-
builderLinkComponent: !1
|
|
775
|
-
},
|
|
776
746
|
name: "Custom Code",
|
|
777
747
|
static: !0,
|
|
778
748
|
requiredPermissions: ["editCode"],
|
|
@@ -794,13 +764,7 @@ const W = {
|
|
|
794
764
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
795
765
|
advanced: !0
|
|
796
766
|
}]
|
|
797
|
-
}, Me = y(() => import("./custom-code-7786788e.js")),
|
|
798
|
-
shouldReceiveBuilderProps: {
|
|
799
|
-
builderBlock: !1,
|
|
800
|
-
builderContext: !1,
|
|
801
|
-
builderComponents: !1,
|
|
802
|
-
builderLinkComponent: !1
|
|
803
|
-
},
|
|
767
|
+
}, Me = y(() => import("./custom-code-7786788e.js")), Oe = {
|
|
804
768
|
name: "Embed",
|
|
805
769
|
static: !0,
|
|
806
770
|
inputs: [{
|
|
@@ -808,27 +772,14 @@ const W = {
|
|
|
808
772
|
type: "url",
|
|
809
773
|
required: !0,
|
|
810
774
|
defaultValue: "",
|
|
811
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
812
|
-
onChange: (e) => {
|
|
813
|
-
const t = e.get("url");
|
|
814
|
-
if (t) {
|
|
815
|
-
e.set("content", "Loading...");
|
|
816
|
-
const n = _iframelyApiKey;
|
|
817
|
-
return fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=${n}`).then((a) => a.json()).then((a) => {
|
|
818
|
-
e.get("url") === t && (a.html ? e.set("content", a.html) : e.set("content", "Invalid url, please try another"));
|
|
819
|
-
}).catch((a) => {
|
|
820
|
-
e.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
821
|
-
});
|
|
822
|
-
} else
|
|
823
|
-
e.delete("content");
|
|
824
|
-
}
|
|
775
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
825
776
|
}, {
|
|
826
777
|
name: "content",
|
|
827
778
|
type: "html",
|
|
828
779
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
829
780
|
hideFromUI: !0
|
|
830
781
|
}]
|
|
831
|
-
},
|
|
782
|
+
}, _e = y(() => import("./embed-5c1bbe12.js")), ze = {
|
|
832
783
|
name: "Form:Form",
|
|
833
784
|
// editableTags: ['builder-form-error']
|
|
834
785
|
defaults: {
|
|
@@ -1065,13 +1016,7 @@ const W = {
|
|
|
1065
1016
|
builderComponents: !0,
|
|
1066
1017
|
builderLinkComponent: !0
|
|
1067
1018
|
}
|
|
1068
|
-
}, Je = y(() => import("./form-
|
|
1069
|
-
shouldReceiveBuilderProps: {
|
|
1070
|
-
builderBlock: !1,
|
|
1071
|
-
builderContext: !1,
|
|
1072
|
-
builderComponents: !1,
|
|
1073
|
-
builderLinkComponent: !1
|
|
1074
|
-
},
|
|
1019
|
+
}, Je = y(() => import("./form-00c8cc55.js")), Ye = {
|
|
1075
1020
|
name: "Form:Input",
|
|
1076
1021
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
1077
1022
|
inputs: [
|
|
@@ -1122,13 +1067,7 @@ const W = {
|
|
|
1122
1067
|
borderStyle: "solid",
|
|
1123
1068
|
borderColor: "#ccc"
|
|
1124
1069
|
}
|
|
1125
|
-
}, Qe = y(() => import("./input-
|
|
1126
|
-
shouldReceiveBuilderProps: {
|
|
1127
|
-
builderBlock: !1,
|
|
1128
|
-
builderContext: !1,
|
|
1129
|
-
builderComponents: !1,
|
|
1130
|
-
builderLinkComponent: !1
|
|
1131
|
-
},
|
|
1070
|
+
}, Qe = y(() => import("./input-2db47a83.js")), Ge = {
|
|
1132
1071
|
name: "Form:Select",
|
|
1133
1072
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
1134
1073
|
defaultStyles: {
|
|
@@ -1170,13 +1109,7 @@ const W = {
|
|
|
1170
1109
|
}],
|
|
1171
1110
|
static: !0,
|
|
1172
1111
|
noWrap: !0
|
|
1173
|
-
}, Xe = y(() => import("./select-
|
|
1174
|
-
shouldReceiveBuilderProps: {
|
|
1175
|
-
builderBlock: !1,
|
|
1176
|
-
builderContext: !1,
|
|
1177
|
-
builderComponents: !1,
|
|
1178
|
-
builderLinkComponent: !1
|
|
1179
|
-
},
|
|
1112
|
+
}, Xe = y(() => import("./select-2facacf2.js")), Ze = {
|
|
1180
1113
|
name: "Form:SubmitButton",
|
|
1181
1114
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
1182
1115
|
defaultStyles: {
|
|
@@ -1202,12 +1135,6 @@ const W = {
|
|
|
1202
1135
|
// TODO: defaultChildren
|
|
1203
1136
|
// canHaveChildren: true,
|
|
1204
1137
|
}, et = y(() => import("./submit-button-b48361a7.js")), tt = {
|
|
1205
|
-
shouldReceiveBuilderProps: {
|
|
1206
|
-
builderBlock: !1,
|
|
1207
|
-
builderContext: !1,
|
|
1208
|
-
builderComponents: !1,
|
|
1209
|
-
builderLinkComponent: !1
|
|
1210
|
-
},
|
|
1211
1138
|
name: "Form:TextArea",
|
|
1212
1139
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
1213
1140
|
inputs: [{
|
|
@@ -1244,12 +1171,6 @@ const W = {
|
|
|
1244
1171
|
static: !0,
|
|
1245
1172
|
noWrap: !0
|
|
1246
1173
|
}, nt = y(() => import("./textarea-d29025e9.js")), at = {
|
|
1247
|
-
shouldReceiveBuilderProps: {
|
|
1248
|
-
builderBlock: !1,
|
|
1249
|
-
builderContext: !1,
|
|
1250
|
-
builderComponents: !1,
|
|
1251
|
-
builderLinkComponent: !1
|
|
1252
|
-
},
|
|
1253
1174
|
// friendlyName?
|
|
1254
1175
|
name: "Raw:Img",
|
|
1255
1176
|
hideFromInsertMenu: !0,
|
|
@@ -1263,7 +1184,7 @@ const W = {
|
|
|
1263
1184
|
}],
|
|
1264
1185
|
noWrap: !0,
|
|
1265
1186
|
static: !0
|
|
1266
|
-
}, it = y(() => import("./img-
|
|
1187
|
+
}, it = y(() => import("./img-e7db1475.js")), ot = {
|
|
1267
1188
|
name: "Video",
|
|
1268
1189
|
canHaveChildren: !0,
|
|
1269
1190
|
defaultStyles: {
|
|
@@ -1345,17 +1266,14 @@ const W = {
|
|
|
1345
1266
|
advanced: !0
|
|
1346
1267
|
}],
|
|
1347
1268
|
shouldReceiveBuilderProps: {
|
|
1348
|
-
builderBlock: !0
|
|
1349
|
-
builderContext: !1,
|
|
1350
|
-
builderComponents: !1,
|
|
1351
|
-
builderLinkComponent: !1
|
|
1269
|
+
builderBlock: !0
|
|
1352
1270
|
}
|
|
1353
1271
|
}, rt = () => [{
|
|
1354
1272
|
component: Me,
|
|
1355
1273
|
...Ke
|
|
1356
1274
|
}, {
|
|
1357
|
-
component:
|
|
1358
|
-
...
|
|
1275
|
+
component: _e,
|
|
1276
|
+
...Oe
|
|
1359
1277
|
}, {
|
|
1360
1278
|
component: Je,
|
|
1361
1279
|
...ze
|
|
@@ -1379,25 +1297,25 @@ const W = {
|
|
|
1379
1297
|
...ot
|
|
1380
1298
|
}], G = () => [{
|
|
1381
1299
|
component: ye,
|
|
1382
|
-
...Be
|
|
1383
|
-
}, {
|
|
1384
|
-
component: ve,
|
|
1385
1300
|
...We
|
|
1386
1301
|
}, {
|
|
1387
|
-
component:
|
|
1302
|
+
component: ve,
|
|
1388
1303
|
...Ae
|
|
1389
1304
|
}, {
|
|
1390
|
-
component:
|
|
1391
|
-
...
|
|
1305
|
+
component: Se,
|
|
1306
|
+
...Be
|
|
1392
1307
|
}, {
|
|
1393
|
-
component:
|
|
1308
|
+
component: Te,
|
|
1394
1309
|
...De
|
|
1395
1310
|
}, {
|
|
1396
|
-
component:
|
|
1311
|
+
component: ke,
|
|
1397
1312
|
...Ue
|
|
1398
1313
|
}, {
|
|
1399
|
-
component:
|
|
1400
|
-
...
|
|
1314
|
+
component: He,
|
|
1315
|
+
...Le
|
|
1316
|
+
}, {
|
|
1317
|
+
component: Ce,
|
|
1318
|
+
...$e
|
|
1401
1319
|
}, {
|
|
1402
1320
|
component: Ie,
|
|
1403
1321
|
...je
|
|
@@ -1504,7 +1422,7 @@ const W = {
|
|
|
1504
1422
|
})), dt = ({
|
|
1505
1423
|
canTrack: e,
|
|
1506
1424
|
content: t
|
|
1507
|
-
}) => !(!(P(t).length > 0) || !e ||
|
|
1425
|
+
}) => !(!(P(t).length > 0) || !e || H()), ut = (e) => e === "react" || e === "reactNative", oe = ut(te), ct = () => `
|
|
1508
1426
|
window.${ae} = ${lt}
|
|
1509
1427
|
window.${ie} = ${st}
|
|
1510
1428
|
`, mt = (e, t) => `
|
|
@@ -1516,8 +1434,8 @@ const W = {
|
|
|
1516
1434
|
}) => `window.${ie}(
|
|
1517
1435
|
"${t}", "${e}", ${oe}
|
|
1518
1436
|
)`;
|
|
1519
|
-
function
|
|
1520
|
-
return /* @__PURE__ */
|
|
1437
|
+
function $(e) {
|
|
1438
|
+
return /* @__PURE__ */ f(
|
|
1521
1439
|
"script",
|
|
1522
1440
|
{
|
|
1523
1441
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -1528,33 +1446,33 @@ function H(e) {
|
|
|
1528
1446
|
function X(e) {
|
|
1529
1447
|
return Math.round(e * 1e3) / 1e3;
|
|
1530
1448
|
}
|
|
1531
|
-
const
|
|
1449
|
+
const gt = (e, t, n = !0) => {
|
|
1532
1450
|
if (!(e instanceof HTMLElement))
|
|
1533
1451
|
return null;
|
|
1534
|
-
let
|
|
1452
|
+
let i = n ? e : e.parentElement;
|
|
1535
1453
|
do {
|
|
1536
|
-
if (!
|
|
1454
|
+
if (!i)
|
|
1537
1455
|
return null;
|
|
1538
|
-
if (t(
|
|
1539
|
-
return
|
|
1540
|
-
} while (
|
|
1456
|
+
if (t(i))
|
|
1457
|
+
return i;
|
|
1458
|
+
} while (i = i.parentElement);
|
|
1541
1459
|
return null;
|
|
1542
|
-
},
|
|
1460
|
+
}, ft = (e) => gt(e, (t) => {
|
|
1543
1461
|
const n = t.getAttribute("builder-id") || t.id;
|
|
1544
1462
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
1545
1463
|
}), Z = ({
|
|
1546
1464
|
event: e,
|
|
1547
1465
|
target: t
|
|
1548
1466
|
}) => {
|
|
1549
|
-
const n = t.getBoundingClientRect(),
|
|
1467
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, d = e.clientY - n.top, c = X(i / n.width), a = X(d / n.height);
|
|
1550
1468
|
return {
|
|
1551
1469
|
x: c,
|
|
1552
|
-
y:
|
|
1470
|
+
y: a
|
|
1553
1471
|
};
|
|
1554
1472
|
}, ht = (e) => {
|
|
1555
|
-
const t = e.target, n = t &&
|
|
1473
|
+
const t = e.target, n = t && ft(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
1556
1474
|
return {
|
|
1557
|
-
targetBuilderElement:
|
|
1475
|
+
targetBuilderElement: i || void 0,
|
|
1558
1476
|
metadata: {
|
|
1559
1477
|
targetOffset: t ? Z({
|
|
1560
1478
|
event: e,
|
|
@@ -1564,17 +1482,17 @@ const ft = (e, t, n = !0) => {
|
|
|
1564
1482
|
event: e,
|
|
1565
1483
|
target: n
|
|
1566
1484
|
}) : void 0,
|
|
1567
|
-
builderElementIndex: n &&
|
|
1485
|
+
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
1568
1486
|
}
|
|
1569
1487
|
};
|
|
1570
1488
|
}, bt = (e) => {
|
|
1571
|
-
var c,
|
|
1572
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0],
|
|
1489
|
+
var c, a;
|
|
1490
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (c = e == null ? void 0 : e.files) == null ? void 0 : c.regular;
|
|
1573
1491
|
let d = "";
|
|
1574
|
-
if (
|
|
1492
|
+
if (i && t && n && (d += `
|
|
1575
1493
|
@font-face {
|
|
1576
1494
|
font-family: "${t}";
|
|
1577
|
-
src: local("${n}"), url('${
|
|
1495
|
+
src: local("${n}"), url('${i}') format('woff2');
|
|
1578
1496
|
font-display: fallback;
|
|
1579
1497
|
font-weight: 400;
|
|
1580
1498
|
}
|
|
@@ -1583,7 +1501,7 @@ font-weight: 400;
|
|
|
1583
1501
|
if (!(String(Number(o)) === o))
|
|
1584
1502
|
continue;
|
|
1585
1503
|
const h = e.files[o];
|
|
1586
|
-
h && h !==
|
|
1504
|
+
h && h !== i && (d += `
|
|
1587
1505
|
@font-face {
|
|
1588
1506
|
font-family: "${t}";
|
|
1589
1507
|
src: url('${h}') format('woff2');
|
|
@@ -1618,9 +1536,9 @@ font-weight: ${o};
|
|
|
1618
1536
|
text-align: inherit;
|
|
1619
1537
|
font-family: inherit;
|
|
1620
1538
|
}
|
|
1621
|
-
`, St = (e) => e ? "" : vt,
|
|
1539
|
+
`, St = (e) => e ? "" : vt, Tt = (e) => `variant-${e}`;
|
|
1622
1540
|
function kt(e) {
|
|
1623
|
-
var N, q, j, K, M,
|
|
1541
|
+
var N, q, j, K, M, O, _;
|
|
1624
1542
|
const t = le(null);
|
|
1625
1543
|
function n(r) {
|
|
1626
1544
|
var p, s;
|
|
@@ -1633,8 +1551,8 @@ function kt(e) {
|
|
|
1633
1551
|
rootState: u
|
|
1634
1552
|
}));
|
|
1635
1553
|
}
|
|
1636
|
-
function
|
|
1637
|
-
var p, s, l,
|
|
1554
|
+
function i(r) {
|
|
1555
|
+
var p, s, l, g, V;
|
|
1638
1556
|
const u = {
|
|
1639
1557
|
...e.builderContextSignal.content,
|
|
1640
1558
|
...r,
|
|
@@ -1645,7 +1563,7 @@ function kt(e) {
|
|
|
1645
1563
|
meta: {
|
|
1646
1564
|
...(s = e.builderContextSignal.content) == null ? void 0 : s.meta,
|
|
1647
1565
|
...r == null ? void 0 : r.meta,
|
|
1648
|
-
breakpoints: ((l = r == null ? void 0 : r.meta) == null ? void 0 : l.breakpoints) || ((V = (
|
|
1566
|
+
breakpoints: ((l = r == null ? void 0 : r.meta) == null ? void 0 : l.breakpoints) || ((V = (g = e.builderContextSignal.content) == null ? void 0 : g.meta) == null ? void 0 : V.breakpoints)
|
|
1649
1567
|
}
|
|
1650
1568
|
};
|
|
1651
1569
|
e.setBuilderContextSignal((b) => ({
|
|
@@ -1659,18 +1577,18 @@ function kt(e) {
|
|
|
1659
1577
|
"aria-hidden": !0
|
|
1660
1578
|
};
|
|
1661
1579
|
}
|
|
1662
|
-
const [c,
|
|
1580
|
+
const [c, a] = C(
|
|
1663
1581
|
() => e.contentWrapper || "div"
|
|
1664
1582
|
);
|
|
1665
1583
|
function o(r) {
|
|
1666
|
-
return
|
|
1584
|
+
return ge({
|
|
1667
1585
|
model: e.model,
|
|
1668
1586
|
trustedHosts: e.trustedHosts,
|
|
1669
1587
|
callbacks: {
|
|
1670
1588
|
configureSdk: (u) => {
|
|
1671
1589
|
var l;
|
|
1672
1590
|
const { breakpoints: p, contentId: s } = u;
|
|
1673
|
-
!s || s !== ((l = e.builderContextSignal.content) == null ? void 0 : l.id) || p &&
|
|
1591
|
+
!s || s !== ((l = e.builderContextSignal.content) == null ? void 0 : l.id) || p && i({
|
|
1674
1592
|
meta: {
|
|
1675
1593
|
breakpoints: p
|
|
1676
1594
|
}
|
|
@@ -1680,7 +1598,7 @@ function kt(e) {
|
|
|
1680
1598
|
Ve(u);
|
|
1681
1599
|
},
|
|
1682
1600
|
contentUpdate: (u) => {
|
|
1683
|
-
|
|
1601
|
+
i(u);
|
|
1684
1602
|
}
|
|
1685
1603
|
}
|
|
1686
1604
|
})(r);
|
|
@@ -1700,14 +1618,14 @@ function kt(e) {
|
|
|
1700
1618
|
enableCache: !1
|
|
1701
1619
|
});
|
|
1702
1620
|
}
|
|
1703
|
-
const [h, I] =
|
|
1621
|
+
const [h, I] = C(() => ({})), [k, w] = C(() => ({})), [R, E] = C(() => !1);
|
|
1704
1622
|
function v(r) {
|
|
1705
1623
|
var u, p;
|
|
1706
1624
|
if (e.builderContextSignal.content) {
|
|
1707
1625
|
const s = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, l = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
|
|
1708
1626
|
J({
|
|
1709
1627
|
type: "click",
|
|
1710
|
-
canTrack:
|
|
1628
|
+
canTrack: W(e.canTrack),
|
|
1711
1629
|
contentId: l,
|
|
1712
1630
|
apiKey: e.apiKey,
|
|
1713
1631
|
variationId: s !== l ? s : void 0,
|
|
@@ -1720,11 +1638,11 @@ function kt(e) {
|
|
|
1720
1638
|
function S() {
|
|
1721
1639
|
var u, p, s;
|
|
1722
1640
|
const r = (s = (p = (u = e.builderContextSignal.content) == null ? void 0 : u.data) == null ? void 0 : p.httpRequests) != null ? s : {};
|
|
1723
|
-
Object.entries(r).forEach(([l,
|
|
1724
|
-
if (!
|
|
1641
|
+
Object.entries(r).forEach(([l, g]) => {
|
|
1642
|
+
if (!g || k[l] || h[l] && !F())
|
|
1725
1643
|
return;
|
|
1726
1644
|
k[l] = !0;
|
|
1727
|
-
const V =
|
|
1645
|
+
const V = g.replace(
|
|
1728
1646
|
/{{([^}]+)}}/g,
|
|
1729
1647
|
(b, re) => String(
|
|
1730
1648
|
Q({
|
|
@@ -1737,18 +1655,18 @@ function kt(e) {
|
|
|
1737
1655
|
})
|
|
1738
1656
|
)
|
|
1739
1657
|
);
|
|
1740
|
-
|
|
1658
|
+
fe(V).then((b) => b.json()).then((b) => {
|
|
1741
1659
|
n({
|
|
1742
1660
|
[l]: b
|
|
1743
1661
|
}), h[l] = !0;
|
|
1744
1662
|
}).catch((b) => {
|
|
1745
|
-
console.error("error fetching dynamic data",
|
|
1663
|
+
console.error("error fetching dynamic data", g, b);
|
|
1746
1664
|
}).finally(() => {
|
|
1747
1665
|
k[l] = !1;
|
|
1748
1666
|
});
|
|
1749
1667
|
});
|
|
1750
1668
|
}
|
|
1751
|
-
function
|
|
1669
|
+
function T() {
|
|
1752
1670
|
F() && window.dispatchEvent(
|
|
1753
1671
|
new CustomEvent(
|
|
1754
1672
|
"builder:component:stateChange",
|
|
@@ -1765,7 +1683,7 @@ function kt(e) {
|
|
|
1765
1683
|
}
|
|
1766
1684
|
return x(() => {
|
|
1767
1685
|
var r, u;
|
|
1768
|
-
if (
|
|
1686
|
+
if (H()) {
|
|
1769
1687
|
if (F() && (window.addEventListener("message", o), se(), de({
|
|
1770
1688
|
...e.locale ? {
|
|
1771
1689
|
locale: e.locale
|
|
@@ -1779,47 +1697,47 @@ function kt(e) {
|
|
|
1779
1697
|
}), Object.values(
|
|
1780
1698
|
e.builderContextSignal.componentInfos
|
|
1781
1699
|
).forEach((s) => {
|
|
1782
|
-
var
|
|
1700
|
+
var g;
|
|
1783
1701
|
const l = ue(s);
|
|
1784
|
-
(
|
|
1702
|
+
(g = window.parent) == null || g.postMessage(l, "*");
|
|
1785
1703
|
}), window.addEventListener(
|
|
1786
1704
|
"builder:component:stateChangeListenerActivated",
|
|
1787
|
-
|
|
1788
|
-
)), e.builderContextSignal.content &&
|
|
1789
|
-
const s = (r = e.builderContextSignal.content) == null ? void 0 : r.testVariationId, l = (u = e.builderContextSignal.content) == null ? void 0 : u.id,
|
|
1705
|
+
T
|
|
1706
|
+
)), e.builderContextSignal.content && W(e.canTrack)) {
|
|
1707
|
+
const s = (r = e.builderContextSignal.content) == null ? void 0 : r.testVariationId, l = (u = e.builderContextSignal.content) == null ? void 0 : u.id, g = e.apiKey;
|
|
1790
1708
|
J({
|
|
1791
1709
|
type: "impression",
|
|
1792
1710
|
canTrack: !0,
|
|
1793
1711
|
contentId: l,
|
|
1794
|
-
apiKey:
|
|
1712
|
+
apiKey: g,
|
|
1795
1713
|
variationId: s !== l ? s : void 0
|
|
1796
1714
|
});
|
|
1797
1715
|
}
|
|
1798
1716
|
if (ce() && !F()) {
|
|
1799
|
-
const s = new URL(location.href).searchParams, l = s.get("builder.preview"),
|
|
1717
|
+
const s = new URL(location.href).searchParams, l = s.get("builder.preview"), g = s.get(
|
|
1800
1718
|
`builder.overrides.${l}`
|
|
1801
1719
|
), V = s.get("apiKey") || s.get("builder.space");
|
|
1802
|
-
l === e.model && V === e.apiKey && (!e.content ||
|
|
1720
|
+
l === e.model && V === e.apiKey && (!e.content || g === e.content.id) && me({
|
|
1803
1721
|
model: e.model,
|
|
1804
1722
|
apiKey: e.apiKey,
|
|
1805
1723
|
apiVersion: e.builderContextSignal.apiVersion
|
|
1806
1724
|
}).then((b) => {
|
|
1807
|
-
b &&
|
|
1725
|
+
b && i(b);
|
|
1808
1726
|
});
|
|
1809
1727
|
}
|
|
1810
1728
|
}
|
|
1811
1729
|
}, []), x(() => {
|
|
1812
1730
|
e.apiKey || pe.error(
|
|
1813
1731
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
1814
|
-
), m(), S(),
|
|
1732
|
+
), m(), S(), T();
|
|
1815
1733
|
}, []), x(() => {
|
|
1816
|
-
e.content &&
|
|
1734
|
+
e.content && i(e.content);
|
|
1817
1735
|
}, [e.content]), x(() => {
|
|
1818
1736
|
m();
|
|
1819
1737
|
}, [(q = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : q.jsCode]), x(() => {
|
|
1820
1738
|
S();
|
|
1821
1739
|
}, [(K = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : K.httpRequests]), x(() => {
|
|
1822
|
-
|
|
1740
|
+
T();
|
|
1823
1741
|
}, [e.builderContextSignal.rootState]), x(() => {
|
|
1824
1742
|
e.data && n(e.data);
|
|
1825
1743
|
}, [e.data]), x(() => {
|
|
@@ -1827,11 +1745,11 @@ function kt(e) {
|
|
|
1827
1745
|
locale: e.locale
|
|
1828
1746
|
});
|
|
1829
1747
|
}, [e.locale]), x(() => () => {
|
|
1830
|
-
|
|
1748
|
+
H() && (window.removeEventListener("message", o), window.removeEventListener(
|
|
1831
1749
|
"builder:component:stateChangeListenerActivated",
|
|
1832
|
-
|
|
1750
|
+
T
|
|
1833
1751
|
));
|
|
1834
|
-
}, []), /* @__PURE__ */
|
|
1752
|
+
}, []), /* @__PURE__ */ f(we.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ f(
|
|
1835
1753
|
c,
|
|
1836
1754
|
{
|
|
1837
1755
|
ref: t,
|
|
@@ -1840,15 +1758,15 @@ function kt(e) {
|
|
|
1840
1758
|
"builder-model": e.model,
|
|
1841
1759
|
...d(),
|
|
1842
1760
|
...e.contentWrapperProps,
|
|
1843
|
-
className:
|
|
1844
|
-
((
|
|
1761
|
+
className: Tt(
|
|
1762
|
+
((O = e.content) == null ? void 0 : O.testVariationId) || ((_ = e.content) == null ? void 0 : _.id)
|
|
1845
1763
|
),
|
|
1846
1764
|
children: e.children
|
|
1847
1765
|
}
|
|
1848
1766
|
) : null });
|
|
1849
1767
|
}
|
|
1850
|
-
function
|
|
1851
|
-
const [t, n] =
|
|
1768
|
+
function Ct(e) {
|
|
1769
|
+
const [t, n] = C(
|
|
1852
1770
|
() => `
|
|
1853
1771
|
${yt({
|
|
1854
1772
|
cssCode: e.cssCode,
|
|
@@ -1860,19 +1778,19 @@ ${xt({
|
|
|
1860
1778
|
${St(e.isNestedRender)}
|
|
1861
1779
|
`.trim()
|
|
1862
1780
|
);
|
|
1863
|
-
return /* @__PURE__ */
|
|
1781
|
+
return /* @__PURE__ */ f(ne, { id: "builderio-content", styles: t });
|
|
1864
1782
|
}
|
|
1865
1783
|
const It = ({
|
|
1866
1784
|
content: e,
|
|
1867
1785
|
data: t,
|
|
1868
1786
|
locale: n
|
|
1869
1787
|
}) => {
|
|
1870
|
-
var c,
|
|
1871
|
-
const
|
|
1872
|
-
return (o = (
|
|
1873
|
-
m.name && m.defaultValue !== void 0 && (
|
|
1788
|
+
var c, a, o;
|
|
1789
|
+
const i = {}, d = ((c = e == null ? void 0 : e.data) == null ? void 0 : c.state) || {};
|
|
1790
|
+
return (o = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || o.forEach((m) => {
|
|
1791
|
+
m.name && m.defaultValue !== void 0 && (i[m.name] = m.defaultValue);
|
|
1874
1792
|
}), {
|
|
1875
|
-
...
|
|
1793
|
+
...i,
|
|
1876
1794
|
...d,
|
|
1877
1795
|
...t,
|
|
1878
1796
|
...n ? {
|
|
@@ -1892,7 +1810,7 @@ const It = ({
|
|
|
1892
1810
|
} : void 0;
|
|
1893
1811
|
function ee(e) {
|
|
1894
1812
|
var m, h, I, k, w, R, E;
|
|
1895
|
-
const [t, n] =
|
|
1813
|
+
const [t, n] = C(
|
|
1896
1814
|
() => {
|
|
1897
1815
|
var v, S;
|
|
1898
1816
|
return pt({
|
|
@@ -1903,27 +1821,27 @@ function ee(e) {
|
|
|
1903
1821
|
});
|
|
1904
1822
|
}
|
|
1905
1823
|
);
|
|
1906
|
-
function
|
|
1824
|
+
function i(v) {
|
|
1907
1825
|
o((S) => ({
|
|
1908
1826
|
...S,
|
|
1909
1827
|
rootState: v
|
|
1910
1828
|
}));
|
|
1911
1829
|
}
|
|
1912
|
-
const [d, c] =
|
|
1830
|
+
const [d, c] = C(
|
|
1913
1831
|
() => [
|
|
1914
1832
|
...G(),
|
|
1915
1833
|
...e.customComponents || []
|
|
1916
1834
|
].reduce(
|
|
1917
|
-
(v, { component: S, ...
|
|
1835
|
+
(v, { component: S, ...T }) => ({
|
|
1918
1836
|
...v,
|
|
1919
|
-
[
|
|
1837
|
+
[T.name]: {
|
|
1920
1838
|
component: S,
|
|
1921
|
-
...Y(
|
|
1839
|
+
...Y(T)
|
|
1922
1840
|
}
|
|
1923
1841
|
}),
|
|
1924
1842
|
{}
|
|
1925
1843
|
)
|
|
1926
|
-
), [
|
|
1844
|
+
), [a, o] = C(() => ({
|
|
1927
1845
|
content: wt({
|
|
1928
1846
|
content: e.content,
|
|
1929
1847
|
data: e.data
|
|
@@ -1934,7 +1852,7 @@ function ee(e) {
|
|
|
1934
1852
|
data: e.data,
|
|
1935
1853
|
locale: e.locale
|
|
1936
1854
|
}),
|
|
1937
|
-
rootSetState:
|
|
1855
|
+
rootSetState: i,
|
|
1938
1856
|
context: e.context || {},
|
|
1939
1857
|
canTrack: e.canTrack,
|
|
1940
1858
|
apiKey: e.apiKey,
|
|
@@ -1943,9 +1861,9 @@ function ee(e) {
|
|
|
1943
1861
|
...G(),
|
|
1944
1862
|
...e.customComponents || []
|
|
1945
1863
|
].reduce(
|
|
1946
|
-
(v, { component: S, ...
|
|
1864
|
+
(v, { component: S, ...T }) => ({
|
|
1947
1865
|
...v,
|
|
1948
|
-
[
|
|
1866
|
+
[T.name]: Y(T)
|
|
1949
1867
|
}),
|
|
1950
1868
|
{}
|
|
1951
1869
|
),
|
|
@@ -1953,13 +1871,13 @@ function ee(e) {
|
|
|
1953
1871
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
1954
1872
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
1955
1873
|
}));
|
|
1956
|
-
return /* @__PURE__ */
|
|
1874
|
+
return /* @__PURE__ */ f(
|
|
1957
1875
|
Re.Provider,
|
|
1958
1876
|
{
|
|
1959
1877
|
value: {
|
|
1960
1878
|
registeredComponents: d
|
|
1961
1879
|
},
|
|
1962
|
-
children: /* @__PURE__ */
|
|
1880
|
+
children: /* @__PURE__ */ L(
|
|
1963
1881
|
kt,
|
|
1964
1882
|
{
|
|
1965
1883
|
content: e.content,
|
|
@@ -1971,33 +1889,33 @@ function ee(e) {
|
|
|
1971
1889
|
locale: e.locale,
|
|
1972
1890
|
enrich: e.enrich,
|
|
1973
1891
|
showContent: e.showContent,
|
|
1974
|
-
builderContextSignal:
|
|
1892
|
+
builderContextSignal: a,
|
|
1975
1893
|
contentWrapper: e.contentWrapper,
|
|
1976
1894
|
contentWrapperProps: e.contentWrapperProps,
|
|
1977
1895
|
trustedHosts: e.trustedHosts,
|
|
1978
1896
|
setBuilderContextSignal: o,
|
|
1979
1897
|
children: [
|
|
1980
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
1981
|
-
|
|
1898
|
+
e.isSsrAbTest ? /* @__PURE__ */ f(
|
|
1899
|
+
$,
|
|
1982
1900
|
{
|
|
1983
1901
|
id: "builderio-variant-visibility",
|
|
1984
1902
|
scriptStr: t
|
|
1985
1903
|
}
|
|
1986
1904
|
) : null,
|
|
1987
|
-
/* @__PURE__ */
|
|
1988
|
-
|
|
1905
|
+
/* @__PURE__ */ f(
|
|
1906
|
+
Ct,
|
|
1989
1907
|
{
|
|
1990
1908
|
isNestedRender: e.isNestedRender,
|
|
1991
|
-
contentId: (m =
|
|
1992
|
-
cssCode: (I = (h =
|
|
1993
|
-
customFonts: (w = (k =
|
|
1909
|
+
contentId: (m = a.content) == null ? void 0 : m.id,
|
|
1910
|
+
cssCode: (I = (h = a.content) == null ? void 0 : h.data) == null ? void 0 : I.cssCode,
|
|
1911
|
+
customFonts: (w = (k = a.content) == null ? void 0 : k.data) == null ? void 0 : w.customFonts
|
|
1994
1912
|
}
|
|
1995
1913
|
),
|
|
1996
|
-
/* @__PURE__ */
|
|
1914
|
+
/* @__PURE__ */ f(
|
|
1997
1915
|
Ee,
|
|
1998
1916
|
{
|
|
1999
|
-
blocks: (E = (R =
|
|
2000
|
-
context:
|
|
1917
|
+
blocks: (E = (R = a.content) == null ? void 0 : R.data) == null ? void 0 : E.blocks,
|
|
1918
|
+
context: a,
|
|
2001
1919
|
registeredComponents: d,
|
|
2002
1920
|
linkComponent: e.linkComponent
|
|
2003
1921
|
}
|
|
@@ -2008,15 +1926,15 @@ function ee(e) {
|
|
|
2008
1926
|
}
|
|
2009
1927
|
);
|
|
2010
1928
|
}
|
|
2011
|
-
function
|
|
2012
|
-
var
|
|
2013
|
-
const [t, n] =
|
|
1929
|
+
function Bt(e) {
|
|
1930
|
+
var a;
|
|
1931
|
+
const [t, n] = C(
|
|
2014
1932
|
() => dt({
|
|
2015
|
-
canTrack:
|
|
1933
|
+
canTrack: W(e.canTrack),
|
|
2016
1934
|
content: e.content
|
|
2017
1935
|
})
|
|
2018
1936
|
);
|
|
2019
|
-
function
|
|
1937
|
+
function i() {
|
|
2020
1938
|
var o;
|
|
2021
1939
|
return mt(
|
|
2022
1940
|
P(e.content).map((m) => ({
|
|
@@ -2036,35 +1954,35 @@ function At(e) {
|
|
|
2036
1954
|
testVariationId: (o = e.content) == null ? void 0 : o.id
|
|
2037
1955
|
} : be({
|
|
2038
1956
|
item: e.content,
|
|
2039
|
-
canTrack:
|
|
1957
|
+
canTrack: W(e.canTrack)
|
|
2040
1958
|
});
|
|
2041
1959
|
}
|
|
2042
1960
|
return x(() => {
|
|
2043
1961
|
}, []), x(() => {
|
|
2044
|
-
}), /* @__PURE__ */
|
|
2045
|
-
!e.isNestedRender && te !== "reactNative" ? /* @__PURE__ */
|
|
2046
|
-
|
|
1962
|
+
}), /* @__PURE__ */ L(z, { children: [
|
|
1963
|
+
!e.isNestedRender && te !== "reactNative" ? /* @__PURE__ */ f(
|
|
1964
|
+
$,
|
|
2047
1965
|
{
|
|
2048
1966
|
id: "builderio-init-variants-fns",
|
|
2049
1967
|
scriptStr: ct()
|
|
2050
1968
|
}
|
|
2051
1969
|
) : null,
|
|
2052
|
-
t ? /* @__PURE__ */
|
|
2053
|
-
/* @__PURE__ */
|
|
1970
|
+
t ? /* @__PURE__ */ L(z, { children: [
|
|
1971
|
+
/* @__PURE__ */ f(
|
|
2054
1972
|
ne,
|
|
2055
1973
|
{
|
|
2056
1974
|
id: "builderio-variants",
|
|
2057
1975
|
styles: d()
|
|
2058
1976
|
}
|
|
2059
1977
|
),
|
|
2060
|
-
/* @__PURE__ */
|
|
2061
|
-
|
|
1978
|
+
/* @__PURE__ */ f(
|
|
1979
|
+
$,
|
|
2062
1980
|
{
|
|
2063
1981
|
id: "builderio-variants-visibility",
|
|
2064
|
-
scriptStr:
|
|
1982
|
+
scriptStr: i()
|
|
2065
1983
|
}
|
|
2066
1984
|
),
|
|
2067
|
-
(
|
|
1985
|
+
(a = P(e.content)) == null ? void 0 : a.map((o) => /* @__PURE__ */ f(
|
|
2068
1986
|
ee,
|
|
2069
1987
|
{
|
|
2070
1988
|
isNestedRender: e.isNestedRender,
|
|
@@ -2090,7 +2008,7 @@ function At(e) {
|
|
|
2090
2008
|
o.testVariationId
|
|
2091
2009
|
))
|
|
2092
2010
|
] }) : null,
|
|
2093
|
-
/* @__PURE__ */
|
|
2011
|
+
/* @__PURE__ */ f(
|
|
2094
2012
|
ee,
|
|
2095
2013
|
{
|
|
2096
2014
|
isNestedRender: e.isNestedRender,
|
|
@@ -2117,5 +2035,5 @@ function At(e) {
|
|
|
2117
2035
|
] });
|
|
2118
2036
|
}
|
|
2119
2037
|
export {
|
|
2120
|
-
|
|
2038
|
+
Bt as default
|
|
2121
2039
|
};
|