webim-adapter 2.1.0 → 2.2.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/build/webim-adapter.js +634 -552
- package/build/webim-embed.js +10 -10
- package/build/webim-ssr.js +647 -565
- package/package.json +1 -1
package/build/webim-adapter.js
CHANGED
|
@@ -1066,7 +1066,20 @@ function xt({ style: e, freeLayout: t, nodeRef: n, children: r }) {
|
|
|
1066
1066
|
children: [/* @__PURE__ */ u(_t, { style: e }), r]
|
|
1067
1067
|
});
|
|
1068
1068
|
}
|
|
1069
|
-
function St({
|
|
1069
|
+
function St({ href: e, target: t, style: n, nodeRef: r, children: i }) {
|
|
1070
|
+
return /* @__PURE__ */ d("a", {
|
|
1071
|
+
ref: r,
|
|
1072
|
+
href: e || "#",
|
|
1073
|
+
target: t || void 0,
|
|
1074
|
+
rel: t === "_blank" ? "noopener noreferrer" : void 0,
|
|
1075
|
+
style: {
|
|
1076
|
+
...Ut,
|
|
1077
|
+
...vt(n)
|
|
1078
|
+
},
|
|
1079
|
+
children: [/* @__PURE__ */ u(_t, { style: n }), i]
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
function Ct({ text: e, parts: t, tag: n = "h2", style: r, linked: i, nodeRef: a }) {
|
|
1070
1083
|
return /* @__PURE__ */ u(n, {
|
|
1071
1084
|
ref: a,
|
|
1072
1085
|
style: {
|
|
@@ -1074,16 +1087,16 @@ function St({ text: e, parts: t, tag: n = "h2", style: r, linked: i, nodeRef: a
|
|
|
1074
1087
|
fontSize: ft(n),
|
|
1075
1088
|
...A(r)
|
|
1076
1089
|
},
|
|
1077
|
-
children:
|
|
1090
|
+
children: Dt(t, e, i)
|
|
1078
1091
|
});
|
|
1079
1092
|
}
|
|
1080
|
-
var
|
|
1093
|
+
var wt = {
|
|
1081
1094
|
fontFamily: se.mono.value,
|
|
1082
1095
|
background: "rgba(148, 163, 184, 0.18)",
|
|
1083
1096
|
padding: "1px 5px",
|
|
1084
1097
|
borderRadius: 4,
|
|
1085
1098
|
fontSize: "0.9em"
|
|
1086
|
-
},
|
|
1099
|
+
}, Tt = {
|
|
1087
1100
|
fontFamily: se.mono.value,
|
|
1088
1101
|
background: "rgba(148, 163, 184, 0.16)",
|
|
1089
1102
|
border: "1px solid rgba(148, 163, 184, 0.3)",
|
|
@@ -1094,10 +1107,10 @@ var Ct = {
|
|
|
1094
1107
|
overflowX: "auto",
|
|
1095
1108
|
whiteSpace: "pre"
|
|
1096
1109
|
};
|
|
1097
|
-
function
|
|
1110
|
+
function Et(e, t = [], n, r) {
|
|
1098
1111
|
let i = e;
|
|
1099
1112
|
return t.includes("sup") ? i = /* @__PURE__ */ u("sup", { children: i }) : t.includes("sub") && (i = /* @__PURE__ */ u("sub", { children: i })), t.includes("code") && (i = /* @__PURE__ */ u("code", {
|
|
1100
|
-
style:
|
|
1113
|
+
style: wt,
|
|
1101
1114
|
children: i
|
|
1102
1115
|
})), t.includes("strike") && (i = /* @__PURE__ */ u("s", { children: i })), t.includes("underline") && (i = /* @__PURE__ */ u("u", { children: i })), t.includes("italic") && (i = /* @__PURE__ */ u("em", { children: i })), t.includes("bold") && (i = /* @__PURE__ */ u("strong", { children: i })), n ? i = /* @__PURE__ */ u("a", {
|
|
1103
1116
|
href: n,
|
|
@@ -1113,10 +1126,10 @@ function Tt(e, t = [], n, r) {
|
|
|
1113
1126
|
children: i
|
|
1114
1127
|
})), i;
|
|
1115
1128
|
}
|
|
1116
|
-
function
|
|
1129
|
+
function Dt(t, n, r) {
|
|
1117
1130
|
return t?.length ? t.map((t, n) => {
|
|
1118
1131
|
if (t.slot) return /* @__PURE__ */ u(e, { children: r?.[t.slot] ?? null }, n);
|
|
1119
|
-
if (t.parts) return /* @__PURE__ */ u(e, { children:
|
|
1132
|
+
if (t.parts) return /* @__PURE__ */ u(e, { children: Dt(t.parts, "", r) }, n);
|
|
1120
1133
|
if (t.br) return /* @__PURE__ */ u("br", {}, n);
|
|
1121
1134
|
let i = t.text;
|
|
1122
1135
|
return t.image && (i = /* @__PURE__ */ u("img", {
|
|
@@ -1128,7 +1141,7 @@ function Et(t, n, r) {
|
|
|
1128
1141
|
verticalAlign: "middle"
|
|
1129
1142
|
}
|
|
1130
1143
|
})), t.sup ? i = /* @__PURE__ */ u("sup", { children: i }) : t.sub && (i = /* @__PURE__ */ u("sub", { children: i })), t.code && (i = /* @__PURE__ */ u("code", {
|
|
1131
|
-
style:
|
|
1144
|
+
style: wt,
|
|
1132
1145
|
children: i
|
|
1133
1146
|
})), t.strike && (i = /* @__PURE__ */ u("s", { children: i })), t.underline && (i = /* @__PURE__ */ u("u", { children: i })), t.italic && (i = /* @__PURE__ */ u("em", { children: i })), t.bold && (i = /* @__PURE__ */ u("strong", { children: i })), (t.color || t.background) && (i = /* @__PURE__ */ u("span", {
|
|
1134
1147
|
style: {
|
|
@@ -1151,35 +1164,35 @@ function Et(t, n, r) {
|
|
|
1151
1164
|
})), /* @__PURE__ */ u(e, { children: i }, n);
|
|
1152
1165
|
}) : n;
|
|
1153
1166
|
}
|
|
1154
|
-
function
|
|
1167
|
+
function Ot({ parts: e, text: t, marks: n, href: r, target: i, style: a }) {
|
|
1155
1168
|
return /* @__PURE__ */ u("span", {
|
|
1156
1169
|
style: A(a),
|
|
1157
|
-
children: e?.length ?
|
|
1170
|
+
children: e?.length ? Dt(e, t) : Et(t, n, r, i)
|
|
1158
1171
|
});
|
|
1159
1172
|
}
|
|
1160
|
-
var
|
|
1173
|
+
var kt = [
|
|
1161
1174
|
"left",
|
|
1162
1175
|
"center",
|
|
1163
1176
|
"right",
|
|
1164
1177
|
"justify"
|
|
1165
1178
|
];
|
|
1166
|
-
function
|
|
1179
|
+
function At(e, t, n) {
|
|
1167
1180
|
let r = e && e.cellStyles;
|
|
1168
1181
|
if (!r || typeof r != "object" || Array.isArray(r)) return {};
|
|
1169
1182
|
let i = r[`${t}:${n}`];
|
|
1170
1183
|
return i && typeof i == "object" && !Array.isArray(i) ? i : {};
|
|
1171
1184
|
}
|
|
1172
|
-
function
|
|
1185
|
+
function jt(e, t) {
|
|
1173
1186
|
let n = e || {}, r = typeof n.bold == "boolean" ? n.bold : !!t;
|
|
1174
1187
|
return {
|
|
1175
|
-
textAlign:
|
|
1188
|
+
textAlign: kt.includes(n.align) ? n.align : "left",
|
|
1176
1189
|
fontWeight: r ? 700 : 400,
|
|
1177
1190
|
fontStyle: n.italic ? "italic" : void 0,
|
|
1178
1191
|
color: typeof n.color == "string" && n.color ? n.color : void 0,
|
|
1179
1192
|
backgroundColor: typeof n.bg == "string" && n.bg ? n.bg : void 0
|
|
1180
1193
|
};
|
|
1181
1194
|
}
|
|
1182
|
-
function
|
|
1195
|
+
function Mt({ align: e = "center", width: t, wrap: n } = {}) {
|
|
1183
1196
|
let r = t ? `${t}%` : void 0;
|
|
1184
1197
|
if (e === "full") return { width: "100%" };
|
|
1185
1198
|
let i = e === "left" || e === "right";
|
|
@@ -1213,8 +1226,38 @@ function jt({ align: e = "center", width: t, wrap: n } = {}) {
|
|
|
1213
1226
|
marginRight: "auto"
|
|
1214
1227
|
};
|
|
1215
1228
|
}
|
|
1216
|
-
|
|
1217
|
-
|
|
1229
|
+
var Nt = {
|
|
1230
|
+
red: "#e03131",
|
|
1231
|
+
orange: "#e8590c",
|
|
1232
|
+
yellow: "#c98a00",
|
|
1233
|
+
blue: "#1c7ed6",
|
|
1234
|
+
purple: "#7048e8",
|
|
1235
|
+
pink: "#d6336c",
|
|
1236
|
+
green: "#2f9e44",
|
|
1237
|
+
grey: "#868e96"
|
|
1238
|
+
}, Pt = {
|
|
1239
|
+
red: "rgba(224, 49, 49, 0.12)",
|
|
1240
|
+
orange: "rgba(232, 89, 12, 0.12)",
|
|
1241
|
+
yellow: "rgba(201, 138, 0, 0.15)",
|
|
1242
|
+
blue: "rgba(28, 126, 214, 0.12)",
|
|
1243
|
+
purple: "rgba(112, 72, 232, 0.12)",
|
|
1244
|
+
pink: "rgba(214, 51, 108, 0.12)",
|
|
1245
|
+
green: "rgba(47, 158, 68, 0.12)",
|
|
1246
|
+
grey: "rgba(134, 142, 150, 0.16)"
|
|
1247
|
+
};
|
|
1248
|
+
function Ft(e) {
|
|
1249
|
+
let t = Nt[e?.color] ?? (e?.color || ""), n = Pt[e?.background] ?? (e?.background || "");
|
|
1250
|
+
return {
|
|
1251
|
+
...t && { color: t },
|
|
1252
|
+
...n && {
|
|
1253
|
+
backgroundColor: n,
|
|
1254
|
+
padding: "8px 12px",
|
|
1255
|
+
borderRadius: "8px"
|
|
1256
|
+
}
|
|
1257
|
+
};
|
|
1258
|
+
}
|
|
1259
|
+
function It(e = [], t, n) {
|
|
1260
|
+
let r = n ?? ((e, n) => Dt(e, n, t));
|
|
1218
1261
|
return e.map((n, i) => {
|
|
1219
1262
|
let a = {
|
|
1220
1263
|
marginTop: 0,
|
|
@@ -1236,7 +1279,7 @@ function Mt(e = [], t, n) {
|
|
|
1236
1279
|
marginLeft: 0,
|
|
1237
1280
|
marginRight: 0,
|
|
1238
1281
|
...a,
|
|
1239
|
-
...
|
|
1282
|
+
...Mt(n)
|
|
1240
1283
|
},
|
|
1241
1284
|
children: [n.href ? /* @__PURE__ */ u("a", {
|
|
1242
1285
|
href: n.href,
|
|
@@ -1255,16 +1298,16 @@ function Mt(e = [], t, n) {
|
|
|
1255
1298
|
})]
|
|
1256
1299
|
}, i);
|
|
1257
1300
|
}
|
|
1258
|
-
if (n.type === "video") return
|
|
1301
|
+
if (n.type === "video") return Yt(n.url) ? /* @__PURE__ */ u("div", {
|
|
1259
1302
|
style: {
|
|
1260
1303
|
...a,
|
|
1261
|
-
...
|
|
1304
|
+
...Mt({
|
|
1262
1305
|
align: n.align,
|
|
1263
1306
|
wrap: n.wrap,
|
|
1264
1307
|
width: n.width ?? 100
|
|
1265
1308
|
})
|
|
1266
1309
|
},
|
|
1267
|
-
children: /* @__PURE__ */ u(
|
|
1310
|
+
children: /* @__PURE__ */ u(Xt, {
|
|
1268
1311
|
url: n.url,
|
|
1269
1312
|
autoplay: n.autoplay,
|
|
1270
1313
|
muted: n.muted,
|
|
@@ -1322,32 +1365,60 @@ function Mt(e = [], t, n) {
|
|
|
1322
1365
|
if (n.type === "table") {
|
|
1323
1366
|
let e = Array.isArray(n.rows) ? n.rows.filter(Array.isArray) : [];
|
|
1324
1367
|
if (!e.length) return null;
|
|
1325
|
-
let t = n.header !== !1, o = {
|
|
1326
|
-
border:
|
|
1327
|
-
padding:
|
|
1368
|
+
let t = n.header !== !1, o = n.borders === !1 ? void 0 : "1px solid rgba(148, 163, 184, 0.4)", s = Number.isFinite(n.padX) ? Math.max(0, n.padX) : 10, c = Number.isFinite(n.padY) ? Math.max(0, n.padY) : 6, l = Math.max(0, Number(n.spacing) || 0), f = {
|
|
1369
|
+
border: o,
|
|
1370
|
+
padding: `${c}px ${s}px`,
|
|
1328
1371
|
verticalAlign: "top"
|
|
1329
|
-
},
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
})
|
|
1372
|
+
}, p = Array.isArray(n.heights) ? n.heights : null, m = (e) => {
|
|
1373
|
+
let t = Number(p?.[e]);
|
|
1374
|
+
return Number.isFinite(t) && t > 0 ? { height: `${t}px` } : void 0;
|
|
1375
|
+
}, h = t ? e.slice(1) : e, g = Array.isArray(n.widths) ? n.widths : null, _ = (e, t, r) => ({
|
|
1376
|
+
...f,
|
|
1377
|
+
...jt(At(n, e, t), r)
|
|
1378
|
+
}), v = n.spans && typeof n.spans == "object" ? n.spans : null, y = /* @__PURE__ */ new Set();
|
|
1379
|
+
v && e.forEach((e, t) => e.forEach((e, n) => {
|
|
1380
|
+
let r = v[`${t}:${n}`];
|
|
1381
|
+
if (!r) return;
|
|
1382
|
+
let i = Math.max(1, Number(r.c) || 1), a = Math.max(1, Number(r.r) || 1);
|
|
1383
|
+
for (let e = 0; e < a; e += 1) for (let r = 0; r < i; r += 1) (e || r) && y.add(`${t + e}:${n + r}`);
|
|
1384
|
+
}));
|
|
1385
|
+
let b = (e, t) => {
|
|
1386
|
+
let n = v?.[`${e}:${t}`], r = Math.max(1, Number(n?.c) || 1), i = Math.max(1, Number(n?.r) || 1);
|
|
1387
|
+
return {
|
|
1388
|
+
colSpan: r > 1 ? r : void 0,
|
|
1389
|
+
rowSpan: i > 1 ? i : void 0
|
|
1390
|
+
};
|
|
1391
|
+
};
|
|
1333
1392
|
return /* @__PURE__ */ d("table", {
|
|
1334
1393
|
style: {
|
|
1335
1394
|
...a,
|
|
1336
|
-
borderCollapse: "collapse",
|
|
1395
|
+
borderCollapse: l ? "separate" : "collapse",
|
|
1396
|
+
borderSpacing: l ? `${l}px` : void 0,
|
|
1337
1397
|
width: "100%",
|
|
1338
1398
|
fontSize: "inherit",
|
|
1339
|
-
tableLayout:
|
|
1399
|
+
tableLayout: g ? "fixed" : void 0
|
|
1340
1400
|
},
|
|
1341
1401
|
children: [
|
|
1342
|
-
|
|
1343
|
-
t && /* @__PURE__ */ u("thead", { children: /* @__PURE__ */ u("tr", {
|
|
1344
|
-
style:
|
|
1345
|
-
children:
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
}
|
|
1402
|
+
g && /* @__PURE__ */ u("colgroup", { children: g.map((e, t) => /* @__PURE__ */ u("col", { style: { width: `${e}%` } }, t)) }),
|
|
1403
|
+
t && /* @__PURE__ */ u("thead", { children: /* @__PURE__ */ u("tr", {
|
|
1404
|
+
style: m(0),
|
|
1405
|
+
children: e[0].map((e, t) => y.has(`0:${t}`) ? null : /* @__PURE__ */ u("th", {
|
|
1406
|
+
style: _(0, t, !0),
|
|
1407
|
+
...b(0, t),
|
|
1408
|
+
children: Array.isArray(e) ? r(e) : e
|
|
1409
|
+
}, t))
|
|
1410
|
+
}) }),
|
|
1411
|
+
/* @__PURE__ */ u("tbody", { children: h.map((e, n) => /* @__PURE__ */ u("tr", {
|
|
1412
|
+
style: m(t ? n + 1 : n),
|
|
1413
|
+
children: e.map((e, i) => {
|
|
1414
|
+
let a = t ? n + 1 : n;
|
|
1415
|
+
return y.has(`${a}:${i}`) ? null : /* @__PURE__ */ u("td", {
|
|
1416
|
+
style: _(a, i, !1),
|
|
1417
|
+
...b(a, i),
|
|
1418
|
+
children: Array.isArray(e) ? r(e) : e
|
|
1419
|
+
}, i);
|
|
1420
|
+
})
|
|
1421
|
+
}, n)) })
|
|
1351
1422
|
]
|
|
1352
1423
|
}, i);
|
|
1353
1424
|
}
|
|
@@ -1356,7 +1427,8 @@ function Mt(e = [], t, n) {
|
|
|
1356
1427
|
return /* @__PURE__ */ u(e, {
|
|
1357
1428
|
style: {
|
|
1358
1429
|
...a,
|
|
1359
|
-
|
|
1430
|
+
...Ft(n),
|
|
1431
|
+
paddingLeft: n.background ? 34 : 24
|
|
1360
1432
|
},
|
|
1361
1433
|
start: n.type === "ol" ? n.start : void 0,
|
|
1362
1434
|
children: (n.items ?? []).map((e, n) => {
|
|
@@ -1375,7 +1447,7 @@ function Mt(e = [], t, n) {
|
|
|
1375
1447
|
children: e.task ? "☑" : "☐"
|
|
1376
1448
|
}),
|
|
1377
1449
|
r(e.parts, e.text),
|
|
1378
|
-
e.blocks?.length ?
|
|
1450
|
+
e.blocks?.length ? It(e.blocks, t, r) : null
|
|
1379
1451
|
]
|
|
1380
1452
|
}, n);
|
|
1381
1453
|
})
|
|
@@ -1383,16 +1455,18 @@ function Mt(e = [], t, n) {
|
|
|
1383
1455
|
}
|
|
1384
1456
|
if (n.type === "quote") return /* @__PURE__ */ u("blockquote", {
|
|
1385
1457
|
style: {
|
|
1386
|
-
...
|
|
1387
|
-
...a
|
|
1458
|
+
...zt,
|
|
1459
|
+
...a,
|
|
1460
|
+
...Ft(n),
|
|
1461
|
+
...n.background && { paddingLeft: 20 }
|
|
1388
1462
|
},
|
|
1389
|
-
children: n.blocks?.length ?
|
|
1463
|
+
children: n.blocks?.length ? It(n.blocks, t, r) : r(n.parts, n.text)
|
|
1390
1464
|
}, i);
|
|
1391
1465
|
if (n.type === "code") return /* @__PURE__ */ u("pre", {
|
|
1392
1466
|
"data-lang": n.lang || void 0,
|
|
1393
1467
|
style: {
|
|
1394
1468
|
...a,
|
|
1395
|
-
...
|
|
1469
|
+
...Tt
|
|
1396
1470
|
},
|
|
1397
1471
|
children: /* @__PURE__ */ u("code", {
|
|
1398
1472
|
style: { fontFamily: "inherit" },
|
|
@@ -1405,7 +1479,8 @@ function Mt(e = [], t, n) {
|
|
|
1405
1479
|
style: {
|
|
1406
1480
|
...ut,
|
|
1407
1481
|
fontSize: ft(n.type),
|
|
1408
|
-
...a
|
|
1482
|
+
...a,
|
|
1483
|
+
...Ft(n)
|
|
1409
1484
|
},
|
|
1410
1485
|
children: r(n.parts, n.text)
|
|
1411
1486
|
}, i);
|
|
@@ -1413,23 +1488,24 @@ function Mt(e = [], t, n) {
|
|
|
1413
1488
|
return /* @__PURE__ */ u("p", {
|
|
1414
1489
|
style: {
|
|
1415
1490
|
...pt,
|
|
1416
|
-
...a
|
|
1491
|
+
...a,
|
|
1492
|
+
...Ft(n)
|
|
1417
1493
|
},
|
|
1418
1494
|
children: r(n.parts, n.text)
|
|
1419
1495
|
}, i);
|
|
1420
1496
|
});
|
|
1421
1497
|
}
|
|
1422
|
-
function
|
|
1498
|
+
function Lt({ content: e, style: t, linked: n, nodeRef: r }) {
|
|
1423
1499
|
return /* @__PURE__ */ u("div", {
|
|
1424
1500
|
ref: r,
|
|
1425
1501
|
style: {
|
|
1426
1502
|
display: "flow-root",
|
|
1427
1503
|
...A(t)
|
|
1428
1504
|
},
|
|
1429
|
-
children:
|
|
1505
|
+
children: It(e, n)
|
|
1430
1506
|
});
|
|
1431
1507
|
}
|
|
1432
|
-
function
|
|
1508
|
+
function Rt({ markdown: e, newTab: t, style: n, nodeRef: r }) {
|
|
1433
1509
|
let i = o(() => $e(e, { newTab: t }), [e, t]);
|
|
1434
1510
|
return /* @__PURE__ */ u("div", {
|
|
1435
1511
|
ref: r,
|
|
@@ -1437,25 +1513,25 @@ function Pt({ markdown: e, newTab: t, style: n, nodeRef: r }) {
|
|
|
1437
1513
|
display: "flow-root",
|
|
1438
1514
|
...A(n)
|
|
1439
1515
|
},
|
|
1440
|
-
children:
|
|
1516
|
+
children: It(i)
|
|
1441
1517
|
});
|
|
1442
1518
|
}
|
|
1443
|
-
var
|
|
1519
|
+
var zt = {
|
|
1444
1520
|
margin: 0,
|
|
1445
1521
|
padding: "8px 0 8px 20px",
|
|
1446
1522
|
borderLeft: "4px solid var(--page-accent, rgba(148, 163, 184, 0.6))"
|
|
1447
1523
|
};
|
|
1448
|
-
function
|
|
1524
|
+
function Bt({ text: e, parts: t, style: n, linked: r, nodeRef: i }) {
|
|
1449
1525
|
return /* @__PURE__ */ u("blockquote", {
|
|
1450
1526
|
ref: i,
|
|
1451
1527
|
style: {
|
|
1452
|
-
...
|
|
1528
|
+
...zt,
|
|
1453
1529
|
...A(n)
|
|
1454
1530
|
},
|
|
1455
|
-
children:
|
|
1531
|
+
children: Dt(t, e, r)
|
|
1456
1532
|
});
|
|
1457
1533
|
}
|
|
1458
|
-
function
|
|
1534
|
+
function Vt({ ordered: e, items: t = [], style: n, nodeRef: r }) {
|
|
1459
1535
|
return /* @__PURE__ */ u(e ? "ol" : "ul", {
|
|
1460
1536
|
ref: r,
|
|
1461
1537
|
style: {
|
|
@@ -1465,40 +1541,45 @@ function Lt({ ordered: e, items: t = [], style: n, nodeRef: r }) {
|
|
|
1465
1541
|
},
|
|
1466
1542
|
children: t.map((e, t) => /* @__PURE__ */ u("li", {
|
|
1467
1543
|
style: { marginBottom: 4 },
|
|
1468
|
-
children:
|
|
1544
|
+
children: Dt(e.parts, e.text)
|
|
1469
1545
|
}, t))
|
|
1470
1546
|
});
|
|
1471
1547
|
}
|
|
1472
|
-
function
|
|
1548
|
+
function Ht({ text: e, parts: t, style: n, linked: r, nodeRef: i }) {
|
|
1473
1549
|
return /* @__PURE__ */ u("p", {
|
|
1474
1550
|
ref: i,
|
|
1475
1551
|
style: {
|
|
1476
1552
|
...pt,
|
|
1477
1553
|
...A(n)
|
|
1478
1554
|
},
|
|
1479
|
-
children:
|
|
1555
|
+
children: Dt(t, e, r)
|
|
1480
1556
|
});
|
|
1481
1557
|
}
|
|
1482
|
-
var
|
|
1558
|
+
var Ut = {
|
|
1559
|
+
display: "block",
|
|
1560
|
+
color: "inherit",
|
|
1561
|
+
textDecoration: "none",
|
|
1562
|
+
cursor: "pointer"
|
|
1563
|
+
}, Wt = {
|
|
1483
1564
|
color: "var(--page-accent, inherit)",
|
|
1484
1565
|
textDecoration: "underline",
|
|
1485
1566
|
textUnderlineOffset: 3,
|
|
1486
1567
|
cursor: "pointer"
|
|
1487
1568
|
};
|
|
1488
|
-
function
|
|
1569
|
+
function Gt({ text: e, parts: t, href: n, target: r, style: i, linked: a, nodeRef: o }) {
|
|
1489
1570
|
return /* @__PURE__ */ u("a", {
|
|
1490
1571
|
ref: o,
|
|
1491
1572
|
href: n || "#",
|
|
1492
1573
|
target: r || void 0,
|
|
1493
1574
|
rel: r === "_blank" ? "noopener noreferrer" : void 0,
|
|
1494
1575
|
style: {
|
|
1495
|
-
...
|
|
1576
|
+
...Wt,
|
|
1496
1577
|
...A(i)
|
|
1497
1578
|
},
|
|
1498
|
-
children:
|
|
1579
|
+
children: Dt(t, e, a)
|
|
1499
1580
|
});
|
|
1500
1581
|
}
|
|
1501
|
-
function
|
|
1582
|
+
function Kt({ text: e, parts: t, href: n, target: r, style: i, linked: a, nodeRef: o }) {
|
|
1502
1583
|
return /* @__PURE__ */ u("a", {
|
|
1503
1584
|
ref: o,
|
|
1504
1585
|
href: n || "#",
|
|
@@ -1508,10 +1589,10 @@ function Vt({ text: e, parts: t, href: n, target: r, style: i, linked: a, nodeRe
|
|
|
1508
1589
|
...mt,
|
|
1509
1590
|
...A(i)
|
|
1510
1591
|
},
|
|
1511
|
-
children:
|
|
1592
|
+
children: Dt(t, e, a)
|
|
1512
1593
|
});
|
|
1513
1594
|
}
|
|
1514
|
-
function
|
|
1595
|
+
function qt({ src: e, alt: t, style: n, nodeRef: r }) {
|
|
1515
1596
|
return e ? /* @__PURE__ */ u("img", {
|
|
1516
1597
|
ref: r,
|
|
1517
1598
|
src: e,
|
|
@@ -1523,7 +1604,7 @@ function Ht({ src: e, alt: t, style: n, nodeRef: r }) {
|
|
|
1523
1604
|
}
|
|
1524
1605
|
}) : null;
|
|
1525
1606
|
}
|
|
1526
|
-
function
|
|
1607
|
+
function Jt({ src: e, poster: t, controls: n = !0, autoplay: r = !1, loop: i = !1, muted: a = !1, style: o, nodeRef: s }) {
|
|
1527
1608
|
return e ? /* @__PURE__ */ u("video", {
|
|
1528
1609
|
ref: s,
|
|
1529
1610
|
src: e,
|
|
@@ -1541,9 +1622,9 @@ function Ut({ src: e, poster: t, controls: n = !0, autoplay: r = !1, loop: i = !
|
|
|
1541
1622
|
}
|
|
1542
1623
|
}) : null;
|
|
1543
1624
|
}
|
|
1544
|
-
var
|
|
1545
|
-
function
|
|
1546
|
-
let c =
|
|
1625
|
+
var Yt = (e = "") => (e.match(/(?:youtu\.be\/|v=|embed\/|shorts\/|live\/)([\w-]{11})/) || e.match(/^([\w-]{11})$/))?.[1];
|
|
1626
|
+
function Xt({ url: e, autoplay: t = !1, muted: n = !1, loop: r = !1, controls: i = !0, start: a, style: o, nodeRef: s }) {
|
|
1627
|
+
let c = Yt(e);
|
|
1547
1628
|
if (!c) return null;
|
|
1548
1629
|
let l = new URLSearchParams({ rel: "0" });
|
|
1549
1630
|
return t && l.set("autoplay", "1"), (n || t) && l.set("mute", "1"), i || l.set("controls", "0"), r && (l.set("loop", "1"), l.set("playlist", c)), Number(a) > 0 && l.set("start", String(Math.floor(Number(a)))), /* @__PURE__ */ u("div", {
|
|
@@ -1569,7 +1650,7 @@ function Gt({ url: e, autoplay: t = !1, muted: n = !1, loop: r = !1, controls: i
|
|
|
1569
1650
|
})
|
|
1570
1651
|
});
|
|
1571
1652
|
}
|
|
1572
|
-
function
|
|
1653
|
+
function Zt({ src: e, title: t, allowFullscreen: n = !0, style: r, nodeRef: i }) {
|
|
1573
1654
|
return e ? /* @__PURE__ */ u("iframe", {
|
|
1574
1655
|
ref: i,
|
|
1575
1656
|
src: e,
|
|
@@ -1585,15 +1666,15 @@ function Kt({ src: e, title: t, allowFullscreen: n = !0, style: r, nodeRef: i })
|
|
|
1585
1666
|
}
|
|
1586
1667
|
}) : null;
|
|
1587
1668
|
}
|
|
1588
|
-
var
|
|
1589
|
-
function
|
|
1590
|
-
return `@scope ([data-wb-embed]) {\n${e.replace(
|
|
1669
|
+
var Qt = /(^|[\s,>+~{}])(:root|html|body)(?=$|[\s,{.:#[>+~])/g;
|
|
1670
|
+
function $t(e) {
|
|
1671
|
+
return `@scope ([data-wb-embed]) {\n${e.replace(Qt, "$1:scope")}\n}`;
|
|
1591
1672
|
}
|
|
1592
|
-
function
|
|
1673
|
+
function en({ code: e, runScripts: t = !0, scopeStyles: n = !1, style: r, nodeRef: a }) {
|
|
1593
1674
|
let [o, s] = c(null);
|
|
1594
1675
|
return i(() => {
|
|
1595
1676
|
o && (o.innerHTML = e || "", n ? (o.setAttribute("data-wb-embed", ""), o.querySelectorAll("style").forEach((e) => {
|
|
1596
|
-
e.textContent =
|
|
1677
|
+
e.textContent = $t(e.textContent || "");
|
|
1597
1678
|
})) : o.removeAttribute("data-wb-embed"), t && o.querySelectorAll("script").forEach((e) => {
|
|
1598
1679
|
let t = document.createElement("script");
|
|
1599
1680
|
for (let { name: n, value: r } of e.attributes) t.setAttribute(n, r);
|
|
@@ -1611,7 +1692,7 @@ function Yt({ code: e, runScripts: t = !0, scopeStyles: n = !1, style: r, nodeRe
|
|
|
1611
1692
|
style: A(r)
|
|
1612
1693
|
});
|
|
1613
1694
|
}
|
|
1614
|
-
function
|
|
1695
|
+
function tn({ height: e, style: t, nodeRef: n }) {
|
|
1615
1696
|
return /* @__PURE__ */ u("div", {
|
|
1616
1697
|
ref: n,
|
|
1617
1698
|
style: {
|
|
@@ -1622,7 +1703,7 @@ function Xt({ height: e, style: t, nodeRef: n }) {
|
|
|
1622
1703
|
}
|
|
1623
1704
|
});
|
|
1624
1705
|
}
|
|
1625
|
-
function
|
|
1706
|
+
function nn({ style: e, nodeRef: t }) {
|
|
1626
1707
|
return /* @__PURE__ */ u("div", {
|
|
1627
1708
|
ref: t,
|
|
1628
1709
|
style: {
|
|
@@ -1633,7 +1714,7 @@ function Zt({ style: e, nodeRef: t }) {
|
|
|
1633
1714
|
}
|
|
1634
1715
|
});
|
|
1635
1716
|
}
|
|
1636
|
-
function
|
|
1717
|
+
function rn({ style: e, nodeRef: t }) {
|
|
1637
1718
|
return /* @__PURE__ */ u("div", {
|
|
1638
1719
|
ref: t,
|
|
1639
1720
|
style: {
|
|
@@ -1642,7 +1723,7 @@ function Qt({ style: e, nodeRef: t }) {
|
|
|
1642
1723
|
}
|
|
1643
1724
|
});
|
|
1644
1725
|
}
|
|
1645
|
-
var
|
|
1726
|
+
var an = {
|
|
1646
1727
|
position: "absolute",
|
|
1647
1728
|
top: "50%",
|
|
1648
1729
|
transform: "translateY(-50%)",
|
|
@@ -1659,7 +1740,7 @@ var $t = {
|
|
|
1659
1740
|
alignItems: "center",
|
|
1660
1741
|
justifyContent: "center",
|
|
1661
1742
|
padding: 0
|
|
1662
|
-
},
|
|
1743
|
+
}, on = {
|
|
1663
1744
|
bottom: {
|
|
1664
1745
|
inset: "auto 0 0 0",
|
|
1665
1746
|
padding: "40px 24px 20px",
|
|
@@ -1678,8 +1759,8 @@ var $t = {
|
|
|
1678
1759
|
padding: 24,
|
|
1679
1760
|
textShadow: "0 2px 12px rgba(0, 0, 0, 0.6)"
|
|
1680
1761
|
}
|
|
1681
|
-
},
|
|
1682
|
-
function
|
|
1762
|
+
}, sn = 48;
|
|
1763
|
+
function cn({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, height: a = 320, swipe: o = !0, style: s, nodeRef: f }) {
|
|
1683
1764
|
let [p, m] = c(0), [h, g] = c(!1), [_, v] = c(null), y = e ? Math.min(p, e - 1) : 0;
|
|
1684
1765
|
if (i(() => {
|
|
1685
1766
|
if (!n || h || _ || e < 2) return;
|
|
@@ -1695,7 +1776,7 @@ function nn({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
|
|
|
1695
1776
|
let b = (t) => m((t + e) % e), x = () => {
|
|
1696
1777
|
if (!_) return;
|
|
1697
1778
|
let { dx: e } = _;
|
|
1698
|
-
v(null), e < -48 ? b(y + 1) : e >
|
|
1779
|
+
v(null), e < -48 ? b(y + 1) : e > sn && b(y - 1);
|
|
1699
1780
|
};
|
|
1700
1781
|
return /* @__PURE__ */ d("div", {
|
|
1701
1782
|
ref: f,
|
|
@@ -1744,7 +1825,7 @@ function nn({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
|
|
|
1744
1825
|
type: "button",
|
|
1745
1826
|
"aria-label": "Previous slide",
|
|
1746
1827
|
style: {
|
|
1747
|
-
|
|
1828
|
+
...an,
|
|
1748
1829
|
left: 12
|
|
1749
1830
|
},
|
|
1750
1831
|
onClick: () => b(y - 1),
|
|
@@ -1754,7 +1835,7 @@ function nn({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
|
|
|
1754
1835
|
type: "button",
|
|
1755
1836
|
"aria-label": "Next slide",
|
|
1756
1837
|
style: {
|
|
1757
|
-
|
|
1838
|
+
...an,
|
|
1758
1839
|
right: 12
|
|
1759
1840
|
},
|
|
1760
1841
|
onClick: () => b(y + 1),
|
|
@@ -1788,7 +1869,7 @@ function nn({ count: e, renderSlide: t, autoplay: n = !0, interval: r = 5, heigh
|
|
|
1788
1869
|
] })]
|
|
1789
1870
|
});
|
|
1790
1871
|
}
|
|
1791
|
-
var
|
|
1872
|
+
var ln = (e, t) => ({
|
|
1792
1873
|
position: "absolute",
|
|
1793
1874
|
inset: 0,
|
|
1794
1875
|
backgroundImage: e ? `url(${e})` : "none",
|
|
@@ -1796,18 +1877,18 @@ var rn = (e, t) => ({
|
|
|
1796
1877
|
backgroundSize: "cover",
|
|
1797
1878
|
backgroundPosition: "center"
|
|
1798
1879
|
});
|
|
1799
|
-
function
|
|
1800
|
-
return e.length ? /* @__PURE__ */ u(
|
|
1880
|
+
function un({ slides: e = [], captionPosition: t = "bottom", captionAlign: n = "left", ...r }) {
|
|
1881
|
+
return e.length ? /* @__PURE__ */ u(cn, {
|
|
1801
1882
|
...r,
|
|
1802
1883
|
count: e.length,
|
|
1803
1884
|
renderSlide: (r) => {
|
|
1804
1885
|
let i = e[r];
|
|
1805
|
-
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style:
|
|
1886
|
+
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style: ln(i.image) }), (i.title || i.text) && /* @__PURE__ */ d("div", {
|
|
1806
1887
|
style: {
|
|
1807
1888
|
position: "absolute",
|
|
1808
1889
|
color: "#fff",
|
|
1809
1890
|
textAlign: n,
|
|
1810
|
-
...
|
|
1891
|
+
...on[t] ?? on.bottom
|
|
1811
1892
|
},
|
|
1812
1893
|
children: [i.title && /* @__PURE__ */ u("div", {
|
|
1813
1894
|
style: {
|
|
@@ -1827,13 +1908,13 @@ function an({ slides: e = [], captionPosition: t = "bottom", captionAlign: n = "
|
|
|
1827
1908
|
}
|
|
1828
1909
|
}) : null;
|
|
1829
1910
|
}
|
|
1830
|
-
function
|
|
1831
|
-
return e.length ? /* @__PURE__ */ u(
|
|
1911
|
+
function dn({ slides: e = [], linked: t, ...n }) {
|
|
1912
|
+
return e.length ? /* @__PURE__ */ u(cn, {
|
|
1832
1913
|
...n,
|
|
1833
1914
|
count: e.length,
|
|
1834
1915
|
renderSlide: (n) => {
|
|
1835
1916
|
let r = e[n];
|
|
1836
|
-
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style:
|
|
1917
|
+
return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", { style: ln(r.image, r.color) }), /* @__PURE__ */ u("div", {
|
|
1837
1918
|
style: {
|
|
1838
1919
|
position: "absolute",
|
|
1839
1920
|
inset: 0,
|
|
@@ -1845,23 +1926,23 @@ function on({ slides: e = [], linked: t, ...n }) {
|
|
|
1845
1926
|
}
|
|
1846
1927
|
}) : null;
|
|
1847
1928
|
}
|
|
1848
|
-
var
|
|
1849
|
-
let r =
|
|
1929
|
+
var fn = 256, pn = (e) => Math.log(Math.tan(Math.PI / 4 + Math.max(-85, Math.min(85, e)) * Math.PI / 360)), mn = (e, t, n) => {
|
|
1930
|
+
let r = fn * 2 ** n;
|
|
1850
1931
|
return {
|
|
1851
1932
|
x: (Number(t) + 180) / 360 * r,
|
|
1852
|
-
y: (.5 -
|
|
1933
|
+
y: (.5 - pn(Number(e)) / (2 * Math.PI)) * r
|
|
1853
1934
|
};
|
|
1854
1935
|
}, $ = (e, t) => {
|
|
1855
1936
|
if (e === "" || e == null) return null;
|
|
1856
1937
|
let n = Number(e);
|
|
1857
1938
|
return Number.isFinite(n) && Math.abs(n) <= t ? n : null;
|
|
1858
|
-
},
|
|
1859
|
-
function
|
|
1939
|
+
}, hn = (e) => !!e && $(e.lat, 90) !== null && $(e.lng, 180) !== null;
|
|
1940
|
+
function gn(e, t, n = "directions", r = "") {
|
|
1860
1941
|
let i = `${e},${t}`;
|
|
1861
1942
|
return n === "place" ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(i)}${r ? "&query_place_id=" : ""}` : `https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(i)}`;
|
|
1862
1943
|
}
|
|
1863
|
-
var
|
|
1864
|
-
function
|
|
1944
|
+
var _n = (e, t, n = 13) => `https://www.openstreetmap.org/?mlat=${e}&mlon=${t}#map=${Math.round(Number(n) || 13)}/${e}/${t}`;
|
|
1945
|
+
function vn({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize: o = 22, pinLink: l = "directions", link: f = !1, label: p = "", style: m, nodeRef: h, inert: g }) {
|
|
1865
1946
|
let _ = s(null), [v, y] = c(1200);
|
|
1866
1947
|
i(() => {
|
|
1867
1948
|
let e = _.current;
|
|
@@ -1871,7 +1952,7 @@ function pn({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize
|
|
|
1871
1952
|
let n = new ResizeObserver(t);
|
|
1872
1953
|
return n.observe(e), () => n.disconnect();
|
|
1873
1954
|
}, []);
|
|
1874
|
-
let b = (Array.isArray(e) ? e : []).filter(
|
|
1955
|
+
let b = (Array.isArray(e) ? e : []).filter(hn), x = hn({
|
|
1875
1956
|
lat: t,
|
|
1876
1957
|
lng: n
|
|
1877
1958
|
}) ? {
|
|
@@ -1883,7 +1964,7 @@ function pn({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize
|
|
|
1883
1964
|
} : null, S = Math.max(80, Number(a) || 320), C = $(r, 19) ? Math.min(Math.max(Math.round(Number(r)), 1), 19) : (() => {
|
|
1884
1965
|
if (b.length < 2) return 13;
|
|
1885
1966
|
for (let e = 19; e >= 1; e--) {
|
|
1886
|
-
let t = b.map((t) =>
|
|
1967
|
+
let t = b.map((t) => mn($(t.lat, 90), $(t.lng, 180), e)), n = Math.max(...t.map((e) => e.x)) - Math.min(...t.map((e) => e.x)), r = Math.max(...t.map((e) => e.y)) - Math.min(...t.map((e) => e.y));
|
|
1887
1968
|
if (n <= v * .8 && r <= S * .7) return e;
|
|
1888
1969
|
}
|
|
1889
1970
|
return 1;
|
|
@@ -1907,12 +1988,12 @@ function pn({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize
|
|
|
1907
1988
|
},
|
|
1908
1989
|
children: "Set the coordinates in Settings"
|
|
1909
1990
|
});
|
|
1910
|
-
let T =
|
|
1991
|
+
let T = mn(x.lat, x.lng, C), E = {
|
|
1911
1992
|
x: T.x - v / 2,
|
|
1912
1993
|
y: T.y - S / 2
|
|
1913
1994
|
}, D = [], O = [];
|
|
1914
|
-
for (let e = Math.floor(E.x /
|
|
1915
|
-
for (let e = Math.floor(E.y /
|
|
1995
|
+
for (let e = Math.floor(E.x / fn); e <= Math.floor((E.x + v) / fn); e++) D.push(e);
|
|
1996
|
+
for (let e = Math.floor(E.y / fn); e <= Math.floor((E.y + S) / fn); e++) O.push(e);
|
|
1916
1997
|
let k = 2 ** C;
|
|
1917
1998
|
return /* @__PURE__ */ d("div", {
|
|
1918
1999
|
ref: (e) => {
|
|
@@ -1935,22 +2016,22 @@ function pn({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize
|
|
|
1935
2016
|
return e < 0 || e >= k ? null : /* @__PURE__ */ u("img", {
|
|
1936
2017
|
src: `https://tile.openstreetmap.org/${C}/${n}/${e}.png`,
|
|
1937
2018
|
alt: "",
|
|
1938
|
-
width:
|
|
1939
|
-
height:
|
|
2019
|
+
width: fn,
|
|
2020
|
+
height: fn,
|
|
1940
2021
|
loading: "lazy",
|
|
1941
2022
|
style: {
|
|
1942
2023
|
position: "absolute",
|
|
1943
|
-
left: Math.round(t *
|
|
1944
|
-
top: Math.round(e *
|
|
1945
|
-
width:
|
|
1946
|
-
height:
|
|
2024
|
+
left: Math.round(t * fn - E.x),
|
|
2025
|
+
top: Math.round(e * fn - E.y),
|
|
2026
|
+
width: fn,
|
|
2027
|
+
height: fn,
|
|
1947
2028
|
userSelect: "none",
|
|
1948
2029
|
pointerEvents: "none"
|
|
1949
2030
|
}
|
|
1950
2031
|
}, `${t}-${e}`);
|
|
1951
2032
|
})),
|
|
1952
2033
|
b.map((e, t) => {
|
|
1953
|
-
let n =
|
|
2034
|
+
let n = mn($(e.lat, 90), $(e.lng, 180), C), r = n.x - E.x, i = n.y - E.y, a = e.color || "var(--page-accent, #dc2626)", s = l === "none" || g ? null : gn($(e.lat, 90), $(e.lng, 180), l, e.title);
|
|
1954
2035
|
return /* @__PURE__ */ d(s ? "a" : "span", {
|
|
1955
2036
|
href: s || void 0,
|
|
1956
2037
|
target: s ? "_blank" : void 0,
|
|
@@ -1989,8 +2070,8 @@ function pn({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize
|
|
|
1989
2070
|
viewBox: "0 0 24 24",
|
|
1990
2071
|
fill: a,
|
|
1991
2072
|
style: { display: "block" },
|
|
1992
|
-
children: [/* @__PURE__ */ u("path", { d: "M12 22s7-6 7-11a7 7 0 1 0-14 0c0 5 7 11 7 11z" }),
|
|
1993
|
-
d:
|
|
2073
|
+
children: [/* @__PURE__ */ u("path", { d: "M12 22s7-6 7-11a7 7 0 1 0-14 0c0 5 7 11 7 11z" }), yn[e.icon] ? /* @__PURE__ */ u("path", {
|
|
2074
|
+
d: yn[e.icon],
|
|
1994
2075
|
transform: "translate(12 10.5) scale(0.46) translate(-12 -12)",
|
|
1995
2076
|
fill: "none",
|
|
1996
2077
|
stroke: "#fff",
|
|
@@ -2026,7 +2107,7 @@ function pn({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize
|
|
|
2026
2107
|
})
|
|
2027
2108
|
]
|
|
2028
2109
|
}), f ? /* @__PURE__ */ u("a", {
|
|
2029
|
-
href:
|
|
2110
|
+
href: _n(x.lat, x.lng, C),
|
|
2030
2111
|
target: "_blank",
|
|
2031
2112
|
rel: "noopener noreferrer",
|
|
2032
2113
|
onClick: g ? (e) => e.preventDefault() : void 0,
|
|
@@ -2040,7 +2121,7 @@ function pn({ markers: e, lat: t, lng: n, zoom: r = "", height: a = 320, pinSize
|
|
|
2040
2121
|
}) : null]
|
|
2041
2122
|
});
|
|
2042
2123
|
}
|
|
2043
|
-
var
|
|
2124
|
+
var yn = {
|
|
2044
2125
|
check: "M4 12l5 5L20 6",
|
|
2045
2126
|
close: "M6 6l12 12M18 6L6 18",
|
|
2046
2127
|
plus: "M12 5v14M5 12h14",
|
|
@@ -2137,8 +2218,8 @@ var mn = {
|
|
|
2137
2218
|
droplet: "M12 3s6 6.4 6 10.5a6 6 0 0 1-12 0C6 9.4 12 3 12 3z",
|
|
2138
2219
|
leaf: "M4 20c0-8 6-14 16-14 0 10-6 14-12 14H4zM8 16c2-4 5-6 8-7"
|
|
2139
2220
|
};
|
|
2140
|
-
function
|
|
2141
|
-
let p = Array.isArray(t) ? t.filter((e) => typeof e == "string" && e.trim()) : [], m = n && p.length > 0, h = p.length ? p : [
|
|
2221
|
+
function bn({ name: e = "star", paths: t, fill: n = !1, size: r = 24, stroke: i = 2, color: a = "", href: o = "", target: s = "", label: c = "", style: l, nodeRef: d, inert: f }) {
|
|
2222
|
+
let p = Array.isArray(t) ? t.filter((e) => typeof e == "string" && e.trim()) : [], m = n && p.length > 0, h = p.length ? p : [yn[e] ?? yn.star], g = Math.min(Math.max(Number(r) || 24, 8), 240), _ = a === "accent" ? "var(--page-accent, currentColor)" : a || "currentColor", v = /* @__PURE__ */ u("svg", {
|
|
2142
2223
|
viewBox: "0 0 24 24",
|
|
2143
2224
|
width: g,
|
|
2144
2225
|
height: g,
|
|
@@ -2174,7 +2255,7 @@ function hn({ name: e = "star", paths: t, fill: n = !1, size: r = 24, stroke: i
|
|
|
2174
2255
|
children: v
|
|
2175
2256
|
});
|
|
2176
2257
|
}
|
|
2177
|
-
function
|
|
2258
|
+
function xn(e, t = {}, n = 0) {
|
|
2178
2259
|
let r = Array.isArray(e) ? e.filter((e) => e && typeof e == "object") : [], i = (e) => e == null ? "" : ct(e), a = Math.max(0, Number(n) || 0), o = [];
|
|
2179
2260
|
for (let e of r) {
|
|
2180
2261
|
let n = e.data ?? e, r = ot(n, t.imageField), s = (Array.isArray(r) ? r : [r]).map((e) => e && typeof e == "object" ? e.url ?? e.src ?? "" : e).filter((e) => typeof e == "string" && e.trim()), c = t.nameField ? i(ot(n, t.nameField)) : i(n.name), l = t.hrefField ? i(ot(n, t.hrefField)) : "";
|
|
@@ -2187,7 +2268,7 @@ function gn(e, t = {}, n = 0) {
|
|
|
2187
2268
|
}
|
|
2188
2269
|
return o;
|
|
2189
2270
|
}
|
|
2190
|
-
function
|
|
2271
|
+
function Sn({ images: e = [], source: t = "", entry: n = "", imageField: a = "", nameField: o = "", hrefField: s = "", limit: f = 0, emptyText: p = "", columns: m = 3, gap: h = 8, showNames: g = !1, lightbox: _ = !0, style: v, nodeRef: y, inert: b }) {
|
|
2191
2272
|
let { tenant: x, apiUrl: S } = r(Q), C = r(et)?.[t], [w, T] = c(null), [E, D] = c(() => /* @__PURE__ */ new Set());
|
|
2192
2273
|
i(() => {
|
|
2193
2274
|
if (!t || C) return;
|
|
@@ -2205,7 +2286,7 @@ function _n({ images: e = [], source: t = "", entry: n = "", imageField: a = "",
|
|
|
2205
2286
|
C
|
|
2206
2287
|
]);
|
|
2207
2288
|
let O = C ?? w ?? [], k = n ? O.filter((e) => e?.id === n || e?.data?.slug === n || e?.slug === n) : O, j = Math.max(0, Number(f) || 0), M = t ? (() => {
|
|
2208
|
-
let e =
|
|
2289
|
+
let e = xn(k, {
|
|
2209
2290
|
imageField: a,
|
|
2210
2291
|
nameField: o,
|
|
2211
2292
|
hrefField: s
|
|
@@ -2410,19 +2491,19 @@ function _n({ images: e = [], source: t = "", entry: n = "", imageField: a = "",
|
|
|
2410
2491
|
]
|
|
2411
2492
|
});
|
|
2412
2493
|
}
|
|
2413
|
-
var
|
|
2494
|
+
var Cn = {
|
|
2414
2495
|
color: "inherit",
|
|
2415
2496
|
textDecoration: "none",
|
|
2416
2497
|
fontSize: 14,
|
|
2417
2498
|
opacity: .85
|
|
2418
|
-
},
|
|
2499
|
+
}, wn = {
|
|
2419
2500
|
background: "var(--page-surface, #f2f2f2)",
|
|
2420
2501
|
color: "var(--page-text, #111827)",
|
|
2421
2502
|
border: "1px solid rgba(148, 163, 184, 0.25)",
|
|
2422
2503
|
boxShadow: "0 16px 40px rgba(15, 23, 42, 0.16)",
|
|
2423
2504
|
zIndex: 60
|
|
2424
2505
|
};
|
|
2425
|
-
function
|
|
2506
|
+
function Tn(e, t = {}, n = "dropdown") {
|
|
2426
2507
|
let r = Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.id) : [], i = (e) => Array.isArray(e) ? e[0] : e, a = (e) => e == null ? "" : ct(e), o = r.map((e) => {
|
|
2427
2508
|
let n = e.data ?? {}, r = t.parentField ? i(n[t.parentField]) : null;
|
|
2428
2509
|
return {
|
|
@@ -2464,7 +2545,7 @@ function bn(e, t = {}, n = "dropdown") {
|
|
|
2464
2545
|
type: e.children.length ? n : "link"
|
|
2465
2546
|
}));
|
|
2466
2547
|
}
|
|
2467
|
-
function
|
|
2548
|
+
function En({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], style: f, nodeRef: p, menu: m = "auto", breakpoint: h = 768, source: g = "", labelField: _ = "", hrefField: v = "", imageField: y = "", descField: b = "", parentField: x = "", submenu: S = "dropdown" }) {
|
|
2468
2549
|
let [C, w] = c(null), [T, E] = c(!1), [D, O] = c(!1), [k, j] = c(null), { tenant: M, apiUrl: N } = r(Q), P = r(et)?.[g], [F, I] = c(null);
|
|
2469
2550
|
i(() => {
|
|
2470
2551
|
if (!g || P) return;
|
|
@@ -2485,7 +2566,7 @@ function xn({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
|
|
|
2485
2566
|
let e = new ResizeObserver(() => E(C.offsetWidth < h));
|
|
2486
2567
|
return e.observe(C), () => e.disconnect();
|
|
2487
2568
|
}, [C, h]);
|
|
2488
|
-
let L = g ?
|
|
2569
|
+
let L = g ? Tn(P ?? F ?? [], {
|
|
2489
2570
|
labelField: _,
|
|
2490
2571
|
hrefField: v,
|
|
2491
2572
|
imageField: y,
|
|
@@ -2514,7 +2595,7 @@ function xn({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
|
|
|
2514
2595
|
return /* @__PURE__ */ d("a", {
|
|
2515
2596
|
href: e.href || "#",
|
|
2516
2597
|
style: {
|
|
2517
|
-
...
|
|
2598
|
+
...Cn,
|
|
2518
2599
|
display: n ? "block" : "flex",
|
|
2519
2600
|
alignItems: n ? void 0 : "center",
|
|
2520
2601
|
gap: n ? void 0 : 10,
|
|
@@ -2611,7 +2692,7 @@ function xn({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
|
|
|
2611
2692
|
let t = e.children ?? [];
|
|
2612
2693
|
if (!t.length) return /* @__PURE__ */ u("a", {
|
|
2613
2694
|
href: e.href || "#",
|
|
2614
|
-
style:
|
|
2695
|
+
style: Cn,
|
|
2615
2696
|
children: e.label
|
|
2616
2697
|
}, e.key);
|
|
2617
2698
|
let n = e.type === "mega";
|
|
@@ -2625,7 +2706,7 @@ function xn({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
|
|
|
2625
2706
|
children: [/* @__PURE__ */ d("a", {
|
|
2626
2707
|
href: e.href || "#",
|
|
2627
2708
|
style: {
|
|
2628
|
-
...
|
|
2709
|
+
...Cn,
|
|
2629
2710
|
cursor: "pointer"
|
|
2630
2711
|
},
|
|
2631
2712
|
children: [
|
|
@@ -2641,7 +2722,7 @@ function xn({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
|
|
|
2641
2722
|
]
|
|
2642
2723
|
}), k === e.key && (n ? /* @__PURE__ */ u("div", {
|
|
2643
2724
|
style: {
|
|
2644
|
-
...
|
|
2725
|
+
...wn,
|
|
2645
2726
|
position: "absolute",
|
|
2646
2727
|
left: 0,
|
|
2647
2728
|
right: 0,
|
|
@@ -2657,7 +2738,7 @@ function xn({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
|
|
|
2657
2738
|
}, !0))
|
|
2658
2739
|
}) : /* @__PURE__ */ u("div", {
|
|
2659
2740
|
style: {
|
|
2660
|
-
...
|
|
2741
|
+
...wn,
|
|
2661
2742
|
position: "absolute",
|
|
2662
2743
|
top: "100%",
|
|
2663
2744
|
left: 0,
|
|
@@ -2686,7 +2767,7 @@ function xn({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
|
|
|
2686
2767
|
children: L.map((t) => /* @__PURE__ */ d(e, { children: [/* @__PURE__ */ u("a", {
|
|
2687
2768
|
href: t.href || "#",
|
|
2688
2769
|
style: {
|
|
2689
|
-
...
|
|
2770
|
+
...Cn,
|
|
2690
2771
|
padding: "10px 4px",
|
|
2691
2772
|
fontWeight: (t.children ?? []).length ? 600 : 400,
|
|
2692
2773
|
opacity: 1
|
|
@@ -2697,7 +2778,7 @@ function xn({ brand: t, logo: n, brandHref: a, brandTarget: o, links: s = [], st
|
|
|
2697
2778
|
]
|
|
2698
2779
|
});
|
|
2699
2780
|
}
|
|
2700
|
-
function
|
|
2781
|
+
function Dn({ tabs: e = [], linked: t, style: n, nodeRef: r }) {
|
|
2701
2782
|
let [i, a] = c(0), o = e.length ? Math.min(i, e.length - 1) : 0;
|
|
2702
2783
|
return e.length ? /* @__PURE__ */ d("div", {
|
|
2703
2784
|
ref: r,
|
|
@@ -2737,13 +2818,13 @@ function Sn({ tabs: e = [], linked: t, style: n, nodeRef: r }) {
|
|
|
2737
2818
|
}, e.key))]
|
|
2738
2819
|
}) : null;
|
|
2739
2820
|
}
|
|
2740
|
-
function
|
|
2821
|
+
function On({ items: e = [], linked: t, multiple: n = !1, icon: r = "", padX: i, padY: a, headerBg: o, headerColor: s, openBg: l, openColor: f, borderColor: p, style: m, nodeRef: h }) {
|
|
2741
2822
|
let [g, _] = c(() => new Set(e.length ? [e[0].key] : []));
|
|
2742
2823
|
if (!e.length) return null;
|
|
2743
2824
|
let v = (e, t) => typeof e == "string" && e ? e : t, y = (e, t) => {
|
|
2744
2825
|
let n = Number(e);
|
|
2745
2826
|
return e === "" || e == null || !Number.isFinite(n) ? t : n;
|
|
2746
|
-
}, b =
|
|
2827
|
+
}, b = yn[r], x = (e) => _((t) => {
|
|
2747
2828
|
let r = new Set(n ? t : []);
|
|
2748
2829
|
return t.has(e) ? r.delete(e) : r.add(e), r;
|
|
2749
2830
|
});
|
|
@@ -2818,15 +2899,15 @@ function Cn({ items: e = [], linked: t, multiple: n = !1, icon: r = "", padX: i,
|
|
|
2818
2899
|
})
|
|
2819
2900
|
});
|
|
2820
2901
|
}
|
|
2821
|
-
var
|
|
2902
|
+
var kn = {
|
|
2822
2903
|
display: "flex",
|
|
2823
2904
|
flexDirection: "column",
|
|
2824
2905
|
gap: "12px"
|
|
2825
|
-
},
|
|
2906
|
+
}, An = {
|
|
2826
2907
|
fontSize: "14px",
|
|
2827
2908
|
fontWeight: 500,
|
|
2828
2909
|
color: "var(--page-text, #111827)"
|
|
2829
|
-
},
|
|
2910
|
+
}, jn = {
|
|
2830
2911
|
padding: "10px 12px",
|
|
2831
2912
|
border: "1px solid var(--page-border, #d1d5db)",
|
|
2832
2913
|
borderRadius: "6px",
|
|
@@ -2836,18 +2917,18 @@ var wn = {
|
|
|
2836
2917
|
boxSizing: "border-box",
|
|
2837
2918
|
backgroundColor: "var(--page-surface, #f2f2f2)",
|
|
2838
2919
|
color: "var(--page-text, #111827)"
|
|
2839
|
-
},
|
|
2920
|
+
}, Mn = {
|
|
2840
2921
|
display: "flex",
|
|
2841
2922
|
alignItems: "center",
|
|
2842
2923
|
gap: "8px",
|
|
2843
2924
|
fontSize: "14px",
|
|
2844
2925
|
color: "var(--page-text, #111827)"
|
|
2845
|
-
},
|
|
2926
|
+
}, Nn = (e) => e ? {
|
|
2846
2927
|
readOnly: !0,
|
|
2847
2928
|
tabIndex: -1,
|
|
2848
2929
|
onMouseDown: (e) => e.preventDefault()
|
|
2849
2930
|
} : {};
|
|
2850
|
-
function
|
|
2931
|
+
function Pn(e, t) {
|
|
2851
2932
|
if (!e) return !0;
|
|
2852
2933
|
let n = t[e.field], r = n == null || n === "" ? "" : String(n), i = e.value ?? "";
|
|
2853
2934
|
switch (e.op) {
|
|
@@ -2861,11 +2942,11 @@ function kn(e, t) {
|
|
|
2861
2942
|
default: return !1;
|
|
2862
2943
|
}
|
|
2863
2944
|
}
|
|
2864
|
-
var
|
|
2945
|
+
var Fn = {
|
|
2865
2946
|
display: "flex",
|
|
2866
2947
|
flexDirection: "column",
|
|
2867
2948
|
gap: 6
|
|
2868
|
-
},
|
|
2949
|
+
}, In = {
|
|
2869
2950
|
font: "inherit",
|
|
2870
2951
|
fontSize: 15,
|
|
2871
2952
|
padding: "10px 12px",
|
|
@@ -2876,17 +2957,17 @@ var An = {
|
|
|
2876
2957
|
width: "100%",
|
|
2877
2958
|
boxSizing: "border-box"
|
|
2878
2959
|
};
|
|
2879
|
-
function
|
|
2960
|
+
function Ln(e, t) {
|
|
2880
2961
|
let n = Array.isArray(e?.options) ? e.options : [];
|
|
2881
2962
|
if (!e?.parentField) return n;
|
|
2882
2963
|
let r = t?.[e.parentField];
|
|
2883
2964
|
return r ? n.filter((e) => typeof e == "string" ? !1 : !e.parent || e.parent === r) : [];
|
|
2884
2965
|
}
|
|
2885
|
-
var
|
|
2886
|
-
function
|
|
2966
|
+
var Rn = "g-recaptcha-response", zn = (e) => e?.type === "recaptcha" ? Rn : e?.name;
|
|
2967
|
+
function Bn({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
2887
2968
|
let a = /* @__PURE__ */ d("span", {
|
|
2888
2969
|
style: {
|
|
2889
|
-
...
|
|
2970
|
+
...An,
|
|
2890
2971
|
fontSize: 14
|
|
2891
2972
|
},
|
|
2892
2973
|
children: [e.label, e.required ? " *" : ""]
|
|
@@ -2895,7 +2976,7 @@ function Fn({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
|
2895
2976
|
required: e.required || void 0,
|
|
2896
2977
|
placeholder: e.placeholder || void 0,
|
|
2897
2978
|
disabled: r || void 0,
|
|
2898
|
-
style:
|
|
2979
|
+
style: In,
|
|
2899
2980
|
value: t ?? "",
|
|
2900
2981
|
onChange: (t) => n(e.name, t.target.value)
|
|
2901
2982
|
};
|
|
@@ -2924,12 +3005,12 @@ function Fn({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
|
2924
3005
|
borderRadius: 8,
|
|
2925
3006
|
display: "block"
|
|
2926
3007
|
}
|
|
2927
|
-
}) : null : e.type === "recaptcha" ? /* @__PURE__ */ u(
|
|
3008
|
+
}) : null : e.type === "recaptcha" ? /* @__PURE__ */ u(Gn, {
|
|
2928
3009
|
theme: e.captchaTheme,
|
|
2929
3010
|
size: e.captchaSize,
|
|
2930
3011
|
inert: r,
|
|
2931
|
-
onChange: (e) => n(
|
|
2932
|
-
}) : e.type === "video" ? e.src ? /youtube\.com|youtu\.be|vimeo\.com/i.test(e.src) ? /* @__PURE__ */ u(
|
|
3012
|
+
onChange: (e) => n(Rn, e)
|
|
3013
|
+
}) : e.type === "video" ? e.src ? /youtube\.com|youtu\.be|vimeo\.com/i.test(e.src) ? /* @__PURE__ */ u(Xt, {
|
|
2933
3014
|
url: e.src,
|
|
2934
3015
|
style: { width: "100%" }
|
|
2935
3016
|
}) : /* @__PURE__ */ u("video", {
|
|
@@ -2941,14 +3022,14 @@ function Fn({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
|
2941
3022
|
display: "block"
|
|
2942
3023
|
}
|
|
2943
3024
|
}) : null : /* @__PURE__ */ d("label", {
|
|
2944
|
-
style:
|
|
3025
|
+
style: Fn,
|
|
2945
3026
|
children: [
|
|
2946
3027
|
a,
|
|
2947
3028
|
e.type === "textarea" || e.multiline ? /* @__PURE__ */ u("textarea", {
|
|
2948
3029
|
...o,
|
|
2949
3030
|
rows: 4,
|
|
2950
3031
|
style: {
|
|
2951
|
-
...
|
|
3032
|
+
...In,
|
|
2952
3033
|
resize: "vertical"
|
|
2953
3034
|
}
|
|
2954
3035
|
}) : e.type === "select" ? /* @__PURE__ */ d("select", {
|
|
@@ -2957,7 +3038,7 @@ function Fn({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
|
2957
3038
|
children: [/* @__PURE__ */ u("option", {
|
|
2958
3039
|
value: "",
|
|
2959
3040
|
children: e.placeholder || "—"
|
|
2960
|
-
}),
|
|
3041
|
+
}), Ln(e, i).map((e, t) => /* @__PURE__ */ u("option", {
|
|
2961
3042
|
value: typeof e == "string" ? e : e.value,
|
|
2962
3043
|
children: typeof e == "string" ? e : e.label ?? e.value
|
|
2963
3044
|
}, t))]
|
|
@@ -3004,7 +3085,7 @@ function Fn({ field: e, value: t, onChange: n, inert: r, values: i }) {
|
|
|
3004
3085
|
]
|
|
3005
3086
|
});
|
|
3006
3087
|
}
|
|
3007
|
-
function
|
|
3088
|
+
function Vn({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s, auto: f, submitLabel: p, nodeRef: m, inert: h, children: g, linked: _, show: v }) {
|
|
3008
3089
|
let { tenant: y, apiUrl: b } = r(Q), [x, S] = c("form"), [C, w] = c(null), [T, E] = c({}), [D, O] = c(0), k = h ? v || "form" : x;
|
|
3009
3090
|
i(() => {
|
|
3010
3091
|
if (!f || !s) return;
|
|
@@ -3026,11 +3107,11 @@ function In({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
3026
3107
|
section: e,
|
|
3027
3108
|
fields: []
|
|
3028
3109
|
}) : j[j.length - 1].fields.push(e);
|
|
3029
|
-
let M = j.filter((e) => e.section || e.fields.length), N = M.filter((e) => !e.section ||
|
|
3110
|
+
let M = j.filter((e) => e.section || e.fields.length), N = M.filter((e) => !e.section || Pn(e.section.condition, T)).map((e) => ({
|
|
3030
3111
|
...e,
|
|
3031
|
-
fields: e.fields.filter((e) =>
|
|
3112
|
+
fields: e.fields.filter((e) => Pn(e.condition, T))
|
|
3032
3113
|
})), P = M.length > 1, F = Math.min(D, Math.max(0, N.length - 1)), I = P ? N[F]?.fields ?? [] : N.flatMap((e) => e.fields), L = I.filter((e) => {
|
|
3033
|
-
let t = T[
|
|
3114
|
+
let t = T[zn(e)];
|
|
3034
3115
|
return e.required && (t == null || t === "" || t === !1);
|
|
3035
3116
|
}), R = F >= N.length - 1, z = (e, t) => E((n) => {
|
|
3036
3117
|
let r = {
|
|
@@ -3086,11 +3167,11 @@ function In({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
3086
3167
|
}
|
|
3087
3168
|
},
|
|
3088
3169
|
style: {
|
|
3089
|
-
...
|
|
3170
|
+
...kn,
|
|
3090
3171
|
display: k === "success" ? "none" : "flex"
|
|
3091
3172
|
},
|
|
3092
3173
|
children: f && s ? /* @__PURE__ */ d(l, { children: [
|
|
3093
|
-
P && /* @__PURE__ */ u(
|
|
3174
|
+
P && /* @__PURE__ */ u(br, {
|
|
3094
3175
|
steps: N.map((e) => ({ label: e.section?.label ?? "Start" })),
|
|
3095
3176
|
active: F + 1,
|
|
3096
3177
|
style: { marginBottom: 8 }
|
|
@@ -3103,9 +3184,9 @@ function In({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
3103
3184
|
},
|
|
3104
3185
|
children: N[F].section.help
|
|
3105
3186
|
}),
|
|
3106
|
-
I.map((e) => /* @__PURE__ */ u(
|
|
3187
|
+
I.map((e) => /* @__PURE__ */ u(Bn, {
|
|
3107
3188
|
field: e,
|
|
3108
|
-
value: T[
|
|
3189
|
+
value: T[zn(e)],
|
|
3109
3190
|
values: T,
|
|
3110
3191
|
onChange: z,
|
|
3111
3192
|
inert: h
|
|
@@ -3176,10 +3257,10 @@ function In({ style: e, action: t, method: n, name: a, enctype: o, formSlug: s,
|
|
|
3176
3257
|
]
|
|
3177
3258
|
});
|
|
3178
3259
|
}
|
|
3179
|
-
var
|
|
3260
|
+
var Hn = null, Un = null, Wn = (e) => {
|
|
3180
3261
|
let t = typeof e == "string" && e.trim() ? e.trim() : "";
|
|
3181
|
-
if (
|
|
3182
|
-
if (
|
|
3262
|
+
if (Hn && Un === t) return Hn;
|
|
3263
|
+
if (Hn && typeof window < "u") {
|
|
3183
3264
|
for (let e of ["grecaptcha", "___grecaptcha_cfg"]) try {
|
|
3184
3265
|
delete window[e];
|
|
3185
3266
|
} catch {
|
|
@@ -3187,22 +3268,22 @@ var Ln = null, Rn = null, zn = (e) => {
|
|
|
3187
3268
|
}
|
|
3188
3269
|
document.querySelectorAll("script[src*=\"recaptcha\"]").forEach((e) => e.remove());
|
|
3189
3270
|
}
|
|
3190
|
-
return
|
|
3271
|
+
return Un = t, Hn = new Promise((e) => {
|
|
3191
3272
|
if (typeof window > "u") return;
|
|
3192
3273
|
if (window.grecaptcha?.render) return e(window.grecaptcha);
|
|
3193
3274
|
window.__webimRecaptchaReady = () => e(window.grecaptcha);
|
|
3194
3275
|
let n = document.createElement("script");
|
|
3195
3276
|
n.src = `https://www.google.com/recaptcha/api.js?onload=__webimRecaptchaReady&render=explicit${t ? `&hl=${encodeURIComponent(t)}` : ""}`, n.async = !0, document.head.appendChild(n);
|
|
3196
|
-
}),
|
|
3277
|
+
}), Hn;
|
|
3197
3278
|
};
|
|
3198
|
-
function
|
|
3279
|
+
function Gn({ siteKey: e, theme: t, size: n, hl: a, style: o, nodeRef: c, inert: l, onChange: f }) {
|
|
3199
3280
|
let p = r(Q), m = p?.settings && typeof p.settings == "object" ? p.settings["google.recaptchaKey"] : "", h = typeof e == "string" && e.trim() || (typeof m == "string" ? m.trim() : ""), g = s(null), _ = s(f);
|
|
3200
3281
|
if (_.current = f, i(() => {
|
|
3201
3282
|
if (l || !h || !g.current) return;
|
|
3202
3283
|
let e = !0, r = (t) => {
|
|
3203
3284
|
e && typeof _.current == "function" && _.current(t);
|
|
3204
3285
|
};
|
|
3205
|
-
return
|
|
3286
|
+
return Wn(a).then((i) => {
|
|
3206
3287
|
if (!(!e || !g.current || !i?.render)) {
|
|
3207
3288
|
g.current.innerHTML = "", r("");
|
|
3208
3289
|
try {
|
|
@@ -3284,17 +3365,17 @@ function Bn({ siteKey: e, theme: t, size: n, hl: a, style: o, nodeRef: c, inert:
|
|
|
3284
3365
|
children: /* @__PURE__ */ u("div", { ref: g })
|
|
3285
3366
|
}) : null;
|
|
3286
3367
|
}
|
|
3287
|
-
function
|
|
3368
|
+
function Kn({ text: e, parts: t, style: n, nodeRef: r, linked: i }) {
|
|
3288
3369
|
return /* @__PURE__ */ u("label", {
|
|
3289
3370
|
ref: r,
|
|
3290
3371
|
style: {
|
|
3291
|
-
...
|
|
3372
|
+
...An,
|
|
3292
3373
|
...A(n)
|
|
3293
3374
|
},
|
|
3294
|
-
children:
|
|
3375
|
+
children: Dt(t, e, i)
|
|
3295
3376
|
});
|
|
3296
3377
|
}
|
|
3297
|
-
function
|
|
3378
|
+
function qn({ type: e = "text", name: t, placeholder: n, required: r, style: i, nodeRef: a, inert: o }) {
|
|
3298
3379
|
return /* @__PURE__ */ u("input", {
|
|
3299
3380
|
ref: a,
|
|
3300
3381
|
type: e,
|
|
@@ -3302,13 +3383,13 @@ function Hn({ type: e = "text", name: t, placeholder: n, required: r, style: i,
|
|
|
3302
3383
|
placeholder: n,
|
|
3303
3384
|
required: !o && !!r,
|
|
3304
3385
|
style: {
|
|
3305
|
-
...
|
|
3386
|
+
...jn,
|
|
3306
3387
|
...A(i)
|
|
3307
3388
|
},
|
|
3308
|
-
...
|
|
3389
|
+
...Nn(o)
|
|
3309
3390
|
});
|
|
3310
3391
|
}
|
|
3311
|
-
function
|
|
3392
|
+
function Jn({ name: e, placeholder: t, rows: n = 4, required: r, style: i, nodeRef: a, inert: o }) {
|
|
3312
3393
|
return /* @__PURE__ */ u("textarea", {
|
|
3313
3394
|
ref: a,
|
|
3314
3395
|
name: e || void 0,
|
|
@@ -3316,18 +3397,18 @@ function Un({ name: e, placeholder: t, rows: n = 4, required: r, style: i, nodeR
|
|
|
3316
3397
|
rows: n,
|
|
3317
3398
|
required: !o && !!r,
|
|
3318
3399
|
style: {
|
|
3319
|
-
...
|
|
3400
|
+
...jn,
|
|
3320
3401
|
resize: "vertical",
|
|
3321
3402
|
...A(i)
|
|
3322
3403
|
},
|
|
3323
|
-
...
|
|
3404
|
+
...Nn(o)
|
|
3324
3405
|
});
|
|
3325
3406
|
}
|
|
3326
|
-
function
|
|
3407
|
+
function Yn({ kind: e = "checkbox", label: t, name: n, value: r, required: i, style: a, nodeRef: o, inert: s }) {
|
|
3327
3408
|
return /* @__PURE__ */ d("label", {
|
|
3328
3409
|
ref: o,
|
|
3329
3410
|
style: {
|
|
3330
|
-
...
|
|
3411
|
+
...Mn,
|
|
3331
3412
|
...A(a)
|
|
3332
3413
|
},
|
|
3333
3414
|
children: [/* @__PURE__ */ u("input", {
|
|
@@ -3344,7 +3425,7 @@ function Wn({ kind: e = "checkbox", label: t, name: n, value: r, required: i, st
|
|
|
3344
3425
|
}), t]
|
|
3345
3426
|
});
|
|
3346
3427
|
}
|
|
3347
|
-
function
|
|
3428
|
+
function Xn({ name: e, placeholder: t, options: n = [], required: r, style: i, nodeRef: a, inert: o }) {
|
|
3348
3429
|
return /* @__PURE__ */ d("select", {
|
|
3349
3430
|
ref: a,
|
|
3350
3431
|
name: e || void 0,
|
|
@@ -3353,7 +3434,7 @@ function Gn({ name: e, placeholder: t, options: n = [], required: r, style: i, n
|
|
|
3353
3434
|
onMouseDown: o ? (e) => e.preventDefault() : void 0,
|
|
3354
3435
|
tabIndex: o ? -1 : void 0,
|
|
3355
3436
|
style: {
|
|
3356
|
-
...
|
|
3437
|
+
...jn,
|
|
3357
3438
|
appearance: "auto",
|
|
3358
3439
|
...A(i)
|
|
3359
3440
|
},
|
|
@@ -3367,12 +3448,12 @@ function Gn({ name: e, placeholder: t, options: n = [], required: r, style: i, n
|
|
|
3367
3448
|
}, t))]
|
|
3368
3449
|
});
|
|
3369
3450
|
}
|
|
3370
|
-
function
|
|
3451
|
+
function Zn({ name: e, accept: t, required: n, text: r = "Choose a file…", style: i, nodeRef: a, inert: o }) {
|
|
3371
3452
|
let [s, l] = c(null);
|
|
3372
3453
|
return /* @__PURE__ */ d("label", {
|
|
3373
3454
|
ref: a,
|
|
3374
3455
|
style: {
|
|
3375
|
-
...
|
|
3456
|
+
...jn,
|
|
3376
3457
|
display: "flex",
|
|
3377
3458
|
alignItems: "center",
|
|
3378
3459
|
gap: "8px",
|
|
@@ -3399,7 +3480,7 @@ function Kn({ name: e, accept: t, required: n, text: r = "Choose a file…", sty
|
|
|
3399
3480
|
]
|
|
3400
3481
|
});
|
|
3401
3482
|
}
|
|
3402
|
-
function
|
|
3483
|
+
function Qn({ text: e = "Submit", style: t, nodeRef: n, inert: r }) {
|
|
3403
3484
|
return /* @__PURE__ */ u("button", {
|
|
3404
3485
|
ref: n,
|
|
3405
3486
|
type: r ? "button" : "submit",
|
|
@@ -3419,7 +3500,7 @@ function qn({ text: e = "Submit", style: t, nodeRef: n, inert: r }) {
|
|
|
3419
3500
|
children: e
|
|
3420
3501
|
});
|
|
3421
3502
|
}
|
|
3422
|
-
function
|
|
3503
|
+
function $n({ cols: e = 2, rows: t = 1, style: n, nodeRef: r, linked: i }) {
|
|
3423
3504
|
let a = Math.max(1, (Number(e) || 1) * (Number(t) || 1));
|
|
3424
3505
|
return /* @__PURE__ */ u("div", {
|
|
3425
3506
|
ref: r,
|
|
@@ -3436,7 +3517,7 @@ function Jn({ cols: e = 2, rows: t = 1, style: n, nodeRef: r, linked: i }) {
|
|
|
3436
3517
|
}, t))
|
|
3437
3518
|
});
|
|
3438
3519
|
}
|
|
3439
|
-
function
|
|
3520
|
+
function er({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, imageField: o, titleField: s = "name", textField: l, custom: f, templateId: p, paged: m, filters: h, style: g, nodeRef: _ }) {
|
|
3440
3521
|
let { tenant: v, apiUrl: y, locale: b } = r(Q), x = r(it), S = r(et), [, C] = c(0);
|
|
3441
3522
|
i(() => {
|
|
3442
3523
|
if (typeof window > "u") return;
|
|
@@ -3547,7 +3628,7 @@ function Yn({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, i
|
|
|
3547
3628
|
lineHeight: 1.55,
|
|
3548
3629
|
opacity: .85
|
|
3549
3630
|
},
|
|
3550
|
-
children:
|
|
3631
|
+
children: It(a)
|
|
3551
3632
|
})
|
|
3552
3633
|
]
|
|
3553
3634
|
})]
|
|
@@ -3555,7 +3636,7 @@ function Yn({ collection: e, limit: t = 6, layout: n = "grid", columns: a = 3, i
|
|
|
3555
3636
|
})
|
|
3556
3637
|
});
|
|
3557
3638
|
}
|
|
3558
|
-
function
|
|
3639
|
+
function tr({ fields: e = [], buttonLabel: t = "Search", style: n, nodeRef: r, inert: i }) {
|
|
3559
3640
|
let a = Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && typeof e.name == "string" && e.name) : [], o = i ? {} : nt(), s = {
|
|
3560
3641
|
height: 34,
|
|
3561
3642
|
padding: "0 12px",
|
|
@@ -3604,7 +3685,7 @@ function Xn({ fields: e = [], buttonLabel: t = "Search", style: n, nodeRef: r, i
|
|
|
3604
3685
|
name: `f_${e.name}`,
|
|
3605
3686
|
defaultValue: o[e.name] ?? "",
|
|
3606
3687
|
style: s,
|
|
3607
|
-
...
|
|
3688
|
+
...Nn(i),
|
|
3608
3689
|
children: [/* @__PURE__ */ u("option", {
|
|
3609
3690
|
value: "",
|
|
3610
3691
|
children: e.label || e.name
|
|
@@ -3619,7 +3700,7 @@ function Xn({ fields: e = [], buttonLabel: t = "Search", style: n, nodeRef: r, i
|
|
|
3619
3700
|
name: `f_${e.name}`,
|
|
3620
3701
|
defaultValue: o[e.name] ?? "",
|
|
3621
3702
|
style: s,
|
|
3622
|
-
...
|
|
3703
|
+
...Nn(i),
|
|
3623
3704
|
children: [
|
|
3624
3705
|
/* @__PURE__ */ u("option", {
|
|
3625
3706
|
value: "",
|
|
@@ -3640,7 +3721,7 @@ function Xn({ fields: e = [], buttonLabel: t = "Search", style: n, nodeRef: r, i
|
|
|
3640
3721
|
defaultValue: o[e.name] ?? "",
|
|
3641
3722
|
placeholder: e.label || e.name,
|
|
3642
3723
|
style: s,
|
|
3643
|
-
...
|
|
3724
|
+
...Nn(i)
|
|
3644
3725
|
}, e.name)), /* @__PURE__ */ u("button", {
|
|
3645
3726
|
type: "submit",
|
|
3646
3727
|
style: {
|
|
@@ -3653,12 +3734,12 @@ function Xn({ fields: e = [], buttonLabel: t = "Search", style: n, nodeRef: r, i
|
|
|
3653
3734
|
fontWeight: 600,
|
|
3654
3735
|
cursor: i ? "default" : "pointer"
|
|
3655
3736
|
},
|
|
3656
|
-
...
|
|
3737
|
+
...Nn(i),
|
|
3657
3738
|
children: t
|
|
3658
3739
|
})]
|
|
3659
3740
|
});
|
|
3660
3741
|
}
|
|
3661
|
-
function
|
|
3742
|
+
function nr({ items: e = [], separator: t = "/", style: n, nodeRef: r }) {
|
|
3662
3743
|
return e.length ? /* @__PURE__ */ u("nav", {
|
|
3663
3744
|
ref: r,
|
|
3664
3745
|
"aria-label": "Breadcrumb",
|
|
@@ -3708,7 +3789,7 @@ function Zn({ items: e = [], separator: t = "/", style: n, nodeRef: r }) {
|
|
|
3708
3789
|
})
|
|
3709
3790
|
}) : null;
|
|
3710
3791
|
}
|
|
3711
|
-
function
|
|
3792
|
+
function rr({ pages: e = 5, current: t = 1, prevNext: n = !0, href: a = "#", source: o, pageSize: s = 6, align: l, hideEmpty: f, inert: p, style: m, nodeRef: h }) {
|
|
3712
3793
|
let { tenant: g, apiUrl: _ } = r(Q), v = r(et), [y, b] = c(null), x = o ? Number(v?.[`${o}:total`]) : NaN;
|
|
3713
3794
|
i(() => {
|
|
3714
3795
|
if (!o || Number.isFinite(x)) return;
|
|
@@ -3793,15 +3874,15 @@ function Qn({ pages: e = 5, current: t = 1, prevNext: n = !0, href: a = "#", sou
|
|
|
3793
3874
|
]
|
|
3794
3875
|
});
|
|
3795
3876
|
}
|
|
3796
|
-
var
|
|
3877
|
+
var ir = "webim.page_mode", ar = () => {
|
|
3797
3878
|
if (typeof window > "u") return "auto";
|
|
3798
3879
|
try {
|
|
3799
|
-
let e = window.localStorage.getItem(
|
|
3880
|
+
let e = window.localStorage.getItem(ir);
|
|
3800
3881
|
return e === "light" || e === "dark" ? e : "auto";
|
|
3801
3882
|
} catch {
|
|
3802
3883
|
return "auto";
|
|
3803
3884
|
}
|
|
3804
|
-
},
|
|
3885
|
+
}, or = (e) => {
|
|
3805
3886
|
let t = {
|
|
3806
3887
|
width: 16,
|
|
3807
3888
|
height: 16,
|
|
@@ -3833,13 +3914,13 @@ var $n = "webim.page_mode", er = () => {
|
|
|
3833
3914
|
rx: "2"
|
|
3834
3915
|
}), /* @__PURE__ */ u("path", { d: "M8 21h8M12 17v4" })]
|
|
3835
3916
|
});
|
|
3836
|
-
},
|
|
3917
|
+
}, sr = {
|
|
3837
3918
|
light: "Light theme",
|
|
3838
3919
|
dark: "Dark theme",
|
|
3839
3920
|
auto: "Follow the device theme"
|
|
3840
3921
|
};
|
|
3841
|
-
function
|
|
3842
|
-
let [o, l] = c(a ? "auto" :
|
|
3922
|
+
function cr({ variant: e, showSystem: t, style: n, nodeRef: r, inert: a }) {
|
|
3923
|
+
let [o, l] = c(a ? "auto" : ar), d = s(null), f = (e) => {
|
|
3843
3924
|
d.current = e, typeof r == "function" && r(e);
|
|
3844
3925
|
};
|
|
3845
3926
|
i(() => {
|
|
@@ -3847,7 +3928,7 @@ function rr({ variant: e, showSystem: t, style: n, nodeRef: r, inert: a }) {
|
|
|
3847
3928
|
let e = d.current?.closest?.(".webim-page");
|
|
3848
3929
|
e && (o === "light" || o === "dark" ? e.setAttribute("data-webim-mode", o) : e.removeAttribute("data-webim-mode"));
|
|
3849
3930
|
try {
|
|
3850
|
-
o === "auto" ? window.localStorage.removeItem(
|
|
3931
|
+
o === "auto" ? window.localStorage.removeItem(ir) : window.localStorage.setItem(ir, o);
|
|
3851
3932
|
} catch {}
|
|
3852
3933
|
}, [o, a]);
|
|
3853
3934
|
let p = t === !1 ? ["light", "dark"] : [
|
|
@@ -3882,8 +3963,8 @@ function rr({ variant: e, showSystem: t, style: n, nodeRef: r, inert: a }) {
|
|
|
3882
3963
|
},
|
|
3883
3964
|
children: p.map((e) => /* @__PURE__ */ u("button", {
|
|
3884
3965
|
type: "button",
|
|
3885
|
-
title:
|
|
3886
|
-
"aria-label":
|
|
3966
|
+
title: sr[e],
|
|
3967
|
+
"aria-label": sr[e],
|
|
3887
3968
|
"aria-pressed": e === m,
|
|
3888
3969
|
onClick: a ? void 0 : () => l(e),
|
|
3889
3970
|
style: {
|
|
@@ -3894,15 +3975,15 @@ function rr({ variant: e, showSystem: t, style: n, nodeRef: r, inert: a }) {
|
|
|
3894
3975
|
background: e === m ? "var(--page-accent, #111827)" : "transparent",
|
|
3895
3976
|
opacity: e === m ? 1 : .7
|
|
3896
3977
|
},
|
|
3897
|
-
children:
|
|
3978
|
+
children: or(e)
|
|
3898
3979
|
}, e))
|
|
3899
3980
|
});
|
|
3900
3981
|
let g = p[(p.indexOf(m) + 1) % p.length];
|
|
3901
3982
|
return /* @__PURE__ */ u("button", {
|
|
3902
3983
|
ref: f,
|
|
3903
3984
|
type: "button",
|
|
3904
|
-
title:
|
|
3905
|
-
"aria-label": `Theme: ${
|
|
3985
|
+
title: sr[m],
|
|
3986
|
+
"aria-label": `Theme: ${sr[m]} — switch to ${sr[g]}`,
|
|
3906
3987
|
onClick: a ? void 0 : () => l(g),
|
|
3907
3988
|
style: {
|
|
3908
3989
|
...h,
|
|
@@ -3911,10 +3992,10 @@ function rr({ variant: e, showSystem: t, style: n, nodeRef: r, inert: a }) {
|
|
|
3911
3992
|
border: "1px solid rgba(148, 163, 184, 0.4)",
|
|
3912
3993
|
...A(n)
|
|
3913
3994
|
},
|
|
3914
|
-
children:
|
|
3995
|
+
children: or(m)
|
|
3915
3996
|
});
|
|
3916
3997
|
}
|
|
3917
|
-
function
|
|
3998
|
+
function lr(e) {
|
|
3918
3999
|
let t = e?.parentElement;
|
|
3919
4000
|
for (; t && t !== document.body;) {
|
|
3920
4001
|
let e = getComputedStyle(t).overflowY;
|
|
@@ -3923,7 +4004,7 @@ function ir(e) {
|
|
|
3923
4004
|
}
|
|
3924
4005
|
return window;
|
|
3925
4006
|
}
|
|
3926
|
-
var
|
|
4007
|
+
var ur = (e) => e === window ? window.scrollY : e.scrollTop, dr = {
|
|
3927
4008
|
"bottom-right": (e) => ({
|
|
3928
4009
|
right: e,
|
|
3929
4010
|
bottom: e
|
|
@@ -3937,11 +4018,11 @@ var ar = (e) => e === window ? window.scrollY : e.scrollTop, or = {
|
|
|
3937
4018
|
bottom: e,
|
|
3938
4019
|
transform: "translateX(-50%)"
|
|
3939
4020
|
})
|
|
3940
|
-
},
|
|
4021
|
+
}, fr = {
|
|
3941
4022
|
linear: (e) => e,
|
|
3942
4023
|
out: (e) => 1 - (1 - e) ** 3,
|
|
3943
4024
|
inout: (e) => e < .5 ? 4 * e * e * e : 1 - (-2 * e + 2) ** 3 / 2
|
|
3944
|
-
},
|
|
4025
|
+
}, pr = (e) => {
|
|
3945
4026
|
let t = e.getBoundingClientRect(), n = e.parentElement;
|
|
3946
4027
|
for (; n && n !== document.body;) {
|
|
3947
4028
|
let e = getComputedStyle(n);
|
|
@@ -3949,12 +4030,12 @@ var ar = (e) => e === window ? window.scrollY : e.scrollTop, or = {
|
|
|
3949
4030
|
n = n.parentElement;
|
|
3950
4031
|
}
|
|
3951
4032
|
return !n || n === document.body ? Math.max(document.documentElement.scrollHeight - (t.bottom + window.scrollY), 0) : Math.max(n.scrollHeight - (t.bottom - n.getBoundingClientRect().top + n.scrollTop), 0);
|
|
3952
|
-
},
|
|
4033
|
+
}, mr = (e, t) => {
|
|
3953
4034
|
let n = typeof e == "number" ? e : parseFloat(e);
|
|
3954
4035
|
return Number.isFinite(n) ? n : t;
|
|
3955
4036
|
};
|
|
3956
|
-
function
|
|
3957
|
-
let i = Math.min(Math.max(Math.round(
|
|
4037
|
+
function hr(e, { locale: t, decimals: n = 0, separator: r = "auto" } = {}) {
|
|
4038
|
+
let i = Math.min(Math.max(Math.round(mr(n, 0)), 0), 6);
|
|
3958
4039
|
try {
|
|
3959
4040
|
return new Intl.NumberFormat(t || void 0, {
|
|
3960
4041
|
minimumFractionDigits: i,
|
|
@@ -3965,8 +4046,8 @@ function ur(e, { locale: t, decimals: n = 0, separator: r = "auto" } = {}) {
|
|
|
3965
4046
|
return e.toFixed(i);
|
|
3966
4047
|
}
|
|
3967
4048
|
}
|
|
3968
|
-
function
|
|
3969
|
-
let { locale: C } = r(Q), w = Math.max(
|
|
4049
|
+
function gr({ from: e, to: t, duration: n, delay: a, decimals: o, prefix: l, suffix: f, separator: p, easing: m, trigger: h, offset: g, once: _, label: v, align: y, style: b, nodeRef: x, inert: S }) {
|
|
4050
|
+
let { locale: C } = r(Q), w = Math.max(mr(g, 0), 0), T = mr(e, 0), E = mr(t, 100), [D, O] = c(E), k = s(null), [j, M] = c(!1);
|
|
3970
4051
|
return i(() => {
|
|
3971
4052
|
let e = k.current;
|
|
3972
4053
|
if (S || !j || !e) {
|
|
@@ -3974,7 +4055,7 @@ function dr({ from: e, to: t, duration: n, delay: a, decimals: o, prefix: l, suf
|
|
|
3974
4055
|
return;
|
|
3975
4056
|
}
|
|
3976
4057
|
O(T);
|
|
3977
|
-
let t = Math.max(
|
|
4058
|
+
let t = Math.max(mr(n, 2e3), 0), r = Math.max(mr(a, 0), 0), i = fr[m] || fr.out, o = typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, s = 0, c = 0, l = !1, u = () => {
|
|
3978
4059
|
if (cancelAnimationFrame(s), clearTimeout(c), o || t === 0) {
|
|
3979
4060
|
O(E);
|
|
3980
4061
|
return;
|
|
@@ -3994,7 +4075,7 @@ function dr({ from: e, to: t, duration: n, delay: a, decimals: o, prefix: l, suf
|
|
|
3994
4075
|
let t = e.some((e) => e.isIntersecting);
|
|
3995
4076
|
t && (!l || _ === !1) ? (l = !0, u()) : !t && _ === !1 && (cancelAnimationFrame(s), clearTimeout(c), O(T));
|
|
3996
4077
|
}, {
|
|
3997
|
-
rootMargin: `0px 0px -${Math.min(w, Math.floor(
|
|
4078
|
+
rootMargin: `0px 0px -${Math.min(w, Math.floor(pr(e)))}px 0px`,
|
|
3998
4079
|
threshold: w > 0 ? 0 : .3
|
|
3999
4080
|
});
|
|
4000
4081
|
return d.observe(e), () => {
|
|
@@ -4034,7 +4115,7 @@ function dr({ from: e, to: t, duration: n, delay: a, decimals: o, prefix: l, suf
|
|
|
4034
4115
|
},
|
|
4035
4116
|
children: [
|
|
4036
4117
|
l || "",
|
|
4037
|
-
|
|
4118
|
+
hr(D, {
|
|
4038
4119
|
locale: C,
|
|
4039
4120
|
decimals: o,
|
|
4040
4121
|
separator: p
|
|
@@ -4052,7 +4133,7 @@ function dr({ from: e, to: t, duration: n, delay: a, decimals: o, prefix: l, suf
|
|
|
4052
4133
|
}) : null]
|
|
4053
4134
|
});
|
|
4054
4135
|
}
|
|
4055
|
-
function
|
|
4136
|
+
function _r({ variant: e, label: t, position: n, offset: r, showAfter: a, smooth: o, bg: s, fg: l, style: f, nodeRef: p, inert: m, frame: h, builder: g }) {
|
|
4056
4137
|
let [_, v] = c(!!m), [y, b] = c(null), x = (e) => {
|
|
4057
4138
|
b(e), typeof p == "function" && p(e);
|
|
4058
4139
|
};
|
|
@@ -4063,8 +4144,8 @@ function fr({ variant: e, label: t, position: n, offset: r, showAfter: a, smooth
|
|
|
4063
4144
|
}
|
|
4064
4145
|
if (!y) return;
|
|
4065
4146
|
let e = Number(a) >= 0 ? Number(a) : 300, t = () => {
|
|
4066
|
-
let t =
|
|
4067
|
-
v(n ||
|
|
4147
|
+
let t = lr(y), n = g && !(t === window ? document.documentElement.scrollHeight > window.innerHeight : t.scrollHeight > t.clientHeight);
|
|
4148
|
+
v(n || ur(t) > e);
|
|
4068
4149
|
};
|
|
4069
4150
|
return t(), document.addEventListener("scroll", t, {
|
|
4070
4151
|
capture: !0,
|
|
@@ -4078,7 +4159,7 @@ function fr({ variant: e, label: t, position: n, offset: r, showAfter: a, smooth
|
|
|
4078
4159
|
]);
|
|
4079
4160
|
let S = () => {
|
|
4080
4161
|
if (m) return;
|
|
4081
|
-
let e =
|
|
4162
|
+
let e = lr(y), t = window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, n = o === !1 || t ? "auto" : "smooth";
|
|
4082
4163
|
e === window ? window.scrollTo({
|
|
4083
4164
|
top: 0,
|
|
4084
4165
|
behavior: n
|
|
@@ -4086,7 +4167,7 @@ function fr({ variant: e, label: t, position: n, offset: r, showAfter: a, smooth
|
|
|
4086
4167
|
top: 0,
|
|
4087
4168
|
behavior: n
|
|
4088
4169
|
});
|
|
4089
|
-
}, C = Number(r) >= 0 ? Number(r) : 24, w = e === "pill", T = t || "Top", E =
|
|
4170
|
+
}, C = Number(r) >= 0 ? Number(r) : 24, w = e === "pill", T = t || "Top", E = dr[n] ? n : "bottom-right", D = h ? {
|
|
4090
4171
|
position: "fixed",
|
|
4091
4172
|
zIndex: 5,
|
|
4092
4173
|
bottom: (h.bottom ?? 0) + C,
|
|
@@ -4099,7 +4180,7 @@ function fr({ variant: e, label: t, position: n, offset: r, showAfter: a, smooth
|
|
|
4099
4180
|
} : {
|
|
4100
4181
|
position: "fixed",
|
|
4101
4182
|
zIndex: 2147482e3,
|
|
4102
|
-
...
|
|
4183
|
+
...dr[E](C)
|
|
4103
4184
|
};
|
|
4104
4185
|
return /* @__PURE__ */ d("button", {
|
|
4105
4186
|
ref: x,
|
|
@@ -4150,7 +4231,7 @@ function fr({ variant: e, label: t, position: n, offset: r, showAfter: a, smooth
|
|
|
4150
4231
|
}), w ? /* @__PURE__ */ u("span", { children: T }) : null]
|
|
4151
4232
|
});
|
|
4152
4233
|
}
|
|
4153
|
-
var
|
|
4234
|
+
var vr = {
|
|
4154
4235
|
facebook: {
|
|
4155
4236
|
label: "Facebook",
|
|
4156
4237
|
color: "#1877f2",
|
|
@@ -4217,8 +4298,8 @@ var pr = {
|
|
|
4217
4298
|
d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"
|
|
4218
4299
|
}
|
|
4219
4300
|
};
|
|
4220
|
-
function
|
|
4221
|
-
let l = Array.isArray(e) ? e.filter((e) => e &&
|
|
4301
|
+
function yr({ links: e = [], variant: t, color: n, size: r, gap: i, newTab: a, style: o, nodeRef: s, inert: c }) {
|
|
4302
|
+
let l = Array.isArray(e) ? e.filter((e) => e && vr[e.network]) : [];
|
|
4222
4303
|
if (!l.length) return null;
|
|
4223
4304
|
let d = Math.min(Math.max(Number(r) || 18, 10), 64), f = Math.round(d * 1.9), p = Number.isFinite(Number(i)) ? Number(i) : 10, m = (e) => n === "accent" ? "var(--page-accent, #111827)" : n === "inherit" ? "currentColor" : e.color, h = c ? (e) => e.preventDefault() : void 0;
|
|
4224
4305
|
return /* @__PURE__ */ u("div", {
|
|
@@ -4231,7 +4312,7 @@ function mr({ links: e = [], variant: t, color: n, size: r, gap: i, newTab: a, s
|
|
|
4231
4312
|
...A(o)
|
|
4232
4313
|
},
|
|
4233
4314
|
children: l.map((e, r) => {
|
|
4234
|
-
let i =
|
|
4315
|
+
let i = vr[e.network], o = t !== "outline" && t !== "plain", s = o ? n === "accent" ? "var(--page-accent-text, #ffffff)" : n === "inherit" ? "var(--page-bg, #ffffff)" : "#ffffff" : m(i);
|
|
4235
4316
|
return /* @__PURE__ */ u("a", {
|
|
4236
4317
|
href: e.url || "#",
|
|
4237
4318
|
onClick: h,
|
|
@@ -4265,7 +4346,7 @@ function mr({ links: e = [], variant: t, color: n, size: r, gap: i, newTab: a, s
|
|
|
4265
4346
|
})
|
|
4266
4347
|
});
|
|
4267
4348
|
}
|
|
4268
|
-
function
|
|
4349
|
+
function br({ steps: t = [], active: n = 1, vertical: r = !1, style: i, nodeRef: a }) {
|
|
4269
4350
|
if (!t.length) return null;
|
|
4270
4351
|
let o = Math.min(Math.max(Number(n) || 1, 1), t.length), s = (e) => ({
|
|
4271
4352
|
width: 32,
|
|
@@ -4343,7 +4424,7 @@ function hr({ steps: t = [], active: n = 1, vertical: r = !1, style: i, nodeRef:
|
|
|
4343
4424
|
})
|
|
4344
4425
|
});
|
|
4345
4426
|
}
|
|
4346
|
-
var
|
|
4427
|
+
var xr = {
|
|
4347
4428
|
small: {
|
|
4348
4429
|
w: 132,
|
|
4349
4430
|
h: 46,
|
|
@@ -4365,21 +4446,21 @@ var gr = {
|
|
|
4365
4446
|
title: 12.5,
|
|
4366
4447
|
avatar: 46
|
|
4367
4448
|
}
|
|
4368
|
-
},
|
|
4369
|
-
|
|
4370
|
-
var
|
|
4449
|
+
}, Sr = (e) => xr[e] ?? xr.medium;
|
|
4450
|
+
xr.medium.w, xr.medium.h;
|
|
4451
|
+
var Cr = (e) => String(e?.group ?? "").trim(), wr = (e) => {
|
|
4371
4452
|
let t = [], n = /* @__PURE__ */ new Map();
|
|
4372
4453
|
return e.forEach((e, r) => {
|
|
4373
|
-
let i =
|
|
4454
|
+
let i = Cr(e) || `#${r}`;
|
|
4374
4455
|
n.has(i) || (n.set(i, []), t.push(i)), n.get(i).push(e);
|
|
4375
4456
|
}), t.flatMap((e) => n.get(e));
|
|
4376
4457
|
};
|
|
4377
|
-
function
|
|
4378
|
-
let i =
|
|
4458
|
+
function Tr(e, { size: t = "medium", horizontal: n = !1, groupTitles: r = "top" } = {}) {
|
|
4459
|
+
let i = Sr(t), a = n ? i.h : i.w, o = n ? 16 : 20, s = (n ? i.w : i.h) + (n ? 56 : 48), c = Array.isArray(e) ? e.filter((e) => e && e.id) : [], l = new Set(c.map((e) => e.id)), u = /* @__PURE__ */ new Map(), d = [];
|
|
4379
4460
|
for (let e of c) e.parent && l.has(e.parent) && e.parent !== e.id ? (u.has(e.parent) || u.set(e.parent, []), u.get(e.parent).push(e)) : d.push(e);
|
|
4380
|
-
d =
|
|
4381
|
-
for (let [e, t] of u) u.set(e,
|
|
4382
|
-
let f = (e, t) => o + (
|
|
4461
|
+
d = wr(d);
|
|
4462
|
+
for (let [e, t] of u) u.set(e, wr(t));
|
|
4463
|
+
let f = (e, t) => o + (Cr(e) !== Cr(t) && (Cr(e) || Cr(t)) ? 24 : 0), p = /* @__PURE__ */ new Map(), m = (e, t) => {
|
|
4383
4464
|
if (t.has(e.id)) return 0;
|
|
4384
4465
|
t.add(e.id);
|
|
4385
4466
|
let n = u.get(e.id) ?? [], r = n.reduce((e, r, i) => e + m(r, t) + (i ? f(n[i - 1], r) : 0), 0), i = Math.max(a, r);
|
|
@@ -4395,7 +4476,7 @@ function br(e, { size: t = "medium", horizontal: n = !1, groupTitles: r = "top"
|
|
|
4395
4476
|
x: m,
|
|
4396
4477
|
y: b
|
|
4397
4478
|
});
|
|
4398
|
-
let x =
|
|
4479
|
+
let x = Cr(e);
|
|
4399
4480
|
if (x) {
|
|
4400
4481
|
let t = `${e.parent && l.has(e.parent) && e.parent !== e.id ? e.parent : ""}|${x}`;
|
|
4401
4482
|
_.has(t) || _.set(t, {
|
|
@@ -4469,18 +4550,18 @@ function br(e, { size: t = "medium", horizontal: n = !1, groupTitles: r = "top"
|
|
|
4469
4550
|
horizontal: n
|
|
4470
4551
|
};
|
|
4471
4552
|
}
|
|
4472
|
-
var
|
|
4553
|
+
var Er = (e, t) => {
|
|
4473
4554
|
let n = String(e ?? "");
|
|
4474
4555
|
return n.length > t ? `${n.slice(0, t - 1)}…` : n;
|
|
4475
|
-
},
|
|
4556
|
+
}, Dr = (e) => {
|
|
4476
4557
|
let t = /^#([0-9a-f]{6}|[0-9a-f]{3})$/i.exec(String(e ?? "").trim());
|
|
4477
4558
|
if (!t) return "#ffffff";
|
|
4478
4559
|
let n = t[1];
|
|
4479
4560
|
n.length === 3 && (n = [...n].map((e) => e + e).join(""));
|
|
4480
4561
|
let r = parseInt(n, 16);
|
|
4481
4562
|
return .299 * (r >> 16 & 255) + .587 * (r >> 8 & 255) + .114 * (r & 255) > 150 ? "#111827" : "#ffffff";
|
|
4482
|
-
},
|
|
4483
|
-
function
|
|
4563
|
+
}, Or = (e) => !!(e?.cv?.trim?.() || e?.photo);
|
|
4564
|
+
function kr(e, t = {}) {
|
|
4484
4565
|
let n = Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.id) : [], r = (e) => Array.isArray(e) ? e[0] : e, i = (e) => e == null ? "" : ct(e);
|
|
4485
4566
|
return n.map((e) => {
|
|
4486
4567
|
let n = e.data ?? {}, a = r(n[t.parentField]), o = a && typeof a == "object" ? a.id ?? null : a || null;
|
|
@@ -4496,11 +4577,11 @@ function wr(e, t = {}) {
|
|
|
4496
4577
|
};
|
|
4497
4578
|
});
|
|
4498
4579
|
}
|
|
4499
|
-
var
|
|
4580
|
+
var Ar = {
|
|
4500
4581
|
size: 36,
|
|
4501
4582
|
pad: 10
|
|
4502
4583
|
};
|
|
4503
|
-
function
|
|
4584
|
+
function jr({ node: e, onClose: t }) {
|
|
4504
4585
|
return i(() => {
|
|
4505
4586
|
let e = (e) => e.key === "Escape" && t();
|
|
4506
4587
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
@@ -4621,7 +4702,7 @@ function Er({ node: e, onClose: t }) {
|
|
|
4621
4702
|
})
|
|
4622
4703
|
});
|
|
4623
4704
|
}
|
|
4624
|
-
function
|
|
4705
|
+
function Mr({ nodes: e = [], source: t, nameField: n, titleField: o, photoField: s, parentField: f, cvField: p, hrefField: m, groupField: h, groupTitles: g = "top", groupBg: _ = "", size: v = "medium", horizontal: y = !1, style: b, nodeRef: x, interactive: S = !0 }) {
|
|
4625
4706
|
let C = a(), [w, T] = c(null), { tenant: E, apiUrl: D } = r(Q), O = r(et)?.[t], [k, j] = c(null);
|
|
4626
4707
|
i(() => {
|
|
4627
4708
|
if (!t || O) return;
|
|
@@ -4638,7 +4719,7 @@ function Dr({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
4638
4719
|
D,
|
|
4639
4720
|
O
|
|
4640
4721
|
]);
|
|
4641
|
-
let M = t ?
|
|
4722
|
+
let M = t ? kr(O ?? k ?? [], {
|
|
4642
4723
|
nameField: n,
|
|
4643
4724
|
titleField: o,
|
|
4644
4725
|
photoField: s,
|
|
@@ -4646,7 +4727,7 @@ function Dr({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
4646
4727
|
cvField: p,
|
|
4647
4728
|
hrefField: m,
|
|
4648
4729
|
groupField: h
|
|
4649
|
-
}) : e, N =
|
|
4730
|
+
}) : e, N = Sr(v), { boxes: P, links: F, groups: I, width: L, height: R } = Tr(M, {
|
|
4650
4731
|
size: v,
|
|
4651
4732
|
horizontal: y,
|
|
4652
4733
|
groupTitles: g
|
|
@@ -4704,8 +4785,8 @@ function Dr({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
4704
4785
|
fontSize: N.title + 1,
|
|
4705
4786
|
fontWeight: "600",
|
|
4706
4787
|
opacity: "0.55",
|
|
4707
|
-
fill: r ?
|
|
4708
|
-
children:
|
|
4788
|
+
fill: r ? Dr(e.color || _) : "var(--page-text, #111827)",
|
|
4789
|
+
children: Er(e.title, Math.floor(e.width / 7))
|
|
4709
4790
|
})] }, `group-${t}`);
|
|
4710
4791
|
}),
|
|
4711
4792
|
F.map((e, t) => /* @__PURE__ */ u("path", {
|
|
@@ -4715,7 +4796,7 @@ function Dr({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
4715
4796
|
strokeWidth: "1.5"
|
|
4716
4797
|
}, t)),
|
|
4717
4798
|
P.map(({ node: e, x: t, y: n }) => {
|
|
4718
|
-
let r = z.has(e.id), i = !!e.color2, a = !!e.color || r || i, o = e.color || (r ? "var(--page-accent, #4f46e5)" : "var(--page-bg, #ffffff)"), s = e.color ?
|
|
4799
|
+
let r = z.has(e.id), i = !!e.color2, a = !!e.color || r || i, o = e.color || (r ? "var(--page-accent, #4f46e5)" : "var(--page-bg, #ffffff)"), s = e.color ? Dr(e.color) : r ? "var(--page-accent-text, #ffffff)" : "var(--page-text, #111827)", c = i ? Dr(e.color2) : s, f = S && (Or(e) || e.href), p = () => Or(e) ? T(e) : window.open(e.href, "_blank", "noreferrer"), m = e.photo ? t + Ar.pad + N.avatar + 8 : t + N.w / 2, h = e.photo ? "start" : "middle", g = e.photo ? Math.floor((N.w - N.avatar - 26) / 7) : Math.floor(N.w / 7.6), _ = N.h / 2, v = [e.name, e.title].map((e) => String(e ?? "").trim()).filter(Boolean);
|
|
4719
4800
|
return /* @__PURE__ */ d("g", {
|
|
4720
4801
|
onClick: f ? p : void 0,
|
|
4721
4802
|
style: f ? { cursor: "pointer" } : void 0,
|
|
@@ -4779,13 +4860,13 @@ function Dr({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
4779
4860
|
e.photo && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("clipPath", {
|
|
4780
4861
|
id: `${C}-${e.id}`,
|
|
4781
4862
|
children: /* @__PURE__ */ u("circle", {
|
|
4782
|
-
cx: t +
|
|
4863
|
+
cx: t + Ar.pad + N.avatar / 2,
|
|
4783
4864
|
cy: n + N.h / 2,
|
|
4784
4865
|
r: N.avatar / 2
|
|
4785
4866
|
})
|
|
4786
4867
|
}), /* @__PURE__ */ u("image", {
|
|
4787
4868
|
href: e.photo,
|
|
4788
|
-
x: t +
|
|
4869
|
+
x: t + Ar.pad,
|
|
4789
4870
|
y: n + (N.h - N.avatar) / 2,
|
|
4790
4871
|
width: N.avatar,
|
|
4791
4872
|
height: N.avatar,
|
|
@@ -4799,7 +4880,7 @@ function Dr({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
4799
4880
|
fontSize: N.title,
|
|
4800
4881
|
fontWeight: "600",
|
|
4801
4882
|
fill: s,
|
|
4802
|
-
children:
|
|
4883
|
+
children: Er(e.title, g + 4)
|
|
4803
4884
|
}), e.name && /* @__PURE__ */ u("text", {
|
|
4804
4885
|
x: m,
|
|
4805
4886
|
y: n + _ + _ / 2 + N.name * .35,
|
|
@@ -4807,7 +4888,7 @@ function Dr({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
4807
4888
|
fontSize: N.name,
|
|
4808
4889
|
fontWeight: "600",
|
|
4809
4890
|
fill: c,
|
|
4810
|
-
children:
|
|
4891
|
+
children: Er(e.name, g)
|
|
4811
4892
|
})] }) : /* @__PURE__ */ d(l, { children: [v[0] && /* @__PURE__ */ u("text", {
|
|
4812
4893
|
x: m,
|
|
4813
4894
|
y: n + (v[1] ? N.h * .43 : N.h * .57),
|
|
@@ -4815,7 +4896,7 @@ function Dr({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
4815
4896
|
fontSize: N.name,
|
|
4816
4897
|
fontWeight: "600",
|
|
4817
4898
|
fill: s,
|
|
4818
|
-
children:
|
|
4899
|
+
children: Er(v[0], g)
|
|
4819
4900
|
}), v[1] && /* @__PURE__ */ u("text", {
|
|
4820
4901
|
x: m,
|
|
4821
4902
|
y: n + N.h * .73,
|
|
@@ -4823,19 +4904,19 @@ function Dr({ nodes: e = [], source: t, nameField: n, titleField: o, photoField:
|
|
|
4823
4904
|
fontSize: N.title,
|
|
4824
4905
|
opacity: "0.7",
|
|
4825
4906
|
fill: s,
|
|
4826
|
-
children:
|
|
4907
|
+
children: Er(v[1], g + 4)
|
|
4827
4908
|
})] })
|
|
4828
4909
|
]
|
|
4829
4910
|
}, e.id);
|
|
4830
4911
|
})
|
|
4831
4912
|
]
|
|
4832
|
-
}), w && /* @__PURE__ */ u(
|
|
4913
|
+
}), w && /* @__PURE__ */ u(jr, {
|
|
4833
4914
|
node: w,
|
|
4834
4915
|
onClose: () => T(null)
|
|
4835
4916
|
})]
|
|
4836
4917
|
});
|
|
4837
4918
|
}
|
|
4838
|
-
function
|
|
4919
|
+
function Nr({ value: e, onCommit: t, style: n, hint: r }) {
|
|
4839
4920
|
let [a, o] = c(!1), l = s(null);
|
|
4840
4921
|
return i(() => {
|
|
4841
4922
|
if (!a || !l.current) return;
|
|
@@ -4865,7 +4946,7 @@ function Or({ value: e, onCommit: t, style: n, hint: r }) {
|
|
|
4865
4946
|
children: e ?? ""
|
|
4866
4947
|
});
|
|
4867
4948
|
}
|
|
4868
|
-
var
|
|
4949
|
+
var Pr = 360, Fr = "\n.wb-tedit-btn {\n cursor: pointer;\n border-radius: 4px;\n font-size: 11px;\n line-height: 16px;\n min-width: 20px;\n text-align: center;\n padding: 1px 4px;\n user-select: none;\n color: #e2e8f0;\n background: rgba(148, 163, 184, 0.16);\n}\n.wb-tedit-btn:hover { background: #4f46e5; color: #fff; }\n.wb-tedit-btn[data-hint] { position: relative; }\n.wb-tedit-btn[data-hint]:hover::after {\n content: attr(data-hint);\n position: absolute;\n bottom: calc(100% + 6px);\n left: 50%;\n transform: translateX(-50%);\n padding: 3px 6px;\n border-radius: 5px;\n background: #1e293b;\n border: 1px solid rgba(148, 163, 184, 0.35);\n color: #e2e8f0;\n font-size: 10px;\n line-height: 14px;\n white-space: nowrap;\n pointer-events: none;\n z-index: 6;\n}\n.wb-tedit-grip { position: absolute; top: 0; right: -3px; width: 6px; height: 100%; cursor: col-resize; }\n.wb-tedit-grip:hover { background: rgba(99, 102, 241, 0.55); }\n.wb-tedit-rowgrip { position: absolute; left: 0; right: 0; bottom: -3px; height: 6px; cursor: row-resize; }\n.wb-tedit-rowgrip:hover { background: rgba(99, 102, 241, 0.55); }\n.wb-tedit-cellon { outline: 2px solid rgba(99, 102, 241, 0.75); outline-offset: -2px; }\n.wb-tedit-bar {\n position: absolute;\n z-index: 5;\n display: flex;\n align-items: center;\n gap: 3px;\n padding: 4px 5px;\n border-radius: 8px;\n background: #0f172a;\n border: 1px solid rgba(148, 163, 184, 0.35);\n box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);\n white-space: nowrap;\n}\n.wb-tedit-sep { width: 1px; align-self: stretch; margin: 0 2px; background: rgba(148, 163, 184, 0.3); }\n.wb-tedit-at { font-size: 10px; color: #94a3b8; padding-right: 2px; }\n", Ir = (e, t) => e && t ? `cell-${e}-${t}` : "", Lr = (e) => {
|
|
4869
4950
|
if (!e || typeof e != "object") return e ?? "";
|
|
4870
4951
|
let t = String(e.text ?? "");
|
|
4871
4952
|
return typeof e.href == "string" && e.href ? /* @__PURE__ */ u("a", {
|
|
@@ -4876,7 +4957,7 @@ var kr = 360, Ar = "\n.wb-tedit-btn {\n cursor: pointer;\n border-radius: 4px;
|
|
|
4876
4957
|
children: t
|
|
4877
4958
|
}) : t;
|
|
4878
4959
|
};
|
|
4879
|
-
function
|
|
4960
|
+
function Rr({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], colKeys: o = [], heights: f = [], spans: p, linked: m, source: h, limit: g = 10, header: _ = !0, striped: v = !0, bordered: y = !1, compact: b = !1, padX: x, padY: S, paged: C, emptyText: w, stickyHeader: T, headerBg: E, headerColor: D, headerAlign: O, borderColor: k, maxHeight: j, style: M, nodeRef: N, edit: P }) {
|
|
4880
4961
|
let F = s(null), I = s(null), [L, R] = c(null), [z, B] = c(null), V = (e, t) => () => R({
|
|
4881
4962
|
r: e,
|
|
4882
4963
|
c: t
|
|
@@ -4890,7 +4971,7 @@ function Nr({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
|
|
|
4890
4971
|
}
|
|
4891
4972
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = {
|
|
4892
4973
|
top: r.bottom - n.top + 4,
|
|
4893
|
-
left: Math.max(0, Math.min(r.left - n.left, n.width -
|
|
4974
|
+
left: Math.max(0, Math.min(r.left - n.left, n.width - Pr))
|
|
4894
4975
|
};
|
|
4895
4976
|
(z?.top !== i.top || z?.left !== i.left) && B(i);
|
|
4896
4977
|
}), i(() => {
|
|
@@ -4946,7 +5027,7 @@ function Nr({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
|
|
|
4946
5027
|
window.addEventListener("pointermove", l), window.addEventListener("pointerup", u);
|
|
4947
5028
|
}, ye = /* @__PURE__ */ new Set();
|
|
4948
5029
|
p && K.forEach((t, n) => e.forEach((e, t) => {
|
|
4949
|
-
let r = p[
|
|
5030
|
+
let r = p[Ir(a[n], o[t])];
|
|
4950
5031
|
if (!r) return;
|
|
4951
5032
|
let i = Math.max(1, Number(r.c) || 1), s = Math.max(1, Number(r.r) || 1);
|
|
4952
5033
|
for (let e = 0; e < s; e++) for (let r = 0; r < i; r++) (e || r) && ye.add(`${n + e},${t + r}`);
|
|
@@ -4969,7 +5050,7 @@ function Nr({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
|
|
|
4969
5050
|
},
|
|
4970
5051
|
onClick: n,
|
|
4971
5052
|
children: e
|
|
4972
|
-
}, t), X = L && L.r < K.length && L.c < e.length ? L : null, Z = (e, t) => P?.labels?.[e] ?? t, xe = X ? p?.[
|
|
5053
|
+
}, t), X = L && L.r < K.length && L.c < e.length ? L : null, Z = (e, t) => P?.labels?.[e] ?? t, xe = X ? p?.[Ir(a[X.r], o[X.c])] : null, Se = Math.max(1, Number(xe?.c) || 1), Ce = Math.max(1, Number(xe?.r) || 1);
|
|
4973
5054
|
return /* @__PURE__ */ d("div", {
|
|
4974
5055
|
ref: (e) => {
|
|
4975
5056
|
I.current = e, typeof N == "function" && N(e);
|
|
@@ -4980,7 +5061,7 @@ function Nr({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
|
|
|
4980
5061
|
...ge
|
|
4981
5062
|
},
|
|
4982
5063
|
children: [
|
|
4983
|
-
P && /* @__PURE__ */ u("style", { children:
|
|
5064
|
+
P && /* @__PURE__ */ u("style", { children: Fr }),
|
|
4984
5065
|
P && X && z && /* @__PURE__ */ d("div", {
|
|
4985
5066
|
className: "wb-tedit-bar",
|
|
4986
5067
|
style: {
|
|
@@ -5046,7 +5127,7 @@ function Nr({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
|
|
|
5046
5127
|
} : P ? { position: "relative" } : null,
|
|
5047
5128
|
...ce
|
|
5048
5129
|
},
|
|
5049
|
-
children: P ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(
|
|
5130
|
+
children: P ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(Nr, {
|
|
5050
5131
|
value: t.label ?? t,
|
|
5051
5132
|
onCommit: (e) => P.header(n, e),
|
|
5052
5133
|
hint: Z("editCell", "Double-click to edit"),
|
|
@@ -5074,7 +5155,7 @@ function Nr({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
|
|
|
5074
5155
|
},
|
|
5075
5156
|
children: e.map((e, r) => {
|
|
5076
5157
|
if (ye.has(`${n},${r}`)) return null;
|
|
5077
|
-
let i =
|
|
5158
|
+
let i = Ir(a[n], o[r]), s = m?.[i], c = p?.[i], l = Math.max(1, Number(c?.c) || 1), f = Math.max(1, Number(c?.r) || 1);
|
|
5078
5159
|
return /* @__PURE__ */ d("td", {
|
|
5079
5160
|
className: P ? `wb-tedit-cell${L?.r === n && L?.c === r ? " wb-tedit-cellon" : ""}` : void 0,
|
|
5080
5161
|
onMouseDownCapture: _e ? V(n, r) : void 0,
|
|
@@ -5087,7 +5168,7 @@ function Nr({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
|
|
|
5087
5168
|
...P ? { position: "relative" } : null,
|
|
5088
5169
|
...ce
|
|
5089
5170
|
},
|
|
5090
|
-
children: [s ??
|
|
5171
|
+
children: [s ?? Lr(t?.[r]), P && _e && /* @__PURE__ */ u("span", {
|
|
5091
5172
|
className: "wb-tedit-rowgrip",
|
|
5092
5173
|
title: Z("rowHeight", "Drag to set the row height — double-click to fit the content"),
|
|
5093
5174
|
onPointerDown: be(n),
|
|
@@ -5102,7 +5183,7 @@ function Nr({ columns: e = [], rows: t = [], widths: n = [], rowKeys: a = [], co
|
|
|
5102
5183
|
]
|
|
5103
5184
|
});
|
|
5104
5185
|
}
|
|
5105
|
-
var
|
|
5186
|
+
var zr = {
|
|
5106
5187
|
small: {
|
|
5107
5188
|
cell: 62,
|
|
5108
5189
|
font: 10.5,
|
|
@@ -5127,8 +5208,8 @@ var Pr = {
|
|
|
5127
5208
|
pad: 8,
|
|
5128
5209
|
gap: 4
|
|
5129
5210
|
}
|
|
5130
|
-
},
|
|
5131
|
-
function
|
|
5211
|
+
}, Br = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, Vr = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Hr = 366;
|
|
5212
|
+
function Ur(e, t = {}) {
|
|
5132
5213
|
let n = Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.id) : [], r = (e) => Array.isArray(e) ? e[0] : e, i = (e) => e == null ? "" : ct(e), a = (e) => {
|
|
5133
5214
|
let t = i(r(e)), n = t ? new Date(t) : null;
|
|
5134
5215
|
return n && !Number.isNaN(n.getTime()) ? n : null;
|
|
@@ -5145,7 +5226,7 @@ function Rr(e, t = {}) {
|
|
|
5145
5226
|
} : null;
|
|
5146
5227
|
}).filter(Boolean);
|
|
5147
5228
|
}
|
|
5148
|
-
function
|
|
5229
|
+
function Wr(e) {
|
|
5149
5230
|
return (Array.isArray(e) ? e : []).map((e, t) => {
|
|
5150
5231
|
let n = e?.start ? new Date(e.start) : null;
|
|
5151
5232
|
if (!n || Number.isNaN(n.getTime())) return null;
|
|
@@ -5160,19 +5241,19 @@ function zr(e) {
|
|
|
5160
5241
|
};
|
|
5161
5242
|
}).filter(Boolean);
|
|
5162
5243
|
}
|
|
5163
|
-
function
|
|
5244
|
+
function Gr(e) {
|
|
5164
5245
|
let t = /* @__PURE__ */ new Map();
|
|
5165
5246
|
for (let n of e) {
|
|
5166
|
-
let e =
|
|
5247
|
+
let e = Vr(n.start), r = n.end ? Vr(n.end) : e, i = Math.min(Math.max(0, Math.round((r - e) / 864e5)), Hr);
|
|
5167
5248
|
for (let r = 0; r <= i; r += 1) {
|
|
5168
|
-
let i =
|
|
5249
|
+
let i = Br(new Date(e.getFullYear(), e.getMonth(), e.getDate() + r));
|
|
5169
5250
|
t.has(i) || t.set(i, []), t.get(i).push(n);
|
|
5170
5251
|
}
|
|
5171
5252
|
}
|
|
5172
5253
|
for (let e of t.values()) e.sort((e, t) => e.start - t.start);
|
|
5173
5254
|
return t;
|
|
5174
5255
|
}
|
|
5175
|
-
function
|
|
5256
|
+
function Kr({ events: e = [], source: t = "", titleField: n = "", startField: a = "", endField: o = "", hrefField: s = "", colorField: f = "", variant: p = "month", size: m = "medium", accent: h = "", eventBg: g = "", eventText: _ = "", borderColor: v = "", weekStart: y = "monday", max: b = 3, emptyText: x = "No events", style: S, nodeRef: C, interactive: w = !0 }) {
|
|
5176
5257
|
let { tenant: T, apiUrl: E, locale: D } = r(Q), O = r(et)?.[t], [k, j] = c(null), [M, N] = c(() => {
|
|
5177
5258
|
let e = /* @__PURE__ */ new Date();
|
|
5178
5259
|
return {
|
|
@@ -5195,13 +5276,13 @@ function Vr({ events: e = [], source: t = "", titleField: n = "", startField: a
|
|
|
5195
5276
|
E,
|
|
5196
5277
|
O
|
|
5197
5278
|
]);
|
|
5198
|
-
let P =
|
|
5279
|
+
let P = zr[m] ?? zr.medium, F = h || "var(--page-accent, #4f46e5)", I = v || "var(--page-border, rgba(148, 163, 184, 0.35))", L = g || F, R = _ || "var(--page-accent-text, #ffffff)", z = t ? Ur(O ?? k ?? [], {
|
|
5199
5280
|
titleField: n,
|
|
5200
5281
|
startField: a,
|
|
5201
5282
|
endField: o,
|
|
5202
5283
|
hrefField: s,
|
|
5203
5284
|
colorField: f
|
|
5204
|
-
}) :
|
|
5285
|
+
}) : Wr(e), B = Gr(z), V = D || void 0, H = (e, t) => {
|
|
5205
5286
|
let n = /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("span", { style: {
|
|
5206
5287
|
width: 6,
|
|
5207
5288
|
height: 6,
|
|
@@ -5333,9 +5414,9 @@ function Vr({ events: e = [], source: t = "", titleField: n = "", startField: a
|
|
|
5333
5414
|
})]
|
|
5334
5415
|
});
|
|
5335
5416
|
}
|
|
5336
|
-
let re = new Date(M.year, M.month, 1), ie = y === "sunday" ? 0 : 1, W = (re.getDay() - ie + 7) % 7, G = new Date(M.year, M.month + 1, 0).getDate(), K = Math.ceil((W + G) / 7), ae =
|
|
5417
|
+
let re = new Date(M.year, M.month, 1), ie = y === "sunday" ? 0 : 1, W = (re.getDay() - ie + 7) % 7, G = new Date(M.year, M.month + 1, 0).getDate(), K = Math.ceil((W + G) / 7), ae = Br(/* @__PURE__ */ new Date()), q = new Intl.DateTimeFormat(V, { weekday: "short" }), oe = [];
|
|
5337
5418
|
for (let e = 0; e < K * 7; e += 1) {
|
|
5338
|
-
let t = e - W + 1, n = t >= 1 && t <= G, r =
|
|
5419
|
+
let t = e - W + 1, n = t >= 1 && t <= G, r = Br(new Date(M.year, M.month, t)), i = n ? B.get(r) ?? [] : [], a = i.slice(0, Math.max(1, b)), o = n && r === ae;
|
|
5339
5420
|
oe.push(/* @__PURE__ */ d("div", {
|
|
5340
5421
|
style: {
|
|
5341
5422
|
minHeight: P.cell,
|
|
@@ -5400,12 +5481,12 @@ function Vr({ events: e = [], source: t = "", titleField: n = "", startField: a
|
|
|
5400
5481
|
]
|
|
5401
5482
|
});
|
|
5402
5483
|
}
|
|
5403
|
-
var
|
|
5484
|
+
var qr = {
|
|
5404
5485
|
small: 36,
|
|
5405
5486
|
medium: 56,
|
|
5406
5487
|
large: 88
|
|
5407
5488
|
};
|
|
5408
|
-
function
|
|
5489
|
+
function Jr(e, t = {}) {
|
|
5409
5490
|
let n = Array.isArray(e) ? e.filter((e) => e && typeof e == "object") : [], r = (e) => e == null ? "" : ct(e);
|
|
5410
5491
|
return n.map((e) => {
|
|
5411
5492
|
let n = e.data ?? e, i = ot(n, t.imageField), a = Array.isArray(i) ? i[0] : i, o = a && typeof a == "object" ? a.url ?? a.src ?? "" : a, s = t.nameField ? r(ot(n, t.nameField)) : r(n.name);
|
|
@@ -5416,7 +5497,7 @@ function Ur(e, t = {}) {
|
|
|
5416
5497
|
};
|
|
5417
5498
|
}).filter((e) => e.src);
|
|
5418
5499
|
}
|
|
5419
|
-
function
|
|
5500
|
+
function Yr({ logos: e = [], source: t = "", imageField: n = "", nameField: a = "", hrefField: o = "", variant: f = "step", size: p = "medium", perView: m = 5, gap: h = 48, hold: g = 3, slideMs: _ = 500, direction: v = "left", arrows: y = "show", pauseOnHover: b = !0, grayscale: x = !0, newTab: S = !0, emptyText: C = "", style: w, nodeRef: T, inert: E }) {
|
|
5420
5501
|
let { tenant: D, apiUrl: O } = r(Q), k = r(et)?.[t], [j, M] = c(null), N = s(null), P = s(null), [F, I] = c(0), [L, R] = c(0), [z, B] = c(0), [V, H] = c(!0), [U, ee] = c(!1), [te, ne] = c(!1);
|
|
5421
5502
|
i(() => {
|
|
5422
5503
|
if (!t || k) return;
|
|
@@ -5456,11 +5537,11 @@ function Wr({ logos: e = [], source: t = "", imageField: n = "", nameField: a =
|
|
|
5456
5537
|
t = !1, r.forEach((e) => e.removeEventListener("load", n));
|
|
5457
5538
|
};
|
|
5458
5539
|
});
|
|
5459
|
-
let re = Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.src) : [], ie = t ?
|
|
5540
|
+
let re = Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.src) : [], ie = t ? Jr(k ?? j ?? [], {
|
|
5460
5541
|
imageField: n,
|
|
5461
5542
|
nameField: a,
|
|
5462
5543
|
hrefField: o
|
|
5463
|
-
}) : re, W =
|
|
5544
|
+
}) : re, W = qr[p] ?? qr.medium, G = Number.isFinite(Number(h)) ? Math.max(0, Number(h)) : 48, ae = f === "marquee" ? "step" : f, q = Math.min(3e4, Math.max(300, (Number(g) || 3) * 1e3)), oe = Math.min(3e3, Math.max(100, Number(_) || 500)), se = Math.min(12, Math.max(1, Math.round(Number(m) || 5))), ce = (L || W * 3) + G, le = F ? Math.max(1, Math.floor(F / ce)) : se, ue = Math.min(se, le), J = F ? Math.min(ce, F / ue) : ce;
|
|
5464
5545
|
if (!ie.length) return /* @__PURE__ */ u("div", {
|
|
5465
5546
|
ref: T,
|
|
5466
5547
|
style: {
|
|
@@ -5645,7 +5726,7 @@ function Wr({ logos: e = [], source: t = "", imageField: n = "", nameField: a =
|
|
|
5645
5726
|
be,
|
|
5646
5727
|
Z ? xe(1) : null
|
|
5647
5728
|
] }),
|
|
5648
|
-
/* @__PURE__ */ u(
|
|
5729
|
+
/* @__PURE__ */ u(Xr, {
|
|
5649
5730
|
running: me,
|
|
5650
5731
|
every: q + oe,
|
|
5651
5732
|
slide: oe,
|
|
@@ -5659,7 +5740,7 @@ function Wr({ logos: e = [], source: t = "", imageField: n = "", nameField: a =
|
|
|
5659
5740
|
]
|
|
5660
5741
|
});
|
|
5661
5742
|
}
|
|
5662
|
-
function
|
|
5743
|
+
function Xr({ running: e, every: t, slide: n, step: r, index: a, total: o, home: s, setIndex: c, setAnimate: l }) {
|
|
5663
5744
|
i(() => {
|
|
5664
5745
|
if (!e) return;
|
|
5665
5746
|
let n = setInterval(() => {
|
|
@@ -5695,13 +5776,13 @@ function Gr({ running: e, every: t, slide: n, step: r, index: a, total: o, home:
|
|
|
5695
5776
|
l
|
|
5696
5777
|
]), null;
|
|
5697
5778
|
}
|
|
5698
|
-
var
|
|
5779
|
+
var Zr = {
|
|
5699
5780
|
small: 380,
|
|
5700
5781
|
medium: 560,
|
|
5701
5782
|
large: 820,
|
|
5702
5783
|
full: "100%"
|
|
5703
5784
|
};
|
|
5704
|
-
function
|
|
5785
|
+
function Qr({ dialogId: e = "", trigger: t = "button", triggerLabel: n = "Open", openOn: r = "trigger", delay: a = 0, size: o = "medium", title: l = "", showClose: f = !0, backdropClose: p = !0, position: m = "center", actions: h = [], showCloseAction: g = !1, closeLabel: _ = "Close", actionsAlign: v = "right", linked: y, style: b, nodeRef: x, inert: S = !1 }) {
|
|
5705
5786
|
let [C, w] = c(!1), T = s(null);
|
|
5706
5787
|
i(() => {
|
|
5707
5788
|
if (S || !e) return;
|
|
@@ -5726,7 +5807,7 @@ function qr({ dialogId: e = "", trigger: t = "button", triggerLabel: n = "Open",
|
|
|
5726
5807
|
document.removeEventListener("keydown", e), document.body.style.overflow = t;
|
|
5727
5808
|
};
|
|
5728
5809
|
}, [S, C]);
|
|
5729
|
-
let E =
|
|
5810
|
+
let E = Zr[o] ?? Zr.medium, D = (e) => {
|
|
5730
5811
|
let t = {
|
|
5731
5812
|
padding: "9px 16px",
|
|
5732
5813
|
borderRadius: 6,
|
|
@@ -5895,7 +5976,7 @@ function qr({ dialogId: e = "", trigger: t = "button", triggerLabel: n = "Open",
|
|
|
5895
5976
|
})]
|
|
5896
5977
|
});
|
|
5897
5978
|
}
|
|
5898
|
-
function
|
|
5979
|
+
function $r({ dropdownId: e = "", trigger: t = "button", triggerLabel: n = "Menu", openOn: r = "hover", align: a = "left", panelWidth: o = "", offset: l = 8, editorOpen: f = !0, linked: p, style: m, nodeRef: h, inert: g = !1 }) {
|
|
5899
5980
|
let [_, v] = c(!1), y = s(null), b = s(null), x = r !== "click", S = () => {
|
|
5900
5981
|
b.current && clearTimeout(b.current), b.current = null;
|
|
5901
5982
|
}, C = () => {
|
|
@@ -5996,101 +6077,102 @@ function Jr({ dropdownId: e = "", trigger: t = "button", triggerLabel: n = "Menu
|
|
|
5996
6077
|
}), E]
|
|
5997
6078
|
});
|
|
5998
6079
|
}
|
|
5999
|
-
var
|
|
6080
|
+
var ei = {
|
|
6000
6081
|
PageRoot: yt,
|
|
6001
|
-
MarkdownBlock:
|
|
6002
|
-
CalendarBlock:
|
|
6003
|
-
LogoCarousel:
|
|
6004
|
-
DialogBlock:
|
|
6005
|
-
DropdownBlock:
|
|
6082
|
+
MarkdownBlock: Rt,
|
|
6083
|
+
CalendarBlock: Kr,
|
|
6084
|
+
LogoCarousel: Yr,
|
|
6085
|
+
DialogBlock: Qr,
|
|
6086
|
+
DropdownBlock: $r,
|
|
6006
6087
|
Section: bt,
|
|
6007
6088
|
Container: xt,
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6089
|
+
LinkBlock: St,
|
|
6090
|
+
Heading: Ct,
|
|
6091
|
+
TextBlock: Ht,
|
|
6092
|
+
ButtonBlock: Kt,
|
|
6093
|
+
ImageBlock: qt,
|
|
6094
|
+
Spacer: tn,
|
|
6095
|
+
Divider: nn,
|
|
6096
|
+
BoxBlock: rn,
|
|
6097
|
+
SliderBlock: un,
|
|
6098
|
+
CanvasSlider: dn,
|
|
6099
|
+
TabsBlock: Dn,
|
|
6100
|
+
QuickStack: $n,
|
|
6101
|
+
CollectionList: er,
|
|
6102
|
+
CollectionSearch: tr,
|
|
6103
|
+
BreadcrumbsBlock: nr,
|
|
6104
|
+
PaginationBlock: rr,
|
|
6105
|
+
StepperBlock: br,
|
|
6106
|
+
SocialLinksBlock: yr,
|
|
6107
|
+
ThemeModeBlock: cr,
|
|
6108
|
+
ScrollTopBlock: _r,
|
|
6109
|
+
CounterBlock: gr,
|
|
6110
|
+
OrgChartBlock: Mr,
|
|
6111
|
+
TableBlock: Rr,
|
|
6112
|
+
IconBlock: bn,
|
|
6113
|
+
MapBlock: vn,
|
|
6114
|
+
MasonryBlock: Sn,
|
|
6115
|
+
AccordionBlock: On,
|
|
6116
|
+
NavbarBlock: En,
|
|
6117
|
+
ListBlock: Vt,
|
|
6118
|
+
TextSpan: Ot,
|
|
6119
|
+
QuoteBlock: Bt,
|
|
6120
|
+
TextLink: Gt,
|
|
6121
|
+
RichTextBlock: Lt,
|
|
6122
|
+
RichContentBlock: Lt,
|
|
6123
|
+
VideoBlock: Jt,
|
|
6124
|
+
YouTubeBlock: Xt,
|
|
6125
|
+
IframeBlock: Zt,
|
|
6126
|
+
EmbedBlock: en,
|
|
6127
|
+
FormBlock: Vn,
|
|
6128
|
+
FormLabel: Kn,
|
|
6129
|
+
FormInput: qn,
|
|
6130
|
+
FormTextarea: Jn,
|
|
6131
|
+
FormCheckbox: (e) => /* @__PURE__ */ u(Yn, {
|
|
6050
6132
|
kind: "checkbox",
|
|
6051
6133
|
...e
|
|
6052
6134
|
}),
|
|
6053
|
-
FormRadio: (e) => /* @__PURE__ */ u(
|
|
6135
|
+
FormRadio: (e) => /* @__PURE__ */ u(Yn, {
|
|
6054
6136
|
kind: "radio",
|
|
6055
6137
|
...e
|
|
6056
6138
|
}),
|
|
6057
|
-
FormSelect:
|
|
6058
|
-
FormFile:
|
|
6059
|
-
FormRecaptcha:
|
|
6060
|
-
FormSubmit:
|
|
6061
|
-
},
|
|
6139
|
+
FormSelect: Xn,
|
|
6140
|
+
FormFile: Zn,
|
|
6141
|
+
FormRecaptcha: Gn,
|
|
6142
|
+
FormSubmit: Qn
|
|
6143
|
+
}, ti = {
|
|
6062
6144
|
id: "auth",
|
|
6063
6145
|
label: "Accounts",
|
|
6064
6146
|
category: "Apps",
|
|
6065
6147
|
keys: ["SiteLoginForm", "SiteAccountMenu"],
|
|
6066
6148
|
ssr: "shell",
|
|
6067
6149
|
settings: ["site.authRedirect"]
|
|
6068
|
-
},
|
|
6150
|
+
}, ni = t({
|
|
6069
6151
|
user: null,
|
|
6070
6152
|
status: "idle",
|
|
6071
6153
|
ensure: () => {},
|
|
6072
6154
|
refresh: () => {},
|
|
6073
6155
|
signOut: () => {}
|
|
6074
6156
|
});
|
|
6075
|
-
function
|
|
6157
|
+
function ri(e, t) {
|
|
6076
6158
|
return t ? /^https?:\/\//i.test(t) ? t : `${e.replace(/\/+$/, "")}${t.startsWith("/") ? t : `/${t}`}` : "";
|
|
6077
6159
|
}
|
|
6078
|
-
function
|
|
6160
|
+
function ii(e) {
|
|
6079
6161
|
let t = e && typeof e == "object" ? e["site.session"] : null, n = t && typeof t == "object" && !Array.isArray(t) ? t : {}, r = (e) => typeof e == "string" ? e.trim() : "", i = r(n.url), a = r(n.mePath), o = r(n.logoutPath);
|
|
6080
6162
|
return {
|
|
6081
6163
|
mode: n.mode === "custom" || n.mode === "off" ? n.mode : "system",
|
|
6082
6164
|
url: i,
|
|
6083
6165
|
mePath: a,
|
|
6084
6166
|
logoutPath: o,
|
|
6085
|
-
meUrl:
|
|
6086
|
-
logoutUrl:
|
|
6167
|
+
meUrl: ri(i, a),
|
|
6168
|
+
logoutUrl: ri(i, o),
|
|
6087
6169
|
loginPage: r(n.loginPage),
|
|
6088
6170
|
userPath: r(n.userPath),
|
|
6089
6171
|
auth: n.auth === "bearer" ? "bearer" : "cookies",
|
|
6090
6172
|
tokenKey: r(n.tokenKey) || "webim_session_token"
|
|
6091
6173
|
};
|
|
6092
6174
|
}
|
|
6093
|
-
function
|
|
6175
|
+
function ai(e, t) {
|
|
6094
6176
|
if (!t) return e ?? null;
|
|
6095
6177
|
let n = e;
|
|
6096
6178
|
for (let e of t.split(".")) {
|
|
@@ -6099,26 +6181,26 @@ function ei(e, t) {
|
|
|
6099
6181
|
}
|
|
6100
6182
|
return n ?? null;
|
|
6101
6183
|
}
|
|
6102
|
-
function
|
|
6184
|
+
function oi(e) {
|
|
6103
6185
|
try {
|
|
6104
6186
|
return window.localStorage.getItem(e) || "";
|
|
6105
6187
|
} catch {
|
|
6106
6188
|
return "";
|
|
6107
6189
|
}
|
|
6108
6190
|
}
|
|
6109
|
-
function
|
|
6191
|
+
function si(e) {
|
|
6110
6192
|
try {
|
|
6111
6193
|
window.localStorage.removeItem(e);
|
|
6112
6194
|
} catch {}
|
|
6113
6195
|
}
|
|
6114
|
-
var
|
|
6115
|
-
let e = r(
|
|
6196
|
+
var ci = () => {
|
|
6197
|
+
let e = r(ni);
|
|
6116
6198
|
return i(() => {
|
|
6117
6199
|
e.ensure();
|
|
6118
6200
|
}, [e]), e;
|
|
6119
6201
|
};
|
|
6120
|
-
function
|
|
6121
|
-
let f = r(Q), p = l || f?.apiUrl || "/api", m = d || f?.tenant || "", h = o(() =>
|
|
6202
|
+
function li({ children: e, initialUser: t, disabled: a, apiUrl: l, tenant: d }) {
|
|
6203
|
+
let f = r(Q), p = l || f?.apiUrl || "/api", m = d || f?.tenant || "", h = o(() => ii(f?.settings), [f?.settings]), [g, _] = c(t ?? null), [v, y] = c(t ? "user" : a ? "guest" : "idle"), b = s(!1), x = n((e, t) => fetch(`${p}${e}`, {
|
|
6122
6204
|
...t,
|
|
6123
6205
|
credentials: "include",
|
|
6124
6206
|
headers: {
|
|
@@ -6130,9 +6212,9 @@ function ii({ children: e, initialUser: t, disabled: a, apiUrl: l, tenant: d })
|
|
|
6130
6212
|
if (a) return Promise.resolve(null);
|
|
6131
6213
|
if (h.mode === "off") return Promise.resolve(S(null));
|
|
6132
6214
|
if (h.mode === "custom") {
|
|
6133
|
-
let e = h.auth === "bearer" ?
|
|
6215
|
+
let e = h.auth === "bearer" ? oi(h.tokenKey) : "";
|
|
6134
6216
|
return !h.meUrl || h.auth === "bearer" && !e ? Promise.resolve(S(null)) : fetch(h.meUrl, { ...h.auth === "bearer" ? { headers: { authorization: `Bearer ${e}` } } : { credentials: "include" } }).then((e) => e.ok ? e.json() : null).then((e) => {
|
|
6135
|
-
let t =
|
|
6217
|
+
let t = ai(e, h.userPath);
|
|
6136
6218
|
return S(t && typeof t == "object" ? t : null);
|
|
6137
6219
|
}).catch(() => S(null));
|
|
6138
6220
|
}
|
|
@@ -6145,12 +6227,12 @@ function ii({ children: e, initialUser: t, disabled: a, apiUrl: l, tenant: d })
|
|
|
6145
6227
|
]), w = n(() => {
|
|
6146
6228
|
if (h.mode === "off") return S(null), Promise.resolve();
|
|
6147
6229
|
if (h.mode === "custom") {
|
|
6148
|
-
let e = h.auth === "bearer" ?
|
|
6230
|
+
let e = h.auth === "bearer" ? oi(h.tokenKey) : "";
|
|
6149
6231
|
return (h.logoutUrl ? fetch(h.logoutUrl, {
|
|
6150
6232
|
method: "post",
|
|
6151
6233
|
...h.auth === "bearer" ? { headers: e ? { authorization: `Bearer ${e}` } : {} } : { credentials: "include" }
|
|
6152
6234
|
}).catch(() => {}) : Promise.resolve()).then(() => {
|
|
6153
|
-
h.auth === "bearer" &&
|
|
6235
|
+
h.auth === "bearer" && si(h.tokenKey), S(null);
|
|
6154
6236
|
});
|
|
6155
6237
|
}
|
|
6156
6238
|
return x("/site/logout", { method: "post" }).catch(() => {}).then(() => {
|
|
@@ -6200,18 +6282,18 @@ function ii({ children: e, initialUser: t, disabled: a, apiUrl: l, tenant: d })
|
|
|
6200
6282
|
h.loginPage,
|
|
6201
6283
|
C,
|
|
6202
6284
|
w
|
|
6203
|
-
]), /* @__PURE__ */ u(
|
|
6285
|
+
]), /* @__PURE__ */ u(ni.Provider, {
|
|
6204
6286
|
value: E,
|
|
6205
6287
|
children: e
|
|
6206
6288
|
});
|
|
6207
6289
|
}
|
|
6208
|
-
function
|
|
6209
|
-
let { status: n } =
|
|
6290
|
+
function ui({ when: e, children: t }) {
|
|
6291
|
+
let { status: n } = ci();
|
|
6210
6292
|
return !e || e === "always" ? t : n === "idle" || n === "loading" ? null : e === "user" == (n === "user") ? t : null;
|
|
6211
6293
|
}
|
|
6212
6294
|
//#endregion
|
|
6213
6295
|
//#region ../ui/src/components/builder/apps/auth/views.jsx
|
|
6214
|
-
function
|
|
6296
|
+
function di({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordLabel: i = "Password", nameLabel: a = "Name", submitLabel: o, style: s, nodeRef: l, inert: f, linked: p, show: m }) {
|
|
6215
6297
|
let { tenant: h, apiUrl: g, settings: _ } = r(Q), [v, y] = c("form"), [b, x] = c(""), [S, C] = c(!1), w = e === "register", T = f ? m || "form" : v, E = (e) => typeof e == "string" && e.startsWith("/") && !e.startsWith("//") ? e : "", D = async (e) => {
|
|
6216
6298
|
if (e.preventDefault(), f) return;
|
|
6217
6299
|
let n = new FormData(e.currentTarget);
|
|
@@ -6260,20 +6342,20 @@ function oi({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
|
|
|
6260
6342
|
children: [
|
|
6261
6343
|
w ? /* @__PURE__ */ d("label", {
|
|
6262
6344
|
style: {
|
|
6263
|
-
...
|
|
6345
|
+
...An,
|
|
6264
6346
|
display: "grid",
|
|
6265
6347
|
gap: 6
|
|
6266
6348
|
},
|
|
6267
6349
|
children: [a, /* @__PURE__ */ u("input", {
|
|
6268
6350
|
name: "name",
|
|
6269
6351
|
type: "text",
|
|
6270
|
-
style:
|
|
6271
|
-
...
|
|
6352
|
+
style: jn,
|
|
6353
|
+
...Nn(f)
|
|
6272
6354
|
})]
|
|
6273
6355
|
}) : null,
|
|
6274
6356
|
/* @__PURE__ */ d("label", {
|
|
6275
6357
|
style: {
|
|
6276
|
-
...
|
|
6358
|
+
...An,
|
|
6277
6359
|
display: "grid",
|
|
6278
6360
|
gap: 6
|
|
6279
6361
|
},
|
|
@@ -6281,13 +6363,13 @@ function oi({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
|
|
|
6281
6363
|
name: "email",
|
|
6282
6364
|
type: "email",
|
|
6283
6365
|
required: !f,
|
|
6284
|
-
style:
|
|
6285
|
-
...
|
|
6366
|
+
style: jn,
|
|
6367
|
+
...Nn(f)
|
|
6286
6368
|
})]
|
|
6287
6369
|
}),
|
|
6288
6370
|
/* @__PURE__ */ d("label", {
|
|
6289
6371
|
style: {
|
|
6290
|
-
...
|
|
6372
|
+
...An,
|
|
6291
6373
|
display: "grid",
|
|
6292
6374
|
gap: 6
|
|
6293
6375
|
},
|
|
@@ -6295,8 +6377,8 @@ function oi({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
|
|
|
6295
6377
|
name: "password",
|
|
6296
6378
|
type: "password",
|
|
6297
6379
|
required: !f,
|
|
6298
|
-
style:
|
|
6299
|
-
...
|
|
6380
|
+
style: jn,
|
|
6381
|
+
...Nn(f)
|
|
6300
6382
|
})]
|
|
6301
6383
|
}),
|
|
6302
6384
|
/* @__PURE__ */ u("button", {
|
|
@@ -6335,8 +6417,8 @@ function oi({ mode: e = "login", redirect: t, emailLabel: n = "Email", passwordL
|
|
|
6335
6417
|
]
|
|
6336
6418
|
});
|
|
6337
6419
|
}
|
|
6338
|
-
function
|
|
6339
|
-
let { user: c, status: l, signOut: f } =
|
|
6420
|
+
function fi({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !1, style: r, nodeRef: i, inert: a, linked: o, show: s }) {
|
|
6421
|
+
let { user: c, status: l, signOut: f } = ci(), p = a ? s || "user" : l, m = a ? {
|
|
6340
6422
|
name: "Ada Lovelace",
|
|
6341
6423
|
email: "ada@example.com"
|
|
6342
6424
|
} : c;
|
|
@@ -6357,7 +6439,7 @@ function si({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
|
|
|
6357
6439
|
children: [
|
|
6358
6440
|
/* @__PURE__ */ d("span", {
|
|
6359
6441
|
style: {
|
|
6360
|
-
...
|
|
6442
|
+
...An,
|
|
6361
6443
|
fontWeight: 600
|
|
6362
6444
|
},
|
|
6363
6445
|
children: [
|
|
@@ -6368,7 +6450,7 @@ function si({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
|
|
|
6368
6450
|
}),
|
|
6369
6451
|
n && m?.email ? /* @__PURE__ */ u("span", {
|
|
6370
6452
|
style: {
|
|
6371
|
-
...
|
|
6453
|
+
...An,
|
|
6372
6454
|
opacity: .7
|
|
6373
6455
|
},
|
|
6374
6456
|
children: m.email
|
|
@@ -6384,7 +6466,7 @@ function si({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
|
|
|
6384
6466
|
fontSize: 14,
|
|
6385
6467
|
cursor: a ? "default" : "pointer"
|
|
6386
6468
|
},
|
|
6387
|
-
...
|
|
6469
|
+
...Nn(a),
|
|
6388
6470
|
children: t
|
|
6389
6471
|
})
|
|
6390
6472
|
]
|
|
@@ -6401,40 +6483,40 @@ function si({ greeting: e = "Hi", signOutLabel: t = "Sign out", showEmail: n = !
|
|
|
6401
6483
|
}
|
|
6402
6484
|
//#endregion
|
|
6403
6485
|
//#region ../ui/src/components/builder/apps/consent/manifest.js
|
|
6404
|
-
var
|
|
6486
|
+
var pi = {
|
|
6405
6487
|
id: "consent",
|
|
6406
6488
|
label: "Cookie consent",
|
|
6407
6489
|
category: "Apps",
|
|
6408
6490
|
keys: ["CookieConsent"],
|
|
6409
6491
|
ssr: "shell",
|
|
6410
6492
|
settings: []
|
|
6411
|
-
},
|
|
6412
|
-
function
|
|
6493
|
+
}, mi = "webim.cookie_consent";
|
|
6494
|
+
function hi() {
|
|
6413
6495
|
try {
|
|
6414
|
-
let e = window.localStorage.getItem(
|
|
6496
|
+
let e = window.localStorage.getItem(mi), t = e ? JSON.parse(e) : null;
|
|
6415
6497
|
return t?.choice === "accepted" || t?.choice === "declined" ? t.choice : "";
|
|
6416
6498
|
} catch {
|
|
6417
6499
|
return "";
|
|
6418
6500
|
}
|
|
6419
6501
|
}
|
|
6420
|
-
function
|
|
6502
|
+
function gi(e) {
|
|
6421
6503
|
try {
|
|
6422
6504
|
document.querySelectorAll(".webim-page").forEach((t) => t.setAttribute("data-webim-consent", e));
|
|
6423
6505
|
} catch {}
|
|
6424
6506
|
}
|
|
6425
|
-
function
|
|
6507
|
+
function _i(e) {
|
|
6426
6508
|
try {
|
|
6427
|
-
window.localStorage.setItem(
|
|
6509
|
+
window.localStorage.setItem(mi, JSON.stringify({
|
|
6428
6510
|
choice: e,
|
|
6429
6511
|
at: (/* @__PURE__ */ new Date()).toISOString()
|
|
6430
6512
|
}));
|
|
6431
6513
|
} catch {}
|
|
6432
|
-
|
|
6514
|
+
gi(e);
|
|
6433
6515
|
try {
|
|
6434
6516
|
window.dispatchEvent(new CustomEvent("webim:consent", { detail: { choice: e } }));
|
|
6435
6517
|
} catch {}
|
|
6436
6518
|
}
|
|
6437
|
-
var
|
|
6519
|
+
var vi = {
|
|
6438
6520
|
bottom: {
|
|
6439
6521
|
left: 0,
|
|
6440
6522
|
right: 0,
|
|
@@ -6456,18 +6538,18 @@ var pi = {
|
|
|
6456
6538
|
maxWidth: 400
|
|
6457
6539
|
}
|
|
6458
6540
|
};
|
|
6459
|
-
function
|
|
6541
|
+
function yi({ message: e, acceptLabel: t, rejectLabel: n, showReject: r, linkLabel: a, linkHref: o, position: s, linked: f, style: p, nodeRef: m, inert: h }) {
|
|
6460
6542
|
let [g, _] = c(!!h), [v, y] = c(null), b = (e) => {
|
|
6461
6543
|
y(e), typeof m == "function" && m(e);
|
|
6462
6544
|
};
|
|
6463
6545
|
if (i(() => {
|
|
6464
6546
|
if (h) return;
|
|
6465
|
-
let e =
|
|
6466
|
-
e ?
|
|
6547
|
+
let e = hi();
|
|
6548
|
+
e ? gi(e) : _(!0);
|
|
6467
6549
|
}, [h, v]), !g) return null;
|
|
6468
6550
|
let x = (e) => () => {
|
|
6469
|
-
h || (
|
|
6470
|
-
}, S =
|
|
6551
|
+
h || (_i(e), _(!1));
|
|
6552
|
+
}, S = vi[s] ?? vi.bottom, C = {
|
|
6471
6553
|
appearance: "none",
|
|
6472
6554
|
font: "inherit",
|
|
6473
6555
|
fontSize: 14,
|
|
@@ -6547,37 +6629,37 @@ function mi({ message: e, acceptLabel: t, rejectLabel: n, showReject: r, linkLab
|
|
|
6547
6629
|
}
|
|
6548
6630
|
//#endregion
|
|
6549
6631
|
//#region ../ui/src/components/builder/apps/language/manifest.js
|
|
6550
|
-
var
|
|
6632
|
+
var bi = {
|
|
6551
6633
|
id: "language",
|
|
6552
6634
|
label: "Language",
|
|
6553
6635
|
category: "Apps",
|
|
6554
6636
|
keys: ["SiteLanguagePicker"],
|
|
6555
6637
|
ssr: "prefetch",
|
|
6556
6638
|
settings: ["locales"]
|
|
6557
|
-
},
|
|
6639
|
+
}, xi = {
|
|
6558
6640
|
id: "search",
|
|
6559
6641
|
label: "Search",
|
|
6560
6642
|
category: "Apps",
|
|
6561
6643
|
keys: ["SiteSearch"],
|
|
6562
6644
|
ssr: "prefetch",
|
|
6563
6645
|
settings: []
|
|
6564
|
-
},
|
|
6565
|
-
function
|
|
6646
|
+
}, Si = 50, Ci = 2e3;
|
|
6647
|
+
function wi() {
|
|
6566
6648
|
return typeof window > "u" ? "" : new URLSearchParams(window.location.search).get("q") ?? "";
|
|
6567
6649
|
}
|
|
6568
|
-
function
|
|
6650
|
+
function Ti(e, t) {
|
|
6569
6651
|
let n = e?.data ?? {}, r = [];
|
|
6570
6652
|
for (let e of Object.values(n)) {
|
|
6571
6653
|
let t = e == null ? "" : ct(e);
|
|
6572
|
-
if (t && r.push(t), r.join(" ").length >
|
|
6654
|
+
if (t && r.push(t), r.join(" ").length > Ci) break;
|
|
6573
6655
|
}
|
|
6574
|
-
return r.join(" ").slice(0,
|
|
6656
|
+
return r.join(" ").slice(0, Ci).toLocaleLowerCase(t || void 0);
|
|
6575
6657
|
}
|
|
6576
|
-
function
|
|
6577
|
-
let { tenant: b, apiUrl: x, locale: S } = r(Q), [C, w] = c(() =>
|
|
6658
|
+
function Ei({ placeholder: e = "Search…", buttonLabel: t = "Search", showButton: n = !0, live: a = !1, layout: o = "inline", includePages: l = !0, collections: f = [], limit: p = 10, emptyText: m = "Nothing found", hint: h = "", style: g, nodeRef: _, inert: v = !1, sample: y = !1 }) {
|
|
6659
|
+
let { tenant: b, apiUrl: x, locale: S } = r(Q), [C, w] = c(() => wi()), [T, E] = c(() => wi()), [D, O] = c(null), [k, j] = c(!1), M = s(null), N = o === "popup";
|
|
6578
6660
|
i(() => {
|
|
6579
6661
|
let e = () => {
|
|
6580
|
-
let e =
|
|
6662
|
+
let e = wi();
|
|
6581
6663
|
w(e), E(e);
|
|
6582
6664
|
};
|
|
6583
6665
|
return window.addEventListener("popstate", e), window.addEventListener("webim:urlchange", e), () => {
|
|
@@ -6628,7 +6710,7 @@ function xi({ placeholder: e = "Search…", buttonLabel: t = "Search", showButto
|
|
|
6628
6710
|
});
|
|
6629
6711
|
}
|
|
6630
6712
|
else for (let t of e.rows) {
|
|
6631
|
-
if (!
|
|
6713
|
+
if (!Ti(t, S).includes(P)) continue;
|
|
6632
6714
|
let n = t?.data ?? {}, r = ct(n.name) || "Untitled", i = ct(n.slug);
|
|
6633
6715
|
F.push({
|
|
6634
6716
|
key: `entry:${t.id}`,
|
|
@@ -6637,7 +6719,7 @@ function xi({ placeholder: e = "Search…", buttonLabel: t = "Search", showButto
|
|
|
6637
6719
|
kind: "entry"
|
|
6638
6720
|
});
|
|
6639
6721
|
}
|
|
6640
|
-
let I = F.slice(0, Math.min(Math.max(1, p),
|
|
6722
|
+
let I = F.slice(0, Math.min(Math.max(1, p), Si)), L = (e) => {
|
|
6641
6723
|
if (v) {
|
|
6642
6724
|
e.preventDefault(), w(T), j(!0);
|
|
6643
6725
|
return;
|
|
@@ -6719,7 +6801,7 @@ function xi({ placeholder: e = "Search…", buttonLabel: t = "Search", showButto
|
|
|
6719
6801
|
onChange: (e) => E(e.target.value),
|
|
6720
6802
|
onFocus: () => P && j(!0),
|
|
6721
6803
|
style: {
|
|
6722
|
-
...
|
|
6804
|
+
...jn,
|
|
6723
6805
|
flexGrow: 1,
|
|
6724
6806
|
minWidth: 0
|
|
6725
6807
|
}
|
|
@@ -6777,21 +6859,21 @@ function xi({ placeholder: e = "Search…", buttonLabel: t = "Search", showButto
|
|
|
6777
6859
|
}
|
|
6778
6860
|
//#endregion
|
|
6779
6861
|
//#region ../ui/src/components/builder/apps/language/views.jsx
|
|
6780
|
-
function
|
|
6862
|
+
function Di(e) {
|
|
6781
6863
|
let t = e?.locales, n = [typeof t?.default == "string" && t.default.trim() ? t.default.trim() : "", ...Array.isArray(t?.enabled) ? t.enabled : []].filter((e) => typeof e == "string" && e.trim());
|
|
6782
6864
|
return [...new Set(n.map((e) => e.trim()))];
|
|
6783
6865
|
}
|
|
6784
|
-
var
|
|
6785
|
-
function
|
|
6866
|
+
var Oi = (e) => e && e.charAt(0).toUpperCase() + e.slice(1);
|
|
6867
|
+
function ki(e, t) {
|
|
6786
6868
|
let n = String(e ?? "").toUpperCase();
|
|
6787
6869
|
if (t === "code") return n;
|
|
6788
6870
|
let r = "";
|
|
6789
6871
|
try {
|
|
6790
|
-
r =
|
|
6872
|
+
r = Oi(new Intl.DisplayNames([e], { type: "language" }).of(e) ?? "");
|
|
6791
6873
|
} catch {}
|
|
6792
6874
|
return !r || r.toUpperCase() === n ? n : t === "both" ? `${n} — ${r}` : r;
|
|
6793
6875
|
}
|
|
6794
|
-
function
|
|
6876
|
+
function Ai(e, t) {
|
|
6795
6877
|
let n = t ? "" : `?locale=${encodeURIComponent(e)}`;
|
|
6796
6878
|
if (typeof window > "u") return n || "?";
|
|
6797
6879
|
try {
|
|
@@ -6801,8 +6883,8 @@ function Ti(e, t) {
|
|
|
6801
6883
|
return n || "/";
|
|
6802
6884
|
}
|
|
6803
6885
|
}
|
|
6804
|
-
function
|
|
6805
|
-
let c = r(Q), l =
|
|
6886
|
+
function ji({ variant: e, display: t, separator: n, label: i, style: a, nodeRef: o, inert: s }) {
|
|
6887
|
+
let c = r(Q), l = Di(c?.settings), f = l[0] ?? "", p = l.includes(c?.locale) ? c.locale : f, m = {
|
|
6806
6888
|
display: "inline-flex",
|
|
6807
6889
|
alignItems: "center",
|
|
6808
6890
|
gap: 8,
|
|
@@ -6837,7 +6919,7 @@ function Ei({ variant: e, display: t, separator: n, label: i, style: a, nodeRef:
|
|
|
6837
6919
|
style: { opacity: .4 },
|
|
6838
6920
|
children: n ?? "·"
|
|
6839
6921
|
}), /* @__PURE__ */ u("a", {
|
|
6840
|
-
href:
|
|
6922
|
+
href: Ai(e, e === f),
|
|
6841
6923
|
hrefLang: e,
|
|
6842
6924
|
"aria-current": e === p ? "true" : void 0,
|
|
6843
6925
|
onClick: s ? (e) => e.preventDefault() : void 0,
|
|
@@ -6847,7 +6929,7 @@ function Ei({ variant: e, display: t, separator: n, label: i, style: a, nodeRef:
|
|
|
6847
6929
|
textDecoration: "none",
|
|
6848
6930
|
cursor: s ? "default" : "pointer"
|
|
6849
6931
|
},
|
|
6850
|
-
children:
|
|
6932
|
+
children: ki(e, t)
|
|
6851
6933
|
})]
|
|
6852
6934
|
}, e))]
|
|
6853
6935
|
}) : /* @__PURE__ */ d("div", {
|
|
@@ -6858,7 +6940,7 @@ function Ei({ variant: e, display: t, separator: n, label: i, style: a, nodeRef:
|
|
|
6858
6940
|
value: p,
|
|
6859
6941
|
onChange: s ? void 0 : (e) => {
|
|
6860
6942
|
let t = e.target.value;
|
|
6861
|
-
window.location.assign(
|
|
6943
|
+
window.location.assign(Ai(t, t === f));
|
|
6862
6944
|
},
|
|
6863
6945
|
onKeyDown: s ? (e) => e.preventDefault() : void 0,
|
|
6864
6946
|
style: {
|
|
@@ -6872,47 +6954,47 @@ function Ei({ variant: e, display: t, separator: n, label: i, style: a, nodeRef:
|
|
|
6872
6954
|
},
|
|
6873
6955
|
children: l.map((e) => /* @__PURE__ */ u("option", {
|
|
6874
6956
|
value: e,
|
|
6875
|
-
children:
|
|
6957
|
+
children: ki(e, t)
|
|
6876
6958
|
}, e))
|
|
6877
6959
|
})]
|
|
6878
6960
|
});
|
|
6879
6961
|
}
|
|
6880
6962
|
//#endregion
|
|
6881
6963
|
//#region ../ui/src/components/builder/apps/index.js
|
|
6882
|
-
var
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
],
|
|
6888
|
-
SiteLoginForm:
|
|
6889
|
-
SiteAccountMenu:
|
|
6890
|
-
SiteLanguagePicker:
|
|
6891
|
-
CookieConsent:
|
|
6892
|
-
SiteSearch:
|
|
6964
|
+
var Mi = [
|
|
6965
|
+
ti,
|
|
6966
|
+
bi,
|
|
6967
|
+
pi,
|
|
6968
|
+
xi
|
|
6969
|
+
], Ni = {
|
|
6970
|
+
SiteLoginForm: di,
|
|
6971
|
+
SiteAccountMenu: fi,
|
|
6972
|
+
SiteLanguagePicker: ji,
|
|
6973
|
+
CookieConsent: yi,
|
|
6974
|
+
SiteSearch: Ei
|
|
6893
6975
|
};
|
|
6894
|
-
new Set(
|
|
6976
|
+
new Set(Mi.filter((e) => e.ssr === "shell").flatMap((e) => e.keys));
|
|
6895
6977
|
//#endregion
|
|
6896
6978
|
//#region ../ui/src/components/builder/three/runtime.js
|
|
6897
|
-
var
|
|
6979
|
+
var Pi = "0.185.1", Fi = "4.2.0", Ii = "https://cdn.jsdelivr.net/npm", Li = `${Ii}/three@${Pi}/+esm`, Ri = `${Ii}/@google/model-viewer@${Fi}/dist/model-viewer.min.js`, zi = (e) => import(
|
|
6898
6980
|
/* @vite-ignore */
|
|
6899
6981
|
/* webpackIgnore: true */
|
|
6900
6982
|
e
|
|
6901
|
-
),
|
|
6902
|
-
function
|
|
6903
|
-
if (
|
|
6983
|
+
), Bi = /* @__PURE__ */ new Map();
|
|
6984
|
+
function Vi(e) {
|
|
6985
|
+
if (Bi.has(e)) return Bi.get(e);
|
|
6904
6986
|
if (typeof window > "u") return new Promise(() => {});
|
|
6905
|
-
let t =
|
|
6906
|
-
throw
|
|
6987
|
+
let t = zi(e).catch((t) => {
|
|
6988
|
+
throw Bi.delete(e), t;
|
|
6907
6989
|
});
|
|
6908
|
-
return
|
|
6990
|
+
return Bi.set(e, t), t;
|
|
6909
6991
|
}
|
|
6910
|
-
var
|
|
6911
|
-
function
|
|
6912
|
-
return typeof window < "u" && window.customElements?.get("model-viewer") ? Promise.resolve(null) :
|
|
6992
|
+
var Hi = () => Vi(Li), Ui = (e) => Vi(`${Ii}/three@${Pi}/examples/jsm/${e}/+esm`);
|
|
6993
|
+
function Wi() {
|
|
6994
|
+
return typeof window < "u" && window.customElements?.get("model-viewer") ? Promise.resolve(null) : Vi(Ri);
|
|
6913
6995
|
}
|
|
6914
|
-
var
|
|
6915
|
-
function
|
|
6996
|
+
var Gi = () => typeof window < "u" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, Ki = (e = 2) => Math.min(typeof window > "u" ? 1 : window.devicePixelRatio || 1, e);
|
|
6997
|
+
function qi(e, t) {
|
|
6916
6998
|
let n = 0, r = 0, i = 0, a = !0, o = (e) => {
|
|
6917
6999
|
n = requestAnimationFrame(o), i ||= e;
|
|
6918
7000
|
let a = r ? (e - r) / 1e3 : 0;
|
|
@@ -6931,7 +7013,7 @@ function Hi(e, t) {
|
|
|
6931
7013
|
s(), l?.disconnect(), document.removeEventListener("visibilitychange", c);
|
|
6932
7014
|
};
|
|
6933
7015
|
}
|
|
6934
|
-
function
|
|
7016
|
+
function Ji(e, t, n = {}) {
|
|
6935
7017
|
let r = {
|
|
6936
7018
|
radius: n.distance ?? 4,
|
|
6937
7019
|
polar: n.polar ?? Math.PI / 2.4,
|
|
@@ -6980,13 +7062,13 @@ function Ui(e, t, n = {}) {
|
|
|
6980
7062
|
}
|
|
6981
7063
|
//#endregion
|
|
6982
7064
|
//#region ../ui/src/components/builder/three/views.jsx
|
|
6983
|
-
var
|
|
6984
|
-
function
|
|
7065
|
+
var Yi = (e, t) => Number.isFinite(Number(e)) && Number(e) > 0 ? Number(e) : t, Xi = (e, t) => (Number.isFinite(Number(e)) ? Number(e) : t) / 100, Zi = (e) => (Number.isFinite(Number(e)) ? Number(e) : 0) * Math.PI / 180, Qi = (e) => typeof e == "string" && !!e.trim();
|
|
7066
|
+
function $i({ label: e, note: t, height: n, nodeRef: r, style: i }) {
|
|
6985
7067
|
return /* @__PURE__ */ d("div", {
|
|
6986
7068
|
ref: r,
|
|
6987
7069
|
style: {
|
|
6988
7070
|
...A(i),
|
|
6989
|
-
minHeight:
|
|
7071
|
+
minHeight: Yi(n, 320),
|
|
6990
7072
|
display: "flex",
|
|
6991
7073
|
flexDirection: "column",
|
|
6992
7074
|
alignItems: "center",
|
|
@@ -7014,24 +7096,24 @@ function Ji({ label: e, note: t, height: n, nodeRef: r, style: i }) {
|
|
|
7014
7096
|
}) : null]
|
|
7015
7097
|
});
|
|
7016
7098
|
}
|
|
7017
|
-
function
|
|
7099
|
+
function ea({ src: e, poster: t, alt: n, height: r, bg: a, autoRotate: o, rotateDelay: s, cameraControls: l, ar: d, exposure: f, shadow: p, fieldOfView: m, environment: h, style: g, nodeRef: _, inert: v }) {
|
|
7018
7100
|
let [y, b] = c(typeof window < "u" && !!window.customElements?.get("model-viewer")), [x, S] = c(!1);
|
|
7019
7101
|
i(() => {
|
|
7020
7102
|
if (y || !e) return;
|
|
7021
7103
|
let t = !0;
|
|
7022
|
-
return
|
|
7104
|
+
return Wi().then(() => t && b(!0), () => t && S(!0)), () => {
|
|
7023
7105
|
t = !1;
|
|
7024
7106
|
};
|
|
7025
7107
|
}, [y, e]);
|
|
7026
7108
|
let C = {
|
|
7027
7109
|
display: "block",
|
|
7028
7110
|
width: "100%",
|
|
7029
|
-
minHeight:
|
|
7030
|
-
height:
|
|
7111
|
+
minHeight: Yi(r, 360),
|
|
7112
|
+
height: Yi(r, 360),
|
|
7031
7113
|
backgroundColor: a || "transparent",
|
|
7032
7114
|
...A(g)
|
|
7033
7115
|
};
|
|
7034
|
-
if (!e) return v ? /* @__PURE__ */ u(
|
|
7116
|
+
if (!e) return v ? /* @__PURE__ */ u($i, {
|
|
7035
7117
|
nodeRef: _,
|
|
7036
7118
|
style: g,
|
|
7037
7119
|
height: r,
|
|
@@ -7066,13 +7148,13 @@ function Yi({ src: e, poster: t, alt: n, height: r, bg: a, autoRotate: o, rotate
|
|
|
7066
7148
|
poster: t || void 0,
|
|
7067
7149
|
style: C,
|
|
7068
7150
|
"camera-controls": w(!v && l !== !1),
|
|
7069
|
-
"auto-rotate": w(T && !
|
|
7070
|
-
"auto-rotate-delay": T ? String(
|
|
7151
|
+
"auto-rotate": w(T && !Gi()),
|
|
7152
|
+
"auto-rotate-delay": T ? String(Yi(s, 0)) : void 0,
|
|
7071
7153
|
"rotation-per-second": "18deg",
|
|
7072
7154
|
ar: w(!v && d === !0),
|
|
7073
7155
|
"ar-modes": "webxr scene-viewer quick-look",
|
|
7074
|
-
"shadow-intensity": String(
|
|
7075
|
-
exposure: String(
|
|
7156
|
+
"shadow-intensity": String(Xi(p, 100)),
|
|
7157
|
+
exposure: String(Xi(f, 100)),
|
|
7076
7158
|
"field-of-view": m ? `${Number(m)}deg` : void 0,
|
|
7077
7159
|
"environment-image": h && h !== "neutral" ? h : "neutral",
|
|
7078
7160
|
"interaction-prompt": v ? "none" : void 0,
|
|
@@ -7090,7 +7172,7 @@ function Yi({ src: e, poster: t, alt: n, height: r, bg: a, autoRotate: o, rotate
|
|
|
7090
7172
|
}) : null
|
|
7091
7173
|
});
|
|
7092
7174
|
}
|
|
7093
|
-
var
|
|
7175
|
+
var ta = ["attribute vec2 p;", "void main() { gl_Position = vec4(p, 0.0, 1.0); }"].join("\n"), na = [
|
|
7094
7176
|
"precision highp float;",
|
|
7095
7177
|
"uniform vec2 u_res;",
|
|
7096
7178
|
"uniform float u_time;",
|
|
@@ -7113,7 +7195,7 @@ var Xi = ["attribute vec2 p;", "void main() { gl_Position = vec4(p, 0.0, 1.0); }
|
|
|
7113
7195
|
" return v;",
|
|
7114
7196
|
"}",
|
|
7115
7197
|
""
|
|
7116
|
-
].join("\n"),
|
|
7198
|
+
].join("\n"), ra = {
|
|
7117
7199
|
gradient: [
|
|
7118
7200
|
"void main(){",
|
|
7119
7201
|
" vec2 uv = gl_FragCoord.xy / u_res;",
|
|
@@ -7165,7 +7247,7 @@ var Xi = ["attribute vec2 p;", "void main() { gl_Position = vec4(p, 0.0, 1.0); }
|
|
|
7165
7247
|
"}"
|
|
7166
7248
|
].join("\n")
|
|
7167
7249
|
};
|
|
7168
|
-
function
|
|
7250
|
+
function ia(e, t) {
|
|
7169
7251
|
let n = /^#?([0-9a-f]{6})$/i.exec(String(e ?? "").trim());
|
|
7170
7252
|
if (!n) return t;
|
|
7171
7253
|
let r = parseInt(n[1], 16);
|
|
@@ -7175,7 +7257,7 @@ function $i(e, t) {
|
|
|
7175
7257
|
(r & 255) / 255
|
|
7176
7258
|
];
|
|
7177
7259
|
}
|
|
7178
|
-
function
|
|
7260
|
+
function aa(e, t, n) {
|
|
7179
7261
|
let r = e.createShader(t);
|
|
7180
7262
|
if (e.shaderSource(r, n), e.compileShader(r), !e.getShaderParameter(r, e.COMPILE_STATUS)) {
|
|
7181
7263
|
let t = e.getShaderInfoLog(r);
|
|
@@ -7183,13 +7265,13 @@ function ea(e, t, n) {
|
|
|
7183
7265
|
}
|
|
7184
7266
|
return r;
|
|
7185
7267
|
}
|
|
7186
|
-
function
|
|
7268
|
+
function oa({ preset: e, code: t, colorA: n, colorB: r, colorC: a, speed: o, scale: l, height: f, interactive: p, style: m, nodeRef: h, inert: g }) {
|
|
7187
7269
|
let _ = s(null), v = s(null), y = s(null), [b, x] = c("");
|
|
7188
7270
|
i(() => () => {
|
|
7189
7271
|
let e = y.current;
|
|
7190
7272
|
y.current = null, e?.getExtension("WEBGL_lose_context")?.loseContext();
|
|
7191
7273
|
}, []);
|
|
7192
|
-
let S = typeof t == "string" && t.trim() ? t :
|
|
7274
|
+
let S = typeof t == "string" && t.trim() ? t : ra[e] ?? ra.gradient, C = String(n ?? ""), w = String(r ?? ""), T = String(a ?? ""), E = Xi(o, 100), D = Math.max(.05, Xi(l, 100));
|
|
7193
7275
|
return i(() => {
|
|
7194
7276
|
let e = _.current, t = v.current;
|
|
7195
7277
|
if (!e || !t) return;
|
|
@@ -7204,7 +7286,7 @@ function ta({ preset: e, code: t, colorA: n, colorB: r, colorC: a, speed: o, sca
|
|
|
7204
7286
|
}
|
|
7205
7287
|
let r = null;
|
|
7206
7288
|
try {
|
|
7207
|
-
let e =
|
|
7289
|
+
let e = aa(n, n.VERTEX_SHADER, ta), t = aa(n, n.FRAGMENT_SHADER, na + S);
|
|
7208
7290
|
if (r = n.createProgram(), n.attachShader(r, e), n.attachShader(r, t), n.linkProgram(r), !n.getProgramParameter(r, n.LINK_STATUS)) throw Error(n.getProgramInfoLog(r) || "Link failed");
|
|
7209
7291
|
x("");
|
|
7210
7292
|
} catch (e) {
|
|
@@ -7240,28 +7322,28 @@ function ta({ preset: e, code: t, colorA: n, colorB: r, colorC: a, speed: o, sca
|
|
|
7240
7322
|
};
|
|
7241
7323
|
p !== !1 && t.addEventListener("pointermove", l);
|
|
7242
7324
|
let u = () => {
|
|
7243
|
-
let r =
|
|
7325
|
+
let r = Ki(), i = Math.max(1, Math.round(t.clientWidth * r)), a = Math.max(1, Math.round(t.clientHeight * r));
|
|
7244
7326
|
(e.width !== i || e.height !== a) && (e.width = i, e.height = a, n.viewport(0, 0, i, a));
|
|
7245
7327
|
}, d = typeof ResizeObserver > "u" ? null : new ResizeObserver(u);
|
|
7246
7328
|
d?.observe(t), u();
|
|
7247
|
-
let f =
|
|
7248
|
-
a:
|
|
7329
|
+
let f = Gi(), m = {
|
|
7330
|
+
a: ia(C, [
|
|
7249
7331
|
.35,
|
|
7250
7332
|
.4,
|
|
7251
7333
|
.95
|
|
7252
7334
|
]),
|
|
7253
|
-
b:
|
|
7335
|
+
b: ia(w, [
|
|
7254
7336
|
.05,
|
|
7255
7337
|
.06,
|
|
7256
7338
|
.16
|
|
7257
7339
|
]),
|
|
7258
|
-
c:
|
|
7340
|
+
c: ia(T, [
|
|
7259
7341
|
.95,
|
|
7260
7342
|
.35,
|
|
7261
7343
|
.6
|
|
7262
7344
|
])
|
|
7263
7345
|
}, h = {};
|
|
7264
|
-
return h.stop =
|
|
7346
|
+
return h.stop = qi(t, (t, r) => {
|
|
7265
7347
|
u(), n.uniform2f(s.res, e.width, e.height), n.uniform1f(s.time, (f ? 0 : r) * E), n.uniform2f(s.mouse, c.x, c.y), n.uniform3fv(s.a, m.a), n.uniform3fv(s.b, m.b), n.uniform3fv(s.c, m.c), n.uniform1f(s.scale, D), n.drawArrays(n.TRIANGLES, 0, 3), f && h.stop?.();
|
|
7266
7348
|
}), () => {
|
|
7267
7349
|
h.stop?.(), d?.disconnect(), t.removeEventListener("pointermove", l), n.deleteProgram(r), n.deleteBuffer(i);
|
|
@@ -7280,7 +7362,7 @@ function ta({ preset: e, code: t, colorA: n, colorB: r, colorC: a, speed: o, sca
|
|
|
7280
7362
|
},
|
|
7281
7363
|
style: {
|
|
7282
7364
|
position: "relative",
|
|
7283
|
-
minHeight:
|
|
7365
|
+
minHeight: Yi(f, 320),
|
|
7284
7366
|
overflow: "hidden",
|
|
7285
7367
|
...A(m)
|
|
7286
7368
|
},
|
|
@@ -7312,7 +7394,7 @@ function ta({ preset: e, code: t, colorA: n, colorB: r, colorC: a, speed: o, sca
|
|
|
7312
7394
|
}) : null]
|
|
7313
7395
|
});
|
|
7314
7396
|
}
|
|
7315
|
-
function
|
|
7397
|
+
function sa(e, t) {
|
|
7316
7398
|
let n = new e.Scene(), r = new e.BoxGeometry();
|
|
7317
7399
|
r.deleteAttribute("uv");
|
|
7318
7400
|
let i = new e.Mesh(r, new e.MeshBasicMaterial({
|
|
@@ -7328,23 +7410,23 @@ function na(e, t) {
|
|
|
7328
7410
|
let o = new e.PMREMGenerator(t), s = o.fromScene(n, .04);
|
|
7329
7411
|
return o.dispose(), r.dispose(), n.traverse((e) => e.material?.dispose?.()), s.texture;
|
|
7330
7412
|
}
|
|
7331
|
-
var
|
|
7332
|
-
function
|
|
7333
|
-
if (
|
|
7334
|
-
let t =
|
|
7413
|
+
var ca = /* @__PURE__ */ new Map();
|
|
7414
|
+
function la(e) {
|
|
7415
|
+
if (ca.has(e)) return ca.get(e);
|
|
7416
|
+
let t = Ui("loaders/GLTFLoader.js").then((t) => new Promise((n, r) => {
|
|
7335
7417
|
new t.GLTFLoader().load(e, (e) => n(e.scene), void 0, r);
|
|
7336
7418
|
})).catch((t) => {
|
|
7337
|
-
throw
|
|
7419
|
+
throw ca.delete(e), t;
|
|
7338
7420
|
});
|
|
7339
|
-
return
|
|
7421
|
+
return ca.set(e, t), t;
|
|
7340
7422
|
}
|
|
7341
|
-
function
|
|
7423
|
+
function ua(e, t) {
|
|
7342
7424
|
let n = new e.Box3().setFromObject(t);
|
|
7343
7425
|
if (n.isEmpty()) return t;
|
|
7344
7426
|
let r = n.getSize(new e.Vector3()), i = n.getCenter(new e.Vector3()), a = Math.max(r.x, r.y, r.z) || 1, o = new e.Group();
|
|
7345
7427
|
return t.position.sub(i), t.scale.multiplyScalar(1 / a), t.position.multiplyScalar(1 / a), o.add(t), o;
|
|
7346
7428
|
}
|
|
7347
|
-
var
|
|
7429
|
+
var da = {
|
|
7348
7430
|
box: (e) => new e.BoxGeometry(1, 1, 1, 1, 1, 1),
|
|
7349
7431
|
sphere: (e) => new e.SphereGeometry(.62, 48, 32),
|
|
7350
7432
|
torus: (e) => new e.TorusGeometry(.5, .2, 24, 64),
|
|
@@ -7353,50 +7435,50 @@ var oa = {
|
|
|
7353
7435
|
cylinder: (e) => new e.CylinderGeometry(.45, .45, 1.1, 48),
|
|
7354
7436
|
plane: (e) => new e.PlaneGeometry(1.4, 1.4),
|
|
7355
7437
|
capsule: (e) => new e.CapsuleGeometry(.35, .6, 8, 32)
|
|
7356
|
-
},
|
|
7357
|
-
function
|
|
7358
|
-
let g = s(null), [_, v] = c(!1), y = Array.isArray(e) ? e.filter((e) => e && typeof e == "object") : [], b = JSON.stringify(y), x = a !== !1 && !
|
|
7438
|
+
}, fa = (e, t) => Number.isFinite(Number(e)) ? Number(e) : t;
|
|
7439
|
+
function pa({ objects: e, background: t, cameraDistance: n, fov: r, autoRotate: a, spinSpeed: o, controls: l, ground: d, height: f, style: p, nodeRef: m, inert: h }) {
|
|
7440
|
+
let g = s(null), [_, v] = c(!1), y = Array.isArray(e) ? e.filter((e) => e && typeof e == "object") : [], b = JSON.stringify(y), x = a !== !1 && !Gi(), S = l !== !1 && !h;
|
|
7359
7441
|
return i(() => {
|
|
7360
7442
|
let e = g.current;
|
|
7361
7443
|
if (!e) return;
|
|
7362
7444
|
let i = !0, a = null;
|
|
7363
|
-
return
|
|
7445
|
+
return Hi().then((s) => {
|
|
7364
7446
|
if (!i || !e) return;
|
|
7365
7447
|
let c = new s.WebGLRenderer({
|
|
7366
7448
|
antialias: !0,
|
|
7367
7449
|
alpha: !t
|
|
7368
7450
|
});
|
|
7369
|
-
c.setPixelRatio(
|
|
7451
|
+
c.setPixelRatio(Ki()), c.shadowMap.enabled = d !== !1, c.shadowMap.type = s.PCFSoftShadowMap, c.outputColorSpace = s.SRGBColorSpace, c.toneMapping = s.ACESFilmicToneMapping, c.domElement.style.display = "block", c.domElement.style.width = "100%", c.domElement.style.height = "100%", e.appendChild(c.domElement);
|
|
7370
7452
|
let l = new s.Scene();
|
|
7371
|
-
t && (l.background = new s.Color(t)), l.environment =
|
|
7372
|
-
let u = new s.PerspectiveCamera(
|
|
7373
|
-
distance:
|
|
7453
|
+
t && (l.background = new s.Color(t)), l.environment = sa(s, c);
|
|
7454
|
+
let u = new s.PerspectiveCamera(fa(r, 45), 1, .1, 400), f = Ji(u, c.domElement, {
|
|
7455
|
+
distance: fa(n, 5),
|
|
7374
7456
|
enableZoom: S
|
|
7375
7457
|
}), p = new s.DirectionalLight(16777215, 2.2);
|
|
7376
7458
|
p.position.set(4, 7, 5), p.castShadow = d !== !1, p.shadow.mapSize.set(1024, 1024), p.shadow.camera.near = .5, p.shadow.camera.far = 30, l.add(p, new s.AmbientLight(16777215, .35));
|
|
7377
7459
|
let m = [], h = new s.Group(), g = (e, t) => {
|
|
7378
|
-
let n =
|
|
7379
|
-
e.position.set(
|
|
7460
|
+
let n = fa(t.scale, 1);
|
|
7461
|
+
e.position.set(fa(t.x, 0), fa(t.y, 0), fa(t.z, 0)), e.rotation.set(Zi(t.rx), Zi(t.ry), Zi(t.rz)), e.scale.setScalar(n > 0 ? n : 1), e.userData.spin = Zi(t.spin);
|
|
7380
7462
|
};
|
|
7381
7463
|
for (let e of y) {
|
|
7382
7464
|
if (e.shape === "model") {
|
|
7383
|
-
if (!
|
|
7465
|
+
if (!Qi(e.src)) continue;
|
|
7384
7466
|
let t = new s.Group();
|
|
7385
|
-
g(t, e), h.add(t),
|
|
7467
|
+
g(t, e), h.add(t), la(e.src).then((e) => {
|
|
7386
7468
|
if (!i) return;
|
|
7387
|
-
let n =
|
|
7469
|
+
let n = ua(s, e.clone(!0));
|
|
7388
7470
|
n.traverse((e) => {
|
|
7389
7471
|
e.isMesh && (e.castShadow = !0, e.receiveShadow = !0);
|
|
7390
7472
|
}), t.add(n);
|
|
7391
7473
|
}, () => {});
|
|
7392
7474
|
continue;
|
|
7393
7475
|
}
|
|
7394
|
-
let t = (
|
|
7476
|
+
let t = (da[e.shape] ?? da.box)(s), n = new s.MeshStandardMaterial({
|
|
7395
7477
|
color: /^#?[0-9a-f]{6}$/i.test(String(e.color ?? "")) ? e.color : "#6366f1",
|
|
7396
|
-
metalness: Math.min(1, Math.max(0,
|
|
7397
|
-
roughness: Math.min(1, Math.max(0,
|
|
7398
|
-
transparent:
|
|
7399
|
-
opacity: Math.min(1, Math.max(0,
|
|
7478
|
+
metalness: Math.min(1, Math.max(0, Xi(e.metalness, 10))),
|
|
7479
|
+
roughness: Math.min(1, Math.max(0, Xi(e.roughness, 35))),
|
|
7480
|
+
transparent: Xi(e.opacity, 100) < 1,
|
|
7481
|
+
opacity: Math.min(1, Math.max(0, Xi(e.opacity, 100))),
|
|
7400
7482
|
flatShading: e.flat === !0,
|
|
7401
7483
|
wireframe: e.wireframe === !0,
|
|
7402
7484
|
side: e.shape === "plane" ? s.DoubleSide : s.FrontSide
|
|
@@ -7407,14 +7489,14 @@ function ca({ objects: e, background: t, cameraDistance: n, fov: r, autoRotate:
|
|
|
7407
7489
|
let _ = null;
|
|
7408
7490
|
if (d !== !1) {
|
|
7409
7491
|
let e = new s.ShadowMaterial({ opacity: .22 }), t = new s.PlaneGeometry(60, 60);
|
|
7410
|
-
_ = new s.Mesh(t, e), _.rotation.x = -Math.PI / 2, _.position.y =
|
|
7492
|
+
_ = new s.Mesh(t, e), _.rotation.x = -Math.PI / 2, _.position.y = fa(d === !0 ? 0 : d, -.85), _.receiveShadow = !0, l.add(_), m.push(t, e);
|
|
7411
7493
|
}
|
|
7412
7494
|
let v = () => {
|
|
7413
7495
|
let t = Math.max(1, e.clientWidth), n = Math.max(1, e.clientHeight);
|
|
7414
7496
|
c.setSize(t, n, !1), u.aspect = t / n, u.updateProjectionMatrix();
|
|
7415
7497
|
}, b = typeof ResizeObserver > "u" ? null : new ResizeObserver(v);
|
|
7416
7498
|
b?.observe(e), v();
|
|
7417
|
-
let C =
|
|
7499
|
+
let C = Zi(Number.isFinite(Number(o)) ? o : 20), w = qi(e, (e) => {
|
|
7418
7500
|
f.autoSpin(x ? C : 0, e), f.update();
|
|
7419
7501
|
for (let t of h.children) t.userData.spin && (t.rotation.y += t.userData.spin * e);
|
|
7420
7502
|
c.render(l, u);
|
|
@@ -7438,7 +7520,7 @@ function ca({ objects: e, background: t, cameraDistance: n, fov: r, autoRotate:
|
|
|
7438
7520
|
o,
|
|
7439
7521
|
S,
|
|
7440
7522
|
d
|
|
7441
|
-
]), _ && h ? /* @__PURE__ */ u(
|
|
7523
|
+
]), _ && h ? /* @__PURE__ */ u($i, {
|
|
7442
7524
|
nodeRef: m,
|
|
7443
7525
|
style: p,
|
|
7444
7526
|
height: f,
|
|
@@ -7449,27 +7531,27 @@ function ca({ objects: e, background: t, cameraDistance: n, fov: r, autoRotate:
|
|
|
7449
7531
|
g.current = e, typeof m == "function" && m(e);
|
|
7450
7532
|
},
|
|
7451
7533
|
style: {
|
|
7452
|
-
minHeight:
|
|
7453
|
-
height:
|
|
7534
|
+
minHeight: Yi(f, 380),
|
|
7535
|
+
height: Yi(f, 380),
|
|
7454
7536
|
overflow: "hidden",
|
|
7455
7537
|
touchAction: S ? "pan-y" : void 0,
|
|
7456
7538
|
...A(p)
|
|
7457
7539
|
}
|
|
7458
7540
|
});
|
|
7459
7541
|
}
|
|
7460
|
-
function
|
|
7542
|
+
function ma({ code: e, height: t, background: n, style: r, nodeRef: a, inert: o }) {
|
|
7461
7543
|
let l = s(null), [d, f] = c("");
|
|
7462
7544
|
return i(() => {
|
|
7463
7545
|
let t = l.current;
|
|
7464
7546
|
if (o || !t || typeof e != "string" || !e.trim()) return;
|
|
7465
7547
|
let r = !0, i = null;
|
|
7466
|
-
return
|
|
7548
|
+
return Hi().then((a) => {
|
|
7467
7549
|
if (!r || !t) return;
|
|
7468
7550
|
let o = new a.WebGLRenderer({
|
|
7469
7551
|
antialias: !0,
|
|
7470
7552
|
alpha: !n
|
|
7471
7553
|
});
|
|
7472
|
-
o.setPixelRatio(
|
|
7554
|
+
o.setPixelRatio(Ki()), o.outputColorSpace = a.SRGBColorSpace, o.domElement.style.display = "block", o.domElement.style.width = "100%", o.domElement.style.height = "100%", t.appendChild(o.domElement);
|
|
7473
7555
|
let s = new a.Scene();
|
|
7474
7556
|
n && (s.background = new a.Color(n));
|
|
7475
7557
|
let c = new a.PerspectiveCamera(45, 1, .1, 1e3);
|
|
@@ -7492,7 +7574,7 @@ function la({ code: e, height: t, background: n, style: r, nodeRef: a, inert: o
|
|
|
7492
7574
|
o.setSize(e, n, !1), c.aspect = e / n, c.updateProjectionMatrix();
|
|
7493
7575
|
}, d = typeof ResizeObserver > "u" ? null : new ResizeObserver(u);
|
|
7494
7576
|
d?.observe(t), u();
|
|
7495
|
-
let p = !1, m =
|
|
7577
|
+
let p = !1, m = qi(t, (e, t) => {
|
|
7496
7578
|
if (!p && typeof l?.frame == "function") try {
|
|
7497
7579
|
l.frame(e, t);
|
|
7498
7580
|
} catch (e) {
|
|
@@ -7514,7 +7596,7 @@ function la({ code: e, height: t, background: n, style: r, nodeRef: a, inert: o
|
|
|
7514
7596
|
e,
|
|
7515
7597
|
o,
|
|
7516
7598
|
n
|
|
7517
|
-
]), o ? /* @__PURE__ */ u(
|
|
7599
|
+
]), o ? /* @__PURE__ */ u($i, {
|
|
7518
7600
|
nodeRef: a,
|
|
7519
7601
|
style: r,
|
|
7520
7602
|
height: t,
|
|
@@ -7525,8 +7607,8 @@ function la({ code: e, height: t, background: n, style: r, nodeRef: a, inert: o
|
|
|
7525
7607
|
l.current = e, typeof a == "function" && a(e);
|
|
7526
7608
|
},
|
|
7527
7609
|
style: {
|
|
7528
|
-
minHeight:
|
|
7529
|
-
height:
|
|
7610
|
+
minHeight: Yi(t, 380),
|
|
7611
|
+
height: Yi(t, 380),
|
|
7530
7612
|
overflow: "hidden",
|
|
7531
7613
|
position: "relative",
|
|
7532
7614
|
touchAction: "pan-y",
|
|
@@ -7549,40 +7631,40 @@ function la({ code: e, height: t, background: n, style: r, nodeRef: a, inert: o
|
|
|
7549
7631
|
}) : null
|
|
7550
7632
|
});
|
|
7551
7633
|
}
|
|
7552
|
-
var
|
|
7553
|
-
ModelViewerBlock:
|
|
7554
|
-
ShaderBlock:
|
|
7555
|
-
SceneBlock:
|
|
7556
|
-
ThreeCanvasBlock:
|
|
7557
|
-
},
|
|
7558
|
-
function
|
|
7559
|
-
if (
|
|
7634
|
+
var ha = {
|
|
7635
|
+
ModelViewerBlock: ea,
|
|
7636
|
+
ShaderBlock: oa,
|
|
7637
|
+
SceneBlock: pa,
|
|
7638
|
+
ThreeCanvasBlock: ma
|
|
7639
|
+
}, ga = /* @__PURE__ */ new Map();
|
|
7640
|
+
function _a(e) {
|
|
7641
|
+
if (ga.has(e)) return ga.get(e);
|
|
7560
7642
|
let t = URL.createObjectURL(new Blob([e], { type: "text/javascript" })), n = import(
|
|
7561
7643
|
/* @vite-ignore */
|
|
7562
7644
|
/* webpackIgnore: true */
|
|
7563
7645
|
t
|
|
7564
7646
|
).finally(() => URL.revokeObjectURL(t));
|
|
7565
|
-
return
|
|
7647
|
+
return ga.set(e, n), n;
|
|
7566
7648
|
}
|
|
7567
|
-
function
|
|
7649
|
+
function va(e) {
|
|
7568
7650
|
let t = e && typeof e == "object" ? e.builder_plugins : null, n = t && typeof t == "object" ? t.plugins : null;
|
|
7569
7651
|
return n && typeof n == "object" ? n : {};
|
|
7570
7652
|
}
|
|
7571
7653
|
//#endregion
|
|
7572
7654
|
//#region ../ui/src/components/builder/plugins/view.jsx
|
|
7573
|
-
async function
|
|
7574
|
-
let n = await
|
|
7655
|
+
async function ya(e, t) {
|
|
7656
|
+
let n = await _a(e);
|
|
7575
7657
|
return (Array.isArray(n?.default?.blocks) ? n.default.blocks : []).find((e) => e?.id === t && typeof e.mount == "function") ?? null;
|
|
7576
7658
|
}
|
|
7577
|
-
var
|
|
7659
|
+
var ba = {
|
|
7578
7660
|
padding: "10px 12px",
|
|
7579
7661
|
border: "1px dashed rgba(148, 163, 184, 0.5)",
|
|
7580
7662
|
borderRadius: 8,
|
|
7581
7663
|
fontSize: 12,
|
|
7582
7664
|
opacity: .6
|
|
7583
7665
|
};
|
|
7584
|
-
function
|
|
7585
|
-
let c = r(Q), l =
|
|
7666
|
+
function xa({ pluginId: e, blockId: t, props: n, style: a, nodeRef: o }) {
|
|
7667
|
+
let c = r(Q), l = va(c?.settings)[e], f = s(null), p = s(null), m = {
|
|
7586
7668
|
tenant: c?.tenant ?? "",
|
|
7587
7669
|
apiUrl: c?.apiUrl ?? "/api",
|
|
7588
7670
|
locale: c?.locale ?? "",
|
|
@@ -7594,7 +7676,7 @@ function ga({ pluginId: e, blockId: t, props: n, style: a, nodeRef: o }) {
|
|
|
7594
7676
|
let e = f.current;
|
|
7595
7677
|
if (!l?.code || !e) return;
|
|
7596
7678
|
let n = !0;
|
|
7597
|
-
return
|
|
7679
|
+
return ya(l.code, t).then((e) => {
|
|
7598
7680
|
if (!(!n || !e || !f.current)) {
|
|
7599
7681
|
p.current = e;
|
|
7600
7682
|
try {
|
|
@@ -7624,7 +7706,7 @@ function ga({ pluginId: e, blockId: t, props: n, style: a, nodeRef: o }) {
|
|
|
7624
7706
|
}) : /* @__PURE__ */ d("div", {
|
|
7625
7707
|
ref: o,
|
|
7626
7708
|
style: {
|
|
7627
|
-
...
|
|
7709
|
+
...ba,
|
|
7628
7710
|
...A(a)
|
|
7629
7711
|
},
|
|
7630
7712
|
children: [
|
|
@@ -7636,13 +7718,13 @@ function ga({ pluginId: e, blockId: t, props: n, style: a, nodeRef: o }) {
|
|
|
7636
7718
|
}
|
|
7637
7719
|
//#endregion
|
|
7638
7720
|
//#region ../ui/src/components/builder/render.jsx
|
|
7639
|
-
var
|
|
7640
|
-
...
|
|
7641
|
-
...
|
|
7642
|
-
...
|
|
7643
|
-
PluginBlock:
|
|
7721
|
+
var Sa = {
|
|
7722
|
+
...ei,
|
|
7723
|
+
...Ni,
|
|
7724
|
+
...ha,
|
|
7725
|
+
PluginBlock: xa
|
|
7644
7726
|
};
|
|
7645
|
-
function
|
|
7727
|
+
function Ca(t, n, r, i = /* @__PURE__ */ new Set(), a = void 0) {
|
|
7646
7728
|
let o = n[t];
|
|
7647
7729
|
if (!o || o.hidden) return null;
|
|
7648
7730
|
let s = o.type?.resolvedName, c = a?.mapProps ? a.mapProps(o.props ?? {}, s) : o.props ?? {};
|
|
@@ -7650,11 +7732,11 @@ function va(t, n, r, i = /* @__PURE__ */ new Set(), a = void 0) {
|
|
|
7650
7732
|
let n = o.props?.componentId, s = r?.[n];
|
|
7651
7733
|
if (!s?.template || i.has(n)) return null;
|
|
7652
7734
|
let c = new Set(i).add(n);
|
|
7653
|
-
return /* @__PURE__ */ u(e, { children:
|
|
7735
|
+
return /* @__PURE__ */ u(e, { children: Ca(s.template.rootId, s.template.nodes, r, c, a) }, t);
|
|
7654
7736
|
}
|
|
7655
|
-
let l =
|
|
7737
|
+
let l = Sa[s];
|
|
7656
7738
|
if (!l) return null;
|
|
7657
|
-
let d = (o.nodes ?? []).map((e) =>
|
|
7739
|
+
let d = (o.nodes ?? []).map((e) => Ca(e, n, r, i, a)).filter(Boolean), f = Object.entries(o.linkedNodes ?? {}), p = f.length ? Object.fromEntries(f.map(([e, t]) => [e, Ca(t, n, r, i, a)])) : void 0, m = /* @__PURE__ */ u(l, {
|
|
7658
7740
|
...c,
|
|
7659
7741
|
...s === "CollectionList" ? { templateId: o.linkedNodes?.card } : null,
|
|
7660
7742
|
linked: p,
|
|
@@ -7663,16 +7745,16 @@ function va(t, n, r, i = /* @__PURE__ */ new Set(), a = void 0) {
|
|
|
7663
7745
|
},
|
|
7664
7746
|
children: d.length ? d : void 0
|
|
7665
7747
|
}, t);
|
|
7666
|
-
return c.when && c.when !== "always" ? /* @__PURE__ */ u(
|
|
7748
|
+
return c.when && c.when !== "always" ? /* @__PURE__ */ u(ui, {
|
|
7667
7749
|
when: c.when,
|
|
7668
7750
|
children: m
|
|
7669
7751
|
}, t) : m;
|
|
7670
7752
|
}
|
|
7671
7753
|
//#endregion
|
|
7672
7754
|
//#region ../ui/src/components/builder/PageRenderer.jsx
|
|
7673
|
-
var
|
|
7755
|
+
var wa = (e) => Object.entries(e).map(([e, t]) => `${e}: ${t};`).join(" "), Ta = (e) => `.webim-page[data-webim-mode="light"] { ${Object.entries(J(e.light)).map(([e, t]) => `${e}: ${t} !important;`).join(" ")} }
|
|
7674
7756
|
.webim-page[data-webim-mode="dark"] { ${Object.entries(J(e.dark)).map(([e, t]) => `${e}: ${t} !important;`).join(" ")} }`;
|
|
7675
|
-
function
|
|
7757
|
+
function Ea({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, custom: s, animations: c, tenant: l, apiUrl: f, datasets: p, locale: m, direction: h, settings: _, siteUser: v }) {
|
|
7676
7758
|
let b = s?.js?.trim();
|
|
7677
7759
|
if (i(() => {
|
|
7678
7760
|
if (!b) return;
|
|
@@ -7686,11 +7768,11 @@ function xa({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
|
|
|
7686
7768
|
minHeight: "100%",
|
|
7687
7769
|
display: "flex",
|
|
7688
7770
|
flexDirection: "column"
|
|
7689
|
-
}, w =
|
|
7771
|
+
}, w = Ca("ROOT", e, n), T = o(() => ({ render: (t, r) => Ca(t, e, n, void 0, { mapProps: r }) }), [e, n]), D = W(e, n), O = ie(e, n), k = s?.css?.trim(), A = E(c), j = ue(t), M = [j.font, j.headingFont].filter((e) => typeof e == "string" && e.trim() && e !== "inherit" && !se[e]), N = [.../* @__PURE__ */ new Set([...y(e, n), ...M])].map((e) => /* @__PURE__ */ u("link", {
|
|
7690
7772
|
rel: "stylesheet",
|
|
7691
7773
|
precedence: "default",
|
|
7692
7774
|
href: g(e)
|
|
7693
|
-
}, e)), P =
|
|
7775
|
+
}, e)), P = Ta(j);
|
|
7694
7776
|
return r === "auto" ? /* @__PURE__ */ u(Q.Provider, {
|
|
7695
7777
|
value: {
|
|
7696
7778
|
tenant: l || "",
|
|
@@ -7698,7 +7780,7 @@ function xa({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
|
|
|
7698
7780
|
locale: m || "",
|
|
7699
7781
|
settings: _ ?? null
|
|
7700
7782
|
},
|
|
7701
|
-
children: /* @__PURE__ */ u(
|
|
7783
|
+
children: /* @__PURE__ */ u(li, {
|
|
7702
7784
|
initialUser: v,
|
|
7703
7785
|
children: /* @__PURE__ */ u(et.Provider, {
|
|
7704
7786
|
value: p ?? null,
|
|
@@ -7713,8 +7795,8 @@ function xa({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
|
|
|
7713
7795
|
...a
|
|
7714
7796
|
},
|
|
7715
7797
|
children: [
|
|
7716
|
-
/* @__PURE__ */ u("style", { children: `.webim-page { ${
|
|
7717
|
-
@media (prefers-color-scheme: dark) { .webim-page { ${
|
|
7798
|
+
/* @__PURE__ */ u("style", { children: `.webim-page { ${wa(J(j.light))} }
|
|
7799
|
+
@media (prefers-color-scheme: dark) { .webim-page { ${wa(J(j.dark))} } }` }),
|
|
7718
7800
|
/* @__PURE__ */ u("style", { children: P }),
|
|
7719
7801
|
N,
|
|
7720
7802
|
/* @__PURE__ */ u("style", { children: S }),
|
|
@@ -7734,7 +7816,7 @@ function xa({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
|
|
|
7734
7816
|
locale: m || "",
|
|
7735
7817
|
settings: _ ?? null
|
|
7736
7818
|
},
|
|
7737
|
-
children: /* @__PURE__ */ u(
|
|
7819
|
+
children: /* @__PURE__ */ u(li, {
|
|
7738
7820
|
initialUser: v,
|
|
7739
7821
|
children: /* @__PURE__ */ u(et.Provider, {
|
|
7740
7822
|
value: p ?? null,
|
|
@@ -7767,8 +7849,8 @@ function xa({ blocks: e, theme: t, components: n, mode: r = "auto", style: a, cu
|
|
|
7767
7849
|
}
|
|
7768
7850
|
//#endregion
|
|
7769
7851
|
//#region src/WebimContent.jsx
|
|
7770
|
-
function
|
|
7771
|
-
return e?.blocks?.ROOT ? /* @__PURE__ */ u(
|
|
7852
|
+
function Da({ bundle: e, mode: t = "auto", style: n }) {
|
|
7853
|
+
return e?.blocks?.ROOT ? /* @__PURE__ */ u(Ea, {
|
|
7772
7854
|
blocks: e.blocks,
|
|
7773
7855
|
theme: e.theme,
|
|
7774
7856
|
components: e.components,
|
|
@@ -7786,7 +7868,7 @@ function Sa({ bundle: e, mode: t = "auto", style: n }) {
|
|
|
7786
7868
|
}
|
|
7787
7869
|
//#endregion
|
|
7788
7870
|
//#region src/WebimPage.jsx
|
|
7789
|
-
function
|
|
7871
|
+
function Oa({ apiUrl: e, tenant: t, slug: n, locale: r, preview: a, token: o, mode: l = "auto", style: d, fallback: f = null, errorFallback: p = null, onLoad: m, onError: h }) {
|
|
7790
7872
|
let [g, _] = c({ status: "loading" }), v = s({
|
|
7791
7873
|
onLoad: m,
|
|
7792
7874
|
onError: h
|
|
@@ -7823,11 +7905,11 @@ function Ca({ apiUrl: e, tenant: t, slug: n, locale: r, preview: a, token: o, mo
|
|
|
7823
7905
|
r,
|
|
7824
7906
|
a,
|
|
7825
7907
|
o
|
|
7826
|
-
]), g.status === "loading" ? f : g.status === "error" ? typeof p == "function" ? p(g.error) : p : /* @__PURE__ */ u(
|
|
7908
|
+
]), g.status === "loading" ? f : g.status === "error" ? typeof p == "function" ? p(g.error) : p : /* @__PURE__ */ u(Da, {
|
|
7827
7909
|
bundle: g.bundle,
|
|
7828
7910
|
mode: l,
|
|
7829
7911
|
style: d
|
|
7830
7912
|
});
|
|
7831
7913
|
}
|
|
7832
7914
|
//#endregion
|
|
7833
|
-
export {
|
|
7915
|
+
export { Ea as PageRenderer, Da as WebimContent, Oa as WebimPage, ye as fetchPage, It as renderRichContent, he as resolveTheme };
|