@builder.io/sdk-react 3.0.3-0 → 3.0.5
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 +32 -169
- package/lib/browser/blocks-exports.mjs +778 -1199
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +16 -17
- package/lib/browser/server-entry-101d66b8.cjs +2 -0
- package/lib/browser/{server-entry-da1754bd.js → server-entry-785c0408.js} +237 -279
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-388f5e60.cjs → accordion-190c4426.cjs} +1 -1
- package/lib/edge/{accordion-50de133c.js → accordion-cd6e0363.js} +1 -1
- package/lib/edge/{blocks-a5193d52.cjs → blocks-766e8d45.cjs} +9 -9
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +12 -13
- package/lib/edge/{blocks-5e476ddc.js → blocks-fe2d7c1a.js} +2 -3
- package/lib/edge/{button-c6ec3aea.cjs → button-694fcd4f.cjs} +1 -1
- package/lib/edge/{button-4261ae64.js → button-6a27481c.js} +2 -2
- package/lib/edge/{columns-28e9fb0a.js → columns-90e6407e.js} +18 -18
- package/lib/edge/{columns-8c831c02.cjs → columns-b38bf0f7.cjs} +2 -2
- package/lib/edge/content-variants-4e385c19.cjs +134 -0
- package/lib/edge/{content-variants-36ca4fe5.js → content-variants-cbb89349.js} +124 -165
- package/lib/edge/dynamic-blocks-exports.cjs +1 -3
- package/lib/edge/dynamic-blocks-exports.mjs +2 -5
- package/lib/edge/form-16bbf874.js +166 -0
- package/lib/edge/form-547645eb.cjs +1 -0
- package/lib/edge/{get-class-prop-name-a86a3e60.cjs → get-class-prop-name-58770197.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-65d6824c.js → get-class-prop-name-8b719c6b.js} +1 -1
- package/lib/edge/{image-2a2b26d2.js → image-38917f45.js} +22 -24
- package/lib/edge/image-590e36ae.cjs +17 -0
- package/lib/edge/{img-7de3a3de.cjs → img-8859c851.cjs} +1 -1
- package/lib/edge/{img-61d29fb3.js → img-d3351743.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +17 -18
- package/lib/edge/{input-c8539054.js → input-24c601b4.js} +1 -1
- package/lib/edge/{input-bd5387a6.cjs → input-4fe0fc6d.cjs} +1 -1
- package/lib/edge/{select-6b5cda00.js → select-af05377b.js} +1 -1
- package/lib/edge/{select-73accaf4.cjs → select-c73bd418.cjs} +1 -1
- package/lib/edge/server-entry-3c7fa63a.cjs +2 -0
- package/lib/edge/{server-entry-838c1f06.js → server-entry-67bfc740.js} +280 -322
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-403c77da.js → slot-32a4df0c.js} +3 -3
- package/lib/edge/{slot-099112f1.cjs → slot-759c8dd9.cjs} +1 -1
- package/lib/edge/{symbol-97f456f4.js → symbol-50360a37.js} +2 -2
- package/lib/edge/{symbol-ffa6e6cd.cjs → symbol-8d63aa7d.cjs} +1 -1
- package/lib/edge/{tabs-a7c94ead.js → tabs-6535c934.js} +3 -3
- package/lib/edge/{tabs-ad55c6a7.cjs → tabs-fc6c1700.cjs} +1 -1
- package/lib/edge/video-4ecfd08b.cjs +1 -0
- package/lib/edge/{video-58c2cc8d.js → video-a3f10439.js} +0 -1
- package/lib/node/blocks-exports.cjs +32 -169
- package/lib/node/blocks-exports.mjs +896 -1317
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +16 -17
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/server-entry-95273908.cjs +2 -0
- package/lib/node/{server-entry-51bc0b1d.js → server-entry-ffc70868.js} +237 -279
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-575cf1f1.js → setIvm-2cea7252.js} +1 -1
- package/lib/node/{setIvm-d912cf4d.cjs → setIvm-4ce0db03.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-66df4856.js → should-force-browser-runtime-in-node-c0d50009.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-23225980.cjs → should-force-browser-runtime-in-node-d3e6df07.cjs} +1 -1
- package/package.json +2 -2
- package/types/blocks/form/form/form.d.ts +1 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/index-helpers/blocks-exports.d.ts +0 -1
- package/types/types/components.d.ts +2 -2
- package/types/types/input.d.ts +0 -1
- package/lib/browser/server-entry-c7bda8b5.cjs +0 -2
- package/lib/edge/content-variants-81713434.cjs +0 -134
- package/lib/edge/form-039fb5ff.js +0 -176
- package/lib/edge/form-e7a1dec9.cjs +0 -1
- package/lib/edge/image-4db81d72.cjs +0 -17
- package/lib/edge/personalization-container-3fda6014.cjs +0 -138
- package/lib/edge/personalization-container-c76e4fef.js +0 -379
- package/lib/edge/server-entry-ea2a8b0e.cjs +0 -2
- package/lib/edge/video-e20dcbbc.cjs +0 -1
- package/lib/node/server-entry-d7316893.cjs +0 -2
- package/types/blocks/index.d.ts +0 -4
- package/types/blocks/personalization-container/component-info.d.ts +0 -2
- package/types/blocks/personalization-container/helpers/index.d.ts +0 -15
- package/types/blocks/personalization-container/helpers/inlined-fns.d.ts +0 -8
- package/types/blocks/personalization-container/helpers.d.ts +0 -27
- package/types/blocks/personalization-container/index.d.ts +0 -1
- package/types/blocks/personalization-container/personalization-container.d.ts +0 -4
- package/types/blocks/personalization-container/personalization-container.types.d.ts +0 -14
- package/types/blocks/textarea/component-info.d.ts +0 -2
- package/types/blocks/textarea/index.d.ts +0 -1
- package/types/blocks/textarea/textarea.d.ts +0 -14
- package/types/functions/filter-with-custom-targeting.d.ts +0 -15
- package/types/helpers/user-attributes.d.ts +0 -17
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { jsx as h, jsxs as $, Fragment as z } from "react/jsx-runtime";
|
|
2
|
-
import { lazy as
|
|
3
|
-
import { isBrowser as j, TARGET as
|
|
2
|
+
import { lazy as S, useRef as _, useState as I, useEffect as V } from "react";
|
|
3
|
+
import { isBrowser as j, TARGET as O, isEditing as F, isPreviewing as te, registerInsertMenu as le, setupBrowserForEditing as se, createRegisterComponentMessage as de, getDefaultCanTrack as H, _track as J, fetchOneEntry as ce, createEditorListener as ue, logFetch as me, serializeIncludingFunctions as Y, logger as pe, handleABTestingSync as fe } from "./server-entry-67bfc740.js";
|
|
4
4
|
import { Video as ge, Button as he, Columns as be, Fragment as ye, Image as xe, Section as ve, Symbol as Se, Text as Te, BuilderContext as Ie } from "./blocks-exports.mjs";
|
|
5
|
-
import { triggerAnimation as ke, evaluate as ne, fastClone as Ce, InlinedStyles as ae, ComponentsContext as we, Blocks as Ve } from "./blocks-
|
|
5
|
+
import { triggerAnimation as ke, evaluate as ne, fastClone as Ce, InlinedStyles as ae, ComponentsContext as we, Blocks as Ve } from "./blocks-fe2d7c1a.js";
|
|
6
|
+
import "./get-class-prop-name-8b719c6b.js";
|
|
7
|
+
import "./dynamic-renderer-8b343325.js";
|
|
6
8
|
const U = {
|
|
7
9
|
"@type": "@builder.io/sdk:Element",
|
|
8
10
|
layerName: "Accordion item title",
|
|
@@ -127,7 +129,7 @@ const U = {
|
|
|
127
129
|
builderComponents: !0,
|
|
128
130
|
builderLinkComponent: !0
|
|
129
131
|
}
|
|
130
|
-
}, Ee =
|
|
132
|
+
}, Ee = S(() => import("./accordion-cd6e0363.js")), Fe = {
|
|
131
133
|
name: "Core:Button",
|
|
132
134
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
133
135
|
defaultStyles: {
|
|
@@ -342,7 +344,7 @@ const U = {
|
|
|
342
344
|
});
|
|
343
345
|
}
|
|
344
346
|
const n = e.get("columns");
|
|
345
|
-
Array.isArray(n) && n.find((l) => l.get("width")) && (n.find((
|
|
347
|
+
Array.isArray(n) && n.find((l) => l.get("width")) && (n.find((c) => !c.get("width")) || n.reduce((o, u) => o + u.get("width"), 0) !== 100) && t();
|
|
346
348
|
}
|
|
347
349
|
}, {
|
|
348
350
|
name: "space",
|
|
@@ -370,13 +372,13 @@ const U = {
|
|
|
370
372
|
builderComponents: !0,
|
|
371
373
|
builderLinkComponent: !0
|
|
372
374
|
}
|
|
373
|
-
},
|
|
375
|
+
}, Ae = {
|
|
374
376
|
name: "Fragment",
|
|
375
377
|
static: !0,
|
|
376
378
|
hidden: !0,
|
|
377
379
|
canHaveChildren: !0,
|
|
378
380
|
noWrap: !0
|
|
379
|
-
}, M = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"],
|
|
381
|
+
}, M = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], We = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Be = {
|
|
380
382
|
name: "Image",
|
|
381
383
|
static: !0,
|
|
382
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",
|
|
@@ -397,14 +399,14 @@ const U = {
|
|
|
397
399
|
onChange: (e) => {
|
|
398
400
|
e.delete("srcset"), e.delete("noWebp");
|
|
399
401
|
function n(a, o = 6e4) {
|
|
400
|
-
return new Promise((
|
|
401
|
-
const
|
|
402
|
+
return new Promise((u, T) => {
|
|
403
|
+
const v = document.createElement("img");
|
|
402
404
|
let R = !1;
|
|
403
|
-
|
|
404
|
-
R = !0,
|
|
405
|
-
},
|
|
405
|
+
v.onload = () => {
|
|
406
|
+
R = !0, u(v);
|
|
407
|
+
}, v.addEventListener("error", (k) => {
|
|
406
408
|
console.warn("Image load failed", k.error), T(k.error);
|
|
407
|
-
}),
|
|
409
|
+
}), v.src = a, setTimeout(() => {
|
|
408
410
|
R || T(new Error("Image load timed out"));
|
|
409
411
|
}, o);
|
|
410
412
|
});
|
|
@@ -412,10 +414,10 @@ const U = {
|
|
|
412
414
|
function i(a) {
|
|
413
415
|
return Math.round(a * 1e3) / 1e3;
|
|
414
416
|
}
|
|
415
|
-
const l = e.get("image"),
|
|
417
|
+
const l = e.get("image"), c = e.get("aspectRatio");
|
|
416
418
|
if (fetch(l).then((a) => a.blob()).then((a) => {
|
|
417
419
|
a.type.includes("svg") && e.set("noWebp", !0);
|
|
418
|
-
}), l && (!
|
|
420
|
+
}), l && (!c || c === 0.7041))
|
|
419
421
|
return n(l).then((a) => {
|
|
420
422
|
const o = e.get("aspectRatio");
|
|
421
423
|
e.get("image") === l && (!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));
|
|
@@ -485,41 +487,6 @@ const U = {
|
|
|
485
487
|
builderBlock: !0
|
|
486
488
|
}
|
|
487
489
|
}, De = {
|
|
488
|
-
name: "PersonalizationContainer",
|
|
489
|
-
shouldReceiveBuilderProps: {
|
|
490
|
-
builderBlock: !0,
|
|
491
|
-
builderContext: !0
|
|
492
|
-
},
|
|
493
|
-
noWrap: !0,
|
|
494
|
-
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
|
|
495
|
-
canHaveChildren: !0,
|
|
496
|
-
inputs: [{
|
|
497
|
-
name: "variants",
|
|
498
|
-
defaultValue: [],
|
|
499
|
-
behavior: "personalizationVariantList",
|
|
500
|
-
type: "list",
|
|
501
|
-
subFields: [{
|
|
502
|
-
name: "name",
|
|
503
|
-
type: "text"
|
|
504
|
-
}, {
|
|
505
|
-
name: "query",
|
|
506
|
-
friendlyName: "Targeting rules",
|
|
507
|
-
type: "BuilderQuery",
|
|
508
|
-
defaultValue: []
|
|
509
|
-
}, {
|
|
510
|
-
name: "startDate",
|
|
511
|
-
type: "date"
|
|
512
|
-
}, {
|
|
513
|
-
name: "endDate",
|
|
514
|
-
type: "date"
|
|
515
|
-
}, {
|
|
516
|
-
name: "blocks",
|
|
517
|
-
type: "uiBlocks",
|
|
518
|
-
hideFromUI: !0,
|
|
519
|
-
defaultValue: []
|
|
520
|
-
}]
|
|
521
|
-
}]
|
|
522
|
-
}, He = v(() => import("./personalization-container-c76e4fef.js")), Ue = {
|
|
523
490
|
name: "Core:Section",
|
|
524
491
|
static: !0,
|
|
525
492
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -558,7 +525,7 @@ const U = {
|
|
|
558
525
|
}
|
|
559
526
|
}
|
|
560
527
|
}]
|
|
561
|
-
},
|
|
528
|
+
}, He = {
|
|
562
529
|
name: "Slot",
|
|
563
530
|
isRSC: !0,
|
|
564
531
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -575,7 +542,7 @@ const U = {
|
|
|
575
542
|
builderContext: !0,
|
|
576
543
|
builderComponents: !0
|
|
577
544
|
}
|
|
578
|
-
},
|
|
545
|
+
}, Ue = S(() => import("./slot-32a4df0c.js")), Le = {
|
|
579
546
|
name: "Symbol",
|
|
580
547
|
noWrap: !0,
|
|
581
548
|
static: !0,
|
|
@@ -652,7 +619,7 @@ const U = {
|
|
|
652
619
|
text: "New tab content "
|
|
653
620
|
}
|
|
654
621
|
}
|
|
655
|
-
},
|
|
622
|
+
}, Ne = {
|
|
656
623
|
name: "Builder: Tabs",
|
|
657
624
|
inputs: [{
|
|
658
625
|
name: "tabs",
|
|
@@ -755,7 +722,7 @@ const U = {
|
|
|
755
722
|
builderComponents: !0,
|
|
756
723
|
builderLinkComponent: !0
|
|
757
724
|
}
|
|
758
|
-
},
|
|
725
|
+
}, qe = S(() => import("./tabs-6535c934.js")), $e = {
|
|
759
726
|
shouldReceiveBuilderProps: {
|
|
760
727
|
builderBlock: !1,
|
|
761
728
|
builderContext: !0
|
|
@@ -777,7 +744,7 @@ const U = {
|
|
|
777
744
|
height: "auto",
|
|
778
745
|
textAlign: "center"
|
|
779
746
|
}
|
|
780
|
-
},
|
|
747
|
+
}, _e = {
|
|
781
748
|
name: "Custom Code",
|
|
782
749
|
static: !0,
|
|
783
750
|
requiredPermissions: ["editCode"],
|
|
@@ -799,7 +766,7 @@ const U = {
|
|
|
799
766
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
800
767
|
advanced: !0
|
|
801
768
|
}]
|
|
802
|
-
},
|
|
769
|
+
}, je = S(() => import("./custom-code-7786788e.js")), Ke = {
|
|
803
770
|
name: "Embed",
|
|
804
771
|
static: !0,
|
|
805
772
|
inputs: [{
|
|
@@ -814,7 +781,7 @@ const U = {
|
|
|
814
781
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
815
782
|
hideFromUI: !0
|
|
816
783
|
}]
|
|
817
|
-
},
|
|
784
|
+
}, Oe = S(() => import("./embed-5c1bbe12.js")), Me = {
|
|
818
785
|
name: "Form:Form",
|
|
819
786
|
// editableTags: ['builder-form-error']
|
|
820
787
|
defaults: {
|
|
@@ -1051,7 +1018,7 @@ const U = {
|
|
|
1051
1018
|
builderComponents: !0,
|
|
1052
1019
|
builderLinkComponent: !0
|
|
1053
1020
|
}
|
|
1054
|
-
},
|
|
1021
|
+
}, ze = S(() => import("./form-16bbf874.js")), Je = {
|
|
1055
1022
|
name: "Form:Input",
|
|
1056
1023
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
1057
1024
|
inputs: [
|
|
@@ -1102,7 +1069,7 @@ const U = {
|
|
|
1102
1069
|
borderStyle: "solid",
|
|
1103
1070
|
borderColor: "#ccc"
|
|
1104
1071
|
}
|
|
1105
|
-
},
|
|
1072
|
+
}, Ye = S(() => import("./input-24c601b4.js")), Ge = {
|
|
1106
1073
|
name: "Form:Select",
|
|
1107
1074
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
1108
1075
|
defaultStyles: {
|
|
@@ -1144,7 +1111,7 @@ const U = {
|
|
|
1144
1111
|
}],
|
|
1145
1112
|
static: !0,
|
|
1146
1113
|
noWrap: !0
|
|
1147
|
-
},
|
|
1114
|
+
}, Qe = S(() => import("./select-af05377b.js")), Xe = {
|
|
1148
1115
|
name: "Form:SubmitButton",
|
|
1149
1116
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
1150
1117
|
defaultStyles: {
|
|
@@ -1169,7 +1136,7 @@ const U = {
|
|
|
1169
1136
|
// that only shows if advanced setting is flipped
|
|
1170
1137
|
// TODO: defaultChildren
|
|
1171
1138
|
// canHaveChildren: true,
|
|
1172
|
-
},
|
|
1139
|
+
}, Ze = S(() => import("./submit-button-b48361a7.js")), et = {
|
|
1173
1140
|
name: "Form:TextArea",
|
|
1174
1141
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
1175
1142
|
inputs: [{
|
|
@@ -1205,7 +1172,7 @@ const U = {
|
|
|
1205
1172
|
},
|
|
1206
1173
|
static: !0,
|
|
1207
1174
|
noWrap: !0
|
|
1208
|
-
},
|
|
1175
|
+
}, tt = S(() => import("./textarea-d29025e9.js")), nt = {
|
|
1209
1176
|
// friendlyName?
|
|
1210
1177
|
name: "Raw:Img",
|
|
1211
1178
|
hideFromInsertMenu: !0,
|
|
@@ -1219,7 +1186,7 @@ const U = {
|
|
|
1219
1186
|
}],
|
|
1220
1187
|
noWrap: !0,
|
|
1221
1188
|
static: !0
|
|
1222
|
-
},
|
|
1189
|
+
}, at = S(() => import("./img-d3351743.js")), it = {
|
|
1223
1190
|
name: "Video",
|
|
1224
1191
|
canHaveChildren: !0,
|
|
1225
1192
|
defaultStyles: {
|
|
@@ -1230,7 +1197,7 @@ const U = {
|
|
|
1230
1197
|
inputs: [{
|
|
1231
1198
|
name: "video",
|
|
1232
1199
|
type: "file",
|
|
1233
|
-
allowedFileTypes:
|
|
1200
|
+
allowedFileTypes: We,
|
|
1234
1201
|
bubble: !0,
|
|
1235
1202
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
1236
1203
|
required: !0
|
|
@@ -1303,33 +1270,33 @@ const U = {
|
|
|
1303
1270
|
shouldReceiveBuilderProps: {
|
|
1304
1271
|
builderBlock: !0
|
|
1305
1272
|
}
|
|
1306
|
-
},
|
|
1307
|
-
component:
|
|
1308
|
-
...
|
|
1273
|
+
}, ot = () => [{
|
|
1274
|
+
component: je,
|
|
1275
|
+
..._e
|
|
1276
|
+
}, {
|
|
1277
|
+
component: Oe,
|
|
1278
|
+
...Ke
|
|
1309
1279
|
}, {
|
|
1310
1280
|
component: ze,
|
|
1311
1281
|
...Me
|
|
1312
1282
|
}, {
|
|
1313
1283
|
component: Ye,
|
|
1314
1284
|
...Je
|
|
1285
|
+
}, {
|
|
1286
|
+
component: Ze,
|
|
1287
|
+
...Xe
|
|
1315
1288
|
}, {
|
|
1316
1289
|
component: Qe,
|
|
1317
1290
|
...Ge
|
|
1318
1291
|
}, {
|
|
1319
1292
|
component: tt,
|
|
1320
1293
|
...et
|
|
1321
|
-
}, {
|
|
1322
|
-
component: Ze,
|
|
1323
|
-
...Xe
|
|
1324
1294
|
}, {
|
|
1325
1295
|
component: at,
|
|
1326
1296
|
...nt
|
|
1327
|
-
}, {
|
|
1328
|
-
component: ot,
|
|
1329
|
-
...it
|
|
1330
1297
|
}, {
|
|
1331
1298
|
component: ge,
|
|
1332
|
-
...
|
|
1299
|
+
...it
|
|
1333
1300
|
}], G = () => [{
|
|
1334
1301
|
component: he,
|
|
1335
1302
|
...Fe
|
|
@@ -1338,32 +1305,29 @@ const U = {
|
|
|
1338
1305
|
...Pe
|
|
1339
1306
|
}, {
|
|
1340
1307
|
component: ye,
|
|
1341
|
-
...
|
|
1308
|
+
...Ae
|
|
1342
1309
|
}, {
|
|
1343
1310
|
component: xe,
|
|
1344
1311
|
...Be
|
|
1345
1312
|
}, {
|
|
1346
1313
|
component: ve,
|
|
1347
|
-
...
|
|
1314
|
+
...De
|
|
1348
1315
|
}, {
|
|
1349
|
-
component:
|
|
1350
|
-
...
|
|
1316
|
+
component: Ue,
|
|
1317
|
+
...He
|
|
1351
1318
|
}, {
|
|
1352
1319
|
component: Se,
|
|
1353
|
-
...
|
|
1320
|
+
...Le
|
|
1354
1321
|
}, {
|
|
1355
1322
|
component: Te,
|
|
1356
|
-
...je
|
|
1357
|
-
}, {
|
|
1358
|
-
component: He,
|
|
1359
|
-
...De
|
|
1360
|
-
}, {
|
|
1361
|
-
component: _e,
|
|
1362
1323
|
...$e
|
|
1324
|
+
}, {
|
|
1325
|
+
component: qe,
|
|
1326
|
+
...Ne
|
|
1363
1327
|
}, {
|
|
1364
1328
|
component: Ee,
|
|
1365
1329
|
...Re
|
|
1366
|
-
}, ...
|
|
1330
|
+
}, ...ot()], rt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
1367
1331
|
function getAndSetVariantId() {
|
|
1368
1332
|
function setCookie(name, value, days) {
|
|
1369
1333
|
let expires = '';
|
|
@@ -1419,7 +1383,7 @@ const U = {
|
|
|
1419
1383
|
}).join('');
|
|
1420
1384
|
styleEl.innerHTML = newStyleStr;
|
|
1421
1385
|
}
|
|
1422
|
-
}`,
|
|
1386
|
+
}`, lt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
1423
1387
|
if (!navigator.cookieEnabled) {
|
|
1424
1388
|
return;
|
|
1425
1389
|
}
|
|
@@ -1457,22 +1421,22 @@ const U = {
|
|
|
1457
1421
|
...t,
|
|
1458
1422
|
testVariationId: t.id,
|
|
1459
1423
|
id: e == null ? void 0 : e.id
|
|
1460
|
-
})),
|
|
1424
|
+
})), st = ({
|
|
1461
1425
|
canTrack: e,
|
|
1462
1426
|
content: t
|
|
1463
|
-
}) => !(!(D(t).length > 0) || !e || j()),
|
|
1464
|
-
window.${ie} = ${
|
|
1465
|
-
window.${oe} = ${
|
|
1466
|
-
`,
|
|
1427
|
+
}) => !(!(D(t).length > 0) || !e || j()), dt = (e) => e === "react" || e === "reactNative", re = dt(O), ct = () => `
|
|
1428
|
+
window.${ie} = ${rt}
|
|
1429
|
+
window.${oe} = ${lt}
|
|
1430
|
+
`, ut = (e, t) => `
|
|
1467
1431
|
window.${ie}(
|
|
1468
1432
|
"${t}",${JSON.stringify(e)}, ${re}
|
|
1469
|
-
)`,
|
|
1433
|
+
)`, mt = ({
|
|
1470
1434
|
contentId: e,
|
|
1471
1435
|
variationId: t
|
|
1472
1436
|
}) => `window.${oe}(
|
|
1473
1437
|
"${t}", "${e}", ${re}
|
|
1474
1438
|
)`;
|
|
1475
|
-
function
|
|
1439
|
+
function K(e) {
|
|
1476
1440
|
return /* @__PURE__ */ h(
|
|
1477
1441
|
"script",
|
|
1478
1442
|
{
|
|
@@ -1485,7 +1449,7 @@ function O(e) {
|
|
|
1485
1449
|
function Q(e) {
|
|
1486
1450
|
return Math.round(e * 1e3) / 1e3;
|
|
1487
1451
|
}
|
|
1488
|
-
const
|
|
1452
|
+
const pt = (e, t, n = !0) => {
|
|
1489
1453
|
if (!(e instanceof HTMLElement))
|
|
1490
1454
|
return null;
|
|
1491
1455
|
let i = n ? e : e.parentElement;
|
|
@@ -1496,20 +1460,20 @@ const gt = (e, t, n = !0) => {
|
|
|
1496
1460
|
return i;
|
|
1497
1461
|
} while (i = i.parentElement);
|
|
1498
1462
|
return null;
|
|
1499
|
-
},
|
|
1463
|
+
}, ft = (e) => pt(e, (t) => {
|
|
1500
1464
|
const n = t.getAttribute("builder-id") || t.id;
|
|
1501
1465
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
1502
1466
|
}), X = ({
|
|
1503
1467
|
event: e,
|
|
1504
1468
|
target: t
|
|
1505
1469
|
}) => {
|
|
1506
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, l = e.clientY - n.top,
|
|
1470
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, l = e.clientY - n.top, c = Q(i / n.width), a = Q(l / n.height);
|
|
1507
1471
|
return {
|
|
1508
|
-
x:
|
|
1472
|
+
x: c,
|
|
1509
1473
|
y: a
|
|
1510
1474
|
};
|
|
1511
|
-
},
|
|
1512
|
-
const t = e.target, n = t &&
|
|
1475
|
+
}, gt = (e) => {
|
|
1476
|
+
const t = e.target, n = t && ft(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
1513
1477
|
return {
|
|
1514
1478
|
targetBuilderElement: i || void 0,
|
|
1515
1479
|
metadata: {
|
|
@@ -1524,9 +1488,9 @@ const gt = (e, t, n = !0) => {
|
|
|
1524
1488
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
1525
1489
|
}
|
|
1526
1490
|
};
|
|
1527
|
-
},
|
|
1528
|
-
var
|
|
1529
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (
|
|
1491
|
+
}, ht = ["svelte", "qwik", "vue"], Z = () => ht.includes(O) && (F() || te()), bt = (e) => {
|
|
1492
|
+
var c, a;
|
|
1493
|
+
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;
|
|
1530
1494
|
let l = "";
|
|
1531
1495
|
if (i && t && n && (l += `
|
|
1532
1496
|
@font-face {
|
|
@@ -1550,15 +1514,15 @@ font-weight: ${o};
|
|
|
1550
1514
|
`.trim());
|
|
1551
1515
|
}
|
|
1552
1516
|
return l;
|
|
1553
|
-
},
|
|
1517
|
+
}, yt = ({
|
|
1554
1518
|
customFonts: e
|
|
1555
1519
|
}) => {
|
|
1556
1520
|
var t;
|
|
1557
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
1558
|
-
},
|
|
1521
|
+
return ((t = e == null ? void 0 : e.map((n) => bt(n))) == null ? void 0 : t.join(" ")) || "";
|
|
1522
|
+
}, xt = ({
|
|
1559
1523
|
cssCode: e,
|
|
1560
1524
|
contentId: t
|
|
1561
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
1525
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", vt = `
|
|
1562
1526
|
.builder-button {
|
|
1563
1527
|
all: unset;
|
|
1564
1528
|
}
|
|
@@ -1575,8 +1539,8 @@ font-weight: ${o};
|
|
|
1575
1539
|
text-align: inherit;
|
|
1576
1540
|
font-family: inherit;
|
|
1577
1541
|
}
|
|
1578
|
-
`,
|
|
1579
|
-
function
|
|
1542
|
+
`, St = (e) => e ? "" : vt, Tt = (e) => `variant-${e}`;
|
|
1543
|
+
function It(e) {
|
|
1580
1544
|
var g, b, C;
|
|
1581
1545
|
const t = _(null);
|
|
1582
1546
|
function n(s) {
|
|
@@ -1616,11 +1580,11 @@ function Ct(e) {
|
|
|
1616
1580
|
"aria-hidden": !0
|
|
1617
1581
|
};
|
|
1618
1582
|
}
|
|
1619
|
-
const [
|
|
1583
|
+
const [c, a] = I(
|
|
1620
1584
|
() => e.contentWrapper || "div"
|
|
1621
1585
|
);
|
|
1622
1586
|
function o(s) {
|
|
1623
|
-
return
|
|
1587
|
+
return ue({
|
|
1624
1588
|
model: e.model,
|
|
1625
1589
|
trustedHosts: e.trustedHosts,
|
|
1626
1590
|
callbacks: {
|
|
@@ -1642,8 +1606,8 @@ function Ct(e) {
|
|
|
1642
1606
|
}
|
|
1643
1607
|
})(s);
|
|
1644
1608
|
}
|
|
1645
|
-
const [
|
|
1646
|
-
function
|
|
1609
|
+
const [u, T] = I(() => ({})), [v, R] = I(() => ({})), [k, P] = I(() => !1);
|
|
1610
|
+
function A(s) {
|
|
1647
1611
|
var d, m;
|
|
1648
1612
|
if (e.builderContextSignal.content) {
|
|
1649
1613
|
const f = (d = e.builderContextSignal.content) == null ? void 0 : d.testVariationId, r = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
|
|
@@ -1654,19 +1618,19 @@ function Ct(e) {
|
|
|
1654
1618
|
contentId: r,
|
|
1655
1619
|
apiKey: e.apiKey,
|
|
1656
1620
|
variationId: f !== r ? f : void 0,
|
|
1657
|
-
...
|
|
1621
|
+
...gt(s),
|
|
1658
1622
|
unique: !k
|
|
1659
1623
|
});
|
|
1660
1624
|
}
|
|
1661
1625
|
k || P(!0);
|
|
1662
1626
|
}
|
|
1663
|
-
function
|
|
1627
|
+
function W() {
|
|
1664
1628
|
var d, m, f;
|
|
1665
1629
|
const s = (f = (m = (d = e.builderContextSignal.content) == null ? void 0 : d.data) == null ? void 0 : m.httpRequests) != null ? f : {};
|
|
1666
1630
|
Object.entries(s).forEach(([r, p]) => {
|
|
1667
|
-
if (!p ||
|
|
1631
|
+
if (!p || v[r] || u[r] && !F())
|
|
1668
1632
|
return;
|
|
1669
|
-
|
|
1633
|
+
v[r] = !0;
|
|
1670
1634
|
const y = p.replace(
|
|
1671
1635
|
/{{([^}]+)}}/g,
|
|
1672
1636
|
(x, B) => String(
|
|
@@ -1682,11 +1646,11 @@ function Ct(e) {
|
|
|
1682
1646
|
me(y), fetch(y).then((x) => x.json()).then((x) => {
|
|
1683
1647
|
n({
|
|
1684
1648
|
[r]: x
|
|
1685
|
-
}),
|
|
1649
|
+
}), u[r] = !0;
|
|
1686
1650
|
}).catch((x) => {
|
|
1687
1651
|
console.error("error fetching dynamic data", p, x);
|
|
1688
1652
|
}).finally(() => {
|
|
1689
|
-
|
|
1653
|
+
v[r] = !1;
|
|
1690
1654
|
});
|
|
1691
1655
|
});
|
|
1692
1656
|
}
|
|
@@ -1706,7 +1670,7 @@ function Ct(e) {
|
|
|
1706
1670
|
);
|
|
1707
1671
|
}
|
|
1708
1672
|
const E = _(!1);
|
|
1709
|
-
return E.current || (
|
|
1673
|
+
return E.current || (W(), w(), E.current = !0), V(() => {
|
|
1710
1674
|
var s, d, m;
|
|
1711
1675
|
if (j()) {
|
|
1712
1676
|
if (F() && !e.isNestedRender && (window.addEventListener("message", o), le(), se({
|
|
@@ -1745,7 +1709,7 @@ function Ct(e) {
|
|
|
1745
1709
|
const r = new URL(location.href).searchParams, p = r.get("builder.preview"), y = r.get(
|
|
1746
1710
|
`builder.overrides.${p}`
|
|
1747
1711
|
), x = r.get("apiKey") || r.get("builder.space");
|
|
1748
|
-
(p === "BUILDER_STUDIO" || p === e.model && x === e.apiKey && (!e.content || y === e.content.id)) &&
|
|
1712
|
+
(p === "BUILDER_STUDIO" || p === e.model && x === e.apiKey && (!e.content || y === e.content.id)) && ce({
|
|
1749
1713
|
model: e.model || "",
|
|
1750
1714
|
apiKey: e.apiKey,
|
|
1751
1715
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
@@ -1775,13 +1739,13 @@ function Ct(e) {
|
|
|
1775
1739
|
w
|
|
1776
1740
|
));
|
|
1777
1741
|
}, []), /* @__PURE__ */ h(Ie.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Z() ? /* @__PURE__ */ h(
|
|
1778
|
-
|
|
1742
|
+
c,
|
|
1779
1743
|
{
|
|
1780
1744
|
ref: t,
|
|
1781
|
-
onClick: (s) =>
|
|
1745
|
+
onClick: (s) => A(s),
|
|
1782
1746
|
"builder-content-id": (g = e.builderContextSignal.content) == null ? void 0 : g.id,
|
|
1783
1747
|
"builder-model": e.model,
|
|
1784
|
-
className:
|
|
1748
|
+
className: Tt(
|
|
1785
1749
|
((b = e.content) == null ? void 0 : b.testVariationId) || ((C = e.content) == null ? void 0 : C.id)
|
|
1786
1750
|
),
|
|
1787
1751
|
style: {
|
|
@@ -1793,17 +1757,17 @@ function Ct(e) {
|
|
|
1793
1757
|
}
|
|
1794
1758
|
) : null });
|
|
1795
1759
|
}
|
|
1796
|
-
function
|
|
1760
|
+
function kt(e) {
|
|
1797
1761
|
const [t, n] = I(
|
|
1798
1762
|
() => `
|
|
1799
|
-
${
|
|
1763
|
+
${xt({
|
|
1800
1764
|
cssCode: e.cssCode,
|
|
1801
1765
|
contentId: e.contentId
|
|
1802
1766
|
})}
|
|
1803
|
-
${
|
|
1767
|
+
${yt({
|
|
1804
1768
|
customFonts: e.customFonts
|
|
1805
1769
|
})}
|
|
1806
|
-
${
|
|
1770
|
+
${St(e.isNestedRender)}
|
|
1807
1771
|
`.trim()
|
|
1808
1772
|
);
|
|
1809
1773
|
return /* @__PURE__ */ h(
|
|
@@ -1815,15 +1779,15 @@ ${It(e.isNestedRender)}
|
|
|
1815
1779
|
}
|
|
1816
1780
|
);
|
|
1817
1781
|
}
|
|
1818
|
-
const
|
|
1782
|
+
const Ct = ({
|
|
1819
1783
|
content: e,
|
|
1820
1784
|
data: t,
|
|
1821
1785
|
locale: n
|
|
1822
1786
|
}) => {
|
|
1823
|
-
var
|
|
1824
|
-
const i = {}, l = ((
|
|
1825
|
-
return (o = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || o.forEach((
|
|
1826
|
-
|
|
1787
|
+
var c, a, o;
|
|
1788
|
+
const i = {}, l = ((c = e == null ? void 0 : e.data) == null ? void 0 : c.state) || {};
|
|
1789
|
+
return (o = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || o.forEach((u) => {
|
|
1790
|
+
u.name && u.defaultValue !== void 0 && (i[u.name] = u.defaultValue);
|
|
1827
1791
|
}), {
|
|
1828
1792
|
...i,
|
|
1829
1793
|
...l,
|
|
@@ -1832,7 +1796,7 @@ const Vt = ({
|
|
|
1832
1796
|
locale: n
|
|
1833
1797
|
} : {}
|
|
1834
1798
|
};
|
|
1835
|
-
},
|
|
1799
|
+
}, wt = ({
|
|
1836
1800
|
content: e,
|
|
1837
1801
|
data: t
|
|
1838
1802
|
}) => e ? {
|
|
@@ -1844,11 +1808,11 @@ const Vt = ({
|
|
|
1844
1808
|
meta: e == null ? void 0 : e.meta
|
|
1845
1809
|
} : void 0;
|
|
1846
1810
|
function ee(e) {
|
|
1847
|
-
var T,
|
|
1811
|
+
var T, v, R, k, P, A, W, w, E;
|
|
1848
1812
|
const [t, n] = I(
|
|
1849
1813
|
() => {
|
|
1850
1814
|
var g, b;
|
|
1851
|
-
return
|
|
1815
|
+
return mt({
|
|
1852
1816
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
1853
1817
|
variationId: (g = e.content) == null ? void 0 : g.testVariationId,
|
|
1854
1818
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -1862,7 +1826,7 @@ function ee(e) {
|
|
|
1862
1826
|
rootState: g
|
|
1863
1827
|
}));
|
|
1864
1828
|
}
|
|
1865
|
-
const [l,
|
|
1829
|
+
const [l, c] = I(
|
|
1866
1830
|
() => [
|
|
1867
1831
|
...G(),
|
|
1868
1832
|
...e.customComponents || []
|
|
@@ -1877,12 +1841,12 @@ function ee(e) {
|
|
|
1877
1841
|
{}
|
|
1878
1842
|
)
|
|
1879
1843
|
), [a, o] = I(() => ({
|
|
1880
|
-
content:
|
|
1844
|
+
content: wt({
|
|
1881
1845
|
content: e.content,
|
|
1882
1846
|
data: e.data
|
|
1883
1847
|
}),
|
|
1884
1848
|
localState: void 0,
|
|
1885
|
-
rootState:
|
|
1849
|
+
rootState: Ct({
|
|
1886
1850
|
content: e.content,
|
|
1887
1851
|
data: e.data,
|
|
1888
1852
|
locale: e.locale
|
|
@@ -1907,12 +1871,12 @@ function ee(e) {
|
|
|
1907
1871
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
1908
1872
|
nonce: e.nonce || "",
|
|
1909
1873
|
model: e.model || ""
|
|
1910
|
-
})),
|
|
1911
|
-
if (!
|
|
1874
|
+
})), u = _(!1);
|
|
1875
|
+
if (!u.current) {
|
|
1912
1876
|
e.apiKey || pe.error(
|
|
1913
1877
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
1914
1878
|
);
|
|
1915
|
-
const g = (
|
|
1879
|
+
const g = (v = (T = a.content) == null ? void 0 : T.data) == null ? void 0 : v.jsCode;
|
|
1916
1880
|
g && ne({
|
|
1917
1881
|
code: g,
|
|
1918
1882
|
context: e.context || {},
|
|
@@ -1922,7 +1886,7 @@ function ee(e) {
|
|
|
1922
1886
|
Object.assign(a.rootState, b);
|
|
1923
1887
|
},
|
|
1924
1888
|
isExpression: !1
|
|
1925
|
-
}),
|
|
1889
|
+
}), u.current = !0;
|
|
1926
1890
|
}
|
|
1927
1891
|
return /* @__PURE__ */ h(
|
|
1928
1892
|
we.Provider,
|
|
@@ -1931,7 +1895,7 @@ function ee(e) {
|
|
|
1931
1895
|
registeredComponents: l
|
|
1932
1896
|
},
|
|
1933
1897
|
children: /* @__PURE__ */ $(
|
|
1934
|
-
|
|
1898
|
+
It,
|
|
1935
1899
|
{
|
|
1936
1900
|
apiHost: e.apiHost,
|
|
1937
1901
|
nonce: e.nonce,
|
|
@@ -1952,7 +1916,7 @@ function ee(e) {
|
|
|
1952
1916
|
setBuilderContextSignal: o,
|
|
1953
1917
|
children: [
|
|
1954
1918
|
e.isSsrAbTest ? /* @__PURE__ */ h(
|
|
1955
|
-
|
|
1919
|
+
K,
|
|
1956
1920
|
{
|
|
1957
1921
|
id: "builderio-variant-visibility",
|
|
1958
1922
|
scriptStr: t,
|
|
@@ -1960,13 +1924,13 @@ function ee(e) {
|
|
|
1960
1924
|
}
|
|
1961
1925
|
) : null,
|
|
1962
1926
|
/* @__PURE__ */ h(
|
|
1963
|
-
|
|
1927
|
+
kt,
|
|
1964
1928
|
{
|
|
1965
1929
|
nonce: e.nonce || "",
|
|
1966
1930
|
isNestedRender: e.isNestedRender,
|
|
1967
1931
|
contentId: (R = a.content) == null ? void 0 : R.id,
|
|
1968
1932
|
cssCode: (P = (k = a.content) == null ? void 0 : k.data) == null ? void 0 : P.cssCode,
|
|
1969
|
-
customFonts: (
|
|
1933
|
+
customFonts: (W = (A = a.content) == null ? void 0 : A.data) == null ? void 0 : W.customFonts
|
|
1970
1934
|
}
|
|
1971
1935
|
),
|
|
1972
1936
|
/* @__PURE__ */ h(
|
|
@@ -1984,20 +1948,20 @@ function ee(e) {
|
|
|
1984
1948
|
}
|
|
1985
1949
|
);
|
|
1986
1950
|
}
|
|
1987
|
-
function
|
|
1951
|
+
function Bt(e) {
|
|
1988
1952
|
var a;
|
|
1989
1953
|
const [t, n] = I(
|
|
1990
|
-
() =>
|
|
1954
|
+
() => st({
|
|
1991
1955
|
canTrack: H(e.canTrack),
|
|
1992
1956
|
content: e.content
|
|
1993
1957
|
})
|
|
1994
1958
|
);
|
|
1995
1959
|
function i() {
|
|
1996
1960
|
var o;
|
|
1997
|
-
return
|
|
1998
|
-
D(e.content).map((
|
|
1999
|
-
id:
|
|
2000
|
-
testRatio:
|
|
1961
|
+
return ut(
|
|
1962
|
+
D(e.content).map((u) => ({
|
|
1963
|
+
id: u.testVariationId,
|
|
1964
|
+
testRatio: u.testRatio
|
|
2001
1965
|
})),
|
|
2002
1966
|
((o = e.content) == null ? void 0 : o.id) || ""
|
|
2003
1967
|
);
|
|
@@ -2005,7 +1969,7 @@ function Et(e) {
|
|
|
2005
1969
|
function l() {
|
|
2006
1970
|
return D(e.content).map((o) => `.variant-${o.testVariationId} { display: none; } `).join("");
|
|
2007
1971
|
}
|
|
2008
|
-
function
|
|
1972
|
+
function c() {
|
|
2009
1973
|
var o;
|
|
2010
1974
|
return t ? {
|
|
2011
1975
|
...e.content,
|
|
@@ -2017,11 +1981,11 @@ function Et(e) {
|
|
|
2017
1981
|
}
|
|
2018
1982
|
return V(() => {
|
|
2019
1983
|
}, []), /* @__PURE__ */ $(z, { children: [
|
|
2020
|
-
!e.isNestedRender &&
|
|
2021
|
-
|
|
1984
|
+
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ h(
|
|
1985
|
+
K,
|
|
2022
1986
|
{
|
|
2023
1987
|
id: "builderio-init-variants-fns",
|
|
2024
|
-
scriptStr:
|
|
1988
|
+
scriptStr: ct(),
|
|
2025
1989
|
nonce: e.nonce || ""
|
|
2026
1990
|
}
|
|
2027
1991
|
) : null,
|
|
@@ -2035,7 +1999,7 @@ function Et(e) {
|
|
|
2035
1999
|
}
|
|
2036
2000
|
),
|
|
2037
2001
|
/* @__PURE__ */ h(
|
|
2038
|
-
|
|
2002
|
+
K,
|
|
2039
2003
|
{
|
|
2040
2004
|
id: "builderio-variants-visibility",
|
|
2041
2005
|
scriptStr: i(),
|
|
@@ -2076,7 +2040,7 @@ function Et(e) {
|
|
|
2076
2040
|
apiHost: e.apiHost,
|
|
2077
2041
|
nonce: e.nonce,
|
|
2078
2042
|
isNestedRender: e.isNestedRender,
|
|
2079
|
-
content:
|
|
2043
|
+
content: c(),
|
|
2080
2044
|
showContent: !0,
|
|
2081
2045
|
model: e.model,
|
|
2082
2046
|
data: e.data,
|
|
@@ -2098,11 +2062,6 @@ function Et(e) {
|
|
|
2098
2062
|
)
|
|
2099
2063
|
] });
|
|
2100
2064
|
}
|
|
2101
|
-
const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2102
|
-
__proto__: null,
|
|
2103
|
-
default: Et
|
|
2104
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2105
2065
|
export {
|
|
2106
|
-
|
|
2107
|
-
Dt as contentVariants
|
|
2066
|
+
Bt as default
|
|
2108
2067
|
};
|