@builder.io/sdk-react 1.0.36 → 1.1.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/blocks-exports.cjs +22 -22
- package/lib/browser/blocks-exports.mjs +627 -504
- 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-4168b816.cjs → server-entry-4fb4a8b5.cjs} +1 -1
- package/lib/browser/{server-entry-b8f6be3b.js → server-entry-a2fe3a55.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-18fbb30e.js → accordion-a25dee70.js} +1 -1
- package/lib/edge/{accordion-e40979bc.cjs → accordion-d5929c1e.cjs} +1 -1
- package/lib/edge/{blocks-9b142e90.js → blocks-317ff1a5.js} +679 -671
- package/lib/edge/{blocks-48a9ac8c.cjs → blocks-5cb24de4.cjs} +13 -13
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-be9403e7.js → button-2f5bf5cf.js} +2 -2
- package/lib/edge/{button-c2ff97e9.cjs → button-b06330e4.cjs} +1 -1
- package/lib/edge/{columns-920ca800.js → columns-69453374.js} +3 -3
- package/lib/edge/{columns-118e1fc1.cjs → columns-ef105550.cjs} +1 -1
- package/lib/edge/{content-variants-ed1f803b.js → content-variants-336e3b7f.js} +318 -203
- package/lib/edge/content-variants-f2620a07.cjs +134 -0
- package/lib/edge/{form-cbcf22d5.js → form-30431d39.js} +3 -3
- package/lib/edge/{form-a9271b51.cjs → form-55ba7324.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-af6b922f.cjs → get-class-prop-name-5da28706.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-90c8ac6c.js → get-class-prop-name-8d9f271c.js} +1 -1
- package/lib/edge/{img-1f1b4871.js → img-02bb6d39.js} +1 -1
- package/lib/edge/{img-2deeb066.cjs → img-a85aa1f8.cjs} +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-4b3e5f88.cjs → input-448b664a.cjs} +1 -1
- package/lib/edge/{input-514915f8.js → input-d7e84d5c.js} +1 -1
- package/lib/edge/{select-3925e227.js → select-744ccf82.js} +1 -1
- package/lib/edge/{select-82d8052d.cjs → select-7e98c1fc.cjs} +1 -1
- package/lib/edge/{server-entry-57fedeba.js → server-entry-7003c754.js} +1 -1
- package/lib/edge/{server-entry-a00fcff8.cjs → server-entry-f52f597d.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-aa7280f8.js → slot-6ddfa828.js} +3 -3
- package/lib/edge/{slot-21fe373f.cjs → slot-fb11eb23.cjs} +1 -1
- package/lib/edge/{symbol-ac48d2ec.js → symbol-ced9c879.js} +2 -2
- package/lib/edge/{symbol-a0ab57ea.cjs → symbol-d82ac04c.cjs} +1 -1
- package/lib/edge/{tabs-df436d1e.cjs → tabs-93843650.cjs} +1 -1
- package/lib/edge/{tabs-9b5261d0.js → tabs-ffcc16e4.js} +3 -3
- package/lib/node/blocks-exports.cjs +23 -23
- package/lib/node/blocks-exports.mjs +616 -493
- 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-1b85663b.js → node-runtime-13876a87.js} +1 -1
- package/lib/node/{node-runtime-d59eb154.cjs → node-runtime-b5d88fa0.cjs} +1 -1
- package/lib/node/{server-entry-8081c6b9.js → server-entry-9942a35a.js} +1 -1
- package/lib/node/{server-entry-dc1afebd.cjs → server-entry-d0ae23af.cjs} +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/components/content-variants/inlined-fns.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/types/components.d.ts +31 -0
- package/lib/edge/content-variants-1eb4aebc.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
|
|
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 g, jsxs as U, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import { lazy as y, useRef as le, useState as T, useEffect as x } from "react";
|
|
3
|
+
import { isBrowser as $, TARGET as te, isEditing as F, registerInsertMenu as se, setupBrowserForEditing as de, createRegisterComponentMessage as ue, getDefaultCanTrack as B, _track as J, isPreviewing as ce, fetchOneEntry as me, logger as pe, createEditorListener as fe, fetch as ge, fastClone as he, serializeComponentInfo as Y, handleABTestingSync as be } from "./server-entry-7003c754.js";
|
|
4
|
+
import { Video as xe, Button as ye, Columns as ve, Fragment as Se, Image as Ce, Section as ke, Symbol as Te, 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-317ff1a5.js";
|
|
6
|
+
import "./get-class-prop-name-8d9f271c.js";
|
|
7
7
|
import "./dynamic-renderer-8b343325.js";
|
|
8
|
-
const
|
|
8
|
+
const W = {
|
|
9
9
|
"@type": "@builder.io/sdk:Element",
|
|
10
10
|
layerName: "Accordion item title",
|
|
11
11
|
responsiveStyles: {
|
|
@@ -34,7 +34,7 @@ const P = {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}]
|
|
37
|
-
},
|
|
37
|
+
}, A = {
|
|
38
38
|
"@type": "@builder.io/sdk:Element",
|
|
39
39
|
layerName: "Accordion item detail",
|
|
40
40
|
responsiveStyles: {
|
|
@@ -82,19 +82,19 @@ const P = {
|
|
|
82
82
|
name: "title",
|
|
83
83
|
type: "uiBlocks",
|
|
84
84
|
hideFromUI: !0,
|
|
85
|
-
defaultValue: [
|
|
85
|
+
defaultValue: [W]
|
|
86
86
|
}, {
|
|
87
87
|
name: "detail",
|
|
88
88
|
type: "uiBlocks",
|
|
89
89
|
hideFromUI: !0,
|
|
90
|
-
defaultValue: [
|
|
90
|
+
defaultValue: [A]
|
|
91
91
|
}],
|
|
92
92
|
defaultValue: [{
|
|
93
|
-
title: [
|
|
94
|
-
detail: [
|
|
93
|
+
title: [W],
|
|
94
|
+
detail: [A]
|
|
95
95
|
}, {
|
|
96
|
-
title: [
|
|
97
|
-
detail: [
|
|
96
|
+
title: [W],
|
|
97
|
+
detail: [A]
|
|
98
98
|
}],
|
|
99
99
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
100
100
|
}, {
|
|
@@ -122,8 +122,14 @@ const P = {
|
|
|
122
122
|
onChange: (e) => {
|
|
123
123
|
e.get("useChildrenForItems") === !0 && e.set("items", []);
|
|
124
124
|
}
|
|
125
|
-
}]
|
|
126
|
-
|
|
125
|
+
}],
|
|
126
|
+
shouldReceiveBuilderProps: {
|
|
127
|
+
builderBlock: !0,
|
|
128
|
+
builderContext: !0,
|
|
129
|
+
builderComponents: !0,
|
|
130
|
+
builderLinkComponent: !0
|
|
131
|
+
}
|
|
132
|
+
}, Pe = y(() => import("./accordion-a25dee70.js")), Be = {
|
|
127
133
|
name: "Core:Button",
|
|
128
134
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
129
135
|
defaultStyles: {
|
|
@@ -155,8 +161,14 @@ const P = {
|
|
|
155
161
|
friendlyName: "Open link in new tab"
|
|
156
162
|
}],
|
|
157
163
|
static: !0,
|
|
158
|
-
noWrap: !0
|
|
159
|
-
|
|
164
|
+
noWrap: !0,
|
|
165
|
+
shouldReceiveBuilderProps: {
|
|
166
|
+
builderBlock: !1,
|
|
167
|
+
builderContext: !1,
|
|
168
|
+
builderComponents: !1,
|
|
169
|
+
builderLinkComponent: !0
|
|
170
|
+
}
|
|
171
|
+
}, We = {
|
|
160
172
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
161
173
|
name: "Columns",
|
|
162
174
|
isRSC: !0,
|
|
@@ -335,7 +347,7 @@ const P = {
|
|
|
335
347
|
});
|
|
336
348
|
}
|
|
337
349
|
const n = e.get("columns");
|
|
338
|
-
Array.isArray(n) && n.find((d) => d.get("width")) && (n.find((
|
|
350
|
+
Array.isArray(n) && n.find((d) => d.get("width")) && (n.find((c) => !c.get("width")) || n.reduce((o, m) => o + m.get("width"), 0) !== 100) && t();
|
|
339
351
|
}
|
|
340
352
|
}, {
|
|
341
353
|
name: "space",
|
|
@@ -356,14 +368,26 @@ const P = {
|
|
|
356
368
|
defaultValue: !1,
|
|
357
369
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
358
370
|
advanced: !0
|
|
359
|
-
}]
|
|
360
|
-
|
|
371
|
+
}],
|
|
372
|
+
shouldReceiveBuilderProps: {
|
|
373
|
+
builderBlock: !0,
|
|
374
|
+
builderContext: !0,
|
|
375
|
+
builderComponents: !0,
|
|
376
|
+
builderLinkComponent: !0
|
|
377
|
+
}
|
|
378
|
+
}, Ae = {
|
|
379
|
+
shouldReceiveBuilderProps: {
|
|
380
|
+
builderBlock: !1,
|
|
381
|
+
builderContext: !1,
|
|
382
|
+
builderComponents: !1,
|
|
383
|
+
builderLinkComponent: !1
|
|
384
|
+
},
|
|
361
385
|
name: "Fragment",
|
|
362
386
|
static: !0,
|
|
363
387
|
hidden: !0,
|
|
364
388
|
canHaveChildren: !0,
|
|
365
389
|
noWrap: !0
|
|
366
|
-
},
|
|
390
|
+
}, Le = {
|
|
367
391
|
name: "Image",
|
|
368
392
|
static: !0,
|
|
369
393
|
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",
|
|
@@ -385,24 +409,24 @@ const P = {
|
|
|
385
409
|
e.delete("srcset"), e.delete("noWebp");
|
|
386
410
|
function n(i, o = 6e4) {
|
|
387
411
|
return new Promise((m, h) => {
|
|
388
|
-
const
|
|
389
|
-
let
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
},
|
|
412
|
+
const I = document.createElement("img");
|
|
413
|
+
let k = !1;
|
|
414
|
+
I.onload = () => {
|
|
415
|
+
k = !0, m(I);
|
|
416
|
+
}, I.addEventListener("error", (w) => {
|
|
393
417
|
console.warn("Image load failed", w.error), h(w.error);
|
|
394
|
-
}),
|
|
395
|
-
|
|
418
|
+
}), I.src = i, setTimeout(() => {
|
|
419
|
+
k || h(new Error("Image load timed out"));
|
|
396
420
|
}, o);
|
|
397
421
|
});
|
|
398
422
|
}
|
|
399
423
|
function a(i) {
|
|
400
424
|
return Math.round(i * 1e3) / 1e3;
|
|
401
425
|
}
|
|
402
|
-
const d = e.get("image"),
|
|
426
|
+
const d = e.get("image"), c = e.get("aspectRatio");
|
|
403
427
|
if (fetch(d).then((i) => i.blob()).then((i) => {
|
|
404
428
|
i.type.includes("svg") && e.set("noWebp", !0);
|
|
405
|
-
}), d && (!
|
|
429
|
+
}), d && (!c || c === 0.7041))
|
|
406
430
|
return n(d).then((i) => {
|
|
407
431
|
const o = e.get("aspectRatio");
|
|
408
432
|
e.get("image") === d && (!o || o === 0.7041) && i.width && i.height && (e.set("aspectRatio", a(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
@@ -467,8 +491,20 @@ const P = {
|
|
|
467
491
|
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
468
492
|
advanced: !0,
|
|
469
493
|
defaultValue: 0.7041
|
|
470
|
-
}]
|
|
471
|
-
|
|
494
|
+
}],
|
|
495
|
+
shouldReceiveBuilderProps: {
|
|
496
|
+
builderBlock: !0,
|
|
497
|
+
builderContext: !1,
|
|
498
|
+
builderComponents: !1,
|
|
499
|
+
builderLinkComponent: !1
|
|
500
|
+
}
|
|
501
|
+
}, De = {
|
|
502
|
+
shouldReceiveBuilderProps: {
|
|
503
|
+
builderBlock: !1,
|
|
504
|
+
builderContext: !1,
|
|
505
|
+
builderComponents: !1,
|
|
506
|
+
builderLinkComponent: !1
|
|
507
|
+
},
|
|
472
508
|
name: "Core:Section",
|
|
473
509
|
static: !0,
|
|
474
510
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -507,7 +543,7 @@ const P = {
|
|
|
507
543
|
}
|
|
508
544
|
}
|
|
509
545
|
}]
|
|
510
|
-
},
|
|
546
|
+
}, Ue = {
|
|
511
547
|
name: "Slot",
|
|
512
548
|
isRSC: !0,
|
|
513
549
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -519,8 +555,14 @@ const P = {
|
|
|
519
555
|
type: "string",
|
|
520
556
|
required: !0,
|
|
521
557
|
defaultValue: "children"
|
|
522
|
-
}]
|
|
523
|
-
|
|
558
|
+
}],
|
|
559
|
+
shouldReceiveBuilderProps: {
|
|
560
|
+
builderBlock: !1,
|
|
561
|
+
builderContext: !0,
|
|
562
|
+
builderComponents: !1,
|
|
563
|
+
builderLinkComponent: !1
|
|
564
|
+
}
|
|
565
|
+
}, $e = y(() => import("./slot-6ddfa828.js")), He = {
|
|
524
566
|
name: "Symbol",
|
|
525
567
|
noWrap: !0,
|
|
526
568
|
static: !0,
|
|
@@ -552,8 +594,14 @@ const P = {
|
|
|
552
594
|
name: "useChildren",
|
|
553
595
|
hideFromUI: !0,
|
|
554
596
|
type: "boolean"
|
|
555
|
-
}]
|
|
556
|
-
|
|
597
|
+
}],
|
|
598
|
+
shouldReceiveBuilderProps: {
|
|
599
|
+
builderBlock: !0,
|
|
600
|
+
builderContext: !0,
|
|
601
|
+
builderComponents: !0,
|
|
602
|
+
builderLinkComponent: !0
|
|
603
|
+
}
|
|
604
|
+
}, L = {
|
|
557
605
|
"@type": "@builder.io/sdk:Element",
|
|
558
606
|
responsiveStyles: {
|
|
559
607
|
large: {
|
|
@@ -575,7 +623,7 @@ const P = {
|
|
|
575
623
|
text: "New tab"
|
|
576
624
|
}
|
|
577
625
|
}
|
|
578
|
-
},
|
|
626
|
+
}, D = {
|
|
579
627
|
"@type": "@builder.io/sdk:Element",
|
|
580
628
|
responsiveStyles: {
|
|
581
629
|
large: {
|
|
@@ -601,16 +649,16 @@ const P = {
|
|
|
601
649
|
name: "label",
|
|
602
650
|
type: "uiBlocks",
|
|
603
651
|
hideFromUI: !0,
|
|
604
|
-
defaultValue: [
|
|
652
|
+
defaultValue: [L]
|
|
605
653
|
}, {
|
|
606
654
|
name: "content",
|
|
607
655
|
type: "uiBlocks",
|
|
608
656
|
hideFromUI: !0,
|
|
609
|
-
defaultValue: [
|
|
657
|
+
defaultValue: [D]
|
|
610
658
|
}],
|
|
611
659
|
defaultValue: [{
|
|
612
660
|
label: [{
|
|
613
|
-
...
|
|
661
|
+
...L,
|
|
614
662
|
component: {
|
|
615
663
|
name: "Text",
|
|
616
664
|
options: {
|
|
@@ -619,7 +667,7 @@ const P = {
|
|
|
619
667
|
}
|
|
620
668
|
}],
|
|
621
669
|
content: [{
|
|
622
|
-
...
|
|
670
|
+
...D,
|
|
623
671
|
component: {
|
|
624
672
|
name: "Text",
|
|
625
673
|
options: {
|
|
@@ -629,7 +677,7 @@ const P = {
|
|
|
629
677
|
}]
|
|
630
678
|
}, {
|
|
631
679
|
label: [{
|
|
632
|
-
...
|
|
680
|
+
...L,
|
|
633
681
|
component: {
|
|
634
682
|
name: "Text",
|
|
635
683
|
options: {
|
|
@@ -638,7 +686,7 @@ const P = {
|
|
|
638
686
|
}
|
|
639
687
|
}],
|
|
640
688
|
content: [{
|
|
641
|
-
...
|
|
689
|
+
...D,
|
|
642
690
|
component: {
|
|
643
691
|
name: "Text",
|
|
644
692
|
options: {
|
|
@@ -687,8 +735,20 @@ const P = {
|
|
|
687
735
|
label: "Right",
|
|
688
736
|
value: "flex-end"
|
|
689
737
|
}]
|
|
690
|
-
}]
|
|
691
|
-
|
|
738
|
+
}],
|
|
739
|
+
shouldReceiveBuilderProps: {
|
|
740
|
+
builderBlock: !0,
|
|
741
|
+
builderContext: !0,
|
|
742
|
+
builderComponents: !0,
|
|
743
|
+
builderLinkComponent: !0
|
|
744
|
+
}
|
|
745
|
+
}, qe = y(() => import("./tabs-ffcc16e4.js")), je = {
|
|
746
|
+
shouldReceiveBuilderProps: {
|
|
747
|
+
builderBlock: !1,
|
|
748
|
+
builderContext: !1,
|
|
749
|
+
builderComponents: !1,
|
|
750
|
+
builderLinkComponent: !1
|
|
751
|
+
},
|
|
692
752
|
name: "Text",
|
|
693
753
|
static: !0,
|
|
694
754
|
isRSC: !0,
|
|
@@ -707,6 +767,12 @@ const P = {
|
|
|
707
767
|
textAlign: "center"
|
|
708
768
|
}
|
|
709
769
|
}, Ke = {
|
|
770
|
+
shouldReceiveBuilderProps: {
|
|
771
|
+
builderBlock: !1,
|
|
772
|
+
builderContext: !1,
|
|
773
|
+
builderComponents: !1,
|
|
774
|
+
builderLinkComponent: !1
|
|
775
|
+
},
|
|
710
776
|
name: "Custom Code",
|
|
711
777
|
static: !0,
|
|
712
778
|
requiredPermissions: ["editCode"],
|
|
@@ -729,6 +795,12 @@ const P = {
|
|
|
729
795
|
advanced: !0
|
|
730
796
|
}]
|
|
731
797
|
}, Me = y(() => import("./custom-code-7786788e.js")), _e = {
|
|
798
|
+
shouldReceiveBuilderProps: {
|
|
799
|
+
builderBlock: !1,
|
|
800
|
+
builderContext: !1,
|
|
801
|
+
builderComponents: !1,
|
|
802
|
+
builderLinkComponent: !1
|
|
803
|
+
},
|
|
732
804
|
name: "Embed",
|
|
733
805
|
static: !0,
|
|
734
806
|
inputs: [{
|
|
@@ -986,8 +1058,20 @@ const P = {
|
|
|
986
1058
|
text: "Submit"
|
|
987
1059
|
}
|
|
988
1060
|
}
|
|
989
|
-
}]
|
|
990
|
-
|
|
1061
|
+
}],
|
|
1062
|
+
shouldReceiveBuilderProps: {
|
|
1063
|
+
builderBlock: !0,
|
|
1064
|
+
builderContext: !0,
|
|
1065
|
+
builderComponents: !0,
|
|
1066
|
+
builderLinkComponent: !0
|
|
1067
|
+
}
|
|
1068
|
+
}, Je = y(() => import("./form-30431d39.js")), Ye = {
|
|
1069
|
+
shouldReceiveBuilderProps: {
|
|
1070
|
+
builderBlock: !1,
|
|
1071
|
+
builderContext: !1,
|
|
1072
|
+
builderComponents: !1,
|
|
1073
|
+
builderLinkComponent: !1
|
|
1074
|
+
},
|
|
991
1075
|
name: "Form:Input",
|
|
992
1076
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
993
1077
|
inputs: [
|
|
@@ -1038,7 +1122,13 @@ const P = {
|
|
|
1038
1122
|
borderStyle: "solid",
|
|
1039
1123
|
borderColor: "#ccc"
|
|
1040
1124
|
}
|
|
1041
|
-
}, Qe = y(() => import("./input-
|
|
1125
|
+
}, Qe = y(() => import("./input-d7e84d5c.js")), Ge = {
|
|
1126
|
+
shouldReceiveBuilderProps: {
|
|
1127
|
+
builderBlock: !1,
|
|
1128
|
+
builderContext: !1,
|
|
1129
|
+
builderComponents: !1,
|
|
1130
|
+
builderLinkComponent: !1
|
|
1131
|
+
},
|
|
1042
1132
|
name: "Form:Select",
|
|
1043
1133
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
1044
1134
|
defaultStyles: {
|
|
@@ -1080,7 +1170,13 @@ const P = {
|
|
|
1080
1170
|
}],
|
|
1081
1171
|
static: !0,
|
|
1082
1172
|
noWrap: !0
|
|
1083
|
-
}, Xe = y(() => import("./select-
|
|
1173
|
+
}, Xe = y(() => import("./select-744ccf82.js")), Ze = {
|
|
1174
|
+
shouldReceiveBuilderProps: {
|
|
1175
|
+
builderBlock: !1,
|
|
1176
|
+
builderContext: !1,
|
|
1177
|
+
builderComponents: !1,
|
|
1178
|
+
builderLinkComponent: !1
|
|
1179
|
+
},
|
|
1084
1180
|
name: "Form:SubmitButton",
|
|
1085
1181
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
1086
1182
|
defaultStyles: {
|
|
@@ -1106,6 +1202,12 @@ const P = {
|
|
|
1106
1202
|
// TODO: defaultChildren
|
|
1107
1203
|
// canHaveChildren: true,
|
|
1108
1204
|
}, et = y(() => import("./submit-button-b48361a7.js")), tt = {
|
|
1205
|
+
shouldReceiveBuilderProps: {
|
|
1206
|
+
builderBlock: !1,
|
|
1207
|
+
builderContext: !1,
|
|
1208
|
+
builderComponents: !1,
|
|
1209
|
+
builderLinkComponent: !1
|
|
1210
|
+
},
|
|
1109
1211
|
name: "Form:TextArea",
|
|
1110
1212
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
1111
1213
|
inputs: [{
|
|
@@ -1142,6 +1244,12 @@ const P = {
|
|
|
1142
1244
|
static: !0,
|
|
1143
1245
|
noWrap: !0
|
|
1144
1246
|
}, nt = y(() => import("./textarea-d29025e9.js")), at = {
|
|
1247
|
+
shouldReceiveBuilderProps: {
|
|
1248
|
+
builderBlock: !1,
|
|
1249
|
+
builderContext: !1,
|
|
1250
|
+
builderComponents: !1,
|
|
1251
|
+
builderLinkComponent: !1
|
|
1252
|
+
},
|
|
1145
1253
|
// friendlyName?
|
|
1146
1254
|
name: "Raw:Img",
|
|
1147
1255
|
hideFromInsertMenu: !0,
|
|
@@ -1155,7 +1263,7 @@ const P = {
|
|
|
1155
1263
|
}],
|
|
1156
1264
|
noWrap: !0,
|
|
1157
1265
|
static: !0
|
|
1158
|
-
}, it = y(() => import("./img-
|
|
1266
|
+
}, it = y(() => import("./img-02bb6d39.js")), ot = {
|
|
1159
1267
|
name: "Video",
|
|
1160
1268
|
canHaveChildren: !0,
|
|
1161
1269
|
defaultStyles: {
|
|
@@ -1235,7 +1343,13 @@ const P = {
|
|
|
1235
1343
|
helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
|
|
1236
1344
|
defaultValue: !0,
|
|
1237
1345
|
advanced: !0
|
|
1238
|
-
}]
|
|
1346
|
+
}],
|
|
1347
|
+
shouldReceiveBuilderProps: {
|
|
1348
|
+
builderBlock: !0,
|
|
1349
|
+
builderContext: !1,
|
|
1350
|
+
builderComponents: !1,
|
|
1351
|
+
builderLinkComponent: !1
|
|
1352
|
+
}
|
|
1239
1353
|
}, rt = () => [{
|
|
1240
1354
|
component: Me,
|
|
1241
1355
|
...Ke
|
|
@@ -1261,37 +1375,37 @@ const P = {
|
|
|
1261
1375
|
component: it,
|
|
1262
1376
|
...at
|
|
1263
1377
|
}, {
|
|
1264
|
-
component:
|
|
1378
|
+
component: xe,
|
|
1265
1379
|
...ot
|
|
1266
1380
|
}], G = () => [{
|
|
1267
|
-
component:
|
|
1268
|
-
...
|
|
1381
|
+
component: ye,
|
|
1382
|
+
...Be
|
|
1269
1383
|
}, {
|
|
1270
1384
|
component: ve,
|
|
1271
|
-
...
|
|
1385
|
+
...We
|
|
1272
1386
|
}, {
|
|
1273
1387
|
component: Se,
|
|
1274
|
-
...
|
|
1275
|
-
}, {
|
|
1276
|
-
component: Te,
|
|
1277
|
-
...Ue
|
|
1388
|
+
...Ae
|
|
1278
1389
|
}, {
|
|
1279
|
-
component:
|
|
1390
|
+
component: Ce,
|
|
1280
1391
|
...Le
|
|
1281
|
-
}, {
|
|
1282
|
-
component: He,
|
|
1283
|
-
...$e
|
|
1284
1392
|
}, {
|
|
1285
1393
|
component: ke,
|
|
1286
|
-
...
|
|
1394
|
+
...De
|
|
1287
1395
|
}, {
|
|
1288
|
-
component:
|
|
1396
|
+
component: $e,
|
|
1397
|
+
...Ue
|
|
1398
|
+
}, {
|
|
1399
|
+
component: Te,
|
|
1400
|
+
...He
|
|
1401
|
+
}, {
|
|
1402
|
+
component: Ie,
|
|
1289
1403
|
...je
|
|
1290
1404
|
}, {
|
|
1291
1405
|
component: qe,
|
|
1292
1406
|
...Ne
|
|
1293
1407
|
}, {
|
|
1294
|
-
component:
|
|
1408
|
+
component: Pe,
|
|
1295
1409
|
...Fe
|
|
1296
1410
|
}, ...rt()], lt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
1297
1411
|
function getAndSetVariantId() {
|
|
@@ -1383,14 +1497,14 @@ const P = {
|
|
|
1383
1497
|
thisScriptEl?.remove();
|
|
1384
1498
|
}
|
|
1385
1499
|
return;
|
|
1386
|
-
}`, ae = "builderIoAbTest", ie = "builderIoRenderContent",
|
|
1500
|
+
}`, ae = "builderIoAbTest", ie = "builderIoRenderContent", P = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
1387
1501
|
...t,
|
|
1388
1502
|
testVariationId: t.id,
|
|
1389
1503
|
id: e == null ? void 0 : e.id
|
|
1390
1504
|
})), dt = ({
|
|
1391
1505
|
canTrack: e,
|
|
1392
1506
|
content: t
|
|
1393
|
-
}) => !(!(
|
|
1507
|
+
}) => !(!(P(t).length > 0) || !e || $()), ut = (e) => e === "react" || e === "reactNative", oe = ut(te), ct = () => `
|
|
1394
1508
|
window.${ae} = ${lt}
|
|
1395
1509
|
window.${ie} = ${st}
|
|
1396
1510
|
`, mt = (e, t) => `
|
|
@@ -1402,8 +1516,8 @@ const P = {
|
|
|
1402
1516
|
}) => `window.${ie}(
|
|
1403
1517
|
"${t}", "${e}", ${oe}
|
|
1404
1518
|
)`;
|
|
1405
|
-
function
|
|
1406
|
-
return /* @__PURE__ */
|
|
1519
|
+
function H(e) {
|
|
1520
|
+
return /* @__PURE__ */ g(
|
|
1407
1521
|
"script",
|
|
1408
1522
|
{
|
|
1409
1523
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -1414,7 +1528,7 @@ function B(e) {
|
|
|
1414
1528
|
function X(e) {
|
|
1415
1529
|
return Math.round(e * 1e3) / 1e3;
|
|
1416
1530
|
}
|
|
1417
|
-
const
|
|
1531
|
+
const ft = (e, t, n = !0) => {
|
|
1418
1532
|
if (!(e instanceof HTMLElement))
|
|
1419
1533
|
return null;
|
|
1420
1534
|
let a = n ? e : e.parentElement;
|
|
@@ -1425,20 +1539,20 @@ const gt = (e, t, n = !0) => {
|
|
|
1425
1539
|
return a;
|
|
1426
1540
|
} while (a = a.parentElement);
|
|
1427
1541
|
return null;
|
|
1428
|
-
},
|
|
1542
|
+
}, gt = (e) => ft(e, (t) => {
|
|
1429
1543
|
const n = t.getAttribute("builder-id") || t.id;
|
|
1430
1544
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
1431
1545
|
}), Z = ({
|
|
1432
1546
|
event: e,
|
|
1433
1547
|
target: t
|
|
1434
1548
|
}) => {
|
|
1435
|
-
const n = t.getBoundingClientRect(), a = e.clientX - n.left, d = e.clientY - n.top,
|
|
1549
|
+
const n = t.getBoundingClientRect(), a = e.clientX - n.left, d = e.clientY - n.top, c = X(a / n.width), i = X(d / n.height);
|
|
1436
1550
|
return {
|
|
1437
|
-
x:
|
|
1551
|
+
x: c,
|
|
1438
1552
|
y: i
|
|
1439
1553
|
};
|
|
1440
1554
|
}, ht = (e) => {
|
|
1441
|
-
const t = e.target, n = t &&
|
|
1555
|
+
const t = e.target, n = t && gt(t), a = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
1442
1556
|
return {
|
|
1443
1557
|
targetBuilderElement: a || void 0,
|
|
1444
1558
|
metadata: {
|
|
@@ -1454,8 +1568,8 @@ const gt = (e, t, n = !0) => {
|
|
|
1454
1568
|
}
|
|
1455
1569
|
};
|
|
1456
1570
|
}, bt = (e) => {
|
|
1457
|
-
var
|
|
1458
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], a = (i = e.fileUrl) != null ? i : (
|
|
1571
|
+
var c, i;
|
|
1572
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], a = (i = e.fileUrl) != null ? i : (c = e == null ? void 0 : e.files) == null ? void 0 : c.regular;
|
|
1459
1573
|
let d = "";
|
|
1460
1574
|
if (a && t && n && (d += `
|
|
1461
1575
|
@font-face {
|
|
@@ -1479,12 +1593,12 @@ font-weight: ${o};
|
|
|
1479
1593
|
`.trim());
|
|
1480
1594
|
}
|
|
1481
1595
|
return d;
|
|
1482
|
-
},
|
|
1596
|
+
}, xt = ({
|
|
1483
1597
|
customFonts: e
|
|
1484
1598
|
}) => {
|
|
1485
1599
|
var t;
|
|
1486
1600
|
return ((t = e == null ? void 0 : e.map((n) => bt(n))) == null ? void 0 : t.join(" ")) || "";
|
|
1487
|
-
},
|
|
1601
|
+
}, yt = ({
|
|
1488
1602
|
cssCode: e,
|
|
1489
1603
|
contentId: t
|
|
1490
1604
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", vt = `
|
|
@@ -1504,24 +1618,24 @@ font-weight: ${o};
|
|
|
1504
1618
|
text-align: inherit;
|
|
1505
1619
|
font-family: inherit;
|
|
1506
1620
|
}
|
|
1507
|
-
`, St = (e) => e ? "" : vt,
|
|
1508
|
-
function
|
|
1621
|
+
`, St = (e) => e ? "" : vt, Ct = (e) => `variant-${e}`;
|
|
1622
|
+
function kt(e) {
|
|
1509
1623
|
var N, q, j, K, M, _, O;
|
|
1510
1624
|
const t = le(null);
|
|
1511
1625
|
function n(r) {
|
|
1512
1626
|
var p, s;
|
|
1513
|
-
const
|
|
1627
|
+
const u = {
|
|
1514
1628
|
...e.builderContextSignal.rootState,
|
|
1515
1629
|
...r
|
|
1516
1630
|
};
|
|
1517
|
-
e.builderContextSignal.rootSetState ? (s = (p = e.builderContextSignal).rootSetState) == null || s.call(p,
|
|
1631
|
+
e.builderContextSignal.rootSetState ? (s = (p = e.builderContextSignal).rootSetState) == null || s.call(p, u) : e.setBuilderContextSignal((l) => ({
|
|
1518
1632
|
...l,
|
|
1519
|
-
rootState:
|
|
1633
|
+
rootState: u
|
|
1520
1634
|
}));
|
|
1521
1635
|
}
|
|
1522
1636
|
function a(r) {
|
|
1523
|
-
var p, s, l,
|
|
1524
|
-
const
|
|
1637
|
+
var p, s, l, f, V;
|
|
1638
|
+
const u = {
|
|
1525
1639
|
...e.builderContextSignal.content,
|
|
1526
1640
|
...r,
|
|
1527
1641
|
data: {
|
|
@@ -1531,12 +1645,12 @@ function It(e) {
|
|
|
1531
1645
|
meta: {
|
|
1532
1646
|
...(s = e.builderContextSignal.content) == null ? void 0 : s.meta,
|
|
1533
1647
|
...r == null ? void 0 : r.meta,
|
|
1534
|
-
breakpoints: ((l = r == null ? void 0 : r.meta) == null ? void 0 : l.breakpoints) || ((V = (
|
|
1648
|
+
breakpoints: ((l = r == null ? void 0 : r.meta) == null ? void 0 : l.breakpoints) || ((V = (f = e.builderContextSignal.content) == null ? void 0 : f.meta) == null ? void 0 : V.breakpoints)
|
|
1535
1649
|
}
|
|
1536
1650
|
};
|
|
1537
1651
|
e.setBuilderContextSignal((b) => ({
|
|
1538
1652
|
...b,
|
|
1539
|
-
content:
|
|
1653
|
+
content: u
|
|
1540
1654
|
}));
|
|
1541
1655
|
}
|
|
1542
1656
|
function d() {
|
|
@@ -1545,35 +1659,35 @@ function It(e) {
|
|
|
1545
1659
|
"aria-hidden": !0
|
|
1546
1660
|
};
|
|
1547
1661
|
}
|
|
1548
|
-
const [
|
|
1662
|
+
const [c, i] = T(
|
|
1549
1663
|
() => e.contentWrapper || "div"
|
|
1550
1664
|
);
|
|
1551
1665
|
function o(r) {
|
|
1552
|
-
return
|
|
1666
|
+
return fe({
|
|
1553
1667
|
model: e.model,
|
|
1554
1668
|
trustedHosts: e.trustedHosts,
|
|
1555
1669
|
callbacks: {
|
|
1556
|
-
configureSdk: (
|
|
1670
|
+
configureSdk: (u) => {
|
|
1557
1671
|
var l;
|
|
1558
|
-
const { breakpoints: p, contentId: s } =
|
|
1672
|
+
const { breakpoints: p, contentId: s } = u;
|
|
1559
1673
|
!s || s !== ((l = e.builderContextSignal.content) == null ? void 0 : l.id) || p && a({
|
|
1560
1674
|
meta: {
|
|
1561
1675
|
breakpoints: p
|
|
1562
1676
|
}
|
|
1563
1677
|
});
|
|
1564
1678
|
},
|
|
1565
|
-
animation: (
|
|
1566
|
-
Ve(
|
|
1679
|
+
animation: (u) => {
|
|
1680
|
+
Ve(u);
|
|
1567
1681
|
},
|
|
1568
|
-
contentUpdate: (
|
|
1569
|
-
a(
|
|
1682
|
+
contentUpdate: (u) => {
|
|
1683
|
+
a(u);
|
|
1570
1684
|
}
|
|
1571
1685
|
}
|
|
1572
1686
|
})(r);
|
|
1573
1687
|
}
|
|
1574
1688
|
function m() {
|
|
1575
|
-
var
|
|
1576
|
-
const r = (p = (
|
|
1689
|
+
var u, p;
|
|
1690
|
+
const r = (p = (u = e.builderContextSignal.content) == null ? void 0 : u.data) == null ? void 0 : p.jsCode;
|
|
1577
1691
|
r && Q({
|
|
1578
1692
|
code: r,
|
|
1579
1693
|
context: e.context || {},
|
|
@@ -1586,14 +1700,14 @@ function It(e) {
|
|
|
1586
1700
|
enableCache: !1
|
|
1587
1701
|
});
|
|
1588
1702
|
}
|
|
1589
|
-
const [h,
|
|
1590
|
-
function
|
|
1591
|
-
var
|
|
1703
|
+
const [h, I] = T(() => ({})), [k, w] = T(() => ({})), [R, E] = T(() => !1);
|
|
1704
|
+
function v(r) {
|
|
1705
|
+
var u, p;
|
|
1592
1706
|
if (e.builderContextSignal.content) {
|
|
1593
|
-
const s = (
|
|
1707
|
+
const s = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, l = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
|
|
1594
1708
|
J({
|
|
1595
1709
|
type: "click",
|
|
1596
|
-
canTrack:
|
|
1710
|
+
canTrack: B(e.canTrack),
|
|
1597
1711
|
contentId: l,
|
|
1598
1712
|
apiKey: e.apiKey,
|
|
1599
1713
|
variationId: s !== l ? s : void 0,
|
|
@@ -1603,14 +1717,14 @@ function It(e) {
|
|
|
1603
1717
|
}
|
|
1604
1718
|
R || E(!0);
|
|
1605
1719
|
}
|
|
1606
|
-
function
|
|
1607
|
-
var
|
|
1608
|
-
const r = (s = (p = (
|
|
1609
|
-
Object.entries(r).forEach(([l,
|
|
1610
|
-
if (!
|
|
1720
|
+
function S() {
|
|
1721
|
+
var u, p, s;
|
|
1722
|
+
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, f]) => {
|
|
1724
|
+
if (!f || k[l] || h[l] && !F())
|
|
1611
1725
|
return;
|
|
1612
|
-
|
|
1613
|
-
const V =
|
|
1726
|
+
k[l] = !0;
|
|
1727
|
+
const V = f.replace(
|
|
1614
1728
|
/{{([^}]+)}}/g,
|
|
1615
1729
|
(b, re) => String(
|
|
1616
1730
|
Q({
|
|
@@ -1623,18 +1737,18 @@ function It(e) {
|
|
|
1623
1737
|
})
|
|
1624
1738
|
)
|
|
1625
1739
|
);
|
|
1626
|
-
|
|
1740
|
+
ge(V).then((b) => b.json()).then((b) => {
|
|
1627
1741
|
n({
|
|
1628
1742
|
[l]: b
|
|
1629
1743
|
}), h[l] = !0;
|
|
1630
1744
|
}).catch((b) => {
|
|
1631
|
-
console.error("error fetching dynamic data",
|
|
1745
|
+
console.error("error fetching dynamic data", f, b);
|
|
1632
1746
|
}).finally(() => {
|
|
1633
|
-
|
|
1747
|
+
k[l] = !1;
|
|
1634
1748
|
});
|
|
1635
1749
|
});
|
|
1636
1750
|
}
|
|
1637
|
-
function
|
|
1751
|
+
function C() {
|
|
1638
1752
|
F() && window.dispatchEvent(
|
|
1639
1753
|
new CustomEvent(
|
|
1640
1754
|
"builder:component:stateChange",
|
|
@@ -1649,9 +1763,9 @@ function It(e) {
|
|
|
1649
1763
|
)
|
|
1650
1764
|
);
|
|
1651
1765
|
}
|
|
1652
|
-
return
|
|
1653
|
-
var r,
|
|
1654
|
-
if (
|
|
1766
|
+
return x(() => {
|
|
1767
|
+
var r, u;
|
|
1768
|
+
if ($()) {
|
|
1655
1769
|
if (F() && (window.addEventListener("message", o), se(), de({
|
|
1656
1770
|
...e.locale ? {
|
|
1657
1771
|
locale: e.locale
|
|
@@ -1665,27 +1779,27 @@ function It(e) {
|
|
|
1665
1779
|
}), Object.values(
|
|
1666
1780
|
e.builderContextSignal.componentInfos
|
|
1667
1781
|
).forEach((s) => {
|
|
1668
|
-
var
|
|
1669
|
-
const l =
|
|
1670
|
-
(
|
|
1782
|
+
var f;
|
|
1783
|
+
const l = ue(s);
|
|
1784
|
+
(f = window.parent) == null || f.postMessage(l, "*");
|
|
1671
1785
|
}), window.addEventListener(
|
|
1672
1786
|
"builder:component:stateChangeListenerActivated",
|
|
1673
|
-
|
|
1674
|
-
)), e.builderContextSignal.content &&
|
|
1675
|
-
const s = (r = e.builderContextSignal.content) == null ? void 0 : r.testVariationId, l = (
|
|
1787
|
+
C
|
|
1788
|
+
)), e.builderContextSignal.content && B(e.canTrack)) {
|
|
1789
|
+
const s = (r = e.builderContextSignal.content) == null ? void 0 : r.testVariationId, l = (u = e.builderContextSignal.content) == null ? void 0 : u.id, f = e.apiKey;
|
|
1676
1790
|
J({
|
|
1677
1791
|
type: "impression",
|
|
1678
1792
|
canTrack: !0,
|
|
1679
1793
|
contentId: l,
|
|
1680
|
-
apiKey:
|
|
1794
|
+
apiKey: f,
|
|
1681
1795
|
variationId: s !== l ? s : void 0
|
|
1682
1796
|
});
|
|
1683
1797
|
}
|
|
1684
|
-
if (
|
|
1685
|
-
const s = new URL(location.href).searchParams, l = s.get("builder.preview"),
|
|
1798
|
+
if (ce() && !F()) {
|
|
1799
|
+
const s = new URL(location.href).searchParams, l = s.get("builder.preview"), f = s.get(
|
|
1686
1800
|
`builder.overrides.${l}`
|
|
1687
1801
|
), V = s.get("apiKey") || s.get("builder.space");
|
|
1688
|
-
l === e.model && V === e.apiKey && (!e.content ||
|
|
1802
|
+
l === e.model && V === e.apiKey && (!e.content || f === e.content.id) && me({
|
|
1689
1803
|
model: e.model,
|
|
1690
1804
|
apiKey: e.apiKey,
|
|
1691
1805
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -1694,67 +1808,67 @@ function It(e) {
|
|
|
1694
1808
|
});
|
|
1695
1809
|
}
|
|
1696
1810
|
}
|
|
1697
|
-
}, []),
|
|
1811
|
+
}, []), x(() => {
|
|
1698
1812
|
e.apiKey || pe.error(
|
|
1699
1813
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
1700
|
-
), m(),
|
|
1701
|
-
}, []),
|
|
1814
|
+
), m(), S(), C();
|
|
1815
|
+
}, []), x(() => {
|
|
1702
1816
|
e.content && a(e.content);
|
|
1703
|
-
}, [e.content]),
|
|
1817
|
+
}, [e.content]), x(() => {
|
|
1704
1818
|
m();
|
|
1705
|
-
}, [(q = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : q.jsCode]),
|
|
1706
|
-
v();
|
|
1707
|
-
}, [(K = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : K.httpRequests]), T(() => {
|
|
1819
|
+
}, [(q = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : q.jsCode]), x(() => {
|
|
1708
1820
|
S();
|
|
1709
|
-
}, [e.builderContextSignal.
|
|
1821
|
+
}, [(K = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : K.httpRequests]), x(() => {
|
|
1822
|
+
C();
|
|
1823
|
+
}, [e.builderContextSignal.rootState]), x(() => {
|
|
1710
1824
|
e.data && n(e.data);
|
|
1711
|
-
}, [e.data]),
|
|
1825
|
+
}, [e.data]), x(() => {
|
|
1712
1826
|
e.locale && n({
|
|
1713
1827
|
locale: e.locale
|
|
1714
1828
|
});
|
|
1715
|
-
}, [e.locale]),
|
|
1716
|
-
|
|
1829
|
+
}, [e.locale]), x(() => () => {
|
|
1830
|
+
$() && (window.removeEventListener("message", o), window.removeEventListener(
|
|
1717
1831
|
"builder:component:stateChangeListenerActivated",
|
|
1718
|
-
|
|
1832
|
+
C
|
|
1719
1833
|
));
|
|
1720
|
-
}, []), /* @__PURE__ */
|
|
1721
|
-
|
|
1834
|
+
}, []), /* @__PURE__ */ g(we.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ g(
|
|
1835
|
+
c,
|
|
1722
1836
|
{
|
|
1723
1837
|
ref: t,
|
|
1724
|
-
onClick: (r) =>
|
|
1838
|
+
onClick: (r) => v(r),
|
|
1725
1839
|
"builder-content-id": (M = e.builderContextSignal.content) == null ? void 0 : M.id,
|
|
1726
1840
|
"builder-model": e.model,
|
|
1727
1841
|
...d(),
|
|
1728
1842
|
...e.contentWrapperProps,
|
|
1729
|
-
className:
|
|
1843
|
+
className: Ct(
|
|
1730
1844
|
((_ = e.content) == null ? void 0 : _.testVariationId) || ((O = e.content) == null ? void 0 : O.id)
|
|
1731
1845
|
),
|
|
1732
1846
|
children: e.children
|
|
1733
1847
|
}
|
|
1734
1848
|
) : null });
|
|
1735
1849
|
}
|
|
1736
|
-
function
|
|
1737
|
-
const [t, n] =
|
|
1850
|
+
function Tt(e) {
|
|
1851
|
+
const [t, n] = T(
|
|
1738
1852
|
() => `
|
|
1739
|
-
${
|
|
1853
|
+
${yt({
|
|
1740
1854
|
cssCode: e.cssCode,
|
|
1741
1855
|
contentId: e.contentId
|
|
1742
1856
|
})}
|
|
1743
|
-
${
|
|
1857
|
+
${xt({
|
|
1744
1858
|
customFonts: e.customFonts
|
|
1745
1859
|
})}
|
|
1746
1860
|
${St(e.isNestedRender)}
|
|
1747
1861
|
`.trim()
|
|
1748
1862
|
);
|
|
1749
|
-
return /* @__PURE__ */
|
|
1863
|
+
return /* @__PURE__ */ g(ne, { id: "builderio-content", styles: t });
|
|
1750
1864
|
}
|
|
1751
|
-
const
|
|
1865
|
+
const It = ({
|
|
1752
1866
|
content: e,
|
|
1753
1867
|
data: t,
|
|
1754
1868
|
locale: n
|
|
1755
1869
|
}) => {
|
|
1756
|
-
var
|
|
1757
|
-
const a = {}, d = ((
|
|
1870
|
+
var c, i, o;
|
|
1871
|
+
const a = {}, d = ((c = e == null ? void 0 : e.data) == null ? void 0 : c.state) || {};
|
|
1758
1872
|
return (o = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || o.forEach((m) => {
|
|
1759
1873
|
m.name && m.defaultValue !== void 0 && (a[m.name] = m.defaultValue);
|
|
1760
1874
|
}), {
|
|
@@ -1777,45 +1891,45 @@ const Ct = ({
|
|
|
1777
1891
|
meta: e == null ? void 0 : e.meta
|
|
1778
1892
|
} : void 0;
|
|
1779
1893
|
function ee(e) {
|
|
1780
|
-
var m, h,
|
|
1781
|
-
const [t, n] =
|
|
1894
|
+
var m, h, I, k, w, R, E;
|
|
1895
|
+
const [t, n] = T(
|
|
1782
1896
|
() => {
|
|
1783
|
-
var
|
|
1897
|
+
var v, S;
|
|
1784
1898
|
return pt({
|
|
1785
1899
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
1786
|
-
variationId: (
|
|
1900
|
+
variationId: (v = e.content) == null ? void 0 : v.testVariationId,
|
|
1787
1901
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
1788
|
-
contentId: (
|
|
1902
|
+
contentId: (S = e.content) == null ? void 0 : S.id
|
|
1789
1903
|
});
|
|
1790
1904
|
}
|
|
1791
1905
|
);
|
|
1792
|
-
function a(
|
|
1793
|
-
o((
|
|
1794
|
-
...
|
|
1795
|
-
rootState:
|
|
1906
|
+
function a(v) {
|
|
1907
|
+
o((S) => ({
|
|
1908
|
+
...S,
|
|
1909
|
+
rootState: v
|
|
1796
1910
|
}));
|
|
1797
1911
|
}
|
|
1798
|
-
const [d,
|
|
1912
|
+
const [d, c] = T(
|
|
1799
1913
|
() => [
|
|
1800
1914
|
...G(),
|
|
1801
1915
|
...e.customComponents || []
|
|
1802
1916
|
].reduce(
|
|
1803
|
-
(
|
|
1804
|
-
...
|
|
1805
|
-
[
|
|
1806
|
-
component:
|
|
1807
|
-
...Y(
|
|
1917
|
+
(v, { component: S, ...C }) => ({
|
|
1918
|
+
...v,
|
|
1919
|
+
[C.name]: {
|
|
1920
|
+
component: S,
|
|
1921
|
+
...Y(C)
|
|
1808
1922
|
}
|
|
1809
1923
|
}),
|
|
1810
1924
|
{}
|
|
1811
1925
|
)
|
|
1812
|
-
), [i, o] =
|
|
1926
|
+
), [i, o] = T(() => ({
|
|
1813
1927
|
content: wt({
|
|
1814
1928
|
content: e.content,
|
|
1815
1929
|
data: e.data
|
|
1816
1930
|
}),
|
|
1817
1931
|
localState: void 0,
|
|
1818
|
-
rootState:
|
|
1932
|
+
rootState: It({
|
|
1819
1933
|
content: e.content,
|
|
1820
1934
|
data: e.data,
|
|
1821
1935
|
locale: e.locale
|
|
@@ -1829,9 +1943,9 @@ function ee(e) {
|
|
|
1829
1943
|
...G(),
|
|
1830
1944
|
...e.customComponents || []
|
|
1831
1945
|
].reduce(
|
|
1832
|
-
(
|
|
1833
|
-
...
|
|
1834
|
-
[
|
|
1946
|
+
(v, { component: S, ...C }) => ({
|
|
1947
|
+
...v,
|
|
1948
|
+
[C.name]: Y(C)
|
|
1835
1949
|
}),
|
|
1836
1950
|
{}
|
|
1837
1951
|
),
|
|
@@ -1839,14 +1953,14 @@ function ee(e) {
|
|
|
1839
1953
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
1840
1954
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
1841
1955
|
}));
|
|
1842
|
-
return /* @__PURE__ */
|
|
1956
|
+
return /* @__PURE__ */ g(
|
|
1843
1957
|
Re.Provider,
|
|
1844
1958
|
{
|
|
1845
1959
|
value: {
|
|
1846
1960
|
registeredComponents: d
|
|
1847
1961
|
},
|
|
1848
|
-
children: /* @__PURE__ */
|
|
1849
|
-
|
|
1962
|
+
children: /* @__PURE__ */ U(
|
|
1963
|
+
kt,
|
|
1850
1964
|
{
|
|
1851
1965
|
content: e.content,
|
|
1852
1966
|
data: e.data,
|
|
@@ -1863,23 +1977,23 @@ function ee(e) {
|
|
|
1863
1977
|
trustedHosts: e.trustedHosts,
|
|
1864
1978
|
setBuilderContextSignal: o,
|
|
1865
1979
|
children: [
|
|
1866
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
1867
|
-
|
|
1980
|
+
e.isSsrAbTest ? /* @__PURE__ */ g(
|
|
1981
|
+
H,
|
|
1868
1982
|
{
|
|
1869
1983
|
id: "builderio-variant-visibility",
|
|
1870
1984
|
scriptStr: t
|
|
1871
1985
|
}
|
|
1872
1986
|
) : null,
|
|
1873
|
-
/* @__PURE__ */
|
|
1874
|
-
|
|
1987
|
+
/* @__PURE__ */ g(
|
|
1988
|
+
Tt,
|
|
1875
1989
|
{
|
|
1876
1990
|
isNestedRender: e.isNestedRender,
|
|
1877
1991
|
contentId: (m = i.content) == null ? void 0 : m.id,
|
|
1878
|
-
cssCode: (
|
|
1879
|
-
customFonts: (w = (
|
|
1992
|
+
cssCode: (I = (h = i.content) == null ? void 0 : h.data) == null ? void 0 : I.cssCode,
|
|
1993
|
+
customFonts: (w = (k = i.content) == null ? void 0 : k.data) == null ? void 0 : w.customFonts
|
|
1880
1994
|
}
|
|
1881
1995
|
),
|
|
1882
|
-
/* @__PURE__ */
|
|
1996
|
+
/* @__PURE__ */ g(
|
|
1883
1997
|
Ee,
|
|
1884
1998
|
{
|
|
1885
1999
|
blocks: (E = (R = i.content) == null ? void 0 : R.data) == null ? void 0 : E.blocks,
|
|
@@ -1894,18 +2008,18 @@ function ee(e) {
|
|
|
1894
2008
|
}
|
|
1895
2009
|
);
|
|
1896
2010
|
}
|
|
1897
|
-
function
|
|
2011
|
+
function At(e) {
|
|
1898
2012
|
var i;
|
|
1899
|
-
const [t, n] =
|
|
2013
|
+
const [t, n] = T(
|
|
1900
2014
|
() => dt({
|
|
1901
|
-
canTrack:
|
|
2015
|
+
canTrack: B(e.canTrack),
|
|
1902
2016
|
content: e.content
|
|
1903
2017
|
})
|
|
1904
2018
|
);
|
|
1905
2019
|
function a() {
|
|
1906
2020
|
var o;
|
|
1907
2021
|
return mt(
|
|
1908
|
-
|
|
2022
|
+
P(e.content).map((m) => ({
|
|
1909
2023
|
id: m.testVariationId,
|
|
1910
2024
|
testRatio: m.testRatio
|
|
1911
2025
|
})),
|
|
@@ -1913,43 +2027,44 @@ function Dt(e) {
|
|
|
1913
2027
|
);
|
|
1914
2028
|
}
|
|
1915
2029
|
function d() {
|
|
1916
|
-
return
|
|
2030
|
+
return P(e.content).map((o) => `.variant-${o.testVariationId} { display: none; } `).join("");
|
|
1917
2031
|
}
|
|
1918
|
-
function
|
|
2032
|
+
function c() {
|
|
1919
2033
|
var o;
|
|
1920
2034
|
return t ? {
|
|
1921
2035
|
...e.content,
|
|
1922
2036
|
testVariationId: (o = e.content) == null ? void 0 : o.id
|
|
1923
2037
|
} : be({
|
|
1924
2038
|
item: e.content,
|
|
1925
|
-
canTrack:
|
|
2039
|
+
canTrack: B(e.canTrack)
|
|
1926
2040
|
});
|
|
1927
2041
|
}
|
|
1928
|
-
return
|
|
1929
|
-
}, []),
|
|
1930
|
-
|
|
1931
|
-
|
|
2042
|
+
return x(() => {
|
|
2043
|
+
}, []), x(() => {
|
|
2044
|
+
}), /* @__PURE__ */ U(z, { children: [
|
|
2045
|
+
!e.isNestedRender && te !== "reactNative" ? /* @__PURE__ */ g(
|
|
2046
|
+
H,
|
|
1932
2047
|
{
|
|
1933
2048
|
id: "builderio-init-variants-fns",
|
|
1934
|
-
scriptStr:
|
|
2049
|
+
scriptStr: ct()
|
|
1935
2050
|
}
|
|
1936
2051
|
) : null,
|
|
1937
|
-
t ? /* @__PURE__ */
|
|
1938
|
-
/* @__PURE__ */
|
|
2052
|
+
t ? /* @__PURE__ */ U(z, { children: [
|
|
2053
|
+
/* @__PURE__ */ g(
|
|
1939
2054
|
ne,
|
|
1940
2055
|
{
|
|
1941
2056
|
id: "builderio-variants",
|
|
1942
2057
|
styles: d()
|
|
1943
2058
|
}
|
|
1944
2059
|
),
|
|
1945
|
-
/* @__PURE__ */
|
|
1946
|
-
|
|
2060
|
+
/* @__PURE__ */ g(
|
|
2061
|
+
H,
|
|
1947
2062
|
{
|
|
1948
2063
|
id: "builderio-variants-visibility",
|
|
1949
2064
|
scriptStr: a()
|
|
1950
2065
|
}
|
|
1951
2066
|
),
|
|
1952
|
-
(i =
|
|
2067
|
+
(i = P(e.content)) == null ? void 0 : i.map((o) => /* @__PURE__ */ g(
|
|
1953
2068
|
ee,
|
|
1954
2069
|
{
|
|
1955
2070
|
isNestedRender: e.isNestedRender,
|
|
@@ -1975,11 +2090,11 @@ function Dt(e) {
|
|
|
1975
2090
|
o.testVariationId
|
|
1976
2091
|
))
|
|
1977
2092
|
] }) : null,
|
|
1978
|
-
/* @__PURE__ */
|
|
2093
|
+
/* @__PURE__ */ g(
|
|
1979
2094
|
ee,
|
|
1980
2095
|
{
|
|
1981
2096
|
isNestedRender: e.isNestedRender,
|
|
1982
|
-
content:
|
|
2097
|
+
content: c(),
|
|
1983
2098
|
showContent: !0,
|
|
1984
2099
|
model: e.model,
|
|
1985
2100
|
data: e.data,
|
|
@@ -2002,5 +2117,5 @@ function Dt(e) {
|
|
|
2002
2117
|
] });
|
|
2003
2118
|
}
|
|
2004
2119
|
export {
|
|
2005
|
-
|
|
2120
|
+
At as default
|
|
2006
2121
|
};
|