@builder.io/sdk-react 1.0.28 → 1.0.29
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 +9 -9
- package/lib/browser/blocks-exports.mjs +321 -323
- 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-39389b02.cjs → server-entry-29038134.cjs} +1 -1
- package/lib/browser/{server-entry-b2b0b732.js → server-entry-99f6be25.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-e074c3c9.js → accordion-a922b6f1.js} +1 -1
- package/lib/edge/{accordion-a6b84a1a.cjs → accordion-cf80a119.cjs} +1 -1
- package/lib/edge/{blocks-e4a4eaeb.cjs → blocks-0b5854b9.cjs} +1 -1
- package/lib/edge/{blocks-bdc7647a.js → blocks-2cd920f9.js} +2 -2
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-4bbf8eb4.cjs → button-2e6cc4b7.cjs} +1 -1
- package/lib/edge/{button-01688cf0.js → button-e343aea4.js} +2 -2
- package/lib/edge/{columns-790f93f0.js → columns-5db55b04.js} +5 -5
- package/lib/edge/{columns-c34d9298.cjs → columns-cf320d97.cjs} +2 -2
- package/lib/edge/{content-variants-705d1eae.cjs → content-variants-d7612a4d.cjs} +2 -2
- package/lib/edge/{content-variants-843cb1a2.js → content-variants-dd520b38.js} +156 -156
- package/lib/edge/form-7248b44c.cjs +1 -0
- package/lib/edge/{form-76a1e4e7.js → form-a0093dd2.js} +17 -19
- package/lib/edge/{get-class-prop-name-6fd942e6.cjs → get-class-prop-name-890dc6a6.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-7cac71a7.js → get-class-prop-name-f14607dc.js} +1 -1
- package/lib/edge/{img-630ec97f.cjs → img-960eef70.cjs} +1 -1
- package/lib/edge/{img-0d46e11b.js → img-ff2f388e.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-35460b08.js → input-5934355a.js} +1 -1
- package/lib/edge/{input-73e27d61.cjs → input-e91374cc.cjs} +1 -1
- package/lib/edge/{select-6cf907d7.js → select-298649a8.js} +1 -1
- package/lib/edge/{select-a19b35fb.cjs → select-6e9fb36f.cjs} +1 -1
- package/lib/edge/{server-entry-043747bd.cjs → server-entry-7feea5b4.cjs} +1 -1
- package/lib/edge/{server-entry-0dd5f119.js → server-entry-d8f1ea14.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-e0434389.cjs → slot-3a6d243c.cjs} +1 -1
- package/lib/edge/{slot-d4235700.js → slot-5676b4f4.js} +3 -3
- package/lib/edge/{symbol-e58cb0f1.js → symbol-2df385d5.js} +2 -2
- package/lib/edge/{symbol-e0e1a334.cjs → symbol-b5a02759.cjs} +1 -1
- package/lib/edge/{tabs-a92bfa51.cjs → tabs-036057d6.cjs} +1 -1
- package/lib/edge/{tabs-d5cfc172.js → tabs-c2055821.js} +3 -3
- package/lib/node/blocks-exports.cjs +9 -9
- package/lib/node/blocks-exports.mjs +322 -324
- 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-ee646b73.cjs → node-runtime-4dbd8a34.cjs} +1 -1
- package/lib/node/{node-runtime-29789d59.js → node-runtime-502f7164.js} +1 -1
- package/lib/node/{server-entry-1111c8d8.cjs → server-entry-4c4c63b3.cjs} +1 -1
- package/lib/node/{server-entry-0cd65827.js → server-entry-95efff43.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +3 -3
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/form-41fb03d8.cjs +0 -1
|
@@ -3,9 +3,9 @@ var He = Object.defineProperty;
|
|
|
3
3
|
var Ke = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var ie = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
5
|
import { jsx as s, Fragment as E, jsxs as V } from "react/jsx-runtime";
|
|
6
|
-
import { TARGET as q, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as de, isEditing as $, registerInsertMenu as qe, setupBrowserForEditing as _e, createRegisterComponentMessage as ze, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-
|
|
6
|
+
import { TARGET as q, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as de, isEditing as $, registerInsertMenu as qe, setupBrowserForEditing as _e, createRegisterComponentMessage as ze, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-95efff43.js";
|
|
7
7
|
import { createContext as we, useState as C, useEffect as B, useContext as be, useRef as ee, createElement as Ee } from "react";
|
|
8
|
-
import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Re } from "./node-runtime-
|
|
8
|
+
import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Re } from "./node-runtime-502f7164.js";
|
|
9
9
|
const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
|
|
10
10
|
function ue(e) {
|
|
11
11
|
return /* @__PURE__ */ s(E, { children: it(e.TagName) ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
@@ -502,7 +502,7 @@ function kt(e) {
|
|
|
502
502
|
return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
|
|
503
503
|
}
|
|
504
504
|
function n() {
|
|
505
|
-
var
|
|
505
|
+
var x, R, P;
|
|
506
506
|
const i = X({
|
|
507
507
|
block: e.block,
|
|
508
508
|
localState: e.context.localState,
|
|
@@ -511,7 +511,7 @@ function kt(e) {
|
|
|
511
511
|
context: e.context.context,
|
|
512
512
|
shouldEvaluateBindings: !0
|
|
513
513
|
}), o = i.responsiveStyles, l = e.context.content, a = De(
|
|
514
|
-
((
|
|
514
|
+
((x = l == null ? void 0 : l.meta) == null ? void 0 : x.breakpoints) || {}
|
|
515
515
|
), r = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
|
|
516
516
|
if (!f)
|
|
517
517
|
return "";
|
|
@@ -1013,7 +1013,7 @@ function Wt(e) {
|
|
|
1013
1013
|
})
|
|
1014
1014
|
};
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1016
|
+
function x(v) {
|
|
1017
1017
|
var W, b;
|
|
1018
1018
|
return De(
|
|
1019
1019
|
((b = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : b.breakpoints) || {}
|
|
@@ -1021,7 +1021,7 @@ function Wt(e) {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
function R() {
|
|
1023
1023
|
return `
|
|
1024
|
-
@media (max-width: ${
|
|
1024
|
+
@media (max-width: ${x("medium")}px) {
|
|
1025
1025
|
.${e.builderBlock.id}-breakpoints {
|
|
1026
1026
|
flex-direction: var(--flex-dir-tablet);
|
|
1027
1027
|
align-items: stretch;
|
|
@@ -1033,7 +1033,7 @@ function Wt(e) {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
|
-
@media (max-width: ${
|
|
1036
|
+
@media (max-width: ${x("small")}px) {
|
|
1037
1037
|
.${e.builderBlock.id}-breakpoints {
|
|
1038
1038
|
flex-direction: var(--flex-dir);
|
|
1039
1039
|
align-items: stretch;
|
|
@@ -1059,7 +1059,7 @@ function Wt(e) {
|
|
|
1059
1059
|
/* @__PURE__ */ V(
|
|
1060
1060
|
"div",
|
|
1061
1061
|
{
|
|
1062
|
-
className: Nt((A = e.builderBlock) == null ? void 0 : A.id) + " div-
|
|
1062
|
+
className: Nt((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
|
|
1063
1063
|
style: p(),
|
|
1064
1064
|
children: [
|
|
1065
1065
|
/* @__PURE__ */ s(ne, { id: "builderio-columns", styles: R() }),
|
|
@@ -1089,7 +1089,7 @@ function Wt(e) {
|
|
|
1089
1089
|
]
|
|
1090
1090
|
}
|
|
1091
1091
|
),
|
|
1092
|
-
/* @__PURE__ */ s("style", { children: `.div-
|
|
1092
|
+
/* @__PURE__ */ s("style", { children: `.div-bade6b34 {
|
|
1093
1093
|
display: flex;
|
|
1094
1094
|
line-height: normal;
|
|
1095
1095
|
}` })
|
|
@@ -1232,7 +1232,249 @@ function Ot(e) {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
);
|
|
1234
1234
|
}
|
|
1235
|
-
const
|
|
1235
|
+
const ae = {
|
|
1236
|
+
"@type": "@builder.io/sdk:Element",
|
|
1237
|
+
layerName: "Accordion item title",
|
|
1238
|
+
responsiveStyles: {
|
|
1239
|
+
large: {
|
|
1240
|
+
marginTop: "10px",
|
|
1241
|
+
position: "relative",
|
|
1242
|
+
display: "flex",
|
|
1243
|
+
alignItems: "stretch",
|
|
1244
|
+
flexDirection: "column",
|
|
1245
|
+
paddingBottom: "10px"
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
children: [{
|
|
1249
|
+
"@type": "@builder.io/sdk:Element",
|
|
1250
|
+
responsiveStyles: {
|
|
1251
|
+
large: {
|
|
1252
|
+
textAlign: "left",
|
|
1253
|
+
display: "flex",
|
|
1254
|
+
flexDirection: "column"
|
|
1255
|
+
}
|
|
1256
|
+
},
|
|
1257
|
+
component: {
|
|
1258
|
+
name: "Text",
|
|
1259
|
+
options: {
|
|
1260
|
+
text: "I am an accordion title. Click me!"
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
}]
|
|
1264
|
+
}, re = {
|
|
1265
|
+
"@type": "@builder.io/sdk:Element",
|
|
1266
|
+
layerName: "Accordion item detail",
|
|
1267
|
+
responsiveStyles: {
|
|
1268
|
+
large: {
|
|
1269
|
+
position: "relative",
|
|
1270
|
+
display: "flex",
|
|
1271
|
+
alignItems: "stretch",
|
|
1272
|
+
flexDirection: "column",
|
|
1273
|
+
marginTop: "10px",
|
|
1274
|
+
paddingBottom: "10px"
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
children: [{
|
|
1278
|
+
"@type": "@builder.io/sdk:Element",
|
|
1279
|
+
responsiveStyles: {
|
|
1280
|
+
large: {
|
|
1281
|
+
paddingTop: "50px",
|
|
1282
|
+
textAlign: "left",
|
|
1283
|
+
display: "flex",
|
|
1284
|
+
flexDirection: "column",
|
|
1285
|
+
paddingBottom: "50px"
|
|
1286
|
+
}
|
|
1287
|
+
},
|
|
1288
|
+
component: {
|
|
1289
|
+
name: "Text",
|
|
1290
|
+
options: {
|
|
1291
|
+
text: "I am an accordion detail, hello!"
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
}]
|
|
1295
|
+
}, jt = {
|
|
1296
|
+
name: "Builder:Accordion",
|
|
1297
|
+
canHaveChildren: !0,
|
|
1298
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
1299
|
+
defaultStyles: {
|
|
1300
|
+
display: "flex",
|
|
1301
|
+
flexDirection: "column",
|
|
1302
|
+
alignItems: "stretch"
|
|
1303
|
+
},
|
|
1304
|
+
inputs: [{
|
|
1305
|
+
name: "items",
|
|
1306
|
+
type: "list",
|
|
1307
|
+
broadcast: !0,
|
|
1308
|
+
subFields: [{
|
|
1309
|
+
name: "title",
|
|
1310
|
+
type: "uiBlocks",
|
|
1311
|
+
hideFromUI: !0,
|
|
1312
|
+
defaultValue: [ae]
|
|
1313
|
+
}, {
|
|
1314
|
+
name: "detail",
|
|
1315
|
+
type: "uiBlocks",
|
|
1316
|
+
hideFromUI: !0,
|
|
1317
|
+
defaultValue: [re]
|
|
1318
|
+
}],
|
|
1319
|
+
defaultValue: [{
|
|
1320
|
+
title: [ae],
|
|
1321
|
+
detail: [re]
|
|
1322
|
+
}, {
|
|
1323
|
+
title: [ae],
|
|
1324
|
+
detail: [re]
|
|
1325
|
+
}],
|
|
1326
|
+
showIf: (e) => !e.get("useChildrenForItems")
|
|
1327
|
+
}, {
|
|
1328
|
+
name: "oneAtATime",
|
|
1329
|
+
helperText: "Only allow opening one at a time (collapse all others when new item openned)",
|
|
1330
|
+
type: "boolean",
|
|
1331
|
+
defaultValue: !1
|
|
1332
|
+
}, {
|
|
1333
|
+
name: "grid",
|
|
1334
|
+
helperText: "Display as a grid",
|
|
1335
|
+
type: "boolean",
|
|
1336
|
+
defaultValue: !1
|
|
1337
|
+
}, {
|
|
1338
|
+
name: "gridRowWidth",
|
|
1339
|
+
helperText: "Display as a grid",
|
|
1340
|
+
type: "string",
|
|
1341
|
+
showIf: (e) => e.get("grid"),
|
|
1342
|
+
defaultValue: "25%"
|
|
1343
|
+
}, {
|
|
1344
|
+
name: "useChildrenForItems",
|
|
1345
|
+
type: "boolean",
|
|
1346
|
+
helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
|
|
1347
|
+
advanced: !0,
|
|
1348
|
+
defaultValue: !1,
|
|
1349
|
+
onChange: (e) => {
|
|
1350
|
+
e.get("useChildrenForItems") === !0 && e.set("items", []);
|
|
1351
|
+
}
|
|
1352
|
+
}]
|
|
1353
|
+
}, Se = (e) => e.toString();
|
|
1354
|
+
function Ut(e) {
|
|
1355
|
+
var d;
|
|
1356
|
+
const [t, n] = C(() => []);
|
|
1357
|
+
function i() {
|
|
1358
|
+
return !!(e.grid || e.oneAtATime);
|
|
1359
|
+
}
|
|
1360
|
+
function o() {
|
|
1361
|
+
return {
|
|
1362
|
+
display: "flex",
|
|
1363
|
+
alignItems: "stretch",
|
|
1364
|
+
flexDirection: "column",
|
|
1365
|
+
...e.grid && {
|
|
1366
|
+
flexDirection: "row",
|
|
1367
|
+
alignItems: "flex-start",
|
|
1368
|
+
flexWrap: "wrap"
|
|
1369
|
+
}
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
function l() {
|
|
1373
|
+
const g = {
|
|
1374
|
+
...{
|
|
1375
|
+
display: "flex",
|
|
1376
|
+
flexDirection: "column"
|
|
1377
|
+
},
|
|
1378
|
+
alignItems: "stretch",
|
|
1379
|
+
cursor: "pointer"
|
|
1380
|
+
};
|
|
1381
|
+
return Object.fromEntries(
|
|
1382
|
+
Object.entries(g).filter(([p, I]) => I !== void 0)
|
|
1383
|
+
);
|
|
1384
|
+
}
|
|
1385
|
+
function a(m) {
|
|
1386
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1387
|
+
}
|
|
1388
|
+
function r(m) {
|
|
1389
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
|
|
1390
|
+
}
|
|
1391
|
+
function c() {
|
|
1392
|
+
let m = null;
|
|
1393
|
+
if (e.grid && t.length && document) {
|
|
1394
|
+
const p = t[0];
|
|
1395
|
+
let x = document.querySelector(
|
|
1396
|
+
`.builder-accordion-title[data-index="${p}"]`
|
|
1397
|
+
);
|
|
1398
|
+
if (m = p, x) {
|
|
1399
|
+
let R = x.getBoundingClientRect();
|
|
1400
|
+
for (; x = x && x.nextElementSibling; )
|
|
1401
|
+
if (x) {
|
|
1402
|
+
if (x.classList.contains("builder-accordion-detail"))
|
|
1403
|
+
continue;
|
|
1404
|
+
const P = x.getBoundingClientRect();
|
|
1405
|
+
if (P.left > R.left) {
|
|
1406
|
+
const A = parseInt(
|
|
1407
|
+
x.getAttribute("data-index") || "",
|
|
1408
|
+
10
|
|
1409
|
+
);
|
|
1410
|
+
isNaN(A) || (R = P, m = A);
|
|
1411
|
+
} else
|
|
1412
|
+
break;
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
return typeof m == "number" && (m = m + 1), m;
|
|
1417
|
+
}
|
|
1418
|
+
function u() {
|
|
1419
|
+
const m = {
|
|
1420
|
+
order: typeof c() == "number" ? c() : void 0,
|
|
1421
|
+
...e.grid && {
|
|
1422
|
+
width: "100%"
|
|
1423
|
+
}
|
|
1424
|
+
};
|
|
1425
|
+
return Object.fromEntries(
|
|
1426
|
+
Object.entries(m).filter(([g, p]) => p !== void 0)
|
|
1427
|
+
);
|
|
1428
|
+
}
|
|
1429
|
+
function f(m) {
|
|
1430
|
+
t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
|
|
1431
|
+
}
|
|
1432
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ V(E, { children: [
|
|
1433
|
+
/* @__PURE__ */ s(
|
|
1434
|
+
"div",
|
|
1435
|
+
{
|
|
1436
|
+
className: a(g),
|
|
1437
|
+
style: {
|
|
1438
|
+
...l(),
|
|
1439
|
+
width: e.grid ? e.gridRowWidth : void 0,
|
|
1440
|
+
order: c() !== null ? Se(g) : Se(g + 1)
|
|
1441
|
+
},
|
|
1442
|
+
"data-index": g,
|
|
1443
|
+
onClick: (p) => f(g),
|
|
1444
|
+
children: /* @__PURE__ */ s(
|
|
1445
|
+
D,
|
|
1446
|
+
{
|
|
1447
|
+
blocks: m.title,
|
|
1448
|
+
path: `items.${g}.title`,
|
|
1449
|
+
parent: e.builderBlock.id,
|
|
1450
|
+
context: e.builderContext,
|
|
1451
|
+
registeredComponents: e.builderComponents,
|
|
1452
|
+
linkComponent: e.builderLinkComponent
|
|
1453
|
+
}
|
|
1454
|
+
)
|
|
1455
|
+
}
|
|
1456
|
+
),
|
|
1457
|
+
t.includes(g) ? /* @__PURE__ */ s(
|
|
1458
|
+
"div",
|
|
1459
|
+
{
|
|
1460
|
+
className: r(g),
|
|
1461
|
+
style: u(),
|
|
1462
|
+
children: /* @__PURE__ */ s(
|
|
1463
|
+
D,
|
|
1464
|
+
{
|
|
1465
|
+
blocks: m.detail,
|
|
1466
|
+
path: `items.${g}.detail`,
|
|
1467
|
+
parent: e.builderBlock.id,
|
|
1468
|
+
context: e.builderContext,
|
|
1469
|
+
registeredComponents: e.builderComponents,
|
|
1470
|
+
linkComponent: e.builderLinkComponent
|
|
1471
|
+
}
|
|
1472
|
+
)
|
|
1473
|
+
}
|
|
1474
|
+
) : null
|
|
1475
|
+
] })) });
|
|
1476
|
+
}
|
|
1477
|
+
const Mt = {
|
|
1236
1478
|
name: "Core:Button",
|
|
1237
1479
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1238
1480
|
defaultStyles: {
|
|
@@ -1265,7 +1507,7 @@ const jt = {
|
|
|
1265
1507
|
}],
|
|
1266
1508
|
static: !0,
|
|
1267
1509
|
noWrap: !0
|
|
1268
|
-
},
|
|
1510
|
+
}, Ht = {
|
|
1269
1511
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1270
1512
|
name: "Columns",
|
|
1271
1513
|
isRSC: !0,
|
|
@@ -1466,13 +1708,13 @@ const jt = {
|
|
|
1466
1708
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1467
1709
|
advanced: !0
|
|
1468
1710
|
}]
|
|
1469
|
-
},
|
|
1711
|
+
}, Kt = {
|
|
1470
1712
|
name: "Fragment",
|
|
1471
1713
|
static: !0,
|
|
1472
1714
|
hidden: !0,
|
|
1473
1715
|
canHaveChildren: !0,
|
|
1474
1716
|
noWrap: !0
|
|
1475
|
-
},
|
|
1717
|
+
}, qt = {
|
|
1476
1718
|
name: "Image",
|
|
1477
1719
|
static: !0,
|
|
1478
1720
|
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",
|
|
@@ -1572,7 +1814,7 @@ const jt = {
|
|
|
1572
1814
|
advanced: !0,
|
|
1573
1815
|
defaultValue: 0.7041
|
|
1574
1816
|
}]
|
|
1575
|
-
},
|
|
1817
|
+
}, _t = {
|
|
1576
1818
|
name: "Core:Section",
|
|
1577
1819
|
static: !0,
|
|
1578
1820
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1611,7 +1853,7 @@ const jt = {
|
|
|
1611
1853
|
}
|
|
1612
1854
|
}
|
|
1613
1855
|
}]
|
|
1614
|
-
},
|
|
1856
|
+
}, zt = {
|
|
1615
1857
|
name: "Slot",
|
|
1616
1858
|
isRSC: !0,
|
|
1617
1859
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1625,7 +1867,7 @@ const jt = {
|
|
|
1625
1867
|
defaultValue: "children"
|
|
1626
1868
|
}]
|
|
1627
1869
|
};
|
|
1628
|
-
function
|
|
1870
|
+
function Jt(e) {
|
|
1629
1871
|
var t, n, i;
|
|
1630
1872
|
return /* @__PURE__ */ s(
|
|
1631
1873
|
"div",
|
|
@@ -1648,7 +1890,7 @@ function _t(e) {
|
|
|
1648
1890
|
}
|
|
1649
1891
|
);
|
|
1650
1892
|
}
|
|
1651
|
-
const
|
|
1893
|
+
const Yt = {
|
|
1652
1894
|
name: "Symbol",
|
|
1653
1895
|
noWrap: !0,
|
|
1654
1896
|
static: !0,
|
|
@@ -1681,7 +1923,7 @@ const zt = {
|
|
|
1681
1923
|
hideFromUI: !0,
|
|
1682
1924
|
type: "boolean"
|
|
1683
1925
|
}]
|
|
1684
|
-
},
|
|
1926
|
+
}, le = {
|
|
1685
1927
|
"@type": "@builder.io/sdk:Element",
|
|
1686
1928
|
responsiveStyles: {
|
|
1687
1929
|
large: {
|
|
@@ -1703,7 +1945,7 @@ const zt = {
|
|
|
1703
1945
|
text: "New tab"
|
|
1704
1946
|
}
|
|
1705
1947
|
}
|
|
1706
|
-
},
|
|
1948
|
+
}, se = {
|
|
1707
1949
|
"@type": "@builder.io/sdk:Element",
|
|
1708
1950
|
responsiveStyles: {
|
|
1709
1951
|
large: {
|
|
@@ -1719,7 +1961,7 @@ const zt = {
|
|
|
1719
1961
|
text: "New tab content "
|
|
1720
1962
|
}
|
|
1721
1963
|
}
|
|
1722
|
-
},
|
|
1964
|
+
}, Gt = {
|
|
1723
1965
|
name: "Builder: Tabs",
|
|
1724
1966
|
inputs: [{
|
|
1725
1967
|
name: "tabs",
|
|
@@ -1729,16 +1971,16 @@ const zt = {
|
|
|
1729
1971
|
name: "label",
|
|
1730
1972
|
type: "uiBlocks",
|
|
1731
1973
|
hideFromUI: !0,
|
|
1732
|
-
defaultValue: [
|
|
1974
|
+
defaultValue: [le]
|
|
1733
1975
|
}, {
|
|
1734
1976
|
name: "content",
|
|
1735
1977
|
type: "uiBlocks",
|
|
1736
1978
|
hideFromUI: !0,
|
|
1737
|
-
defaultValue: [
|
|
1979
|
+
defaultValue: [se]
|
|
1738
1980
|
}],
|
|
1739
1981
|
defaultValue: [{
|
|
1740
1982
|
label: [{
|
|
1741
|
-
...
|
|
1983
|
+
...le,
|
|
1742
1984
|
component: {
|
|
1743
1985
|
name: "Text",
|
|
1744
1986
|
options: {
|
|
@@ -1747,7 +1989,7 @@ const zt = {
|
|
|
1747
1989
|
}
|
|
1748
1990
|
}],
|
|
1749
1991
|
content: [{
|
|
1750
|
-
...
|
|
1992
|
+
...se,
|
|
1751
1993
|
component: {
|
|
1752
1994
|
name: "Text",
|
|
1753
1995
|
options: {
|
|
@@ -1757,7 +1999,7 @@ const zt = {
|
|
|
1757
1999
|
}]
|
|
1758
2000
|
}, {
|
|
1759
2001
|
label: [{
|
|
1760
|
-
...
|
|
2002
|
+
...le,
|
|
1761
2003
|
component: {
|
|
1762
2004
|
name: "Text",
|
|
1763
2005
|
options: {
|
|
@@ -1766,7 +2008,7 @@ const zt = {
|
|
|
1766
2008
|
}
|
|
1767
2009
|
}],
|
|
1768
2010
|
content: [{
|
|
1769
|
-
...
|
|
2011
|
+
...se,
|
|
1770
2012
|
component: {
|
|
1771
2013
|
name: "Text",
|
|
1772
2014
|
options: {
|
|
@@ -1817,7 +2059,7 @@ const zt = {
|
|
|
1817
2059
|
}]
|
|
1818
2060
|
}]
|
|
1819
2061
|
};
|
|
1820
|
-
function
|
|
2062
|
+
function Qt(e) {
|
|
1821
2063
|
var l;
|
|
1822
2064
|
const [t, n] = C(
|
|
1823
2065
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -1876,7 +2118,7 @@ function Yt(e) {
|
|
|
1876
2118
|
) }) : null
|
|
1877
2119
|
] });
|
|
1878
2120
|
}
|
|
1879
|
-
const
|
|
2121
|
+
const Xt = {
|
|
1880
2122
|
name: "Text",
|
|
1881
2123
|
static: !0,
|
|
1882
2124
|
isRSC: !0,
|
|
@@ -1895,7 +2137,7 @@ const Gt = {
|
|
|
1895
2137
|
textAlign: "center"
|
|
1896
2138
|
}
|
|
1897
2139
|
};
|
|
1898
|
-
function
|
|
2140
|
+
function Zt(e) {
|
|
1899
2141
|
var t;
|
|
1900
2142
|
return /* @__PURE__ */ s(
|
|
1901
2143
|
"div",
|
|
@@ -1908,249 +2150,7 @@ function Qt(e) {
|
|
|
1908
2150
|
}
|
|
1909
2151
|
);
|
|
1910
2152
|
}
|
|
1911
|
-
const
|
|
1912
|
-
function Xt(e) {
|
|
1913
|
-
var d;
|
|
1914
|
-
const [t, n] = C(() => []);
|
|
1915
|
-
function i() {
|
|
1916
|
-
return !!(e.grid || e.oneAtATime);
|
|
1917
|
-
}
|
|
1918
|
-
function o() {
|
|
1919
|
-
return {
|
|
1920
|
-
display: "flex",
|
|
1921
|
-
alignItems: "stretch",
|
|
1922
|
-
flexDirection: "column",
|
|
1923
|
-
...e.grid && {
|
|
1924
|
-
flexDirection: "row",
|
|
1925
|
-
alignItems: "flex-start",
|
|
1926
|
-
flexWrap: "wrap"
|
|
1927
|
-
}
|
|
1928
|
-
};
|
|
1929
|
-
}
|
|
1930
|
-
function l() {
|
|
1931
|
-
const g = {
|
|
1932
|
-
...{
|
|
1933
|
-
display: "flex",
|
|
1934
|
-
flexDirection: "column"
|
|
1935
|
-
},
|
|
1936
|
-
alignItems: "stretch",
|
|
1937
|
-
cursor: "pointer"
|
|
1938
|
-
};
|
|
1939
|
-
return Object.fromEntries(
|
|
1940
|
-
Object.entries(g).filter(([p, I]) => I !== void 0)
|
|
1941
|
-
);
|
|
1942
|
-
}
|
|
1943
|
-
function a(m) {
|
|
1944
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1945
|
-
}
|
|
1946
|
-
function r(m) {
|
|
1947
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
|
|
1948
|
-
}
|
|
1949
|
-
function c() {
|
|
1950
|
-
let m = null;
|
|
1951
|
-
if (e.grid && t.length && document) {
|
|
1952
|
-
const p = t[0];
|
|
1953
|
-
let S = document.querySelector(
|
|
1954
|
-
`.builder-accordion-title[data-index="${p}"]`
|
|
1955
|
-
);
|
|
1956
|
-
if (m = p, S) {
|
|
1957
|
-
let R = S.getBoundingClientRect();
|
|
1958
|
-
for (; S = S && S.nextElementSibling; )
|
|
1959
|
-
if (S) {
|
|
1960
|
-
if (S.classList.contains("builder-accordion-detail"))
|
|
1961
|
-
continue;
|
|
1962
|
-
const P = S.getBoundingClientRect();
|
|
1963
|
-
if (P.left > R.left) {
|
|
1964
|
-
const A = parseInt(
|
|
1965
|
-
S.getAttribute("data-index") || "",
|
|
1966
|
-
10
|
|
1967
|
-
);
|
|
1968
|
-
isNaN(A) || (R = P, m = A);
|
|
1969
|
-
} else
|
|
1970
|
-
break;
|
|
1971
|
-
}
|
|
1972
|
-
}
|
|
1973
|
-
}
|
|
1974
|
-
return typeof m == "number" && (m = m + 1), m;
|
|
1975
|
-
}
|
|
1976
|
-
function u() {
|
|
1977
|
-
const m = {
|
|
1978
|
-
order: typeof c() == "number" ? c() : void 0,
|
|
1979
|
-
...e.grid && {
|
|
1980
|
-
width: "100%"
|
|
1981
|
-
}
|
|
1982
|
-
};
|
|
1983
|
-
return Object.fromEntries(
|
|
1984
|
-
Object.entries(m).filter(([g, p]) => p !== void 0)
|
|
1985
|
-
);
|
|
1986
|
-
}
|
|
1987
|
-
function f(m) {
|
|
1988
|
-
t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
|
|
1989
|
-
}
|
|
1990
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ V(E, { children: [
|
|
1991
|
-
/* @__PURE__ */ s(
|
|
1992
|
-
"div",
|
|
1993
|
-
{
|
|
1994
|
-
className: a(g),
|
|
1995
|
-
style: {
|
|
1996
|
-
...l(),
|
|
1997
|
-
width: e.grid ? e.gridRowWidth : void 0,
|
|
1998
|
-
order: c() !== null ? Se(g) : Se(g + 1)
|
|
1999
|
-
},
|
|
2000
|
-
"data-index": g,
|
|
2001
|
-
onClick: (p) => f(g),
|
|
2002
|
-
children: /* @__PURE__ */ s(
|
|
2003
|
-
D,
|
|
2004
|
-
{
|
|
2005
|
-
blocks: m.title,
|
|
2006
|
-
path: `items.${g}.title`,
|
|
2007
|
-
parent: e.builderBlock.id,
|
|
2008
|
-
context: e.builderContext,
|
|
2009
|
-
registeredComponents: e.builderComponents,
|
|
2010
|
-
linkComponent: e.builderLinkComponent
|
|
2011
|
-
}
|
|
2012
|
-
)
|
|
2013
|
-
}
|
|
2014
|
-
),
|
|
2015
|
-
t.includes(g) ? /* @__PURE__ */ s(
|
|
2016
|
-
"div",
|
|
2017
|
-
{
|
|
2018
|
-
className: r(g),
|
|
2019
|
-
style: u(),
|
|
2020
|
-
children: /* @__PURE__ */ s(
|
|
2021
|
-
D,
|
|
2022
|
-
{
|
|
2023
|
-
blocks: m.detail,
|
|
2024
|
-
path: `items.${g}.detail`,
|
|
2025
|
-
parent: e.builderBlock.id,
|
|
2026
|
-
context: e.builderContext,
|
|
2027
|
-
registeredComponents: e.builderComponents,
|
|
2028
|
-
linkComponent: e.builderLinkComponent
|
|
2029
|
-
}
|
|
2030
|
-
)
|
|
2031
|
-
}
|
|
2032
|
-
) : null
|
|
2033
|
-
] })) });
|
|
2034
|
-
}
|
|
2035
|
-
const le = {
|
|
2036
|
-
"@type": "@builder.io/sdk:Element",
|
|
2037
|
-
layerName: "Accordion item title",
|
|
2038
|
-
responsiveStyles: {
|
|
2039
|
-
large: {
|
|
2040
|
-
marginTop: "10px",
|
|
2041
|
-
position: "relative",
|
|
2042
|
-
display: "flex",
|
|
2043
|
-
alignItems: "stretch",
|
|
2044
|
-
flexDirection: "column",
|
|
2045
|
-
paddingBottom: "10px"
|
|
2046
|
-
}
|
|
2047
|
-
},
|
|
2048
|
-
children: [{
|
|
2049
|
-
"@type": "@builder.io/sdk:Element",
|
|
2050
|
-
responsiveStyles: {
|
|
2051
|
-
large: {
|
|
2052
|
-
textAlign: "left",
|
|
2053
|
-
display: "flex",
|
|
2054
|
-
flexDirection: "column"
|
|
2055
|
-
}
|
|
2056
|
-
},
|
|
2057
|
-
component: {
|
|
2058
|
-
name: "Text",
|
|
2059
|
-
options: {
|
|
2060
|
-
text: "I am an accordion title. Click me!"
|
|
2061
|
-
}
|
|
2062
|
-
}
|
|
2063
|
-
}]
|
|
2064
|
-
}, se = {
|
|
2065
|
-
"@type": "@builder.io/sdk:Element",
|
|
2066
|
-
layerName: "Accordion item detail",
|
|
2067
|
-
responsiveStyles: {
|
|
2068
|
-
large: {
|
|
2069
|
-
position: "relative",
|
|
2070
|
-
display: "flex",
|
|
2071
|
-
alignItems: "stretch",
|
|
2072
|
-
flexDirection: "column",
|
|
2073
|
-
marginTop: "10px",
|
|
2074
|
-
paddingBottom: "10px"
|
|
2075
|
-
}
|
|
2076
|
-
},
|
|
2077
|
-
children: [{
|
|
2078
|
-
"@type": "@builder.io/sdk:Element",
|
|
2079
|
-
responsiveStyles: {
|
|
2080
|
-
large: {
|
|
2081
|
-
paddingTop: "50px",
|
|
2082
|
-
textAlign: "left",
|
|
2083
|
-
display: "flex",
|
|
2084
|
-
flexDirection: "column",
|
|
2085
|
-
paddingBottom: "50px"
|
|
2086
|
-
}
|
|
2087
|
-
},
|
|
2088
|
-
component: {
|
|
2089
|
-
name: "Text",
|
|
2090
|
-
options: {
|
|
2091
|
-
text: "I am an accordion detail, hello!"
|
|
2092
|
-
}
|
|
2093
|
-
}
|
|
2094
|
-
}]
|
|
2095
|
-
}, Zt = {
|
|
2096
|
-
name: "Builder:Accordion",
|
|
2097
|
-
canHaveChildren: !0,
|
|
2098
|
-
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
2099
|
-
defaultStyles: {
|
|
2100
|
-
display: "flex",
|
|
2101
|
-
flexDirection: "column",
|
|
2102
|
-
alignItems: "stretch"
|
|
2103
|
-
},
|
|
2104
|
-
inputs: [{
|
|
2105
|
-
name: "items",
|
|
2106
|
-
type: "list",
|
|
2107
|
-
broadcast: !0,
|
|
2108
|
-
subFields: [{
|
|
2109
|
-
name: "title",
|
|
2110
|
-
type: "uiBlocks",
|
|
2111
|
-
hideFromUI: !0,
|
|
2112
|
-
defaultValue: [le]
|
|
2113
|
-
}, {
|
|
2114
|
-
name: "detail",
|
|
2115
|
-
type: "uiBlocks",
|
|
2116
|
-
hideFromUI: !0,
|
|
2117
|
-
defaultValue: [se]
|
|
2118
|
-
}],
|
|
2119
|
-
defaultValue: [{
|
|
2120
|
-
title: [le],
|
|
2121
|
-
detail: [se]
|
|
2122
|
-
}, {
|
|
2123
|
-
title: [le],
|
|
2124
|
-
detail: [se]
|
|
2125
|
-
}],
|
|
2126
|
-
showIf: (e) => !e.get("useChildrenForItems")
|
|
2127
|
-
}, {
|
|
2128
|
-
name: "oneAtATime",
|
|
2129
|
-
helperText: "Only allow opening one at a time (collapse all others when new item openned)",
|
|
2130
|
-
type: "boolean",
|
|
2131
|
-
defaultValue: !1
|
|
2132
|
-
}, {
|
|
2133
|
-
name: "grid",
|
|
2134
|
-
helperText: "Display as a grid",
|
|
2135
|
-
type: "boolean",
|
|
2136
|
-
defaultValue: !1
|
|
2137
|
-
}, {
|
|
2138
|
-
name: "gridRowWidth",
|
|
2139
|
-
helperText: "Display as a grid",
|
|
2140
|
-
type: "string",
|
|
2141
|
-
showIf: (e) => e.get("grid"),
|
|
2142
|
-
defaultValue: "25%"
|
|
2143
|
-
}, {
|
|
2144
|
-
name: "useChildrenForItems",
|
|
2145
|
-
type: "boolean",
|
|
2146
|
-
helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
|
|
2147
|
-
advanced: !0,
|
|
2148
|
-
defaultValue: !1,
|
|
2149
|
-
onChange: (e) => {
|
|
2150
|
-
e.get("useChildrenForItems") === !0 && e.set("items", []);
|
|
2151
|
-
}
|
|
2152
|
-
}]
|
|
2153
|
-
}, en = {
|
|
2153
|
+
const en = {
|
|
2154
2154
|
name: "Custom Code",
|
|
2155
2155
|
static: !0,
|
|
2156
2156
|
requiredPermissions: ["editCode"],
|
|
@@ -2510,12 +2510,12 @@ function un(e) {
|
|
|
2510
2510
|
var d, m;
|
|
2511
2511
|
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [a, r] = C(() => "");
|
|
2512
2512
|
function c(g) {
|
|
2513
|
-
var I,
|
|
2513
|
+
var I, x;
|
|
2514
2514
|
const p = {
|
|
2515
2515
|
...e.builderContext.rootState,
|
|
2516
2516
|
...g
|
|
2517
2517
|
};
|
|
2518
|
-
e.builderContext.rootSetState ? (
|
|
2518
|
+
e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
|
|
2519
2519
|
}
|
|
2520
2520
|
function u() {
|
|
2521
2521
|
return $() && e.previewState || n;
|
|
@@ -2531,11 +2531,9 @@ function un(e) {
|
|
|
2531
2531
|
return;
|
|
2532
2532
|
}
|
|
2533
2533
|
g.preventDefault();
|
|
2534
|
-
const
|
|
2534
|
+
const x = g.currentTarget || g.target, R = e.customHeaders || {};
|
|
2535
2535
|
let P;
|
|
2536
|
-
const A = new FormData(
|
|
2537
|
-
g.currentTarget.querySelectorAll("input,select,textarea")
|
|
2538
|
-
).filter((b) => !!b.name).map((b) => {
|
|
2536
|
+
const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
|
|
2539
2537
|
let h;
|
|
2540
2538
|
const y = b.name;
|
|
2541
2539
|
if (b instanceof HTMLInputElement)
|
|
@@ -2548,8 +2546,8 @@ function un(e) {
|
|
|
2548
2546
|
} else if (b.type === "checkbox")
|
|
2549
2547
|
h = b.checked;
|
|
2550
2548
|
else if (b.type === "number" || b.type === "range") {
|
|
2551
|
-
const
|
|
2552
|
-
isNaN(
|
|
2549
|
+
const S = b.valueAsNumber;
|
|
2550
|
+
isNaN(S) || (h = S);
|
|
2553
2551
|
} else
|
|
2554
2552
|
b.type === "file" ? h = b.files : h = b.value;
|
|
2555
2553
|
else
|
|
@@ -2586,15 +2584,15 @@ function un(e) {
|
|
|
2586
2584
|
let h;
|
|
2587
2585
|
const y = b.headers.get("content-type");
|
|
2588
2586
|
if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
|
|
2589
|
-
let
|
|
2590
|
-
|
|
2587
|
+
let S = dn(h, e.errorMessagePath);
|
|
2588
|
+
S && (typeof S != "string" && (S = JSON.stringify(S)), r(S), c({ formErrorMessage: S }));
|
|
2591
2589
|
}
|
|
2592
2590
|
if (l(h), i(b.ok ? "success" : "error"), b.ok) {
|
|
2593
|
-
const
|
|
2591
|
+
const S = new CustomEvent("submit:success", {
|
|
2594
2592
|
detail: { res: b, body: h }
|
|
2595
2593
|
});
|
|
2596
2594
|
if (t.current) {
|
|
2597
|
-
if (t.current.dispatchEvent(
|
|
2595
|
+
if (t.current.dispatchEvent(S), S.defaultPrevented)
|
|
2598
2596
|
return;
|
|
2599
2597
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2600
2598
|
}
|
|
@@ -2656,7 +2654,7 @@ function un(e) {
|
|
|
2656
2654
|
context: e.builderContext
|
|
2657
2655
|
}
|
|
2658
2656
|
) : null,
|
|
2659
|
-
u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-
|
|
2657
|
+
u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2660
2658
|
u() === "success" ? /* @__PURE__ */ s(
|
|
2661
2659
|
D,
|
|
2662
2660
|
{
|
|
@@ -2669,7 +2667,7 @@ function un(e) {
|
|
|
2669
2667
|
}
|
|
2670
2668
|
),
|
|
2671
2669
|
" ",
|
|
2672
|
-
/* @__PURE__ */ s("style", { children: ".pre-
|
|
2670
|
+
/* @__PURE__ */ s("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
|
|
2673
2671
|
" "
|
|
2674
2672
|
] });
|
|
2675
2673
|
}
|
|
@@ -3065,34 +3063,34 @@ const kn = () => [{
|
|
|
3065
3063
|
...Sn
|
|
3066
3064
|
}], ve = () => [{
|
|
3067
3065
|
component: ot,
|
|
3068
|
-
...
|
|
3066
|
+
...Mt
|
|
3069
3067
|
}, {
|
|
3070
3068
|
component: Wt,
|
|
3071
|
-
...
|
|
3069
|
+
...Ht
|
|
3072
3070
|
}, {
|
|
3073
3071
|
component: Ft,
|
|
3074
|
-
...
|
|
3072
|
+
...Kt
|
|
3075
3073
|
}, {
|
|
3076
3074
|
component: Lt,
|
|
3077
|
-
...
|
|
3075
|
+
...qt
|
|
3078
3076
|
}, {
|
|
3079
3077
|
component: Ot,
|
|
3080
|
-
...
|
|
3078
|
+
..._t
|
|
3081
3079
|
}, {
|
|
3082
|
-
component:
|
|
3083
|
-
...
|
|
3080
|
+
component: Jt,
|
|
3081
|
+
...zt
|
|
3084
3082
|
}, {
|
|
3085
3083
|
component: qn,
|
|
3086
|
-
...
|
|
3084
|
+
...Yt
|
|
3085
|
+
}, {
|
|
3086
|
+
component: Zt,
|
|
3087
|
+
...Xt
|
|
3087
3088
|
}, {
|
|
3088
3089
|
component: Qt,
|
|
3089
3090
|
...Gt
|
|
3090
3091
|
}, {
|
|
3091
|
-
component:
|
|
3092
|
-
...
|
|
3093
|
-
}, {
|
|
3094
|
-
component: Xt,
|
|
3095
|
-
...Zt
|
|
3092
|
+
component: Ut,
|
|
3093
|
+
...jt
|
|
3096
3094
|
}, ...kn()], Cn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3097
3095
|
function getAndSetVariantId() {
|
|
3098
3096
|
function setCookie(name, value, days) {
|
|
@@ -3309,23 +3307,23 @@ function On(e) {
|
|
|
3309
3307
|
var P, A, O, v, w, W, b;
|
|
3310
3308
|
const t = ee(null);
|
|
3311
3309
|
function n(h) {
|
|
3312
|
-
var
|
|
3310
|
+
var S, k;
|
|
3313
3311
|
const y = {
|
|
3314
3312
|
...e.builderContextSignal.rootState,
|
|
3315
3313
|
...h
|
|
3316
3314
|
};
|
|
3317
|
-
e.builderContextSignal.rootSetState ? (k = (
|
|
3315
|
+
e.builderContextSignal.rootSetState ? (k = (S = e.builderContextSignal).rootSetState) == null || k.call(S, y) : e.setBuilderContextSignal((T) => ({
|
|
3318
3316
|
...T,
|
|
3319
3317
|
rootState: y
|
|
3320
3318
|
}));
|
|
3321
3319
|
}
|
|
3322
3320
|
function i(h) {
|
|
3323
|
-
var
|
|
3321
|
+
var S, k, T, N, j;
|
|
3324
3322
|
const y = {
|
|
3325
3323
|
...e.builderContextSignal.content,
|
|
3326
3324
|
...h,
|
|
3327
3325
|
data: {
|
|
3328
|
-
...(
|
|
3326
|
+
...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
|
|
3329
3327
|
...h == null ? void 0 : h.data
|
|
3330
3328
|
},
|
|
3331
3329
|
meta: {
|
|
@@ -3355,10 +3353,10 @@ function On(e) {
|
|
|
3355
3353
|
callbacks: {
|
|
3356
3354
|
configureSdk: (y) => {
|
|
3357
3355
|
var T;
|
|
3358
|
-
const { breakpoints:
|
|
3359
|
-
!k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) ||
|
|
3356
|
+
const { breakpoints: S, contentId: k } = y;
|
|
3357
|
+
!k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || S && i({
|
|
3360
3358
|
meta: {
|
|
3361
|
-
breakpoints:
|
|
3359
|
+
breakpoints: S
|
|
3362
3360
|
}
|
|
3363
3361
|
});
|
|
3364
3362
|
},
|
|
@@ -3372,8 +3370,8 @@ function On(e) {
|
|
|
3372
3370
|
})(h);
|
|
3373
3371
|
}
|
|
3374
3372
|
function c() {
|
|
3375
|
-
var y,
|
|
3376
|
-
const h = (
|
|
3373
|
+
var y, S;
|
|
3374
|
+
const h = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.jsCode;
|
|
3377
3375
|
h && K({
|
|
3378
3376
|
code: h,
|
|
3379
3377
|
context: e.context || {},
|
|
@@ -3388,9 +3386,9 @@ function On(e) {
|
|
|
3388
3386
|
}
|
|
3389
3387
|
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
|
|
3390
3388
|
function I(h) {
|
|
3391
|
-
var y,
|
|
3389
|
+
var y, S;
|
|
3392
3390
|
if (e.builderContextSignal.content) {
|
|
3393
|
-
const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (
|
|
3391
|
+
const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
|
|
3394
3392
|
he({
|
|
3395
3393
|
type: "click",
|
|
3396
3394
|
canTrack: Q(e.canTrack),
|
|
@@ -3403,9 +3401,9 @@ function On(e) {
|
|
|
3403
3401
|
}
|
|
3404
3402
|
g || p(!0);
|
|
3405
3403
|
}
|
|
3406
|
-
function
|
|
3407
|
-
var y,
|
|
3408
|
-
const h = (k = (
|
|
3404
|
+
function x() {
|
|
3405
|
+
var y, S, k;
|
|
3406
|
+
const h = (k = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.httpRequests) != null ? k : {};
|
|
3409
3407
|
Object.entries(h).forEach(([T, N]) => {
|
|
3410
3408
|
if (!N || d[T] || u[T] && !$())
|
|
3411
3409
|
return;
|
|
@@ -3483,7 +3481,7 @@ function On(e) {
|
|
|
3483
3481
|
}
|
|
3484
3482
|
if (Je() && !$()) {
|
|
3485
3483
|
const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
|
|
3486
|
-
`builder.
|
|
3484
|
+
`builder.overrides.${T}`
|
|
3487
3485
|
), j = k.get("apiKey") || k.get("builder.space");
|
|
3488
3486
|
T === e.model && j === e.apiKey && (!e.content || N === e.content.id) && Ie({
|
|
3489
3487
|
model: e.model,
|
|
@@ -3497,13 +3495,13 @@ function On(e) {
|
|
|
3497
3495
|
}, []), B(() => {
|
|
3498
3496
|
e.apiKey || Z.error(
|
|
3499
3497
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3500
|
-
), c(),
|
|
3498
|
+
), c(), x(), R();
|
|
3501
3499
|
}, []), B(() => {
|
|
3502
3500
|
e.content && i(e.content);
|
|
3503
3501
|
}, [e.content]), B(() => {
|
|
3504
3502
|
c();
|
|
3505
3503
|
}, [(A = (P = e.builderContextSignal.content) == null ? void 0 : P.data) == null ? void 0 : A.jsCode]), B(() => {
|
|
3506
|
-
|
|
3504
|
+
x();
|
|
3507
3505
|
}, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), B(() => {
|
|
3508
3506
|
R();
|
|
3509
3507
|
}, [e.builderContextSignal.rootState]), B(() => {
|
|
@@ -3580,18 +3578,18 @@ function Te(e) {
|
|
|
3580
3578
|
var c, u, f, d, m, g, p;
|
|
3581
3579
|
const [t, n] = C(
|
|
3582
3580
|
() => {
|
|
3583
|
-
var I,
|
|
3581
|
+
var I, x;
|
|
3584
3582
|
return Vn({
|
|
3585
3583
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3586
3584
|
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
3587
3585
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3588
|
-
contentId: (
|
|
3586
|
+
contentId: (x = e.content) == null ? void 0 : x.id
|
|
3589
3587
|
});
|
|
3590
3588
|
}
|
|
3591
3589
|
);
|
|
3592
3590
|
function i(I) {
|
|
3593
|
-
r((
|
|
3594
|
-
...
|
|
3591
|
+
r((x) => ({
|
|
3592
|
+
...x,
|
|
3595
3593
|
rootState: I
|
|
3596
3594
|
}));
|
|
3597
3595
|
}
|
|
@@ -3600,10 +3598,10 @@ function Te(e) {
|
|
|
3600
3598
|
...ve(),
|
|
3601
3599
|
...e.customComponents || []
|
|
3602
3600
|
].reduce(
|
|
3603
|
-
(I, { component:
|
|
3601
|
+
(I, { component: x, ...R }) => ({
|
|
3604
3602
|
...I,
|
|
3605
3603
|
[R.name]: {
|
|
3606
|
-
component:
|
|
3604
|
+
component: x,
|
|
3607
3605
|
...ge(R)
|
|
3608
3606
|
}
|
|
3609
3607
|
}),
|
|
@@ -3628,7 +3626,7 @@ function Te(e) {
|
|
|
3628
3626
|
...ve(),
|
|
3629
3627
|
...e.customComponents || []
|
|
3630
3628
|
].reduce(
|
|
3631
|
-
(I, { component:
|
|
3629
|
+
(I, { component: x, ...R }) => ({
|
|
3632
3630
|
...I,
|
|
3633
3631
|
[R.name]: ge(R)
|
|
3634
3632
|
}),
|
|
@@ -3886,6 +3884,6 @@ export {
|
|
|
3886
3884
|
Lt as Image,
|
|
3887
3885
|
Ot as Section,
|
|
3888
3886
|
qn as Symbol,
|
|
3889
|
-
|
|
3887
|
+
Zt as Text,
|
|
3890
3888
|
vn as Video
|
|
3891
3889
|
};
|