@road-labs/map-sdk 3.0.1-rc.12 → 3.0.2-rc.14
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/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +607 -602
- package/dist/index.mjs.map +1 -1
- package/dist/utils/location.d.ts +2 -0
- package/package.json +1 -1
- package/dist/utils/buckets.test.d.ts +0 -1
- package/dist/utils/date.test.d.ts +0 -1
- package/dist/utils/filters.test.d.ts +0 -1
- package/dist/utils/i18n.test.d.ts +0 -1
- package/dist/utils/ocpi.test.d.ts +0 -1
- package/dist/utils/pinState.test.d.ts +0 -1
- package/dist/utils/price.test.d.ts +0 -1
- package/dist/utils/request.test.d.ts +0 -1
- package/dist/utils/status.test.d.ts +0 -1
- package/dist/utils/statusFilters.test.d.ts +0 -1
- package/dist/utils/version.test.d.ts +0 -1
package/dist/index.mjs
CHANGED
|
@@ -970,7 +970,20 @@ function wi(e = [], t = "roaming", n) {
|
|
|
970
970
|
), i = Ei[t], o = i.find((s) => r.has(s)) || i.at(-1);
|
|
971
971
|
return qn(o, t, n);
|
|
972
972
|
}
|
|
973
|
+
function We(e) {
|
|
974
|
+
return De(e);
|
|
975
|
+
}
|
|
973
976
|
function Ni(e) {
|
|
977
|
+
if (e?.coordinates)
|
|
978
|
+
return {
|
|
979
|
+
lat: Number(e.coordinates.latitude),
|
|
980
|
+
lng: Number(e.coordinates.longitude)
|
|
981
|
+
};
|
|
982
|
+
const t = e?.geoLocation?.coordinates;
|
|
983
|
+
if (t)
|
|
984
|
+
return { lng: t[0], lat: t[1] };
|
|
985
|
+
}
|
|
986
|
+
function _i(e) {
|
|
974
987
|
return [
|
|
975
988
|
{
|
|
976
989
|
id: "statusAvailable",
|
|
@@ -992,7 +1005,7 @@ function Ni(e) {
|
|
|
992
1005
|
}
|
|
993
1006
|
];
|
|
994
1007
|
}
|
|
995
|
-
const
|
|
1008
|
+
const Si = [
|
|
996
1009
|
"AVAILABLE",
|
|
997
1010
|
"PREPARING",
|
|
998
1011
|
"CHARGING",
|
|
@@ -1004,8 +1017,8 @@ const _i = [
|
|
|
1004
1017
|
"FAULTED",
|
|
1005
1018
|
"UNSPECIFIED"
|
|
1006
1019
|
];
|
|
1007
|
-
function
|
|
1008
|
-
return
|
|
1020
|
+
function xi(e) {
|
|
1021
|
+
return Si.map((t) => ({
|
|
1009
1022
|
id: `ocppStatus_${t}`,
|
|
1010
1023
|
labelKey: Mt(t),
|
|
1011
1024
|
values: [t],
|
|
@@ -1016,7 +1029,7 @@ function Jn(e) {
|
|
|
1016
1029
|
return e === "cpo";
|
|
1017
1030
|
}
|
|
1018
1031
|
function Xn(e, t) {
|
|
1019
|
-
return Jn(e) ?
|
|
1032
|
+
return Jn(e) ? xi(t) : _i(t);
|
|
1020
1033
|
}
|
|
1021
1034
|
function wt(e, t, n) {
|
|
1022
1035
|
switch (e) {
|
|
@@ -1042,11 +1055,11 @@ function Xt(e, t, n) {
|
|
|
1042
1055
|
const i = er(e, t, n) ? "remove" : "add";
|
|
1043
1056
|
return wt(i, t, r.values);
|
|
1044
1057
|
}
|
|
1045
|
-
function
|
|
1058
|
+
function Ai(e) {
|
|
1046
1059
|
const { status: t, ...n } = e || {};
|
|
1047
1060
|
return n;
|
|
1048
1061
|
}
|
|
1049
|
-
function
|
|
1062
|
+
function Oi(e, t) {
|
|
1050
1063
|
return Jn(e) ? void 0 : t;
|
|
1051
1064
|
}
|
|
1052
1065
|
const tr = "EUR", Rt = jn({
|
|
@@ -1057,7 +1070,7 @@ const tr = "EUR", Rt = jn({
|
|
|
1057
1070
|
language: "en",
|
|
1058
1071
|
mapKind: "roaming",
|
|
1059
1072
|
currency: tr
|
|
1060
|
-
}),
|
|
1073
|
+
}), Pi = ({ children: e, ...t }) => {
|
|
1061
1074
|
const [n, r] = Y(t.options), [i, o] = Y({
|
|
1062
1075
|
preferredOperators: t.options.preferredOperators,
|
|
1063
1076
|
// only carry flags the consumer actually set, so an undefined prop does
|
|
@@ -1091,14 +1104,14 @@ const tr = "EUR", Rt = jn({
|
|
|
1091
1104
|
}
|
|
1092
1105
|
}), [s, c] = Y(), [l, d] = Y(), [u, f] = Y(t.options.position), [h, v] = Y({}), [C, m] = Y(
|
|
1093
1106
|
[t.options.locationId].filter(Boolean)
|
|
1094
|
-
), [b,
|
|
1107
|
+
), [b, M] = Y([]), [B, D] = Y({
|
|
1095
1108
|
type: "success"
|
|
1096
1109
|
}), [O, g] = Y(!1), [_, q] = Y(), [K, Z] = Y(), te = window.location.search.includes("debug=true");
|
|
1097
1110
|
te && console.log("map-context options", t.options);
|
|
1098
1111
|
const ae = ce(
|
|
1099
1112
|
() => Jr(t.options.language),
|
|
1100
1113
|
[t.options.language]
|
|
1101
|
-
), ge = ce(() => (N,
|
|
1114
|
+
), ge = ce(() => (N, L) => ii[ae][N].replace(/\{\{(\w+)\}\}/g, (k, se) => L[se]), [ae]), ue = (() => {
|
|
1102
1115
|
const N = t.options.apiRoot?.replace(/\/+$/, "");
|
|
1103
1116
|
return N && /\.dev|localhost|127\.0\.0\.1/.test(N) ? N : oe(t.options.version, "v2") ? "https://roaming.road.io/v2/map-search" : "https://api.road.io";
|
|
1104
1117
|
})();
|
|
@@ -1149,14 +1162,14 @@ const tr = "EUR", Rt = jn({
|
|
|
1149
1162
|
w,
|
|
1150
1163
|
$
|
|
1151
1164
|
);
|
|
1152
|
-
async function z({ ids: N, status:
|
|
1165
|
+
async function z({ ids: N, status: L }) {
|
|
1153
1166
|
D({ type: "loading" });
|
|
1154
1167
|
try {
|
|
1155
1168
|
const { data: k } = await F({
|
|
1156
1169
|
ids: N,
|
|
1157
|
-
...oe(w, "v2") ? { status:
|
|
1170
|
+
...oe(w, "v2") ? { status: Oi(le, L) } : {}
|
|
1158
1171
|
});
|
|
1159
|
-
return
|
|
1172
|
+
return M(k.filter((se) => se?.evses?.length)), D({ type: "success" }), k;
|
|
1160
1173
|
} catch (k) {
|
|
1161
1174
|
D({ type: "error", error: k });
|
|
1162
1175
|
}
|
|
@@ -1166,13 +1179,8 @@ const tr = "EUR", Rt = jn({
|
|
|
1166
1179
|
ids: [t.options.locationId],
|
|
1167
1180
|
status: h.status
|
|
1168
1181
|
}).then((N) => {
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
M.geoLocation?.coordinates && f({
|
|
1172
|
-
lng: M.geoLocation?.coordinates[0],
|
|
1173
|
-
lat: M.geoLocation?.coordinates[1]
|
|
1174
|
-
});
|
|
1175
|
-
}
|
|
1182
|
+
const L = N?.length && Ni(N[0]);
|
|
1183
|
+
L && f(L);
|
|
1176
1184
|
});
|
|
1177
1185
|
}, [t.options.locationId]), J(() => {
|
|
1178
1186
|
ui(ue, w, $).then((N) => {
|
|
@@ -1199,9 +1207,9 @@ const tr = "EUR", Rt = jn({
|
|
|
1199
1207
|
status: h.status
|
|
1200
1208
|
});
|
|
1201
1209
|
}, [C]), J(() => {
|
|
1202
|
-
const { theming: N, shadowRoot:
|
|
1203
|
-
if (
|
|
1204
|
-
const k =
|
|
1210
|
+
const { theming: N, shadowRoot: L } = t.options;
|
|
1211
|
+
if (L) {
|
|
1212
|
+
const k = L.querySelectorAll("#road-map-styles")[0] || document.createElement("style");
|
|
1205
1213
|
k.setAttribute("type", "text/css"), k.setAttribute("id", "road-map-styles"), k.innerHTML = `
|
|
1206
1214
|
:host {
|
|
1207
1215
|
--roadmap-brand-color: ${N?.brandColor || "#6102d3"};
|
|
@@ -1210,10 +1218,10 @@ const tr = "EUR", Rt = jn({
|
|
|
1210
1218
|
--roadmap-border-color: ${N?.borderColor || "#dddddd"};
|
|
1211
1219
|
--roadmap-font-family: ${N?.fontFamily || "Inter"};
|
|
1212
1220
|
}
|
|
1213
|
-
`,
|
|
1221
|
+
`, L.appendChild(k);
|
|
1214
1222
|
}
|
|
1215
1223
|
}, [t.options.theming]);
|
|
1216
|
-
const
|
|
1224
|
+
const R = !!(u && n?.googleApiKey && (K || !oe(w, "v2"))), V = ce(() => ({
|
|
1217
1225
|
options: n,
|
|
1218
1226
|
setPlace: d,
|
|
1219
1227
|
place: l,
|
|
@@ -1235,7 +1243,7 @@ const tr = "EUR", Rt = jn({
|
|
|
1235
1243
|
fetchTariffs: H,
|
|
1236
1244
|
reportProblem: I,
|
|
1237
1245
|
fetchLocations: F,
|
|
1238
|
-
isReady:
|
|
1246
|
+
isReady: R,
|
|
1239
1247
|
position: u,
|
|
1240
1248
|
isSearching: O,
|
|
1241
1249
|
setIsSearching: g
|
|
@@ -1261,7 +1269,7 @@ const tr = "EUR", Rt = jn({
|
|
|
1261
1269
|
le,
|
|
1262
1270
|
ve,
|
|
1263
1271
|
F,
|
|
1264
|
-
|
|
1272
|
+
R,
|
|
1265
1273
|
O
|
|
1266
1274
|
]);
|
|
1267
1275
|
return /* @__PURE__ */ a(Rt.Provider, { value: V, children: e });
|
|
@@ -1272,7 +1280,7 @@ function W() {
|
|
|
1272
1280
|
throw new Error("useMapContext must be used within a MapProvider");
|
|
1273
1281
|
return e;
|
|
1274
1282
|
}
|
|
1275
|
-
function
|
|
1283
|
+
function Di(e) {
|
|
1276
1284
|
const { isReady: t } = Wr(Rt), n = be(null), i = qr(n) && t;
|
|
1277
1285
|
return /* @__PURE__ */ p(
|
|
1278
1286
|
"div",
|
|
@@ -1289,10 +1297,10 @@ function Pi(e) {
|
|
|
1289
1297
|
}
|
|
1290
1298
|
);
|
|
1291
1299
|
}
|
|
1292
|
-
const
|
|
1293
|
-
container:
|
|
1300
|
+
const Ii = "Map-module_container", ki = {
|
|
1301
|
+
container: Ii
|
|
1294
1302
|
};
|
|
1295
|
-
function
|
|
1303
|
+
function Mi(e, t, n, r) {
|
|
1296
1304
|
function i(o) {
|
|
1297
1305
|
return o instanceof n ? o : new n(function(s) {
|
|
1298
1306
|
s(o);
|
|
@@ -1319,10 +1327,10 @@ function ki(e, t, n, r) {
|
|
|
1319
1327
|
d((r = r.apply(e, [])).next());
|
|
1320
1328
|
});
|
|
1321
1329
|
}
|
|
1322
|
-
function
|
|
1330
|
+
function Ri(e) {
|
|
1323
1331
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1324
1332
|
}
|
|
1325
|
-
var
|
|
1333
|
+
var Li = function e(t, n) {
|
|
1326
1334
|
if (t === n) return !0;
|
|
1327
1335
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
1328
1336
|
if (t.constructor !== n.constructor) return !1;
|
|
@@ -1346,7 +1354,7 @@ var Ri = function e(t, n) {
|
|
|
1346
1354
|
return !0;
|
|
1347
1355
|
}
|
|
1348
1356
|
return t !== t && n !== n;
|
|
1349
|
-
},
|
|
1357
|
+
}, Fi = /* @__PURE__ */ Ri(Li);
|
|
1350
1358
|
const Qt = "__googleMapsScriptId";
|
|
1351
1359
|
var Fe;
|
|
1352
1360
|
(function(e) {
|
|
@@ -1364,7 +1372,7 @@ class Pe {
|
|
|
1364
1372
|
*/
|
|
1365
1373
|
constructor({ apiKey: t, authReferrerPolicy: n, channel: r, client: i, id: o = Qt, language: s, libraries: c = [], mapIds: l, nonce: d, region: u, retries: f = 3, url: h = "https://maps.googleapis.com/maps/api/js", version: v }) {
|
|
1366
1374
|
if (this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = t, this.authReferrerPolicy = n, this.channel = r, this.client = i, this.id = o || Qt, this.language = s, this.libraries = c, this.mapIds = l, this.nonce = d, this.region = u, this.retries = f, this.url = h, this.version = v, Pe.instance) {
|
|
1367
|
-
if (!
|
|
1375
|
+
if (!Fi(this.options, Pe.instance.options))
|
|
1368
1376
|
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Pe.instance.options)}`);
|
|
1369
1377
|
return Pe.instance;
|
|
1370
1378
|
}
|
|
@@ -1462,14 +1470,14 @@ class Pe {
|
|
|
1462
1470
|
), !((n = (t = window?.google) === null || t === void 0 ? void 0 : t.maps) === null || n === void 0) && n.importLibrary || ((o) => {
|
|
1463
1471
|
let s, c, l, d = "The Google Maps JavaScript API", u = "google", f = "importLibrary", h = "__ib__", v = document, C = window;
|
|
1464
1472
|
C = C[u] || (C[u] = {});
|
|
1465
|
-
const m = C.maps || (C.maps = {}), b = /* @__PURE__ */ new Set(),
|
|
1473
|
+
const m = C.maps || (C.maps = {}), b = /* @__PURE__ */ new Set(), M = new URLSearchParams(), B = () => (
|
|
1466
1474
|
// @ts-ignore
|
|
1467
|
-
s || (s = new Promise((D, O) =>
|
|
1475
|
+
s || (s = new Promise((D, O) => Mi(this, void 0, void 0, function* () {
|
|
1468
1476
|
var g;
|
|
1469
|
-
yield c = v.createElement("script"), c.id = this.id,
|
|
1477
|
+
yield c = v.createElement("script"), c.id = this.id, M.set("libraries", [...b] + "");
|
|
1470
1478
|
for (l in o)
|
|
1471
|
-
|
|
1472
|
-
|
|
1479
|
+
M.set(l.replace(/[A-Z]/g, (_) => "_" + _[0].toLowerCase()), o[l]);
|
|
1480
|
+
M.set("callback", u + ".maps." + h), c.src = this.url + "?" + M, m[h] = D, c.onerror = () => s = O(Error(d + " could not load.")), c.nonce = this.nonce || ((g = v.querySelector("script[nonce]")) === null || g === void 0 ? void 0 : g.nonce) || "", v.head.append(c);
|
|
1473
1481
|
})))
|
|
1474
1482
|
);
|
|
1475
1483
|
m[f] ? console.warn(d + " only loads once. Ignoring:", o) : m[f] = (D, ...O) => b.add(D) && B().then(() => m[f](D, ...O));
|
|
@@ -1656,7 +1664,7 @@ class ie {
|
|
|
1656
1664
|
};
|
|
1657
1665
|
}
|
|
1658
1666
|
}
|
|
1659
|
-
function
|
|
1667
|
+
function Hi(e, t, n) {
|
|
1660
1668
|
class r extends google.maps.OverlayView {
|
|
1661
1669
|
constructor(o, s, c) {
|
|
1662
1670
|
super(), this.container = o, this.pane = s, this.position = c;
|
|
@@ -1684,7 +1692,7 @@ function rr({
|
|
|
1684
1692
|
const o = ce(() => {
|
|
1685
1693
|
const c = document.createElement("div");
|
|
1686
1694
|
return c.style.position = "absolute", c;
|
|
1687
|
-
}, []), s = ce(() =>
|
|
1695
|
+
}, []), s = ce(() => Hi(o, t, {
|
|
1688
1696
|
lat: e.lat,
|
|
1689
1697
|
lng: e.lon
|
|
1690
1698
|
}), [o, t, e]);
|
|
@@ -1694,11 +1702,11 @@ function rr({
|
|
|
1694
1702
|
o.style.zIndex = `${r}`;
|
|
1695
1703
|
}, [r, o]), Yr(i, o);
|
|
1696
1704
|
}
|
|
1697
|
-
const
|
|
1698
|
-
container:
|
|
1699
|
-
},
|
|
1705
|
+
const $i = "CustomMarker-module_container", Vi = {
|
|
1706
|
+
container: $i
|
|
1707
|
+
}, zi = new Intl.NumberFormat(void 0, {
|
|
1700
1708
|
maximumSignificantDigits: 3
|
|
1701
|
-
}),
|
|
1709
|
+
}), Bi = (e) => zi.format(e), Ui = ({
|
|
1702
1710
|
data: e,
|
|
1703
1711
|
map: t,
|
|
1704
1712
|
onClick: n,
|
|
@@ -1714,11 +1722,11 @@ const Hi = "CustomMarker-module_container", $i = {
|
|
|
1714
1722
|
return /* @__PURE__ */ a(rr, { position: e.centroid, map: t, zIndex: r ? 99 : 0, children: /* @__PURE__ */ a(
|
|
1715
1723
|
"button",
|
|
1716
1724
|
{
|
|
1717
|
-
className:
|
|
1725
|
+
className: Vi.container,
|
|
1718
1726
|
onClick: o,
|
|
1719
1727
|
style: s,
|
|
1720
1728
|
onTouchEndCapture: o,
|
|
1721
|
-
children: e.count > 1 ?
|
|
1729
|
+
children: e.count > 1 ? Bi(e.count) : ""
|
|
1722
1730
|
}
|
|
1723
1731
|
) });
|
|
1724
1732
|
};
|
|
@@ -1726,7 +1734,7 @@ function ir(e) {
|
|
|
1726
1734
|
return !!(e && typeof e.amount == "number" && Number.isFinite(e.amount) && e.currency);
|
|
1727
1735
|
}
|
|
1728
1736
|
const en = /* @__PURE__ */ new Map();
|
|
1729
|
-
function
|
|
1737
|
+
function Wi(e, t) {
|
|
1730
1738
|
const n = `${e}:${t}`;
|
|
1731
1739
|
let r = en.get(n);
|
|
1732
1740
|
return r || (r = new Intl.NumberFormat(e, {
|
|
@@ -1740,12 +1748,12 @@ function Ui(e, t) {
|
|
|
1740
1748
|
function or(e, t) {
|
|
1741
1749
|
if (ir(t))
|
|
1742
1750
|
try {
|
|
1743
|
-
return
|
|
1751
|
+
return Wi(e, t.currency).format(t.amount);
|
|
1744
1752
|
} catch {
|
|
1745
1753
|
return `${t.amount.toFixed(2)} ${t.currency}`;
|
|
1746
1754
|
}
|
|
1747
1755
|
}
|
|
1748
|
-
const
|
|
1756
|
+
const ji = {
|
|
1749
1757
|
SEK: 10,
|
|
1750
1758
|
NOK: 10,
|
|
1751
1759
|
DKK: 10,
|
|
@@ -1753,24 +1761,24 @@ const Wi = {
|
|
|
1753
1761
|
PLN: 4,
|
|
1754
1762
|
HUF: 400,
|
|
1755
1763
|
ISK: 150
|
|
1756
|
-
},
|
|
1757
|
-
function
|
|
1758
|
-
const r =
|
|
1764
|
+
}, Gi = [0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1];
|
|
1765
|
+
function Yi(e, t, n) {
|
|
1766
|
+
const r = ji[t.toUpperCase()] || 1, i = r >= 10 ? 0 : 2, o = new Intl.NumberFormat(e, {
|
|
1759
1767
|
minimumFractionDigits: i,
|
|
1760
1768
|
maximumFractionDigits: i
|
|
1761
1769
|
});
|
|
1762
1770
|
return [
|
|
1763
|
-
...
|
|
1771
|
+
...Gi.map((s) => {
|
|
1764
1772
|
const c = Math.round(s * r * 100) / 100;
|
|
1765
1773
|
return { value: c, label: o.format(c) };
|
|
1766
1774
|
}),
|
|
1767
1775
|
{ value: void 0, label: n }
|
|
1768
1776
|
];
|
|
1769
1777
|
}
|
|
1770
|
-
function
|
|
1778
|
+
function Ki(e) {
|
|
1771
1779
|
return e === "AVAILABLE" ? "free" : kt.has(e) || e === "RESERVED" ? "busy" : e === "FAULTED" ? "fault" : e === "PLANNED" ? "planned" : e === "UNKNOWN" ? "unknown" : "offline";
|
|
1772
1780
|
}
|
|
1773
|
-
function
|
|
1781
|
+
function Zi(e = []) {
|
|
1774
1782
|
const t = {
|
|
1775
1783
|
free: 0,
|
|
1776
1784
|
busy: 0,
|
|
@@ -1782,23 +1790,23 @@ function Ki(e = []) {
|
|
|
1782
1790
|
};
|
|
1783
1791
|
for (const n of e) {
|
|
1784
1792
|
const r = Math.max(0, n.count || 0);
|
|
1785
|
-
t[
|
|
1793
|
+
t[Ki(ut(n.name))] += r, t.total += r;
|
|
1786
1794
|
}
|
|
1787
1795
|
return t;
|
|
1788
1796
|
}
|
|
1789
|
-
function
|
|
1797
|
+
function qi(e) {
|
|
1790
1798
|
return e.fault > 0 ? "fault" : e.offline > 0 ? "offline" : e.busy > 0 ? "inUse" : e.free > 0 ? "available" : "unknown";
|
|
1791
1799
|
}
|
|
1792
|
-
function
|
|
1800
|
+
function Ji(e, t) {
|
|
1793
1801
|
return e.fault > 0 ? "fault" : t && e.free > 0 ? "available" : e.busy > 0 ? "inUse" : e.free > 0 ? "available" : e.total === 0 ? "unknown" : e.planned === e.total ? "planned" : e.unknown === e.total ? "unknown" : "offline";
|
|
1794
1802
|
}
|
|
1795
|
-
function
|
|
1796
|
-
return e.total === 0 ? "unknown" : t === "cpo" ?
|
|
1803
|
+
function Xi(e, t, n) {
|
|
1804
|
+
return e.total === 0 ? "unknown" : t === "cpo" ? qi(e) : Ji(e, n);
|
|
1797
1805
|
}
|
|
1798
|
-
function
|
|
1806
|
+
function Qi(e, t) {
|
|
1799
1807
|
return e.free > 0 ? e.free === e.total ? "bolt" : "ratio" : t === "fault" ? "alert" : t === "planned" ? "plus" : e.busy > 0 ? "ratio" : "dash";
|
|
1800
1808
|
}
|
|
1801
|
-
const
|
|
1809
|
+
const eo = {
|
|
1802
1810
|
roaming: {
|
|
1803
1811
|
available: "green",
|
|
1804
1812
|
inUse: "amber",
|
|
@@ -1816,7 +1824,7 @@ const Qi = {
|
|
|
1816
1824
|
planned: "grey",
|
|
1817
1825
|
unknown: "grey"
|
|
1818
1826
|
}
|
|
1819
|
-
},
|
|
1827
|
+
}, to = {
|
|
1820
1828
|
green: "#006025",
|
|
1821
1829
|
amber: "#a16100",
|
|
1822
1830
|
blue: "#2b57a8",
|
|
@@ -1824,10 +1832,10 @@ const Qi = {
|
|
|
1824
1832
|
grey: "#6d7277"
|
|
1825
1833
|
};
|
|
1826
1834
|
function ar(e, t) {
|
|
1827
|
-
const n =
|
|
1828
|
-
return { ring: Kn[n], text:
|
|
1835
|
+
const n = eo[t][e];
|
|
1836
|
+
return { ring: Kn[n], text: to[n] };
|
|
1829
1837
|
}
|
|
1830
|
-
const
|
|
1838
|
+
const no = [
|
|
1831
1839
|
["free", "available"],
|
|
1832
1840
|
["busy", "inUse"],
|
|
1833
1841
|
["fault", "fault"],
|
|
@@ -1835,22 +1843,22 @@ const to = [
|
|
|
1835
1843
|
["planned", "planned"],
|
|
1836
1844
|
["unknown", "unknown"]
|
|
1837
1845
|
];
|
|
1838
|
-
function
|
|
1839
|
-
return e.total === 0 ? [] :
|
|
1846
|
+
function ro(e, t) {
|
|
1847
|
+
return e.total === 0 ? [] : no.filter(([n]) => e[n] > 0).map(([n, r]) => ({
|
|
1840
1848
|
tone: r,
|
|
1841
1849
|
ring: ar(r, t).ring,
|
|
1842
1850
|
fraction: e[n] / e.total
|
|
1843
1851
|
}));
|
|
1844
1852
|
}
|
|
1845
|
-
function
|
|
1846
|
-
const r =
|
|
1853
|
+
function io(e, t = "roaming", n = !1) {
|
|
1854
|
+
const r = Zi(e), i = Xi(r, t, n);
|
|
1847
1855
|
return {
|
|
1848
1856
|
tone: i,
|
|
1849
1857
|
colours: ar(i, t),
|
|
1850
|
-
glyph:
|
|
1858
|
+
glyph: Qi(r, i),
|
|
1851
1859
|
free: r.free,
|
|
1852
1860
|
total: r.total,
|
|
1853
|
-
split:
|
|
1861
|
+
split: ro(r, t)
|
|
1854
1862
|
};
|
|
1855
1863
|
}
|
|
1856
1864
|
function sr(e) {
|
|
@@ -1858,13 +1866,13 @@ function sr(e) {
|
|
|
1858
1866
|
const t = e.ids || [];
|
|
1859
1867
|
return t.length === 0 || new Set(t).size > 1;
|
|
1860
1868
|
}
|
|
1861
|
-
function
|
|
1869
|
+
function oo(e) {
|
|
1862
1870
|
if (!sr(e) && !(!ir(e.energyPrice) || e.energyPrice.amount <= 0))
|
|
1863
1871
|
return e.energyPrice;
|
|
1864
1872
|
}
|
|
1865
1873
|
const Lt = new Intl.NumberFormat(void 0, {
|
|
1866
1874
|
maximumSignificantDigits: 3
|
|
1867
|
-
}), lr = Math.SQRT1_2, st = 40, cr = 52,
|
|
1875
|
+
}), lr = Math.SQRT1_2, st = 40, cr = 52, ao = 26, so = 48, lo = 56, co = 9, uo = 4, dr = "…", tn = "#2a2e33", fo = "#6d7277", po = "#fdfcf9", mo = "#383c43", Nt = "rgba(23, 27, 31, 0.22)", ho = "rgba(23, 27, 31, 0.14)", ur = "rgba(23, 27, 31, 0.3)", go = `
|
|
1868
1876
|
.roadmap-pin {
|
|
1869
1877
|
position: absolute;
|
|
1870
1878
|
left: 0;
|
|
@@ -1964,8 +1972,8 @@ const Lt = new Intl.NumberFormat(void 0, {
|
|
|
1964
1972
|
box-sizing: border-box;
|
|
1965
1973
|
padding: 2px 6px;
|
|
1966
1974
|
border-radius: 4px;
|
|
1967
|
-
background: ${
|
|
1968
|
-
color: ${
|
|
1975
|
+
background: ${mo};
|
|
1976
|
+
color: ${po};
|
|
1969
1977
|
font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
1970
1978
|
font-size: 11px;
|
|
1971
1979
|
font-weight: 500;
|
|
@@ -1978,8 +1986,8 @@ const Lt = new Intl.NumberFormat(void 0, {
|
|
|
1978
1986
|
to { opacity: 1; transform: none; }
|
|
1979
1987
|
}
|
|
1980
1988
|
`;
|
|
1981
|
-
function
|
|
1982
|
-
return /* @__PURE__ */ a("style", { children:
|
|
1989
|
+
function vo() {
|
|
1990
|
+
return /* @__PURE__ */ a("style", { children: go });
|
|
1983
1991
|
}
|
|
1984
1992
|
function lt(e, t) {
|
|
1985
1993
|
const n = e.replace("#", ""), r = parseInt(n.slice(0, 2), 16), i = parseInt(n.slice(2, 4), 16), o = parseInt(n.slice(4, 6), 16);
|
|
@@ -1996,14 +2004,14 @@ function fr(e) {
|
|
|
1996
2004
|
function nn(e) {
|
|
1997
2005
|
return { width: e, height: e, left: -e / 2, top: -e / 2 };
|
|
1998
2006
|
}
|
|
1999
|
-
function
|
|
2007
|
+
function yo(e) {
|
|
2000
2008
|
let t = 0;
|
|
2001
2009
|
return `conic-gradient(${e.map((r) => {
|
|
2002
2010
|
const i = t;
|
|
2003
2011
|
return t += r.fraction * 100, `${r.ring} ${i.toFixed(2)}% ${t.toFixed(2)}%`;
|
|
2004
2012
|
}).join(", ")})`;
|
|
2005
2013
|
}
|
|
2006
|
-
function
|
|
2014
|
+
function Co({ scale: e, fill: t }) {
|
|
2007
2015
|
return /* @__PURE__ */ a(
|
|
2008
2016
|
"svg",
|
|
2009
2017
|
{
|
|
@@ -2016,17 +2024,17 @@ function yo({ scale: e, fill: t }) {
|
|
|
2016
2024
|
}
|
|
2017
2025
|
);
|
|
2018
2026
|
}
|
|
2019
|
-
function
|
|
2027
|
+
function bo(e, t) {
|
|
2020
2028
|
const n = String(e.free).length + String(e.total).length;
|
|
2021
2029
|
return n <= 2 ? 13 * t : n === 3 ? 11 * t : 9.5 * t;
|
|
2022
2030
|
}
|
|
2023
|
-
function
|
|
2031
|
+
function To({ state: e, scale: t }) {
|
|
2024
2032
|
const { ring: n, text: r } = e.colours;
|
|
2025
2033
|
switch (e.glyph) {
|
|
2026
2034
|
case "bolt":
|
|
2027
|
-
return /* @__PURE__ */ a(
|
|
2035
|
+
return /* @__PURE__ */ a(Co, { scale: t, fill: n });
|
|
2028
2036
|
case "ratio":
|
|
2029
|
-
return /* @__PURE__ */ p("span", { style: { fontSize:
|
|
2037
|
+
return /* @__PURE__ */ p("span", { style: { fontSize: bo(e, t), color: r }, children: [
|
|
2030
2038
|
e.free,
|
|
2031
2039
|
"/",
|
|
2032
2040
|
e.total
|
|
@@ -2056,10 +2064,10 @@ function pr(e, t, n = !1) {
|
|
|
2056
2064
|
borderWidth: n ? 2.5 : 3,
|
|
2057
2065
|
borderStyle: o ? "dashed" : "solid",
|
|
2058
2066
|
background: o ? "#fcfcf9" : i ? "#f0f2f4" : "#fff",
|
|
2059
|
-
boxShadow: o ? "none" : t ? `0 6px 16px ${ur}, 0 0 0 4px ${lt(r, 0.18)}` : i ? `0 2px 5px ${
|
|
2067
|
+
boxShadow: o ? "none" : t ? `0 6px 16px ${ur}, 0 0 0 4px ${lt(r, 0.18)}` : i ? `0 2px 5px ${ho}` : `0 3px 8px ${Nt}`
|
|
2060
2068
|
}, muted: i };
|
|
2061
2069
|
}
|
|
2062
|
-
function
|
|
2070
|
+
function Eo({
|
|
2063
2071
|
state: e,
|
|
2064
2072
|
selected: t = !1,
|
|
2065
2073
|
compact: n = !1,
|
|
@@ -2067,7 +2075,7 @@ function To({
|
|
|
2067
2075
|
onClick: i,
|
|
2068
2076
|
label: o
|
|
2069
2077
|
}) {
|
|
2070
|
-
const s = n ?
|
|
2078
|
+
const s = n ? ao : t ? cr : st, { style: c, muted: l } = pr(e, t, n);
|
|
2071
2079
|
return /* @__PURE__ */ p(
|
|
2072
2080
|
"button",
|
|
2073
2081
|
{
|
|
@@ -2082,14 +2090,14 @@ function To({
|
|
|
2082
2090
|
onTouchEndCapture: i,
|
|
2083
2091
|
"aria-label": o,
|
|
2084
2092
|
children: [
|
|
2085
|
-
/* @__PURE__ */ a("span", { className: "roadmap-pin-body", style: c, children: !n && /* @__PURE__ */ a("span", { className: "roadmap-pin-glyph", children: /* @__PURE__ */ a(
|
|
2093
|
+
/* @__PURE__ */ a("span", { className: "roadmap-pin-body", style: c, children: !n && /* @__PURE__ */ a("span", { className: "roadmap-pin-glyph", children: /* @__PURE__ */ a(To, { state: e, scale: s / st }) }) }),
|
|
2086
2094
|
r && !n && /* @__PURE__ */ a(
|
|
2087
2095
|
"span",
|
|
2088
2096
|
{
|
|
2089
2097
|
className: "roadmap-pin-tag",
|
|
2090
2098
|
style: {
|
|
2091
2099
|
left: s / 2,
|
|
2092
|
-
top: s / 2 + s * lr +
|
|
2100
|
+
top: s / 2 + s * lr + uo,
|
|
2093
2101
|
// an unknown price recedes so the known ones stand out
|
|
2094
2102
|
opacity: r === dr ? 0.5 : 1
|
|
2095
2103
|
},
|
|
@@ -2100,7 +2108,7 @@ function To({
|
|
|
2100
2108
|
}
|
|
2101
2109
|
);
|
|
2102
2110
|
}
|
|
2103
|
-
function
|
|
2111
|
+
function wo({
|
|
2104
2112
|
state: e,
|
|
2105
2113
|
count: t,
|
|
2106
2114
|
selected: n = !1,
|
|
@@ -2139,7 +2147,7 @@ function Eo({
|
|
|
2139
2147
|
}
|
|
2140
2148
|
);
|
|
2141
2149
|
}
|
|
2142
|
-
function
|
|
2150
|
+
function No({
|
|
2143
2151
|
state: e,
|
|
2144
2152
|
count: t,
|
|
2145
2153
|
selected: n = !1,
|
|
@@ -2147,7 +2155,7 @@ function wo({
|
|
|
2147
2155
|
label: i,
|
|
2148
2156
|
sitesLabel: o
|
|
2149
2157
|
}) {
|
|
2150
|
-
const s = n ?
|
|
2158
|
+
const s = n ? lo : so, c = e.colours.ring, l = Lt.format(t), d = `0 0 0 ${n ? 8 : 6}px ${lt(c, 0.14)}`;
|
|
2151
2159
|
return e.split.length > 1 ? /* @__PURE__ */ a(
|
|
2152
2160
|
"button",
|
|
2153
2161
|
{
|
|
@@ -2162,7 +2170,7 @@ function wo({
|
|
|
2162
2170
|
{
|
|
2163
2171
|
className: "roadmap-pin-ring",
|
|
2164
2172
|
style: {
|
|
2165
|
-
background:
|
|
2173
|
+
background: yo(e.split),
|
|
2166
2174
|
boxShadow: n ? `0 4px 12px ${ur}, ${d}` : `0 3px 8px ${Nt}`
|
|
2167
2175
|
},
|
|
2168
2176
|
children: /* @__PURE__ */ a("span", { className: "roadmap-pin-ring-inner", children: /* @__PURE__ */ a(
|
|
@@ -2203,7 +2211,7 @@ function wo({
|
|
|
2203
2211
|
"span",
|
|
2204
2212
|
{
|
|
2205
2213
|
className: "roadmap-pin-label",
|
|
2206
|
-
style: { fontSize: o.length > 6 ? 7 : 8, color:
|
|
2214
|
+
style: { fontSize: o.length > 6 ? 7 : 8, color: fo },
|
|
2207
2215
|
children: o
|
|
2208
2216
|
}
|
|
2209
2217
|
)
|
|
@@ -2213,7 +2221,7 @@ function wo({
|
|
|
2213
2221
|
}
|
|
2214
2222
|
);
|
|
2215
2223
|
}
|
|
2216
|
-
const
|
|
2224
|
+
const _o = ({
|
|
2217
2225
|
data: e,
|
|
2218
2226
|
map: t,
|
|
2219
2227
|
kind: n,
|
|
@@ -2225,12 +2233,12 @@ const No = ({
|
|
|
2225
2233
|
sitesLabel: l
|
|
2226
2234
|
}) => {
|
|
2227
2235
|
const d = sr(e), u = ce(
|
|
2228
|
-
() =>
|
|
2236
|
+
() => io(e.statuses, n, d),
|
|
2229
2237
|
[e, n, d]
|
|
2230
2238
|
), f = It(() => r(e), [r, e]), h = d ? `${Lt.format(e.count)} ${l}` : s ? `${u.free}/${u.total}, ${c || s}` : `${u.free}/${u.total}`;
|
|
2231
2239
|
let v;
|
|
2232
|
-
return d && e.count >
|
|
2233
|
-
|
|
2240
|
+
return d && e.count > co ? v = /* @__PURE__ */ a(
|
|
2241
|
+
No,
|
|
2234
2242
|
{
|
|
2235
2243
|
state: u,
|
|
2236
2244
|
count: e.count,
|
|
@@ -2240,7 +2248,7 @@ const No = ({
|
|
|
2240
2248
|
sitesLabel: l
|
|
2241
2249
|
}
|
|
2242
2250
|
) : d ? v = /* @__PURE__ */ a(
|
|
2243
|
-
|
|
2251
|
+
wo,
|
|
2244
2252
|
{
|
|
2245
2253
|
state: u,
|
|
2246
2254
|
count: e.count,
|
|
@@ -2249,7 +2257,7 @@ const No = ({
|
|
|
2249
2257
|
label: h
|
|
2250
2258
|
}
|
|
2251
2259
|
) : v = /* @__PURE__ */ a(
|
|
2252
|
-
|
|
2260
|
+
Eo,
|
|
2253
2261
|
{
|
|
2254
2262
|
state: u,
|
|
2255
2263
|
selected: i,
|
|
@@ -2268,24 +2276,24 @@ const No = ({
|
|
|
2268
2276
|
}
|
|
2269
2277
|
);
|
|
2270
2278
|
};
|
|
2271
|
-
function
|
|
2279
|
+
function So(e, t) {
|
|
2272
2280
|
if (e.count !== t.count) return !1;
|
|
2273
2281
|
const n = e.statuses || [], r = t.statuses || [];
|
|
2274
2282
|
return n.length !== r.length ? !1 : n.every(
|
|
2275
2283
|
(i, o) => i.name === r[o].name && i.count === r[o].count
|
|
2276
2284
|
);
|
|
2277
2285
|
}
|
|
2278
|
-
function
|
|
2286
|
+
function xo(e, t) {
|
|
2279
2287
|
return !e.energyPrice || !t.energyPrice ? !e.energyPrice && !t.energyPrice : e.energyPrice.amount === t.energyPrice.amount && e.energyPrice.currency === t.energyPrice.currency;
|
|
2280
2288
|
}
|
|
2281
|
-
function
|
|
2289
|
+
function Ao(e, t) {
|
|
2282
2290
|
const n = new Map(e.map((r) => [r.key, r]));
|
|
2283
2291
|
return t.map((r) => {
|
|
2284
2292
|
const i = n.get(r.key);
|
|
2285
|
-
return i &&
|
|
2293
|
+
return i && So(i, r) && xo(i, r) ? i : r;
|
|
2286
2294
|
});
|
|
2287
2295
|
}
|
|
2288
|
-
const
|
|
2296
|
+
const Oo = 12, Po = [
|
|
2289
2297
|
1,
|
|
2290
2298
|
1,
|
|
2291
2299
|
2,
|
|
@@ -2314,7 +2322,7 @@ const Ao = 12, Oo = [
|
|
|
2314
2322
|
9
|
|
2315
2323
|
];
|
|
2316
2324
|
function mt(e) {
|
|
2317
|
-
return
|
|
2325
|
+
return Po[e];
|
|
2318
2326
|
}
|
|
2319
2327
|
function rn(e, t) {
|
|
2320
2328
|
const n = e.getSouthWest().toJSON(), r = e.getNorthEast().toJSON(), i = ie.encode(n.lat, n.lng, t), o = ie.bounds(i), s = Math.abs(o.sw.lat - o.ne.lat), c = Math.abs(o.sw.lon - o.ne.lon);
|
|
@@ -2331,10 +2339,10 @@ function rn(e, t) {
|
|
|
2331
2339
|
seLng: d
|
|
2332
2340
|
};
|
|
2333
2341
|
}
|
|
2334
|
-
function
|
|
2342
|
+
function Do(e, t) {
|
|
2335
2343
|
return e.nwLat === t.nwLat && e.nwLng === t.nwLng && e.seLat === t.seLat && e.seLng === t.seLng;
|
|
2336
2344
|
}
|
|
2337
|
-
function
|
|
2345
|
+
function Io({
|
|
2338
2346
|
map: e,
|
|
2339
2347
|
filters: t,
|
|
2340
2348
|
fetchGeohashes: n,
|
|
@@ -2363,14 +2371,14 @@ function Do({
|
|
|
2363
2371
|
...m,
|
|
2364
2372
|
zoom: q
|
|
2365
2373
|
}, Z = rn(e.getBounds(), g);
|
|
2366
|
-
_ &&
|
|
2374
|
+
_ && Do(_, Z) || (_ = Z, b({
|
|
2367
2375
|
...K,
|
|
2368
2376
|
normalizedBounds: Z
|
|
2369
2377
|
}));
|
|
2370
2378
|
});
|
|
2371
2379
|
}, []);
|
|
2372
|
-
function
|
|
2373
|
-
h(
|
|
2380
|
+
function M(g) {
|
|
2381
|
+
h(Ao(f, g));
|
|
2374
2382
|
}
|
|
2375
2383
|
J(() => {
|
|
2376
2384
|
m.normalizedBounds && o?.(m.normalizedBounds);
|
|
@@ -2382,7 +2390,7 @@ function Do({
|
|
|
2382
2390
|
bbox: m.normalizedBounds,
|
|
2383
2391
|
...t
|
|
2384
2392
|
}).then(({ data: _ }) => {
|
|
2385
|
-
g || (
|
|
2393
|
+
g || (M(_), i(!1));
|
|
2386
2394
|
}).catch((_) => {
|
|
2387
2395
|
i(!1);
|
|
2388
2396
|
}), () => {
|
|
@@ -2397,17 +2405,17 @@ function Do({
|
|
|
2397
2405
|
[e, r]
|
|
2398
2406
|
), D = oe(l?.version, "v3"), O = (g) => !!c?.length && g.ids.some((_) => c.includes(_));
|
|
2399
2407
|
return D ? /* @__PURE__ */ p(re, { children: [
|
|
2400
|
-
/* @__PURE__ */ a(
|
|
2408
|
+
/* @__PURE__ */ a(vo, {}),
|
|
2401
2409
|
f.filter(Boolean).map((g) => {
|
|
2402
|
-
const _ = or(d,
|
|
2410
|
+
const _ = or(d, oo(g));
|
|
2403
2411
|
return /* @__PURE__ */ a(
|
|
2404
|
-
|
|
2412
|
+
_o,
|
|
2405
2413
|
{
|
|
2406
2414
|
map: e,
|
|
2407
2415
|
data: g,
|
|
2408
2416
|
kind: s,
|
|
2409
2417
|
selected: O(g),
|
|
2410
|
-
compact: v <
|
|
2418
|
+
compact: v < Oo,
|
|
2411
2419
|
price: _,
|
|
2412
2420
|
priceLabel: _ && u("pin.pricePerKwh", { price: _ }),
|
|
2413
2421
|
sitesLabel: u("pin.sites"),
|
|
@@ -2417,7 +2425,7 @@ function Do({
|
|
|
2417
2425
|
);
|
|
2418
2426
|
})
|
|
2419
2427
|
] }) : /* @__PURE__ */ a(re, { children: f.filter(Boolean).map((g) => /* @__PURE__ */ a(
|
|
2420
|
-
|
|
2428
|
+
Ui,
|
|
2421
2429
|
{
|
|
2422
2430
|
map: e,
|
|
2423
2431
|
data: g,
|
|
@@ -2427,7 +2435,7 @@ function Do({
|
|
|
2427
2435
|
g.key
|
|
2428
2436
|
)) });
|
|
2429
2437
|
}
|
|
2430
|
-
function
|
|
2438
|
+
function ko() {
|
|
2431
2439
|
const {
|
|
2432
2440
|
place: e,
|
|
2433
2441
|
options: t,
|
|
@@ -2463,8 +2471,8 @@ function Io() {
|
|
|
2463
2471
|
console.log("unmounting");
|
|
2464
2472
|
};
|
|
2465
2473
|
});
|
|
2466
|
-
}, [c]), /* @__PURE__ */ a("div", { className:
|
|
2467
|
-
|
|
2474
|
+
}, [c]), /* @__PURE__ */ a("div", { className: ki.container, ref: u, children: l && l.getBounds() && /* @__PURE__ */ a(
|
|
2475
|
+
Io,
|
|
2468
2476
|
{
|
|
2469
2477
|
filters: o,
|
|
2470
2478
|
onMarkerClicked: (h) => {
|
|
@@ -2486,8 +2494,8 @@ const Ft = ({ color: e, size: t = 10 }) => /* @__PURE__ */ a(
|
|
|
2486
2494
|
background: e
|
|
2487
2495
|
}
|
|
2488
2496
|
}
|
|
2489
|
-
), on = "(min-width: 768px)",
|
|
2490
|
-
function
|
|
2497
|
+
), on = "(min-width: 768px)", Mo = 380, an = 20, Ro = 48;
|
|
2498
|
+
function Lo() {
|
|
2491
2499
|
const [e, t] = Y(
|
|
2492
2500
|
() => window.matchMedia(on).matches
|
|
2493
2501
|
);
|
|
@@ -2496,10 +2504,10 @@ function Ro() {
|
|
|
2496
2504
|
return n.addEventListener("change", r), () => n.removeEventListener("change", r);
|
|
2497
2505
|
}, []), e;
|
|
2498
2506
|
}
|
|
2499
|
-
const
|
|
2507
|
+
const Fo = {
|
|
2500
2508
|
position: "absolute",
|
|
2501
2509
|
top: an,
|
|
2502
|
-
left:
|
|
2510
|
+
left: Mo,
|
|
2503
2511
|
right: an,
|
|
2504
2512
|
zIndex: 1,
|
|
2505
2513
|
display: "flex",
|
|
@@ -2513,13 +2521,13 @@ const Lo = {
|
|
|
2513
2521
|
pointerEvents: "none",
|
|
2514
2522
|
userSelect: "none",
|
|
2515
2523
|
transition: "opacity 0.2s ease"
|
|
2516
|
-
},
|
|
2524
|
+
}, Ho = {
|
|
2517
2525
|
boxSizing: "border-box",
|
|
2518
2526
|
display: "flex",
|
|
2519
2527
|
flexDirection: "row",
|
|
2520
2528
|
alignItems: "center",
|
|
2521
2529
|
gap: 8,
|
|
2522
|
-
height:
|
|
2530
|
+
height: Ro,
|
|
2523
2531
|
padding: "0 12px",
|
|
2524
2532
|
background: "var(--roadmap-background-color, #fff)",
|
|
2525
2533
|
border: "1px solid var(--roadmap-border-color, #ddd)",
|
|
@@ -2528,7 +2536,7 @@ const Lo = {
|
|
|
2528
2536
|
// the row around the pills lets map gestures through; the pills themselves
|
|
2529
2537
|
// take clicks
|
|
2530
2538
|
pointerEvents: "auto"
|
|
2531
|
-
},
|
|
2539
|
+
}, $o = "#fff", mr = "#3a3a3a", Vo = [
|
|
2532
2540
|
"1px 0 0",
|
|
2533
2541
|
"-1px 0 0",
|
|
2534
2542
|
"0 1px 0",
|
|
@@ -2537,7 +2545,7 @@ const Lo = {
|
|
|
2537
2545
|
"-1px -1px 0",
|
|
2538
2546
|
"1px -1px 0",
|
|
2539
2547
|
"-1px 1px 0"
|
|
2540
|
-
].map((e) => `${e} ${
|
|
2548
|
+
].map((e) => `${e} ${$o}`).join(", "), zo = {
|
|
2541
2549
|
display: "flex",
|
|
2542
2550
|
alignItems: "center",
|
|
2543
2551
|
gap: 6,
|
|
@@ -2546,7 +2554,7 @@ const Lo = {
|
|
|
2546
2554
|
fontWeight: 700,
|
|
2547
2555
|
lineHeight: "13px",
|
|
2548
2556
|
color: mr,
|
|
2549
|
-
textShadow:
|
|
2557
|
+
textShadow: Vo,
|
|
2550
2558
|
pointerEvents: "auto"
|
|
2551
2559
|
}, hr = {
|
|
2552
2560
|
padding: 0,
|
|
@@ -2557,7 +2565,7 @@ const Lo = {
|
|
|
2557
2565
|
color: "#8a8a8a",
|
|
2558
2566
|
cursor: "pointer",
|
|
2559
2567
|
outline: "none"
|
|
2560
|
-
},
|
|
2568
|
+
}, Bo = {
|
|
2561
2569
|
...hr,
|
|
2562
2570
|
color: mr,
|
|
2563
2571
|
cursor: "default"
|
|
@@ -2575,13 +2583,13 @@ const Lo = {
|
|
|
2575
2583
|
color: "inherit",
|
|
2576
2584
|
lineHeight: "16px",
|
|
2577
2585
|
outline: "none"
|
|
2578
|
-
},
|
|
2586
|
+
}, Uo = {
|
|
2579
2587
|
..._t,
|
|
2580
2588
|
borderColor: "var(--roadmap-brand-color, #ff3d00)",
|
|
2581
2589
|
color: "var(--roadmap-brand-color, #ff3d00)"
|
|
2582
|
-
}, Uo = {
|
|
2583
|
-
cursor: "pointer"
|
|
2584
2590
|
}, Wo = {
|
|
2591
|
+
cursor: "pointer"
|
|
2592
|
+
}, jo = {
|
|
2585
2593
|
fontSize: 13,
|
|
2586
2594
|
fontWeight: 600
|
|
2587
2595
|
};
|
|
@@ -2595,7 +2603,7 @@ function sn({
|
|
|
2595
2603
|
const f = Xt(r, l, u);
|
|
2596
2604
|
!f || !s || s({ ...o, status: f });
|
|
2597
2605
|
};
|
|
2598
|
-
return /* @__PURE__ */ a("div", { style:
|
|
2606
|
+
return /* @__PURE__ */ a("div", { style: Ho, children: e.map((u) => {
|
|
2599
2607
|
const f = !!r && Xt(r, l, u.name) !== void 0, h = f && er(r, l, u.name), v = /* @__PURE__ */ p(re, { children: [
|
|
2600
2608
|
/* @__PURE__ */ a(
|
|
2601
2609
|
Ft,
|
|
@@ -2604,7 +2612,7 @@ function sn({
|
|
|
2604
2612
|
size: 8
|
|
2605
2613
|
}
|
|
2606
2614
|
),
|
|
2607
|
-
/* @__PURE__ */ a("span", { style:
|
|
2615
|
+
/* @__PURE__ */ a("span", { style: jo, children: t.format(u.count) }),
|
|
2608
2616
|
i(Mt(u.name))
|
|
2609
2617
|
] });
|
|
2610
2618
|
return f ? /* @__PURE__ */ a(
|
|
@@ -2613,8 +2621,8 @@ function sn({
|
|
|
2613
2621
|
type: "button",
|
|
2614
2622
|
"aria-pressed": h,
|
|
2615
2623
|
style: {
|
|
2616
|
-
...h ?
|
|
2617
|
-
...
|
|
2624
|
+
...h ? Uo : _t,
|
|
2625
|
+
...Wo
|
|
2618
2626
|
},
|
|
2619
2627
|
onClick: () => d(u.name),
|
|
2620
2628
|
children: v
|
|
@@ -2623,7 +2631,7 @@ function sn({
|
|
|
2623
2631
|
) : /* @__PURE__ */ a("span", { style: _t, children: v }, u.name);
|
|
2624
2632
|
}) });
|
|
2625
2633
|
}
|
|
2626
|
-
function
|
|
2634
|
+
function Go() {
|
|
2627
2635
|
const {
|
|
2628
2636
|
t: e,
|
|
2629
2637
|
language: t,
|
|
@@ -2633,14 +2641,14 @@ function jo() {
|
|
|
2633
2641
|
searchBounds: o,
|
|
2634
2642
|
fetchAnalytics: s,
|
|
2635
2643
|
mapKind: c
|
|
2636
|
-
} = W(), [l, d] = Y(), [u, f] = Y(!1), [h, v] = Y("ocpp"), C =
|
|
2644
|
+
} = W(), [l, d] = Y(), [u, f] = Y(!1), [h, v] = Y("ocpp"), C = Lo(), m = oe(n?.version, "v2") && !!i?.showAnalytics, b = JSON.stringify(Ai(r)), M = ce(
|
|
2637
2645
|
() => JSON.parse(b),
|
|
2638
2646
|
[b]
|
|
2639
2647
|
);
|
|
2640
2648
|
J(() => {
|
|
2641
2649
|
if (!m || !o || !s) return;
|
|
2642
2650
|
let K = !1;
|
|
2643
|
-
return f(!0), s({ bbox: o, ...
|
|
2651
|
+
return f(!0), s({ bbox: o, ...M }).then((Z) => {
|
|
2644
2652
|
K || d(Z?.data);
|
|
2645
2653
|
}).catch(() => {
|
|
2646
2654
|
K || d(void 0);
|
|
@@ -2649,7 +2657,7 @@ function jo() {
|
|
|
2649
2657
|
}), () => {
|
|
2650
2658
|
K = !0;
|
|
2651
2659
|
};
|
|
2652
|
-
}, [m, o,
|
|
2660
|
+
}, [m, o, M, c]);
|
|
2653
2661
|
const B = ce(() => new Intl.NumberFormat(t), [t]);
|
|
2654
2662
|
if (!m || !C || !l)
|
|
2655
2663
|
return null;
|
|
@@ -2657,7 +2665,7 @@ function jo() {
|
|
|
2657
2665
|
if (g.length > 0 && _.push("ocpp"), O.length > 0 && _.push("roaming"), _.length === 0)
|
|
2658
2666
|
return null;
|
|
2659
2667
|
const q = _.includes(h) ? h : _[0];
|
|
2660
|
-
return /* @__PURE__ */ p("div", { style: { ...
|
|
2668
|
+
return /* @__PURE__ */ p("div", { style: { ...Fo, opacity: u ? 0.6 : 1 }, children: [
|
|
2661
2669
|
q === "ocpp" ? /* @__PURE__ */ a(
|
|
2662
2670
|
sn,
|
|
2663
2671
|
{
|
|
@@ -2680,14 +2688,14 @@ function jo() {
|
|
|
2680
2688
|
}
|
|
2681
2689
|
)
|
|
2682
2690
|
),
|
|
2683
|
-
_.length > 1 && /* @__PURE__ */ a("div", { style:
|
|
2691
|
+
_.length > 1 && /* @__PURE__ */ a("div", { style: zo, role: "group", children: _.map((K, Z) => /* @__PURE__ */ p(U.Fragment, { children: [
|
|
2684
2692
|
Z > 0 && /* @__PURE__ */ a("span", { "aria-hidden": "true", children: "|" }),
|
|
2685
2693
|
/* @__PURE__ */ a(
|
|
2686
2694
|
"button",
|
|
2687
2695
|
{
|
|
2688
2696
|
type: "button",
|
|
2689
2697
|
"aria-pressed": K === q,
|
|
2690
|
-
style: K === q ?
|
|
2698
|
+
style: K === q ? Bo : hr,
|
|
2691
2699
|
onClick: () => v(K),
|
|
2692
2700
|
children: e(
|
|
2693
2701
|
K === "ocpp" ? "analytics.evseStatus" : "analytics.roamingStatus"
|
|
@@ -2723,7 +2731,7 @@ function St(e, t) {
|
|
|
2723
2731
|
function Ht(e, t) {
|
|
2724
2732
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, St(e, t);
|
|
2725
2733
|
}
|
|
2726
|
-
function
|
|
2734
|
+
function Yo(e) {
|
|
2727
2735
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2728
2736
|
}
|
|
2729
2737
|
var Je = { exports: {} }, Xe = { exports: {} }, j = {};
|
|
@@ -2736,10 +2744,10 @@ var Je = { exports: {} }, Xe = { exports: {} }, j = {};
|
|
|
2736
2744
|
* LICENSE file in the root directory of this source tree.
|
|
2737
2745
|
*/
|
|
2738
2746
|
var ln;
|
|
2739
|
-
function
|
|
2747
|
+
function Ko() {
|
|
2740
2748
|
if (ln) return j;
|
|
2741
2749
|
ln = 1;
|
|
2742
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117,
|
|
2750
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, M = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
|
|
2743
2751
|
function D(g) {
|
|
2744
2752
|
if (typeof g == "object" && g !== null) {
|
|
2745
2753
|
var _ = g.$$typeof;
|
|
@@ -2798,7 +2806,7 @@ function Yo() {
|
|
|
2798
2806
|
}, j.isSuspense = function(g) {
|
|
2799
2807
|
return D(g) === f;
|
|
2800
2808
|
}, j.isValidElementType = function(g) {
|
|
2801
|
-
return typeof g == "string" || typeof g == "function" || g === r || g === d || g === o || g === i || g === f || g === h || typeof g == "object" && g !== null && (g.$$typeof === C || g.$$typeof === v || g.$$typeof === s || g.$$typeof === c || g.$$typeof === u || g.$$typeof === b || g.$$typeof ===
|
|
2809
|
+
return typeof g == "string" || typeof g == "function" || g === r || g === d || g === o || g === i || g === f || g === h || typeof g == "object" && g !== null && (g.$$typeof === C || g.$$typeof === v || g.$$typeof === s || g.$$typeof === c || g.$$typeof === u || g.$$typeof === b || g.$$typeof === M || g.$$typeof === B || g.$$typeof === m);
|
|
2802
2810
|
}, j.typeOf = D, j;
|
|
2803
2811
|
}
|
|
2804
2812
|
var G = {};
|
|
@@ -2811,12 +2819,12 @@ var G = {};
|
|
|
2811
2819
|
* LICENSE file in the root directory of this source tree.
|
|
2812
2820
|
*/
|
|
2813
2821
|
var cn;
|
|
2814
|
-
function
|
|
2822
|
+
function Zo() {
|
|
2815
2823
|
return cn || (cn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
2816
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117,
|
|
2824
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, M = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
|
|
2817
2825
|
function D(T) {
|
|
2818
2826
|
return typeof T == "string" || typeof T == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2819
|
-
T === r || T === d || T === o || T === i || T === f || T === h || typeof T == "object" && T !== null && (T.$$typeof === C || T.$$typeof === v || T.$$typeof === s || T.$$typeof === c || T.$$typeof === u || T.$$typeof === b || T.$$typeof ===
|
|
2827
|
+
T === r || T === d || T === o || T === i || T === f || T === h || typeof T == "object" && T !== null && (T.$$typeof === C || T.$$typeof === v || T.$$typeof === s || T.$$typeof === c || T.$$typeof === u || T.$$typeof === b || T.$$typeof === M || T.$$typeof === B || T.$$typeof === m);
|
|
2820
2828
|
}
|
|
2821
2829
|
function O(T) {
|
|
2822
2830
|
if (typeof T == "object" && T !== null) {
|
|
@@ -2872,7 +2880,7 @@ function Ko() {
|
|
|
2872
2880
|
function z(T) {
|
|
2873
2881
|
return O(T) === r;
|
|
2874
2882
|
}
|
|
2875
|
-
function
|
|
2883
|
+
function R(T) {
|
|
2876
2884
|
return O(T) === C;
|
|
2877
2885
|
}
|
|
2878
2886
|
function V(T) {
|
|
@@ -2881,7 +2889,7 @@ function Ko() {
|
|
|
2881
2889
|
function N(T) {
|
|
2882
2890
|
return O(T) === n;
|
|
2883
2891
|
}
|
|
2884
|
-
function
|
|
2892
|
+
function L(T) {
|
|
2885
2893
|
return O(T) === o;
|
|
2886
2894
|
}
|
|
2887
2895
|
function k(T) {
|
|
@@ -2890,12 +2898,12 @@ function Ko() {
|
|
|
2890
2898
|
function se(T) {
|
|
2891
2899
|
return O(T) === f;
|
|
2892
2900
|
}
|
|
2893
|
-
G.AsyncMode = g, G.ConcurrentMode = _, G.ContextConsumer = q, G.ContextProvider = K, G.Element = Z, G.ForwardRef = te, G.Fragment = ae, G.Lazy = ge, G.Memo = ue, G.Portal = w, G.Profiler = $, G.StrictMode = X, G.Suspense = le, G.isAsyncMode = Ie, G.isConcurrentMode = y, G.isContextConsumer = E, G.isContextProvider = F, G.isElement = H, G.isForwardRef = I, G.isFragment = z, G.isLazy =
|
|
2901
|
+
G.AsyncMode = g, G.ConcurrentMode = _, G.ContextConsumer = q, G.ContextProvider = K, G.Element = Z, G.ForwardRef = te, G.Fragment = ae, G.Lazy = ge, G.Memo = ue, G.Portal = w, G.Profiler = $, G.StrictMode = X, G.Suspense = le, G.isAsyncMode = Ie, G.isConcurrentMode = y, G.isContextConsumer = E, G.isContextProvider = F, G.isElement = H, G.isForwardRef = I, G.isFragment = z, G.isLazy = R, G.isMemo = V, G.isPortal = N, G.isProfiler = L, G.isStrictMode = k, G.isSuspense = se, G.isValidElementType = D, G.typeOf = O;
|
|
2894
2902
|
})()), G;
|
|
2895
2903
|
}
|
|
2896
2904
|
var dn;
|
|
2897
2905
|
function vr() {
|
|
2898
|
-
return dn || (dn = 1, process.env.NODE_ENV === "production" ? Xe.exports =
|
|
2906
|
+
return dn || (dn = 1, process.env.NODE_ENV === "production" ? Xe.exports = Ko() : Xe.exports = Zo()), Xe.exports;
|
|
2899
2907
|
}
|
|
2900
2908
|
/*
|
|
2901
2909
|
object-assign
|
|
@@ -2903,7 +2911,7 @@ object-assign
|
|
|
2903
2911
|
@license MIT
|
|
2904
2912
|
*/
|
|
2905
2913
|
var ht, un;
|
|
2906
|
-
function
|
|
2914
|
+
function qo() {
|
|
2907
2915
|
if (un) return ht;
|
|
2908
2916
|
un = 1;
|
|
2909
2917
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
@@ -2960,7 +2968,7 @@ function yr() {
|
|
|
2960
2968
|
return pn || (pn = 1, vt = Function.call.bind(Object.prototype.hasOwnProperty)), vt;
|
|
2961
2969
|
}
|
|
2962
2970
|
var yt, mn;
|
|
2963
|
-
function
|
|
2971
|
+
function Jo() {
|
|
2964
2972
|
if (mn) return yt;
|
|
2965
2973
|
mn = 1;
|
|
2966
2974
|
var e = function() {
|
|
@@ -3009,10 +3017,10 @@ function qo() {
|
|
|
3009
3017
|
}, yt = i, yt;
|
|
3010
3018
|
}
|
|
3011
3019
|
var Ct, hn;
|
|
3012
|
-
function
|
|
3020
|
+
function Xo() {
|
|
3013
3021
|
if (hn) return Ct;
|
|
3014
3022
|
hn = 1;
|
|
3015
|
-
var e = vr(), t =
|
|
3023
|
+
var e = vr(), t = qo(), n = /* @__PURE__ */ $t(), r = /* @__PURE__ */ yr(), i = /* @__PURE__ */ Jo(), o = function() {
|
|
3016
3024
|
};
|
|
3017
3025
|
process.env.NODE_ENV !== "production" && (o = function(c) {
|
|
3018
3026
|
var l = "Warning: " + c;
|
|
@@ -3033,14 +3041,14 @@ function Jo() {
|
|
|
3033
3041
|
return E;
|
|
3034
3042
|
}
|
|
3035
3043
|
var h = "<<anonymous>>", v = {
|
|
3036
|
-
array:
|
|
3037
|
-
bigint:
|
|
3038
|
-
bool:
|
|
3039
|
-
func:
|
|
3040
|
-
number:
|
|
3041
|
-
object:
|
|
3042
|
-
string:
|
|
3043
|
-
symbol:
|
|
3044
|
+
array: M("array"),
|
|
3045
|
+
bigint: M("bigint"),
|
|
3046
|
+
bool: M("boolean"),
|
|
3047
|
+
func: M("function"),
|
|
3048
|
+
number: M("number"),
|
|
3049
|
+
object: M("object"),
|
|
3050
|
+
string: M("string"),
|
|
3051
|
+
symbol: M("symbol"),
|
|
3044
3052
|
any: B(),
|
|
3045
3053
|
arrayOf: D,
|
|
3046
3054
|
element: O(),
|
|
@@ -3063,7 +3071,7 @@ function Jo() {
|
|
|
3063
3071
|
function b(y) {
|
|
3064
3072
|
if (process.env.NODE_ENV !== "production")
|
|
3065
3073
|
var E = {}, F = 0;
|
|
3066
|
-
function H(z,
|
|
3074
|
+
function H(z, R, V, N, L, k, se) {
|
|
3067
3075
|
if (N = N || h, k = k || V, se !== n) {
|
|
3068
3076
|
if (l) {
|
|
3069
3077
|
var T = new Error(
|
|
@@ -3078,18 +3086,18 @@ function Jo() {
|
|
|
3078
3086
|
), E[ye] = !0, F++);
|
|
3079
3087
|
}
|
|
3080
3088
|
}
|
|
3081
|
-
return
|
|
3089
|
+
return R[V] == null ? z ? R[V] === null ? new m("The " + L + " `" + k + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new m("The " + L + " `" + k + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : y(R, V, N, L, k);
|
|
3082
3090
|
}
|
|
3083
3091
|
var I = H.bind(null, !1);
|
|
3084
3092
|
return I.isRequired = H.bind(null, !0), I;
|
|
3085
3093
|
}
|
|
3086
|
-
function
|
|
3087
|
-
function E(F, H, I, z,
|
|
3088
|
-
var N = F[H],
|
|
3089
|
-
if (
|
|
3094
|
+
function M(y) {
|
|
3095
|
+
function E(F, H, I, z, R, V) {
|
|
3096
|
+
var N = F[H], L = X(N);
|
|
3097
|
+
if (L !== y) {
|
|
3090
3098
|
var k = le(N);
|
|
3091
3099
|
return new m(
|
|
3092
|
-
"Invalid " + z + " `" +
|
|
3100
|
+
"Invalid " + z + " `" + R + "` of type " + ("`" + k + "` supplied to `" + I + "`, expected ") + ("`" + y + "`."),
|
|
3093
3101
|
{ expectedType: y }
|
|
3094
3102
|
);
|
|
3095
3103
|
}
|
|
@@ -3101,16 +3109,16 @@ function Jo() {
|
|
|
3101
3109
|
return b(s);
|
|
3102
3110
|
}
|
|
3103
3111
|
function D(y) {
|
|
3104
|
-
function E(F, H, I, z,
|
|
3112
|
+
function E(F, H, I, z, R) {
|
|
3105
3113
|
if (typeof y != "function")
|
|
3106
|
-
return new m("Property `" +
|
|
3114
|
+
return new m("Property `" + R + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
|
|
3107
3115
|
var V = F[H];
|
|
3108
3116
|
if (!Array.isArray(V)) {
|
|
3109
3117
|
var N = X(V);
|
|
3110
|
-
return new m("Invalid " + z + " `" +
|
|
3118
|
+
return new m("Invalid " + z + " `" + R + "` of type " + ("`" + N + "` supplied to `" + I + "`, expected an array."));
|
|
3111
3119
|
}
|
|
3112
|
-
for (var
|
|
3113
|
-
var k = y(V,
|
|
3120
|
+
for (var L = 0; L < V.length; L++) {
|
|
3121
|
+
var k = y(V, L, I, z, R + "[" + L + "]", n);
|
|
3114
3122
|
if (k instanceof Error)
|
|
3115
3123
|
return k;
|
|
3116
3124
|
}
|
|
@@ -3120,9 +3128,9 @@ function Jo() {
|
|
|
3120
3128
|
}
|
|
3121
3129
|
function O() {
|
|
3122
3130
|
function y(E, F, H, I, z) {
|
|
3123
|
-
var
|
|
3124
|
-
if (!c(
|
|
3125
|
-
var V = X(
|
|
3131
|
+
var R = E[F];
|
|
3132
|
+
if (!c(R)) {
|
|
3133
|
+
var V = X(R);
|
|
3126
3134
|
return new m("Invalid " + I + " `" + z + "` of type " + ("`" + V + "` supplied to `" + H + "`, expected a single ReactElement."));
|
|
3127
3135
|
}
|
|
3128
3136
|
return null;
|
|
@@ -3131,9 +3139,9 @@ function Jo() {
|
|
|
3131
3139
|
}
|
|
3132
3140
|
function g() {
|
|
3133
3141
|
function y(E, F, H, I, z) {
|
|
3134
|
-
var
|
|
3135
|
-
if (!e.isValidElementType(
|
|
3136
|
-
var V = X(
|
|
3142
|
+
var R = E[F];
|
|
3143
|
+
if (!e.isValidElementType(R)) {
|
|
3144
|
+
var V = X(R);
|
|
3137
3145
|
return new m("Invalid " + I + " `" + z + "` of type " + ("`" + V + "` supplied to `" + H + "`, expected a single ReactElement type."));
|
|
3138
3146
|
}
|
|
3139
3147
|
return null;
|
|
@@ -3141,10 +3149,10 @@ function Jo() {
|
|
|
3141
3149
|
return b(y);
|
|
3142
3150
|
}
|
|
3143
3151
|
function _(y) {
|
|
3144
|
-
function E(F, H, I, z,
|
|
3152
|
+
function E(F, H, I, z, R) {
|
|
3145
3153
|
if (!(F[H] instanceof y)) {
|
|
3146
3154
|
var V = y.name || h, N = Ie(F[H]);
|
|
3147
|
-
return new m("Invalid " + z + " `" +
|
|
3155
|
+
return new m("Invalid " + z + " `" + R + "` of type " + ("`" + N + "` supplied to `" + I + "`, expected ") + ("instance of `" + V + "`."));
|
|
3148
3156
|
}
|
|
3149
3157
|
return null;
|
|
3150
3158
|
}
|
|
@@ -3155,28 +3163,28 @@ function Jo() {
|
|
|
3155
3163
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
3156
3164
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
3157
3165
|
) : o("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
3158
|
-
function E(F, H, I, z,
|
|
3166
|
+
function E(F, H, I, z, R) {
|
|
3159
3167
|
for (var V = F[H], N = 0; N < y.length; N++)
|
|
3160
3168
|
if (C(V, y[N]))
|
|
3161
3169
|
return null;
|
|
3162
|
-
var
|
|
3170
|
+
var L = JSON.stringify(y, function(se, T) {
|
|
3163
3171
|
var ye = le(T);
|
|
3164
3172
|
return ye === "symbol" ? String(T) : T;
|
|
3165
3173
|
});
|
|
3166
|
-
return new m("Invalid " + z + " `" +
|
|
3174
|
+
return new m("Invalid " + z + " `" + R + "` of value `" + String(V) + "` " + ("supplied to `" + I + "`, expected one of " + L + "."));
|
|
3167
3175
|
}
|
|
3168
3176
|
return b(E);
|
|
3169
3177
|
}
|
|
3170
3178
|
function K(y) {
|
|
3171
|
-
function E(F, H, I, z,
|
|
3179
|
+
function E(F, H, I, z, R) {
|
|
3172
3180
|
if (typeof y != "function")
|
|
3173
|
-
return new m("Property `" +
|
|
3181
|
+
return new m("Property `" + R + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
|
|
3174
3182
|
var V = F[H], N = X(V);
|
|
3175
3183
|
if (N !== "object")
|
|
3176
|
-
return new m("Invalid " + z + " `" +
|
|
3177
|
-
for (var
|
|
3178
|
-
if (r(V,
|
|
3179
|
-
var k = y(V,
|
|
3184
|
+
return new m("Invalid " + z + " `" + R + "` of type " + ("`" + N + "` supplied to `" + I + "`, expected an object."));
|
|
3185
|
+
for (var L in V)
|
|
3186
|
+
if (r(V, L)) {
|
|
3187
|
+
var k = y(V, L, I, z, R + "." + L, n);
|
|
3180
3188
|
if (k instanceof Error)
|
|
3181
3189
|
return k;
|
|
3182
3190
|
}
|
|
@@ -3194,15 +3202,15 @@ function Jo() {
|
|
|
3194
3202
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ve(F) + " at index " + E + "."
|
|
3195
3203
|
), s;
|
|
3196
3204
|
}
|
|
3197
|
-
function H(I, z,
|
|
3198
|
-
for (var
|
|
3199
|
-
var se = y[k], T = se(I, z,
|
|
3205
|
+
function H(I, z, R, V, N) {
|
|
3206
|
+
for (var L = [], k = 0; k < y.length; k++) {
|
|
3207
|
+
var se = y[k], T = se(I, z, R, V, N, n);
|
|
3200
3208
|
if (T == null)
|
|
3201
3209
|
return null;
|
|
3202
|
-
T.data && r(T.data, "expectedType") &&
|
|
3210
|
+
T.data && r(T.data, "expectedType") && L.push(T.data.expectedType);
|
|
3203
3211
|
}
|
|
3204
|
-
var ye =
|
|
3205
|
-
return new m("Invalid " + V + " `" + N + "` supplied to " + ("`" +
|
|
3212
|
+
var ye = L.length > 0 ? ", expected one of type [" + L.join(", ") + "]" : "";
|
|
3213
|
+
return new m("Invalid " + V + " `" + N + "` supplied to " + ("`" + R + "`" + ye + "."));
|
|
3206
3214
|
}
|
|
3207
3215
|
return b(H);
|
|
3208
3216
|
}
|
|
@@ -3218,15 +3226,15 @@ function Jo() {
|
|
|
3218
3226
|
);
|
|
3219
3227
|
}
|
|
3220
3228
|
function ge(y) {
|
|
3221
|
-
function E(F, H, I, z,
|
|
3229
|
+
function E(F, H, I, z, R) {
|
|
3222
3230
|
var V = F[H], N = X(V);
|
|
3223
3231
|
if (N !== "object")
|
|
3224
|
-
return new m("Invalid " + z + " `" +
|
|
3225
|
-
for (var
|
|
3226
|
-
var k = y[
|
|
3232
|
+
return new m("Invalid " + z + " `" + R + "` of type `" + N + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
3233
|
+
for (var L in y) {
|
|
3234
|
+
var k = y[L];
|
|
3227
3235
|
if (typeof k != "function")
|
|
3228
|
-
return ae(I, z,
|
|
3229
|
-
var se = k(V,
|
|
3236
|
+
return ae(I, z, R, L, le(k));
|
|
3237
|
+
var se = k(V, L, I, z, R + "." + L, n);
|
|
3230
3238
|
if (se)
|
|
3231
3239
|
return se;
|
|
3232
3240
|
}
|
|
@@ -3235,21 +3243,21 @@ function Jo() {
|
|
|
3235
3243
|
return b(E);
|
|
3236
3244
|
}
|
|
3237
3245
|
function ue(y) {
|
|
3238
|
-
function E(F, H, I, z,
|
|
3246
|
+
function E(F, H, I, z, R) {
|
|
3239
3247
|
var V = F[H], N = X(V);
|
|
3240
3248
|
if (N !== "object")
|
|
3241
|
-
return new m("Invalid " + z + " `" +
|
|
3242
|
-
var
|
|
3243
|
-
for (var k in
|
|
3249
|
+
return new m("Invalid " + z + " `" + R + "` of type `" + N + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
3250
|
+
var L = t({}, F[H], y);
|
|
3251
|
+
for (var k in L) {
|
|
3244
3252
|
var se = y[k];
|
|
3245
3253
|
if (r(y, k) && typeof se != "function")
|
|
3246
|
-
return ae(I, z,
|
|
3254
|
+
return ae(I, z, R, k, le(se));
|
|
3247
3255
|
if (!se)
|
|
3248
3256
|
return new m(
|
|
3249
|
-
"Invalid " + z + " `" +
|
|
3257
|
+
"Invalid " + z + " `" + R + "` key `" + k + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(F[H], null, " ") + `
|
|
3250
3258
|
Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
3251
3259
|
);
|
|
3252
|
-
var T = se(V, k, I, z,
|
|
3260
|
+
var T = se(V, k, I, z, R + "." + k, n);
|
|
3253
3261
|
if (T)
|
|
3254
3262
|
return T;
|
|
3255
3263
|
}
|
|
@@ -3330,7 +3338,7 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
|
3330
3338
|
}, Ct;
|
|
3331
3339
|
}
|
|
3332
3340
|
var bt, gn;
|
|
3333
|
-
function
|
|
3341
|
+
function Qo() {
|
|
3334
3342
|
if (gn) return bt;
|
|
3335
3343
|
gn = 1;
|
|
3336
3344
|
var e = /* @__PURE__ */ $t();
|
|
@@ -3378,37 +3386,37 @@ function Xo() {
|
|
|
3378
3386
|
}, bt;
|
|
3379
3387
|
}
|
|
3380
3388
|
var vn;
|
|
3381
|
-
function
|
|
3389
|
+
function ea() {
|
|
3382
3390
|
if (vn) return Je.exports;
|
|
3383
3391
|
if (vn = 1, process.env.NODE_ENV !== "production") {
|
|
3384
3392
|
var e = vr(), t = !0;
|
|
3385
|
-
Je.exports = /* @__PURE__ */
|
|
3393
|
+
Je.exports = /* @__PURE__ */ Xo()(e.isElement, t);
|
|
3386
3394
|
} else
|
|
3387
|
-
Je.exports = /* @__PURE__ */
|
|
3395
|
+
Je.exports = /* @__PURE__ */ Qo()();
|
|
3388
3396
|
return Je.exports;
|
|
3389
3397
|
}
|
|
3390
|
-
var
|
|
3391
|
-
const P = /* @__PURE__ */
|
|
3392
|
-
function
|
|
3398
|
+
var ta = /* @__PURE__ */ ea();
|
|
3399
|
+
const P = /* @__PURE__ */ Yo(ta);
|
|
3400
|
+
function na(e, t) {
|
|
3393
3401
|
return e.classList ? !!t && e.classList.contains(t) : (" " + (e.className.baseVal || e.className) + " ").indexOf(" " + t + " ") !== -1;
|
|
3394
3402
|
}
|
|
3395
|
-
function
|
|
3396
|
-
e.classList ? e.classList.add(t) :
|
|
3403
|
+
function ra(e, t) {
|
|
3404
|
+
e.classList ? e.classList.add(t) : na(e, t) || (typeof e.className == "string" ? e.className = e.className + " " + t : e.setAttribute("class", (e.className && e.className.baseVal || "") + " " + t));
|
|
3397
3405
|
}
|
|
3398
3406
|
function yn(e, t) {
|
|
3399
3407
|
return e.replace(new RegExp("(^|\\s)" + t + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
3400
3408
|
}
|
|
3401
|
-
function
|
|
3409
|
+
function ia(e, t) {
|
|
3402
3410
|
e.classList ? e.classList.remove(t) : typeof e.className == "string" ? e.className = yn(e.className, t) : e.setAttribute("class", yn(e.className && e.className.baseVal || "", t));
|
|
3403
3411
|
}
|
|
3404
3412
|
const Cn = {
|
|
3405
3413
|
disabled: !1
|
|
3406
3414
|
};
|
|
3407
|
-
var
|
|
3415
|
+
var oa = process.env.NODE_ENV !== "production" ? P.oneOfType([P.number, P.shape({
|
|
3408
3416
|
enter: P.number,
|
|
3409
3417
|
exit: P.number,
|
|
3410
3418
|
appear: P.number
|
|
3411
|
-
}).isRequired]) : null,
|
|
3419
|
+
}).isRequired]) : null, aa = process.env.NODE_ENV !== "production" ? P.oneOfType([P.string, P.shape({
|
|
3412
3420
|
enter: P.string,
|
|
3413
3421
|
exit: P.string,
|
|
3414
3422
|
active: P.string
|
|
@@ -3648,7 +3656,7 @@ Te.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
3648
3656
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
3649
3657
|
*/
|
|
3650
3658
|
timeout: function(t) {
|
|
3651
|
-
var n =
|
|
3659
|
+
var n = oa;
|
|
3652
3660
|
t.addEndListener || (n = n.isRequired);
|
|
3653
3661
|
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
|
3654
3662
|
i[o - 1] = arguments[o];
|
|
@@ -3742,13 +3750,13 @@ Te.EXITED = Ae;
|
|
|
3742
3750
|
Te.ENTERING = me;
|
|
3743
3751
|
Te.ENTERED = Ce;
|
|
3744
3752
|
Te.EXITING = Ye;
|
|
3745
|
-
var
|
|
3753
|
+
var sa = function(t, n) {
|
|
3746
3754
|
return t && n && n.split(" ").forEach(function(r) {
|
|
3747
|
-
return
|
|
3755
|
+
return ra(t, r);
|
|
3748
3756
|
});
|
|
3749
3757
|
}, Tt = function(t, n) {
|
|
3750
3758
|
return t && n && n.split(" ").forEach(function(r) {
|
|
3751
|
-
return
|
|
3759
|
+
return ia(t, r);
|
|
3752
3760
|
});
|
|
3753
3761
|
}, zt = /* @__PURE__ */ (function(e) {
|
|
3754
3762
|
Ht(t, e);
|
|
@@ -3791,7 +3799,7 @@ var aa = function(t, n) {
|
|
|
3791
3799
|
var n = t.prototype;
|
|
3792
3800
|
return n.addClass = function(i, o, s) {
|
|
3793
3801
|
var c = this.getClassNames(o)[s + "ClassName"], l = this.getClassNames("enter"), d = l.doneClassName;
|
|
3794
|
-
o === "appear" && s === "done" && d && (c += " " + d), s === "active" && i && Cr(i), c && (this.appliedClasses[o][s] = c,
|
|
3802
|
+
o === "appear" && s === "done" && d && (c += " " + d), s === "active" && i && Cr(i), c && (this.appliedClasses[o][s] = c, sa(i, c));
|
|
3795
3803
|
}, n.removeClasses = function(i, o) {
|
|
3796
3804
|
var s = this.appliedClasses[o], c = s.base, l = s.active, d = s.done;
|
|
3797
3805
|
this.appliedClasses[o] = {}, c && Tt(i, c), l && Tt(i, l), d && Tt(i, d);
|
|
@@ -3881,7 +3889,7 @@ zt.propTypes = process.env.NODE_ENV !== "production" ? ct({}, Te.propTypes, {
|
|
|
3881
3889
|
* exitDone?: string,
|
|
3882
3890
|
* }}
|
|
3883
3891
|
*/
|
|
3884
|
-
classNames:
|
|
3892
|
+
classNames: aa,
|
|
3885
3893
|
/**
|
|
3886
3894
|
* A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
|
|
3887
3895
|
* applied.
|
|
@@ -3937,7 +3945,7 @@ zt.propTypes = process.env.NODE_ENV !== "production" ? ct({}, Te.propTypes, {
|
|
|
3937
3945
|
onExited: P.func
|
|
3938
3946
|
}) : {};
|
|
3939
3947
|
var Qe, et;
|
|
3940
|
-
function
|
|
3948
|
+
function la(e, t) {
|
|
3941
3949
|
return !(e === t || U.isValidElement(e) && U.isValidElement(t) && e.key != null && e.key === t.key);
|
|
3942
3950
|
}
|
|
3943
3951
|
var _e = {
|
|
@@ -3948,7 +3956,7 @@ var _e = {
|
|
|
3948
3956
|
var i;
|
|
3949
3957
|
t.props[n] && (i = t.props)[n].apply(i, arguments), r();
|
|
3950
3958
|
};
|
|
3951
|
-
},
|
|
3959
|
+
}, ca = (Qe = {}, Qe[_e.out] = function(e) {
|
|
3952
3960
|
var t = e.current, n = e.changeState;
|
|
3953
3961
|
return U.cloneElement(t, {
|
|
3954
3962
|
in: !1,
|
|
@@ -3964,7 +3972,7 @@ var _e = {
|
|
|
3964
3972
|
n(me);
|
|
3965
3973
|
})
|
|
3966
3974
|
})];
|
|
3967
|
-
}, Qe),
|
|
3975
|
+
}, Qe), da = (et = {}, et[_e.out] = function(e) {
|
|
3968
3976
|
var t = e.children, n = e.changeState;
|
|
3969
3977
|
return U.cloneElement(t, {
|
|
3970
3978
|
in: !0,
|
|
@@ -4009,7 +4017,7 @@ var _e = {
|
|
|
4009
4017
|
current: null
|
|
4010
4018
|
} : o.status === me && i.mode === _e.in ? {
|
|
4011
4019
|
status: me
|
|
4012
|
-
} : o.current &&
|
|
4020
|
+
} : o.current && la(o.current, i.children) ? {
|
|
4013
4021
|
status: Ye
|
|
4014
4022
|
} : {
|
|
4015
4023
|
current: U.cloneElement(i.children, {
|
|
@@ -4025,10 +4033,10 @@ var _e = {
|
|
|
4025
4033
|
}, f;
|
|
4026
4034
|
switch (l) {
|
|
4027
4035
|
case me:
|
|
4028
|
-
f =
|
|
4036
|
+
f = da[s](u);
|
|
4029
4037
|
break;
|
|
4030
4038
|
case Ye:
|
|
4031
|
-
f =
|
|
4039
|
+
f = ca[s](u);
|
|
4032
4040
|
break;
|
|
4033
4041
|
case Ce:
|
|
4034
4042
|
f = d;
|
|
@@ -4057,14 +4065,14 @@ Bt.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
4057
4065
|
Bt.defaultProps = {
|
|
4058
4066
|
mode: _e.out
|
|
4059
4067
|
};
|
|
4060
|
-
const
|
|
4061
|
-
stack:
|
|
4062
|
-
slideEnter:
|
|
4063
|
-
slideEnterActive:
|
|
4064
|
-
slideExit:
|
|
4065
|
-
slideExitActive:
|
|
4068
|
+
const ua = "stack-module_stack", fa = "stack-module_slideEnter", pa = "stack-module_slideEnterActive", ma = "stack-module_slideExit", ha = "stack-module_slideExitActive", Ne = {
|
|
4069
|
+
stack: ua,
|
|
4070
|
+
slideEnter: fa,
|
|
4071
|
+
slideEnterActive: pa,
|
|
4072
|
+
slideExit: ma,
|
|
4073
|
+
slideExitActive: ha
|
|
4066
4074
|
};
|
|
4067
|
-
function
|
|
4075
|
+
function ga({ name: e, children: t }) {
|
|
4068
4076
|
return /* @__PURE__ */ a("div", { className: Ne.stack, children: t });
|
|
4069
4077
|
}
|
|
4070
4078
|
const br = jn({
|
|
@@ -4137,19 +4145,19 @@ function Ee({
|
|
|
4137
4145
|
t
|
|
4138
4146
|
) }) });
|
|
4139
4147
|
}
|
|
4140
|
-
Ee.View =
|
|
4141
|
-
const
|
|
4142
|
-
container:
|
|
4143
|
-
controlsContainer:
|
|
4144
|
-
filterButton:
|
|
4145
|
-
filterCounter:
|
|
4146
|
-
spinner:
|
|
4147
|
-
stackContainer:
|
|
4148
|
-
},
|
|
4149
|
-
container:
|
|
4150
|
-
searchInput:
|
|
4148
|
+
Ee.View = ga;
|
|
4149
|
+
const va = "router-module_container", ya = "router-module_controlsContainer", Ca = "router-module_filterButton", ba = "router-module_filterCounter", Ta = "router-module_spinner", Ea = "router-module_stackContainer", xe = {
|
|
4150
|
+
container: va,
|
|
4151
|
+
controlsContainer: ya,
|
|
4152
|
+
filterButton: Ca,
|
|
4153
|
+
filterCounter: ba,
|
|
4154
|
+
spinner: Ta,
|
|
4155
|
+
stackContainer: Ea
|
|
4156
|
+
}, wa = "SearchInput-module_container", Na = "SearchInput-module_searchInput", bn = {
|
|
4157
|
+
container: wa,
|
|
4158
|
+
searchInput: Na
|
|
4151
4159
|
};
|
|
4152
|
-
function
|
|
4160
|
+
function _a({ onFocus: e }) {
|
|
4153
4161
|
const { options: t, setPlace: n, t: r, language: i } = W(), o = t.googleApiKey, s = be(null), c = nr(o, i);
|
|
4154
4162
|
return J(() => {
|
|
4155
4163
|
s.current && c.importLibrary("places").then((l) => {
|
|
@@ -4172,20 +4180,20 @@ function Na({ onFocus: e }) {
|
|
|
4172
4180
|
}
|
|
4173
4181
|
) });
|
|
4174
4182
|
}
|
|
4175
|
-
const
|
|
4176
|
-
headerContainer:
|
|
4177
|
-
container:
|
|
4178
|
-
header:
|
|
4179
|
-
heading:
|
|
4180
|
-
actionLinkClearAll:
|
|
4181
|
-
optionsGroup:
|
|
4182
|
-
rowLabel:
|
|
4183
|
-
label:
|
|
4184
|
-
dot:
|
|
4185
|
-
connectorIcon:
|
|
4186
|
-
},
|
|
4187
|
-
container:
|
|
4188
|
-
box:
|
|
4183
|
+
const Sa = "filters-module_headerContainer", xa = "filters-module_container", Aa = "filters-module_header", Oa = "filters-module_heading", Pa = "filters-module_actionLinkClearAll", Da = "filters-module_optionsGroup", Ia = "filters-module_rowLabel", ka = "filters-module_label", Ma = "filters-module_dot", Ra = "filters-module_connectorIcon", S = {
|
|
4184
|
+
headerContainer: Sa,
|
|
4185
|
+
container: xa,
|
|
4186
|
+
header: Aa,
|
|
4187
|
+
heading: Oa,
|
|
4188
|
+
actionLinkClearAll: Pa,
|
|
4189
|
+
optionsGroup: Da,
|
|
4190
|
+
rowLabel: Ia,
|
|
4191
|
+
label: ka,
|
|
4192
|
+
dot: Ma,
|
|
4193
|
+
connectorIcon: Ra
|
|
4194
|
+
}, La = "Checkbox-module_container", Fa = "Checkbox-module_box", Tn = {
|
|
4195
|
+
container: La,
|
|
4196
|
+
box: Fa
|
|
4189
4197
|
};
|
|
4190
4198
|
function fe({
|
|
4191
4199
|
id: e,
|
|
@@ -4232,11 +4240,11 @@ function fe({
|
|
|
4232
4240
|
) })
|
|
4233
4241
|
] });
|
|
4234
4242
|
}
|
|
4235
|
-
const
|
|
4236
|
-
container:
|
|
4237
|
-
input:
|
|
4238
|
-
ticksContainer:
|
|
4239
|
-
tick:
|
|
4243
|
+
const Ha = "Range-module_container", $a = "Range-module_input", Va = "Range-module_ticksContainer", za = "Range-module_tick", tt = {
|
|
4244
|
+
container: Ha,
|
|
4245
|
+
input: $a,
|
|
4246
|
+
ticksContainer: Va,
|
|
4247
|
+
tick: za
|
|
4240
4248
|
};
|
|
4241
4249
|
function En({ ticks: e, value: t, onChange: n }) {
|
|
4242
4250
|
const r = U.useRef(null), i = e.findIndex((s) => s.value === t), o = i / (e.length - 1) * 100;
|
|
@@ -4271,29 +4279,29 @@ function En({ ticks: e, value: t, onChange: n }) {
|
|
|
4271
4279
|
)) })
|
|
4272
4280
|
] });
|
|
4273
4281
|
}
|
|
4274
|
-
const
|
|
4275
|
-
multiSelect:
|
|
4276
|
-
control:
|
|
4277
|
-
disabled:
|
|
4278
|
-
valueContainer:
|
|
4279
|
-
input:
|
|
4280
|
-
multiValue:
|
|
4281
|
-
multiValueLabel:
|
|
4282
|
-
multiValueRemove:
|
|
4283
|
-
dropdownIndicator:
|
|
4284
|
-
menu:
|
|
4285
|
-
menuOpen:
|
|
4286
|
-
menuList:
|
|
4287
|
-
groupHeading:
|
|
4288
|
-
groupSeparator:
|
|
4289
|
-
option:
|
|
4290
|
-
optionLast:
|
|
4291
|
-
optionSelected:
|
|
4292
|
-
optionFocused:
|
|
4293
|
-
optionCheck:
|
|
4294
|
-
optionDisabled:
|
|
4295
|
-
optionLabel:
|
|
4296
|
-
noOptions:
|
|
4282
|
+
const Ba = "MultiSelect-module_multiSelect", Ua = "MultiSelect-module_control", Wa = "MultiSelect-module_disabled", ja = "MultiSelect-module_valueContainer", Ga = "MultiSelect-module_input", Ya = "MultiSelect-module_multiValue", Ka = "MultiSelect-module_multiValueLabel", Za = "MultiSelect-module_multiValueRemove", qa = "MultiSelect-module_dropdownIndicator", Ja = "MultiSelect-module_menu", Xa = "MultiSelect-module_menuOpen", Qa = "MultiSelect-module_menuList", es = "MultiSelect-module_groupHeading", ts = "MultiSelect-module_groupSeparator", ns = "MultiSelect-module_option", rs = "MultiSelect-module_optionLast", is = "MultiSelect-module_optionSelected", os = "MultiSelect-module_optionFocused", as = "MultiSelect-module_optionCheck", ss = "MultiSelect-module_optionDisabled", ls = "MultiSelect-module_optionLabel", cs = "MultiSelect-module_noOptions", Q = {
|
|
4283
|
+
multiSelect: Ba,
|
|
4284
|
+
control: Ua,
|
|
4285
|
+
disabled: Wa,
|
|
4286
|
+
valueContainer: ja,
|
|
4287
|
+
input: Ga,
|
|
4288
|
+
multiValue: Ya,
|
|
4289
|
+
multiValueLabel: Ka,
|
|
4290
|
+
multiValueRemove: Za,
|
|
4291
|
+
dropdownIndicator: qa,
|
|
4292
|
+
menu: Ja,
|
|
4293
|
+
menuOpen: Xa,
|
|
4294
|
+
menuList: Qa,
|
|
4295
|
+
groupHeading: es,
|
|
4296
|
+
groupSeparator: ts,
|
|
4297
|
+
option: ns,
|
|
4298
|
+
optionLast: rs,
|
|
4299
|
+
optionSelected: is,
|
|
4300
|
+
optionFocused: os,
|
|
4301
|
+
optionCheck: as,
|
|
4302
|
+
optionDisabled: ss,
|
|
4303
|
+
optionLabel: ls,
|
|
4304
|
+
noOptions: cs
|
|
4297
4305
|
}, wn = ({
|
|
4298
4306
|
id: e,
|
|
4299
4307
|
name: t,
|
|
@@ -4305,16 +4313,16 @@ const za = "MultiSelect-module_multiSelect", Ba = "MultiSelect-module_control",
|
|
|
4305
4313
|
className: c,
|
|
4306
4314
|
onChange: l
|
|
4307
4315
|
}) => {
|
|
4308
|
-
const [d, u] = Y(!1), [f, h] = Y(""), [v, C] = Y(-1), m = be(null), b = be(null),
|
|
4316
|
+
const [d, u] = Y(!1), [f, h] = Y(""), [v, C] = Y(-1), m = be(null), b = be(null), M = ce(
|
|
4309
4317
|
() => new Set(i),
|
|
4310
4318
|
[i]
|
|
4311
4319
|
), { preferred: B, others: D } = ce(() => {
|
|
4312
4320
|
const w = f.toLowerCase(), $ = n.filter((X) => X.label.toLowerCase().includes(w));
|
|
4313
4321
|
return {
|
|
4314
|
-
preferred: $.filter((X) =>
|
|
4315
|
-
others: $.filter((X) => !
|
|
4322
|
+
preferred: $.filter((X) => M.has(X.value)),
|
|
4323
|
+
others: $.filter((X) => !M.has(X.value))
|
|
4316
4324
|
};
|
|
4317
|
-
}, [n, f,
|
|
4325
|
+
}, [n, f, M]), O = ce(() => [...B, ...D], [B, D]), g = ce(
|
|
4318
4326
|
() => n.filter((w) => r.includes(w.value)),
|
|
4319
4327
|
[n, r]
|
|
4320
4328
|
);
|
|
@@ -4512,9 +4520,9 @@ const za = "MultiSelect-module_multiSelect", Ba = "MultiSelect-module_control",
|
|
|
4512
4520
|
]
|
|
4513
4521
|
}
|
|
4514
4522
|
);
|
|
4515
|
-
},
|
|
4516
|
-
selectField:
|
|
4517
|
-
select:
|
|
4523
|
+
}, ds = "SelectField-module_selectField", us = "SelectField-module_select", Nn = {
|
|
4524
|
+
selectField: ds,
|
|
4525
|
+
select: us
|
|
4518
4526
|
}, _n = ({
|
|
4519
4527
|
id: e,
|
|
4520
4528
|
name: t,
|
|
@@ -4649,7 +4657,7 @@ const za = "MultiSelect-module_multiSelect", Ba = "MultiSelect-module_control",
|
|
|
4649
4657
|
CONNECTOR_STANDARD_TYPE_PANTOGRAPH_TOP_DOWN: pe,
|
|
4650
4658
|
CONNECTOR_STANDARD_TYPE_TESLA_R: pe,
|
|
4651
4659
|
CONNECTOR_STANDARD_TYPE_TESLA_S: pe
|
|
4652
|
-
},
|
|
4660
|
+
}, je = {
|
|
4653
4661
|
minPower: 7,
|
|
4654
4662
|
operator: [],
|
|
4655
4663
|
status: [],
|
|
@@ -4666,10 +4674,10 @@ const za = "MultiSelect-module_multiSelect", Ba = "MultiSelect-module_control",
|
|
|
4666
4674
|
// amount per kWh in the map currency; undefined is no limit
|
|
4667
4675
|
maxEnergyPrice: void 0
|
|
4668
4676
|
};
|
|
4669
|
-
function
|
|
4670
|
-
return !!(e.minPower && e.minPower !==
|
|
4677
|
+
function fs(e) {
|
|
4678
|
+
return !!(e.minPower && e.minPower !== je.minPower || e?.status?.length || e?.connectorTypes?.length || e?.chargingAccessibility && e?.chargingAccessibility !== je.chargingAccessibility || e?.operator?.length || e?.powerType || e?.partyId || e?.noAdditionalCharges || e?.operatorOnly || e?.remoteStartStop || e?.searchPhrase || e?.excludeOperator?.length || e?.authMethodCapabilities?.length || typeof e?.maxEnergyPrice == "number");
|
|
4671
4679
|
}
|
|
4672
|
-
const
|
|
4680
|
+
const ps = [
|
|
4673
4681
|
{
|
|
4674
4682
|
value: "AUTH_METHOD_CAPABILITY_PLUG_AND_CHARGE",
|
|
4675
4683
|
labelKey: "filters.authCapability.plugAndCharge"
|
|
@@ -4678,7 +4686,7 @@ const fs = [
|
|
|
4678
4686
|
value: "AUTH_METHOD_CAPABILITY_CREDIT_CARD_PAYABLE",
|
|
4679
4687
|
labelKey: "filters.authCapability.creditCard"
|
|
4680
4688
|
}
|
|
4681
|
-
],
|
|
4689
|
+
], ms = [
|
|
4682
4690
|
{
|
|
4683
4691
|
label: 3,
|
|
4684
4692
|
value: 3
|
|
@@ -4720,10 +4728,10 @@ const fs = [
|
|
|
4720
4728
|
value: 250
|
|
4721
4729
|
}
|
|
4722
4730
|
];
|
|
4723
|
-
function
|
|
4731
|
+
function hs(e) {
|
|
4724
4732
|
return jr((t, n) => ({ ...t, ...n }), e);
|
|
4725
4733
|
}
|
|
4726
|
-
function
|
|
4734
|
+
function gs() {
|
|
4727
4735
|
const {
|
|
4728
4736
|
setFilters: e,
|
|
4729
4737
|
t,
|
|
@@ -4733,8 +4741,8 @@ function hs() {
|
|
|
4733
4741
|
mapKind: o,
|
|
4734
4742
|
currency: s,
|
|
4735
4743
|
language: c
|
|
4736
|
-
} = W(), [l, d] =
|
|
4737
|
-
...
|
|
4744
|
+
} = W(), [l, d] = hs({
|
|
4745
|
+
...je,
|
|
4738
4746
|
...n
|
|
4739
4747
|
}), u = oe(i.version, "v3") && r?.showPriceFilter, f = typeof l.maxEnergyPrice == "number" ? or(c, {
|
|
4740
4748
|
amount: l.maxEnergyPrice,
|
|
@@ -4751,7 +4759,7 @@ function hs() {
|
|
|
4751
4759
|
"button",
|
|
4752
4760
|
{
|
|
4753
4761
|
onClick: () => {
|
|
4754
|
-
d(
|
|
4762
|
+
d(je), e(je);
|
|
4755
4763
|
},
|
|
4756
4764
|
className: S.actionLinkClearAll,
|
|
4757
4765
|
children: t("filters.clearAll")
|
|
@@ -4991,7 +4999,7 @@ function hs() {
|
|
|
4991
4999
|
onChange: (m) => {
|
|
4992
5000
|
d({ minPower: m });
|
|
4993
5001
|
},
|
|
4994
|
-
ticks:
|
|
5002
|
+
ticks: ms
|
|
4995
5003
|
}
|
|
4996
5004
|
)
|
|
4997
5005
|
] }),
|
|
@@ -5028,7 +5036,7 @@ function hs() {
|
|
|
5028
5036
|
onChange: (m) => {
|
|
5029
5037
|
d({ maxEnergyPrice: m });
|
|
5030
5038
|
},
|
|
5031
|
-
ticks:
|
|
5039
|
+
ticks: Yi(c, s, t("filters.anyPrice"))
|
|
5032
5040
|
}
|
|
5033
5041
|
)
|
|
5034
5042
|
] }),
|
|
@@ -5189,8 +5197,8 @@ function hs() {
|
|
|
5189
5197
|
] }),
|
|
5190
5198
|
oe(i.version, "v2") && r?.showPaymentMethodFilter && /* @__PURE__ */ p("div", { className: S.optionsGroup, children: [
|
|
5191
5199
|
/* @__PURE__ */ a("div", { className: S.heading, children: t("filters.authMethodCapabilities") }),
|
|
5192
|
-
|
|
5193
|
-
const b = `auth-${m.value}`,
|
|
5200
|
+
ps.map((m) => {
|
|
5201
|
+
const b = `auth-${m.value}`, M = l.authMethodCapabilities?.includes(m.value) ?? !1;
|
|
5194
5202
|
return /* @__PURE__ */ p(
|
|
5195
5203
|
"label",
|
|
5196
5204
|
{
|
|
@@ -5202,7 +5210,7 @@ function hs() {
|
|
|
5202
5210
|
fe,
|
|
5203
5211
|
{
|
|
5204
5212
|
id: b,
|
|
5205
|
-
checked:
|
|
5213
|
+
checked: M,
|
|
5206
5214
|
onChange: (B) => {
|
|
5207
5215
|
d({
|
|
5208
5216
|
authMethodCapabilities: wt(
|
|
@@ -5242,28 +5250,28 @@ function hs() {
|
|
|
5242
5250
|
] })
|
|
5243
5251
|
] });
|
|
5244
5252
|
}
|
|
5245
|
-
const
|
|
5246
|
-
headerContainer:
|
|
5247
|
-
publishingMode:
|
|
5248
|
-
container:
|
|
5249
|
-
header:
|
|
5250
|
-
subheader:
|
|
5251
|
-
row:
|
|
5252
|
-
icon:
|
|
5253
|
-
statusIcon:
|
|
5254
|
-
text:
|
|
5255
|
-
note:
|
|
5256
|
-
divider:
|
|
5257
|
-
pagingation:
|
|
5258
|
-
tariffNoteLink:
|
|
5259
|
-
},
|
|
5260
|
-
container:
|
|
5261
|
-
header:
|
|
5262
|
-
divider:
|
|
5263
|
-
iconLine:
|
|
5264
|
-
priceLine:
|
|
5253
|
+
const vs = "locations-module_headerContainer", ys = "locations-module_publishingMode", Cs = "locations-module_container", bs = "locations-module_header", Ts = "locations-module_subheader", Es = "locations-module_row", ws = "locations-module_icon", Ns = "locations-module_statusIcon", _s = "locations-module_text", Ss = "locations-module_note", xs = "locations-module_divider", As = "locations-module_pagingation", Os = "locations-module_tariffNoteLink", x = {
|
|
5254
|
+
headerContainer: vs,
|
|
5255
|
+
publishingMode: ys,
|
|
5256
|
+
container: Cs,
|
|
5257
|
+
header: bs,
|
|
5258
|
+
subheader: Ts,
|
|
5259
|
+
row: Es,
|
|
5260
|
+
icon: ws,
|
|
5261
|
+
statusIcon: Ns,
|
|
5262
|
+
text: _s,
|
|
5263
|
+
note: Ss,
|
|
5264
|
+
divider: xs,
|
|
5265
|
+
pagingation: As,
|
|
5266
|
+
tariffNoteLink: Os
|
|
5267
|
+
}, Ps = "LocationPlaceholder-module_container", Ds = "LocationPlaceholder-module_header", Is = "LocationPlaceholder-module_divider", ks = "LocationPlaceholder-module_iconLine", Ms = "LocationPlaceholder-module_priceLine", de = {
|
|
5268
|
+
container: Ps,
|
|
5269
|
+
header: Ds,
|
|
5270
|
+
divider: Is,
|
|
5271
|
+
iconLine: ks,
|
|
5272
|
+
priceLine: Ms
|
|
5265
5273
|
};
|
|
5266
|
-
function
|
|
5274
|
+
function Rs() {
|
|
5267
5275
|
return /* @__PURE__ */ p("div", { className: de.container, children: [
|
|
5268
5276
|
/* @__PURE__ */ a("div", { className: de.header }),
|
|
5269
5277
|
/* @__PURE__ */ a("div", { className: de.divider, style: { marginTop: "15px", marginBottom: "23px" } }),
|
|
@@ -5306,7 +5314,7 @@ function Er() {
|
|
|
5306
5314
|
}
|
|
5307
5315
|
);
|
|
5308
5316
|
}
|
|
5309
|
-
function
|
|
5317
|
+
function Ls() {
|
|
5310
5318
|
return /* @__PURE__ */ a(
|
|
5311
5319
|
"svg",
|
|
5312
5320
|
{
|
|
@@ -5319,7 +5327,7 @@ function Rs() {
|
|
|
5319
5327
|
}
|
|
5320
5328
|
);
|
|
5321
5329
|
}
|
|
5322
|
-
function
|
|
5330
|
+
function Fs() {
|
|
5323
5331
|
return /* @__PURE__ */ a(
|
|
5324
5332
|
"svg",
|
|
5325
5333
|
{
|
|
@@ -5332,7 +5340,7 @@ function Ls() {
|
|
|
5332
5340
|
}
|
|
5333
5341
|
);
|
|
5334
5342
|
}
|
|
5335
|
-
function
|
|
5343
|
+
function Hs() {
|
|
5336
5344
|
return /* @__PURE__ */ a(
|
|
5337
5345
|
"svg",
|
|
5338
5346
|
{
|
|
@@ -5358,20 +5366,20 @@ function wr() {
|
|
|
5358
5366
|
}
|
|
5359
5367
|
);
|
|
5360
5368
|
}
|
|
5361
|
-
const
|
|
5362
|
-
container:
|
|
5369
|
+
const $s = "SidebarContainer-module_container", Vs = {
|
|
5370
|
+
container: $s
|
|
5363
5371
|
};
|
|
5364
5372
|
function He({ children: e }) {
|
|
5365
|
-
return /* @__PURE__ */ a("div", { className:
|
|
5366
|
-
}
|
|
5367
|
-
const
|
|
5368
|
-
container:
|
|
5369
|
-
content:
|
|
5370
|
-
connectorHeader:
|
|
5371
|
-
code:
|
|
5372
|
-
evse:
|
|
5373
|
+
return /* @__PURE__ */ a("div", { className: Vs.container, children: e });
|
|
5374
|
+
}
|
|
5375
|
+
const zs = "Debug-module_container", Bs = "Debug-module_content", Us = "Debug-module_connectorHeader", Ws = "Debug-module_code", js = "Debug-module_evse", Re = {
|
|
5376
|
+
container: zs,
|
|
5377
|
+
content: Bs,
|
|
5378
|
+
connectorHeader: Us,
|
|
5379
|
+
code: Ws,
|
|
5380
|
+
evse: js
|
|
5373
5381
|
};
|
|
5374
|
-
function
|
|
5382
|
+
function Gs({ location: e }) {
|
|
5375
5383
|
return /* @__PURE__ */ a("div", { className: Re.container, children: /* @__PURE__ */ p(He, { children: [
|
|
5376
5384
|
/* @__PURE__ */ a("div", { children: /* @__PURE__ */ p("h3", { children: [
|
|
5377
5385
|
"Debug: ",
|
|
@@ -5408,9 +5416,6 @@ function js({ location: e }) {
|
|
|
5408
5416
|
] }) });
|
|
5409
5417
|
}
|
|
5410
5418
|
const Nr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='16'%20viewBox='0%200%2018%2016'%20fill='none'%3e%3cg%20clip-path='url(%23clip0_480_2466)'%3e%3cpath%20d='M3.76781%207H5.0925L4.81812%208.71156C4.77812%208.85969%204.9075%209%205.07875%209C5.17188%209%205.26156%208.95719%205.31063%208.88313L7.40219%205.78062C7.50531%205.62469%207.37656%205.42875%207.17031%205.42875H5.88219L6.14094%204.295C6.18625%204.14625%206.05781%204.00031%205.88219%204.00031H4.36438C4.23%204.00031%204.11656%204.08719%204.09875%204.20375L3.50187%206.735C3.48094%206.87531%203.60594%207%203.76781%207ZM17.5%204H17V2.5C17%202.22375%2016.7763%202%2016.5%202C16.2237%202%2016%202.22375%2016%202.5V4H15V2.5C15%202.22375%2014.7762%202%2014.5%202C14.2238%202%2014%202.22375%2014%202.5V4H13.5C13.2238%204%2013%204.22375%2013%204.5V6C13%207.1175%2013.7381%208.05281%2014.75%208.37281V11.625C14.75%2012.1075%2014.3575%2012.5%2013.875%2012.5C13.3925%2012.5%2013%2012.1075%2013%2011.625V10.75C13%209.23344%2011.7666%208%2010.25%208H10V1.5C10%200.671562%209.32844%200%208.5%200H2.5C1.67156%200%201%200.671562%201%201.5V14.5H0.25C0.111875%2014.5%200%2014.6119%200%2014.75V15.75C0%2015.8881%200.111875%2016%200.25%2016H10.75C10.8881%2016%2011%2015.8881%2011%2015.75V14.75C11%2014.6119%2010.8881%2014.5%2010.75%2014.5H10V9.5H10.25C10.9394%209.5%2011.5%2010.0606%2011.5%2010.75V11.625C11.5%2012.9347%2012.5653%2014%2013.875%2014C15.1847%2014%2016.25%2012.9347%2016.25%2011.625V8.37281C17.2619%208.05281%2018%207.1175%2018%206V4.5C18%204.22375%2017.7763%204%2017.5%204ZM8.5%2014.5H2.5V1.5H8.5V14.5ZM16.5%206C16.5%206.55125%2016.0513%207%2015.5%207C14.9487%207%2014.5%206.55125%2014.5%206V5.5H16.5V6Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_480_2466'%3e%3crect%20width='18'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", _r = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_480_2468)'%3e%3cpath%20d='M4%204.625V3.375C4%203.16875%204.16875%203%204.375%203H5.625C5.83125%203%206%203.16875%206%203.375V4.625C6%204.83125%205.83125%205%205.625%205H4.375C4.16875%205%204%204.83125%204%204.625ZM8.375%205H9.625C9.83125%205%2010%204.83125%2010%204.625V3.375C10%203.16875%209.83125%203%209.625%203H8.375C8.16875%203%208%203.16875%208%203.375V4.625C8%204.83125%208.16875%205%208.375%205ZM4.375%208H5.625C5.83125%208%206%207.83125%206%207.625V6.375C6%206.16875%205.83125%206%205.625%206H4.375C4.16875%206%204%206.16875%204%206.375V7.625C4%207.83125%204.16875%208%204.375%208ZM8.375%208H9.625C9.83125%208%2010%207.83125%2010%207.625V6.375C10%206.16875%209.83125%206%209.625%206H8.375C8.16875%206%208%206.16875%208%206.375V7.625C8%207.83125%208.16875%208%208.375%208ZM6%2010.625V9.375C6%209.16875%205.83125%209%205.625%209H4.375C4.16875%209%204%209.16875%204%209.375V10.625C4%2010.8313%204.16875%2011%204.375%2011H5.625C5.83125%2011%206%2010.8313%206%2010.625ZM8.375%2011H9.625C9.83125%2011%2010%2010.8313%2010%2010.625V9.375C10%209.16875%209.83125%209%209.625%209H8.375C8.16875%209%208%209.16875%208%209.375V10.625C8%2010.8313%208.16875%2011%208.375%2011ZM14%2014.875V16H0V14.875C0%2014.6687%200.16875%2014.5%200.375%2014.5H0.984375V0.75C0.984375%200.334375%201.31875%200%201.73438%200H12.2656C12.6812%200%2013.0156%200.334375%2013.0156%200.75V14.5H13.625C13.8313%2014.5%2014%2014.6687%2014%2014.875ZM2.48438%2014.4688H6V12.375C6%2012.1687%206.16875%2012%206.375%2012H7.625C7.83125%2012%208%2012.1687%208%2012.375V14.4688H11.5156V1.53125L2.5%201.5L2.48438%2014.4688Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_480_2468'%3e%3crect%20width='14'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Ut = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='20'%20height='16'%20viewBox='0%200%2020%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17%206H16.5L13.1003%201.75063C12.913%201.51641%2012.6754%201.32734%2012.405%201.19741C12.1347%201.06747%2011.8387%201.00001%2011.5387%201H4.85406C4.03625%201%203.30094%201.49781%202.99719%202.25719L1.5%206V6.07062C0.63875%206.29375%200%207.06906%200%208V11.5C0%2011.7762%200.22375%2012%200.5%2012H2C2%2013.6569%203.34312%2015%205%2015C6.65688%2015%208%2013.6569%208%2012H12C12%2013.6569%2013.3431%2015%2015%2015C16.6569%2015%2018%2013.6569%2018%2012H19.5C19.7763%2012%2020%2011.7762%2020%2011.5V9C20%207.34312%2018.6569%206%2017%206ZM8.75%202.5H11.5387C11.6916%202.5%2011.8338%202.56844%2011.9291%202.6875L14.5791%206H8.75V2.5ZM4.38969%202.81437C4.46625%202.62344%204.64844%202.5%204.85406%202.5H7.25V6H3.11562L4.38969%202.81437ZM5%2013.5C4.17156%2013.5%203.5%2012.8284%203.5%2012C3.5%2011.1716%204.17156%2010.5%205%2010.5C5.82844%2010.5%206.5%2011.1716%206.5%2012C6.5%2012.8284%205.82844%2013.5%205%2013.5ZM15%2013.5C14.1716%2013.5%2013.5%2012.8284%2013.5%2012C13.5%2011.1716%2014.1716%2010.5%2015%2010.5C15.8284%2010.5%2016.5%2011.1716%2016.5%2012C16.5%2012.8284%2015.8284%2013.5%2015%2013.5ZM18.5%2010.5H17.5841C17.0644%209.60719%2016.1078%209%2015%209C13.8922%209%2012.9359%209.60719%2012.4159%2010.5H7.58406C7.06437%209.60719%206.10781%209%205%209C3.89219%209%202.93594%209.60719%202.41594%2010.5H1.5V8C1.5%207.72437%201.72438%207.5%202%207.5H17C17.8272%207.5%2018.5%208.17281%2018.5%209V10.5Z'%20fill='black'/%3e%3c/svg%3e", Ke = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='12'%20height='16'%20viewBox='0%200%2012%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_480_2435)'%3e%3cpath%20d='M11.8068%205.24687C11.5506%204.8%2011.0849%204.53125%2010.5693%204.53125H7.61932L8.51619%201.79688C8.63182%201.36563%208.54119%200.9125%208.26932%200.55625C7.99432%200.203125%207.57869%200%207.13182%200H3.05369C2.34118%200%201.73181%200.534375%201.65368%201.15937L0.0161813%207.79063C-0.0431938%208.22188%200.0849314%208.65625%200.369307%208.98438C0.653682%209.3125%201.06618%209.5%201.50056%209.5H4.56619L3.47556%2014.2406C3.37556%2014.6688%203.47244%2015.1125%203.74431%2015.4563C4.01619%2015.8031%204.42556%2016%204.86619%2016C5.37556%2016%205.85057%2015.725%206.07869%2015.325L11.8037%206.67812C12.0662%206.23125%2012.0662%205.69375%2011.8068%205.24687ZM5.00369%2014.2937L6.45057%208H1.48493L3.05369%201.5L7.04119%201.47187L5.54744%206.03125H10.4381L5.00369%2014.2937Z'%20fill='%232A2A2A'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_480_2435'%3e%3crect%20width='12'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Sr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18'%20height='12'%20viewBox='0%200%2018%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.2857%200H0.857143C0.383839%200%200%200.383839%200%200.857143V11.1429C0%2011.6162%200.383839%2012%200.857143%2012H16.2857C16.759%2012%2017.1429%2011.6162%2017.1429%2011.1429V0.857143C17.1429%200.383839%2016.759%200%2016.2857%200ZM15.8571%2010.7143H1.28571V1.28571H15.8571V10.7143ZM7.92857%207.71429H10.0714C10.1898%207.71429%2010.2857%207.61839%2010.2857%207.5V6.64286C10.2857%206.52446%2010.1898%206.42857%2010.0714%206.42857H7.92857C7.81018%206.42857%207.71429%206.52446%207.71429%206.64286V7.5C7.71429%207.61839%207.81018%207.71429%207.92857%207.71429ZM14.3571%206.42857H12.2143C12.0959%206.42857%2012%206.52446%2012%206.64286V7.5C12%207.61839%2012.0959%207.71429%2012.2143%207.71429H14.3571C14.4755%207.71429%2014.5714%207.61839%2014.5714%207.5V6.64286C14.5714%206.52446%2014.4755%206.42857%2014.3571%206.42857ZM7.92857%205.57143H14.3571C14.4755%205.57143%2014.5714%205.47554%2014.5714%205.35714V4.5C14.5714%204.38161%2014.4755%204.28571%2014.3571%204.28571H7.92857C7.81018%204.28571%207.71429%204.38161%207.71429%204.5V5.35714C7.71429%205.47554%207.81018%205.57143%207.92857%205.57143ZM3.60857%206.04607L4.73866%206.3525C4.85089%206.38304%204.92857%206.47437%204.92857%206.57482C4.92857%206.70339%204.80804%206.80786%204.65911%206.80786H3.95357C3.84241%206.80786%203.73312%206.78%203.6383%206.72884C3.5558%206.68411%203.45509%206.69214%203.3908%206.76045L3.0675%207.10143C2.9842%207.18929%202.99786%207.33286%203.09777%207.40116C3.32009%207.5525%203.58152%207.63902%203.85714%207.65616V7.92857C3.85714%208.04696%203.95304%208.14286%204.07143%208.14286H4.5C4.61839%208.14286%204.71429%208.04696%204.71429%207.92857V7.65402C5.30839%207.62455%205.78571%207.15661%205.78571%206.57455C5.78571%206.08786%205.44768%205.65634%204.96286%205.52536L3.83277%205.21893C3.72054%205.18839%203.64286%205.09705%203.64286%204.99661C3.64286%204.86804%203.76339%204.76357%203.91232%204.76357H4.61786C4.72902%204.76357%204.8383%204.79143%204.93312%204.84259C5.01562%204.88705%205.11634%204.87929%205.18062%204.81098L5.50393%204.47C5.58723%204.38214%205.57357%204.23857%205.47366%204.17027C5.25134%204.01893%204.98991%203.93241%204.71429%203.91527V3.64286C4.71429%203.52446%204.61839%203.42857%204.5%203.42857H4.07143C3.95304%203.42857%203.85714%203.52446%203.85714%203.64286V3.91741C3.26304%203.94688%202.78571%204.41482%202.78571%204.99688C2.78571%205.48357%203.12375%205.91509%203.60857%206.04607Z'%20fill='%232A2A2A'/%3e%3c/svg%3e";
|
|
5411
|
-
function je(e) {
|
|
5412
|
-
return De(e);
|
|
5413
|
-
}
|
|
5414
5419
|
function xr(e) {
|
|
5415
5420
|
return Oe[e.standard || e.connectorStandardType];
|
|
5416
5421
|
}
|
|
@@ -5419,7 +5424,7 @@ function Ar(e, t) {
|
|
|
5419
5424
|
maximumFractionDigits: 2
|
|
5420
5425
|
}).format(t);
|
|
5421
5426
|
}
|
|
5422
|
-
const
|
|
5427
|
+
const Ys = {
|
|
5423
5428
|
CONNECTOR_POWER_TYPE_UNSPECIFIED: "Unspecified",
|
|
5424
5429
|
CONNECTOR_POWER_TYPE_AC_1_PHASE: "AC x 1",
|
|
5425
5430
|
CONNECTOR_POWER_TYPE_AC_2_PHASE: "AC x 2",
|
|
@@ -5433,14 +5438,14 @@ const Gs = {
|
|
|
5433
5438
|
};
|
|
5434
5439
|
function Or(e) {
|
|
5435
5440
|
return [
|
|
5436
|
-
|
|
5441
|
+
Ks(
|
|
5437
5442
|
e.standard || e.connectorStandardType
|
|
5438
5443
|
),
|
|
5439
|
-
|
|
5444
|
+
Ys[e.powerType || e.power_type || e.connectorPowerType],
|
|
5440
5445
|
"Socket"
|
|
5441
5446
|
].join(", ");
|
|
5442
5447
|
}
|
|
5443
|
-
function
|
|
5448
|
+
function Ks(e) {
|
|
5444
5449
|
return e = (e || "").replace("CONNECTOR_STANDARD_TYPE_", ""), e === "IEC_62196_T1" ? "Type 1" : e === "IEC_62196_T1_COMBO" ? "Type 1 Combo" : e === "IEC_62196_T2" ? "Type 2" : e === "IEC_62196_T2_COMBO" ? "Type 2 Combo" : e === "IEC_62196_T3A" ? "Type 3A" : e === "IEC_62196_T3C" ? "Type 3C" : e === "CHADEMO" ? "CHAdeMO" : e === "DOMESTIC_F" ? "Domestic F" : e === "DOMESTIC_E" ? "Domestic E" : e === "DOMESTIC_B" ? "Domestic B" : e === "CATARC" ? "Catarc" : e;
|
|
5445
5450
|
}
|
|
5446
5451
|
function Pr(e, t) {
|
|
@@ -5450,7 +5455,7 @@ function Dr(e, t) {
|
|
|
5450
5455
|
return t?.type === "ON_STREET" ? e("locationType.onStreet") : t?.type === "PARKING_GARAGE" ? e("locationType.parkingGarage") : t?.type === "UNDERGROUND_GARAGE" ? e("locationType.undergroundGarage") : t?.type === "PARKING_LOT" ? e("locationType.parkingLot") : e("locationType.other");
|
|
5451
5456
|
}
|
|
5452
5457
|
function Ir(e = []) {
|
|
5453
|
-
return e.some((t) => t.status === "AVAILABLE") ?
|
|
5458
|
+
return e.some((t) => t.status === "AVAILABLE") ? We("AVAILABLE") : e.some((t) => t.status === "CHARGING") ? We("CHARGING") : We("UNKNOWN");
|
|
5454
5459
|
}
|
|
5455
5460
|
function kr(e, t) {
|
|
5456
5461
|
let n;
|
|
@@ -5488,16 +5493,16 @@ function Lr(e, t = /* @__PURE__ */ new Date()) {
|
|
|
5488
5493
|
const o = Dn(e, t), s = Dn(e, i);
|
|
5489
5494
|
return s > o ? i.setUTCDate(i.getUTCDate() - 1) : s < o && i.setUTCDate(i.getUTCDate() + 1), i;
|
|
5490
5495
|
}
|
|
5491
|
-
function
|
|
5496
|
+
function Zs(e, t = /* @__PURE__ */ new Date()) {
|
|
5492
5497
|
return new Date(Lr(e, t).valueOf() + 86399999);
|
|
5493
5498
|
}
|
|
5494
|
-
function
|
|
5499
|
+
function qs(e, t, n) {
|
|
5495
5500
|
const r = Rr(n, e);
|
|
5496
5501
|
return r.getUTCDate() !== t && r.setUTCDate(
|
|
5497
5502
|
e.getUTCDate() + (7 + t - e.getUTCDay() - 1) % 7 + 1
|
|
5498
5503
|
), {
|
|
5499
5504
|
start: Lr(n, r),
|
|
5500
|
-
end:
|
|
5505
|
+
end: Zs(n, r)
|
|
5501
5506
|
};
|
|
5502
5507
|
}
|
|
5503
5508
|
function xt(e, t) {
|
|
@@ -5525,7 +5530,7 @@ function At(e) {
|
|
|
5525
5530
|
endTime: n
|
|
5526
5531
|
};
|
|
5527
5532
|
}
|
|
5528
|
-
function
|
|
5533
|
+
function Js(e, t, n) {
|
|
5529
5534
|
const r = (n.getHours() * 60 + n.getMinutes()) % 60;
|
|
5530
5535
|
if (e.length <= 1)
|
|
5531
5536
|
return e.map((o) => (o.isActive = t && o.startTime <= r && o.endTime >= r, o));
|
|
@@ -5610,7 +5615,7 @@ function Wt({
|
|
|
5610
5615
|
};
|
|
5611
5616
|
});
|
|
5612
5617
|
}
|
|
5613
|
-
function
|
|
5618
|
+
function Xs(e, t) {
|
|
5614
5619
|
const n = /* @__PURE__ */ new Date();
|
|
5615
5620
|
return [...e].reduce(
|
|
5616
5621
|
(r, i) => {
|
|
@@ -5634,7 +5639,7 @@ function Js(e, t) {
|
|
|
5634
5639
|
"FRIDAY",
|
|
5635
5640
|
"SATURDAY"
|
|
5636
5641
|
].forEach((u, f) => {
|
|
5637
|
-
const { start: h, end: v } =
|
|
5642
|
+
const { start: h, end: v } = qs(n, f, t);
|
|
5638
5643
|
l && l.valueOf() > h.valueOf() || d && d.valueOf() < v.valueOf() || c.length && !c.includes(u) || (r[u] = [...r[u], i]);
|
|
5639
5644
|
}), r;
|
|
5640
5645
|
},
|
|
@@ -5652,46 +5657,46 @@ function Js(e, t) {
|
|
|
5652
5657
|
function kn(e, t) {
|
|
5653
5658
|
return Object.keys(e).reduce((n, r) => (t.includes(r) || (n[r] = e[r]), n), {});
|
|
5654
5659
|
}
|
|
5655
|
-
function
|
|
5660
|
+
function Qs(e, t) {
|
|
5656
5661
|
const n = e.map((i) => kn(i, ["isActive"])), r = t.map((i) => kn(i, ["isActive"]));
|
|
5657
5662
|
return JSON.stringify(n) === JSON.stringify(r);
|
|
5658
5663
|
}
|
|
5659
|
-
function
|
|
5664
|
+
function el(e) {
|
|
5660
5665
|
return e.reduce((t, n) => {
|
|
5661
5666
|
const r = t.find((i) => i.startTime === n.startTime && i.endTime === n.endTime);
|
|
5662
5667
|
return r ? r.elements.push(...n.elements) : t.push(n), t;
|
|
5663
5668
|
}, []);
|
|
5664
5669
|
}
|
|
5665
|
-
function
|
|
5670
|
+
function tl(e) {
|
|
5666
5671
|
return Se(e) ? (e.priceComponents || []).some(
|
|
5667
5672
|
(t) => t.type !== "PARKING_TIME" && (t.price || 0) > 0
|
|
5668
5673
|
) : !1;
|
|
5669
5674
|
}
|
|
5670
|
-
function
|
|
5675
|
+
function nl(e) {
|
|
5671
5676
|
return e.startTime === 0 && e.endTime <= 1 || e.startTime >= 1439 && e.endTime === 1440;
|
|
5672
5677
|
}
|
|
5673
5678
|
function Fr(e, t, n) {
|
|
5674
|
-
const r =
|
|
5679
|
+
const r = Xs(
|
|
5675
5680
|
e.concat().filter((d) => !Se(d)),
|
|
5676
5681
|
t
|
|
5677
|
-
), i = e.find(
|
|
5682
|
+
), i = e.find(tl), { SUNDAY: o, ...s } = r, [c, ...l] = Object.keys({
|
|
5678
5683
|
SUNDAY: r.SUNDAY,
|
|
5679
5684
|
...s
|
|
5680
5685
|
}).map((d, u) => {
|
|
5681
|
-
const f = r[d], h = xt(n, t) === u, v =
|
|
5686
|
+
const f = r[d], h = xt(n, t) === u, v = el(
|
|
5682
5687
|
f.map(At)
|
|
5683
5688
|
);
|
|
5684
5689
|
return i && v.length > 0 && v.unshift(At(i)), {
|
|
5685
5690
|
day: d,
|
|
5686
5691
|
isActive: h,
|
|
5687
|
-
items:
|
|
5688
|
-
(C) => !
|
|
5692
|
+
items: Js(v, h, n).filter(
|
|
5693
|
+
(C) => !nl(C)
|
|
5689
5694
|
)
|
|
5690
5695
|
};
|
|
5691
5696
|
});
|
|
5692
5697
|
return [...l, c].reduce((d, u, f, h) => {
|
|
5693
5698
|
const v = d[d.length - 1], C = v?.items;
|
|
5694
|
-
if (!C || !
|
|
5699
|
+
if (!C || !Qs(C, u.items)) {
|
|
5695
5700
|
const { day: m, ...b } = u;
|
|
5696
5701
|
d.push({
|
|
5697
5702
|
...b,
|
|
@@ -5702,7 +5707,7 @@ function Fr(e, t, n) {
|
|
|
5702
5707
|
return d;
|
|
5703
5708
|
}, []).filter((d) => !!d.items.length);
|
|
5704
5709
|
}
|
|
5705
|
-
function
|
|
5710
|
+
function rl(e) {
|
|
5706
5711
|
const { elements: t = [] } = e;
|
|
5707
5712
|
return t?.some(
|
|
5708
5713
|
(o) => o?.priceComponents?.length > 0
|
|
@@ -5719,7 +5724,7 @@ const ze = {
|
|
|
5719
5724
|
CONNECTOR_POWER_TYPE_AC_3_PHASE: "CONNECTOR_POWER_TYPE_AC_3_PHASE",
|
|
5720
5725
|
CONNECTOR_POWER_TYPE_DC: "CONNECTOR_POWER_TYPE_DC"
|
|
5721
5726
|
};
|
|
5722
|
-
function
|
|
5727
|
+
function il(e) {
|
|
5723
5728
|
switch (e.connectorPowerType) {
|
|
5724
5729
|
case ze.CONNECTOR_POWER_TYPE_AC_1_PHASE:
|
|
5725
5730
|
case ze.CONNECTOR_POWER_TYPE_DC:
|
|
@@ -5733,30 +5738,30 @@ function rl(e) {
|
|
|
5733
5738
|
return 0;
|
|
5734
5739
|
}
|
|
5735
5740
|
}
|
|
5736
|
-
const
|
|
5737
|
-
container:
|
|
5738
|
-
bold:
|
|
5739
|
-
dynamicTariffItem:
|
|
5740
|
-
dynamicTariffItemRange:
|
|
5741
|
-
tariffHeader:
|
|
5742
|
-
tariffLabel:
|
|
5743
|
-
tariffNote:
|
|
5744
|
-
activeNowLabel:
|
|
5745
|
-
},
|
|
5746
|
-
tariffItem:
|
|
5741
|
+
const ol = "ConnectorTariff-module_container", al = "ConnectorTariff-module_bold", sl = "ConnectorTariff-module_dynamicTariffItem", ll = "ConnectorTariff-module_dynamicTariffItemRange", cl = "ConnectorTariff-module_tariffHeader", dl = "ConnectorTariff-module_tariffLabel", ul = "ConnectorTariff-module_tariffNote", fl = "ConnectorTariff-module_activeNowLabel", ne = {
|
|
5742
|
+
container: ol,
|
|
5743
|
+
bold: al,
|
|
5744
|
+
dynamicTariffItem: sl,
|
|
5745
|
+
dynamicTariffItemRange: ll,
|
|
5746
|
+
tariffHeader: cl,
|
|
5747
|
+
tariffLabel: dl,
|
|
5748
|
+
tariffNote: ul,
|
|
5749
|
+
activeNowLabel: fl
|
|
5750
|
+
}, pl = "Price-module_tariffItem", Ot = {
|
|
5751
|
+
tariffItem: pl
|
|
5747
5752
|
};
|
|
5748
|
-
function
|
|
5753
|
+
function ml(e, t) {
|
|
5749
5754
|
return new Intl.NumberFormat(void 0, {
|
|
5750
5755
|
style: "currency",
|
|
5751
5756
|
currency: t.currency || "EUR",
|
|
5752
5757
|
maximumFractionDigits: 2
|
|
5753
5758
|
}).format(e);
|
|
5754
5759
|
}
|
|
5755
|
-
function
|
|
5760
|
+
function hl(e) {
|
|
5756
5761
|
const t = e.vat ? e.vat / 100 : 0;
|
|
5757
5762
|
return e.price + e.price * t;
|
|
5758
5763
|
}
|
|
5759
|
-
function
|
|
5764
|
+
function gl({
|
|
5760
5765
|
priceComponent: e,
|
|
5761
5766
|
restrictions: t = {},
|
|
5762
5767
|
currency: n
|
|
@@ -5770,13 +5775,13 @@ function hl({
|
|
|
5770
5775
|
return t?.minDuration === 0 && t?.maxDuration && e.type === "PARKING_TIME" ? /* @__PURE__ */ a("div", { className: Ot.tariffItem, children: r("tariffPriceComponent.parkingTimeWait", {
|
|
5771
5776
|
minutes: Math.floor(t.maxDuration / 60)
|
|
5772
5777
|
}) }) : i[e.type] ? /* @__PURE__ */ a("div", { className: Ot.tariffItem, children: r(i[e.type], {
|
|
5773
|
-
total:
|
|
5778
|
+
total: ml(hl(e), {
|
|
5774
5779
|
currency: n
|
|
5775
5780
|
})
|
|
5776
5781
|
}) }) : null;
|
|
5777
5782
|
}
|
|
5778
|
-
const
|
|
5779
|
-
container:
|
|
5783
|
+
const vl = "PriceComponents-module_container", yl = {
|
|
5784
|
+
container: vl
|
|
5780
5785
|
}, Mn = ["ENERGY", "TIME", "FLAT", "PARKING_TIME"];
|
|
5781
5786
|
function rt({
|
|
5782
5787
|
elements: e,
|
|
@@ -5794,8 +5799,8 @@ function rt({
|
|
|
5794
5799
|
const c = Mn.indexOf(o.type), l = Mn.indexOf(s.type);
|
|
5795
5800
|
return c === -1 ? 1 : l === -1 ? -1 : c - l;
|
|
5796
5801
|
});
|
|
5797
|
-
return /* @__PURE__ */ a("div", { className:
|
|
5798
|
-
|
|
5802
|
+
return /* @__PURE__ */ a("div", { className: yl.container, children: i.map(({ type: o, elements: s }, c) => s.reverse().map((l, d) => /* @__PURE__ */ a(
|
|
5803
|
+
gl,
|
|
5799
5804
|
{
|
|
5800
5805
|
currency: t,
|
|
5801
5806
|
priceComponent: l.priceComponent,
|
|
@@ -5804,24 +5809,24 @@ function rt({
|
|
|
5804
5809
|
`${o}-${c}-${d}`
|
|
5805
5810
|
))) });
|
|
5806
5811
|
}
|
|
5807
|
-
function
|
|
5812
|
+
function Cl(e, t) {
|
|
5808
5813
|
return new Intl.NumberFormat(void 0, {
|
|
5809
5814
|
style: "currency",
|
|
5810
5815
|
currency: t.currency || "EUR",
|
|
5811
5816
|
maximumFractionDigits: 2
|
|
5812
5817
|
}).format(e);
|
|
5813
5818
|
}
|
|
5814
|
-
function
|
|
5819
|
+
function bl({ vat: e, price: t }) {
|
|
5815
5820
|
const n = e ? e / 100 : 0;
|
|
5816
5821
|
return t + t * n;
|
|
5817
5822
|
}
|
|
5818
|
-
function
|
|
5823
|
+
function Tl({
|
|
5819
5824
|
cdrAdditionalCharge: e,
|
|
5820
5825
|
currency: t
|
|
5821
5826
|
}) {
|
|
5822
5827
|
const { t: n } = W(), r = {
|
|
5823
5828
|
FLAT_FEE: n("cdrPrice.flatFee", {
|
|
5824
|
-
total:
|
|
5829
|
+
total: Cl(bl(e), {
|
|
5825
5830
|
currency: t
|
|
5826
5831
|
})
|
|
5827
5832
|
})
|
|
@@ -5835,8 +5840,8 @@ function it(e, t) {
|
|
|
5835
5840
|
minute: "2-digit"
|
|
5836
5841
|
});
|
|
5837
5842
|
}
|
|
5838
|
-
const
|
|
5839
|
-
function
|
|
5843
|
+
const El = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
5844
|
+
function wl(e) {
|
|
5840
5845
|
const { format: t } = new Intl.DateTimeFormat(e, { weekday: "long" });
|
|
5841
5846
|
return [
|
|
5842
5847
|
"SUNDAY",
|
|
@@ -5852,15 +5857,15 @@ function Be({
|
|
|
5852
5857
|
currency: e,
|
|
5853
5858
|
cdrAdditionalCharges: t
|
|
5854
5859
|
}) {
|
|
5855
|
-
return t.map((n) => /* @__PURE__ */ a(
|
|
5860
|
+
return t.map((n) => /* @__PURE__ */ a(Tl, { currency: e, cdrAdditionalCharge: n }, n.id));
|
|
5856
5861
|
}
|
|
5857
5862
|
function jt({
|
|
5858
|
-
timezone: e =
|
|
5863
|
+
timezone: e = El,
|
|
5859
5864
|
tariff: t,
|
|
5860
5865
|
compact: n = !0,
|
|
5861
5866
|
cdrAdditionalCharges: r = []
|
|
5862
5867
|
}) {
|
|
5863
|
-
const { t: i, language: o } = W(), s =
|
|
5868
|
+
const { t: i, language: o } = W(), s = wl(o);
|
|
5864
5869
|
if (!t) return null;
|
|
5865
5870
|
const c = t.elements || [], l = t.currency || "", d = c.some(
|
|
5866
5871
|
(C) => C.priceComponents && C.priceComponents.length > 0
|
|
@@ -5952,7 +5957,7 @@ function jt({
|
|
|
5952
5957
|
day: "numeric"
|
|
5953
5958
|
}).format(C.date)
|
|
5954
5959
|
}) }),
|
|
5955
|
-
/* @__PURE__ */ a("div", { className: ne.dynamicTariffList, children: C.items.map((b,
|
|
5960
|
+
/* @__PURE__ */ a("div", { className: ne.dynamicTariffList, children: C.items.map((b, M) => /* @__PURE__ */ p(
|
|
5956
5961
|
"div",
|
|
5957
5962
|
{
|
|
5958
5963
|
className: [
|
|
@@ -5983,7 +5988,7 @@ function jt({
|
|
|
5983
5988
|
b.isActive && /* @__PURE__ */ a("span", { className: ne.activeNowLabel, children: i("tariffPriceComponent.active") })
|
|
5984
5989
|
]
|
|
5985
5990
|
},
|
|
5986
|
-
[b.startTime, b.endTime,
|
|
5991
|
+
[b.startTime, b.endTime, M].join()
|
|
5987
5992
|
)) })
|
|
5988
5993
|
] })) })
|
|
5989
5994
|
] });
|
|
@@ -5995,7 +6000,7 @@ function Rn(e, t, n) {
|
|
|
5995
6000
|
e("tariffNote.scheduledTariffNote")
|
|
5996
6001
|
) : r.push(e("tariffNote.baseTariffNote")), r));
|
|
5997
6002
|
}
|
|
5998
|
-
const
|
|
6003
|
+
const Nl = ({
|
|
5999
6004
|
currentLocation: e,
|
|
6000
6005
|
evses: t,
|
|
6001
6006
|
setView: n,
|
|
@@ -6047,7 +6052,7 @@ const wl = ({
|
|
|
6047
6052
|
"div",
|
|
6048
6053
|
{
|
|
6049
6054
|
style: {
|
|
6050
|
-
background:
|
|
6055
|
+
background: We(l.status)
|
|
6051
6056
|
},
|
|
6052
6057
|
className: x.statusIcon
|
|
6053
6058
|
}
|
|
@@ -6058,7 +6063,7 @@ const wl = ({
|
|
|
6058
6063
|
].filter(Boolean).join(", ") })
|
|
6059
6064
|
] }),
|
|
6060
6065
|
l.connectors.map((d, u) => {
|
|
6061
|
-
const f =
|
|
6066
|
+
const f = rl(d.tariff), h = Rn(o, e, f);
|
|
6062
6067
|
return /* @__PURE__ */ p("div", { children: [
|
|
6063
6068
|
" ",
|
|
6064
6069
|
/* @__PURE__ */ p("div", { className: x.row, children: [
|
|
@@ -6127,23 +6132,23 @@ const wl = ({
|
|
|
6127
6132
|
})
|
|
6128
6133
|
] }, l.evseId))
|
|
6129
6134
|
] });
|
|
6130
|
-
},
|
|
6131
|
-
row:
|
|
6132
|
-
expandable:
|
|
6133
|
-
icon:
|
|
6134
|
-
text:
|
|
6135
|
-
textHint:
|
|
6136
|
-
chevron:
|
|
6137
|
-
chevronOpen:
|
|
6138
|
-
body:
|
|
6139
|
-
},
|
|
6135
|
+
}, _l = "LocationRow-module_row", Sl = "LocationRow-module_expandable", xl = "LocationRow-module_icon", Al = "LocationRow-module_text", Ol = "LocationRow-module_textHint", Pl = "LocationRow-module_chevron", Dl = "LocationRow-module_chevronOpen", Il = "LocationRow-module_body", we = {
|
|
6136
|
+
row: _l,
|
|
6137
|
+
expandable: Sl,
|
|
6138
|
+
icon: xl,
|
|
6139
|
+
text: Al,
|
|
6140
|
+
textHint: Ol,
|
|
6141
|
+
chevron: Pl,
|
|
6142
|
+
chevronOpen: Dl,
|
|
6143
|
+
body: Il
|
|
6144
|
+
}, kl = {
|
|
6140
6145
|
display: "flex",
|
|
6141
6146
|
flexDirection: "row",
|
|
6142
6147
|
flexWrap: "nowrap",
|
|
6143
6148
|
alignItems: "center",
|
|
6144
6149
|
padding: "5px 0",
|
|
6145
6150
|
minWidth: 0
|
|
6146
|
-
},
|
|
6151
|
+
}, Ml = {
|
|
6147
6152
|
display: "inline-flex",
|
|
6148
6153
|
alignItems: "center",
|
|
6149
6154
|
justifyContent: "center",
|
|
@@ -6152,7 +6157,7 @@ const wl = ({
|
|
|
6152
6157
|
flex: "0 0 auto",
|
|
6153
6158
|
marginRight: 14,
|
|
6154
6159
|
overflow: "hidden"
|
|
6155
|
-
},
|
|
6160
|
+
}, Rl = {
|
|
6156
6161
|
flex: "1 1 auto",
|
|
6157
6162
|
minWidth: 0,
|
|
6158
6163
|
fontSize: 12,
|
|
@@ -6160,10 +6165,10 @@ const wl = ({
|
|
|
6160
6165
|
whiteSpace: "nowrap",
|
|
6161
6166
|
overflow: "hidden",
|
|
6162
6167
|
textOverflow: "ellipsis"
|
|
6163
|
-
},
|
|
6168
|
+
}, Ll = {
|
|
6164
6169
|
color: "var(--roadmap-muted-color, #6a6a6a)",
|
|
6165
6170
|
fontWeight: "normal"
|
|
6166
|
-
},
|
|
6171
|
+
}, Fl = {
|
|
6167
6172
|
display: "inline-flex",
|
|
6168
6173
|
alignItems: "center",
|
|
6169
6174
|
justifyContent: "center",
|
|
@@ -6173,7 +6178,7 @@ const wl = ({
|
|
|
6173
6178
|
marginLeft: 8,
|
|
6174
6179
|
transition: "transform 0.15s ease",
|
|
6175
6180
|
color: "var(--roadmap-text-color, #2a2a2a)"
|
|
6176
|
-
},
|
|
6181
|
+
}, Hl = {
|
|
6177
6182
|
padding: "4px 0 6px 30px",
|
|
6178
6183
|
display: "flex",
|
|
6179
6184
|
flexDirection: "column",
|
|
@@ -6192,7 +6197,7 @@ const wl = ({
|
|
|
6192
6197
|
{
|
|
6193
6198
|
className: `${we.row} ${o ? we.expandable : ""}`,
|
|
6194
6199
|
style: {
|
|
6195
|
-
...
|
|
6200
|
+
...kl,
|
|
6196
6201
|
cursor: o ? "pointer" : void 0,
|
|
6197
6202
|
userSelect: o ? "none" : void 0
|
|
6198
6203
|
},
|
|
@@ -6204,7 +6209,7 @@ const wl = ({
|
|
|
6204
6209
|
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), l());
|
|
6205
6210
|
} : void 0,
|
|
6206
6211
|
children: [
|
|
6207
|
-
/* @__PURE__ */ a("span", { className: we.icon, style:
|
|
6212
|
+
/* @__PURE__ */ a("span", { className: we.icon, style: Ml, children: U.isValidElement(e) ? U.cloneElement(e, {
|
|
6208
6213
|
style: {
|
|
6209
6214
|
maxWidth: 16,
|
|
6210
6215
|
maxHeight: 16,
|
|
@@ -6212,9 +6217,9 @@ const wl = ({
|
|
|
6212
6217
|
...e.props?.style || {}
|
|
6213
6218
|
}
|
|
6214
6219
|
}) : e }),
|
|
6215
|
-
/* @__PURE__ */ p("div", { className: we.text, style:
|
|
6220
|
+
/* @__PURE__ */ p("div", { className: we.text, style: Rl, children: [
|
|
6216
6221
|
t,
|
|
6217
|
-
n != null && /* @__PURE__ */ p("span", { className: we.textHint, style:
|
|
6222
|
+
n != null && /* @__PURE__ */ p("span", { className: we.textHint, style: Ll, children: [
|
|
6218
6223
|
" · ",
|
|
6219
6224
|
n
|
|
6220
6225
|
] })
|
|
@@ -6224,18 +6229,18 @@ const wl = ({
|
|
|
6224
6229
|
{
|
|
6225
6230
|
className: `${we.chevron} ${s ? we.chevronOpen : ""}`,
|
|
6226
6231
|
style: {
|
|
6227
|
-
...
|
|
6232
|
+
...Fl,
|
|
6228
6233
|
transform: s ? "rotate(180deg)" : void 0
|
|
6229
6234
|
},
|
|
6230
|
-
children: /* @__PURE__ */ a(
|
|
6235
|
+
children: /* @__PURE__ */ a(Ls, {})
|
|
6231
6236
|
}
|
|
6232
6237
|
)
|
|
6233
6238
|
]
|
|
6234
6239
|
}
|
|
6235
6240
|
),
|
|
6236
|
-
o && s && /* @__PURE__ */ a("div", { className: we.body, style:
|
|
6241
|
+
o && s && /* @__PURE__ */ a("div", { className: we.body, style: Hl, children: r })
|
|
6237
6242
|
] });
|
|
6238
|
-
},
|
|
6243
|
+
}, $l = ({ location: e }) => {
|
|
6239
6244
|
const { options: t, mapKind: n } = W(), r = e?.name || "-", i = e?.externalId || e?.id;
|
|
6240
6245
|
let o;
|
|
6241
6246
|
return i && t.locationUrlTemplate && n === "cpo" ? o = t.locationUrlTemplate.replace(/{{\s*locationId\s*}}/g, i) : i && t.locationBaseUrl && (o = `${t.locationBaseUrl}/${i}`), /* @__PURE__ */ a(
|
|
@@ -6245,7 +6250,7 @@ const wl = ({
|
|
|
6245
6250
|
text: o ? /* @__PURE__ */ a("a", { href: o, target: "_blank", rel: "noopener noreferrer", children: r }) : r
|
|
6246
6251
|
}
|
|
6247
6252
|
);
|
|
6248
|
-
},
|
|
6253
|
+
}, Vl = ({ evses: e }) => {
|
|
6249
6254
|
const { t } = W(), n = e?.filter((r) => r.status === "AVAILABLE") || [];
|
|
6250
6255
|
return /* @__PURE__ */ a(
|
|
6251
6256
|
he,
|
|
@@ -6254,14 +6259,14 @@ const wl = ({
|
|
|
6254
6259
|
text: `${n.length} / ${e?.length || 0} ${t("evse.statusAvailable")}`
|
|
6255
6260
|
}
|
|
6256
6261
|
);
|
|
6257
|
-
},
|
|
6258
|
-
block:
|
|
6259
|
-
role:
|
|
6260
|
-
header:
|
|
6261
|
-
name:
|
|
6262
|
-
logo:
|
|
6263
|
-
website:
|
|
6264
|
-
},
|
|
6262
|
+
}, zl = "OperatorSection-module_block", Bl = "OperatorSection-module_role", Ul = "OperatorSection-module_header", Wl = "OperatorSection-module_name", jl = "OperatorSection-module_logo", Gl = "OperatorSection-module_website", Le = {
|
|
6263
|
+
block: zl,
|
|
6264
|
+
role: Bl,
|
|
6265
|
+
header: Ul,
|
|
6266
|
+
name: Wl,
|
|
6267
|
+
logo: jl,
|
|
6268
|
+
website: Gl
|
|
6269
|
+
}, Yl = ({
|
|
6265
6270
|
role: e,
|
|
6266
6271
|
showRoleLabel: t
|
|
6267
6272
|
}) => {
|
|
@@ -6342,7 +6347,7 @@ const wl = ({
|
|
|
6342
6347
|
]
|
|
6343
6348
|
}
|
|
6344
6349
|
) : null;
|
|
6345
|
-
},
|
|
6350
|
+
}, Kl = ({
|
|
6346
6351
|
operator: e,
|
|
6347
6352
|
suboperator: t,
|
|
6348
6353
|
fallbackOperatorName: n,
|
|
@@ -6365,7 +6370,7 @@ const wl = ({
|
|
|
6365
6370
|
icon: /* @__PURE__ */ a("img", { src: _r, alt: "building icon" }),
|
|
6366
6371
|
text: i("location.operatorInfo"),
|
|
6367
6372
|
hint: c.name,
|
|
6368
|
-
children: /* @__PURE__ */ a(
|
|
6373
|
+
children: /* @__PURE__ */ a(Yl, { role: c, showRoleLabel: !1 })
|
|
6369
6374
|
}
|
|
6370
6375
|
) : null;
|
|
6371
6376
|
};
|
|
@@ -6374,7 +6379,7 @@ function Ln(e, t) {
|
|
|
6374
6379
|
const n = new Date(2024, 0, t);
|
|
6375
6380
|
return new Intl.DateTimeFormat(e, { weekday: "long" }).format(n);
|
|
6376
6381
|
}
|
|
6377
|
-
function
|
|
6382
|
+
function Zl(e = /* @__PURE__ */ new Date()) {
|
|
6378
6383
|
return Pt(e.getDay());
|
|
6379
6384
|
}
|
|
6380
6385
|
function Hr(e) {
|
|
@@ -6408,7 +6413,7 @@ function Fn(e, t) {
|
|
|
6408
6413
|
}
|
|
6409
6414
|
return null;
|
|
6410
6415
|
}
|
|
6411
|
-
function
|
|
6416
|
+
function ql(e, t = /* @__PURE__ */ new Date()) {
|
|
6412
6417
|
if (!e) return { open: !1 };
|
|
6413
6418
|
if (e.twentyfourseven) return { open: !0 };
|
|
6414
6419
|
const n = Pt(t.getDay()), r = Fn(e.exceptional_closings, t);
|
|
@@ -6476,7 +6481,7 @@ function Hn(e, t = /* @__PURE__ */ new Date()) {
|
|
|
6476
6481
|
return !isNaN(i) && i >= n;
|
|
6477
6482
|
});
|
|
6478
6483
|
}
|
|
6479
|
-
function
|
|
6484
|
+
function Jl(e) {
|
|
6480
6485
|
const t = e % 100;
|
|
6481
6486
|
if (t >= 11 && t <= 13) return "th";
|
|
6482
6487
|
switch (e % 10) {
|
|
@@ -6495,47 +6500,47 @@ function $n(e, t) {
|
|
|
6495
6500
|
if (isNaN(n.getTime())) return t;
|
|
6496
6501
|
if (e === "en") {
|
|
6497
6502
|
const r = new Intl.DateTimeFormat("en", { month: "long" }).format(n), i = n.getDate();
|
|
6498
|
-
return `${r} ${i}${
|
|
6503
|
+
return `${r} ${i}${Jl(i)}`;
|
|
6499
6504
|
}
|
|
6500
6505
|
return new Intl.DateTimeFormat(e, {
|
|
6501
6506
|
month: "long",
|
|
6502
6507
|
day: "numeric"
|
|
6503
6508
|
}).format(n);
|
|
6504
6509
|
}
|
|
6505
|
-
function
|
|
6510
|
+
function Xl(e) {
|
|
6506
6511
|
const t = new Date(e.period_begin), n = new Date(e.period_end);
|
|
6507
6512
|
return isNaN(t.getTime()) || isNaN(n.getTime()) ? `${e.period_begin} - ${e.period_end}` : $r(
|
|
6508
6513
|
t.toISOString().slice(11, 16),
|
|
6509
6514
|
n.toISOString().slice(11, 16)
|
|
6510
6515
|
);
|
|
6511
6516
|
}
|
|
6512
|
-
const
|
|
6513
|
-
pill:
|
|
6514
|
-
pillOpen:
|
|
6515
|
-
pillClosed:
|
|
6516
|
-
day:
|
|
6517
|
-
dayLabel:
|
|
6518
|
-
dayValue:
|
|
6519
|
-
today:
|
|
6520
|
-
exceptional:
|
|
6521
|
-
exceptionalHeader:
|
|
6522
|
-
exceptionalClosingHeader:
|
|
6523
|
-
exceptionalOpeningHeader:
|
|
6524
|
-
footnote:
|
|
6525
|
-
},
|
|
6517
|
+
const Ql = "OpeningHours-module_pill", ec = "OpeningHours-module_pillOpen", tc = "OpeningHours-module_pillClosed", nc = "OpeningHours-module_day", rc = "OpeningHours-module_dayLabel", ic = "OpeningHours-module_dayValue", oc = "OpeningHours-module_today", ac = "OpeningHours-module_exceptional", sc = "OpeningHours-module_exceptionalHeader", lc = "OpeningHours-module_exceptionalClosingHeader", cc = "OpeningHours-module_exceptionalOpeningHeader", dc = "OpeningHours-module_footnote", ee = {
|
|
6518
|
+
pill: Ql,
|
|
6519
|
+
pillOpen: ec,
|
|
6520
|
+
pillClosed: tc,
|
|
6521
|
+
day: nc,
|
|
6522
|
+
dayLabel: rc,
|
|
6523
|
+
dayValue: ic,
|
|
6524
|
+
today: oc,
|
|
6525
|
+
exceptional: ac,
|
|
6526
|
+
exceptionalHeader: sc,
|
|
6527
|
+
exceptionalClosingHeader: lc,
|
|
6528
|
+
exceptionalOpeningHeader: cc,
|
|
6529
|
+
footnote: dc
|
|
6530
|
+
}, uc = ({
|
|
6526
6531
|
openingTimes: e,
|
|
6527
6532
|
chargingWhenClosed: t
|
|
6528
6533
|
}) => {
|
|
6529
6534
|
const { t: n, language: r } = W();
|
|
6530
6535
|
if (!e) return null;
|
|
6531
|
-
const i =
|
|
6536
|
+
const i = ql(e), o = Hr(e.regular_hours), s = Hn(
|
|
6532
6537
|
e.exceptional_closings
|
|
6533
6538
|
), c = Hn(
|
|
6534
6539
|
e.exceptional_openings
|
|
6535
6540
|
), l = (e.regular_hours?.length ?? 0) > 0, d = e.twentyfourseven || l;
|
|
6536
6541
|
if (!d && s.length === 0 && c.length === 0 && !t)
|
|
6537
6542
|
return null;
|
|
6538
|
-
const u = e.twentyfourseven || i.open, f =
|
|
6543
|
+
const u = e.twentyfourseven || i.open, f = Zl();
|
|
6539
6544
|
let h;
|
|
6540
6545
|
if (e.twentyfourseven)
|
|
6541
6546
|
h = n("location.hours24");
|
|
@@ -6559,7 +6564,7 @@ const Xl = "OpeningHours-module_pill", Ql = "OpeningHours-module_pillOpen", ec =
|
|
|
6559
6564
|
display: "flex",
|
|
6560
6565
|
fontSize: 12,
|
|
6561
6566
|
lineHeight: 1.5
|
|
6562
|
-
}, m = { minWidth: 84 }, b = { flex: "1 1 auto" },
|
|
6567
|
+
}, m = { minWidth: 84 }, b = { flex: "1 1 auto" }, M = { fontWeight: 600 }, B = {
|
|
6563
6568
|
fontSize: 12,
|
|
6564
6569
|
marginTop: 8,
|
|
6565
6570
|
paddingTop: 8,
|
|
@@ -6580,14 +6585,14 @@ const Xl = "OpeningHours-module_pill", Ql = "OpeningHours-module_pillOpen", ec =
|
|
|
6580
6585
|
children: n(u ? "location.open" : "location.closedNow")
|
|
6581
6586
|
}
|
|
6582
6587
|
);
|
|
6583
|
-
return /* @__PURE__ */ p(he, { icon: /* @__PURE__ */ a(
|
|
6588
|
+
return /* @__PURE__ */ p(he, { icon: /* @__PURE__ */ a(Fs, {}), text: g, hint: h, children: [
|
|
6584
6589
|
d && [1, 2, 3, 4, 5, 6, 7].map((_) => {
|
|
6585
6590
|
const q = _ === f, K = e.twentyfourseven ? n("location.open24hours") : o[_].length === 0 ? n("location.closed") : o[_].map((Z) => $r(Z.period_begin, Z.period_end)).join(", ");
|
|
6586
6591
|
return /* @__PURE__ */ p(
|
|
6587
6592
|
"div",
|
|
6588
6593
|
{
|
|
6589
6594
|
className: `${ee.day} ${q ? ee.today : ""}`,
|
|
6590
|
-
style: { ...C, ...q ?
|
|
6595
|
+
style: { ...C, ...q ? M : {} },
|
|
6591
6596
|
children: [
|
|
6592
6597
|
/* @__PURE__ */ a("div", { className: ee.dayLabel, style: m, children: Ln(r, _) }),
|
|
6593
6598
|
/* @__PURE__ */ a("div", { className: ee.dayValue, style: b, children: K })
|
|
@@ -6609,7 +6614,7 @@ const Xl = "OpeningHours-module_pill", Ql = "OpeningHours-module_pillOpen", ec =
|
|
|
6609
6614
|
"div",
|
|
6610
6615
|
{
|
|
6611
6616
|
className: `${ee.day} ${ee.today}`,
|
|
6612
|
-
style: { ...C, ...
|
|
6617
|
+
style: { ...C, ...M },
|
|
6613
6618
|
children: [
|
|
6614
6619
|
/* @__PURE__ */ a("div", { className: ee.dayLabel, style: m, children: $n(r, _.period_begin) }),
|
|
6615
6620
|
/* @__PURE__ */ a("div", { className: ee.dayValue, style: b, children: n("location.closed") })
|
|
@@ -6631,10 +6636,10 @@ const Xl = "OpeningHours-module_pill", Ql = "OpeningHours-module_pillOpen", ec =
|
|
|
6631
6636
|
"div",
|
|
6632
6637
|
{
|
|
6633
6638
|
className: `${ee.day} ${ee.today}`,
|
|
6634
|
-
style: { ...C, ...
|
|
6639
|
+
style: { ...C, ...M },
|
|
6635
6640
|
children: [
|
|
6636
6641
|
/* @__PURE__ */ a("div", { className: ee.dayLabel, style: m, children: $n(r, _.period_begin) }),
|
|
6637
|
-
/* @__PURE__ */ a("div", { className: ee.dayValue, style: b, children:
|
|
6642
|
+
/* @__PURE__ */ a("div", { className: ee.dayValue, style: b, children: Xl(_) })
|
|
6638
6643
|
]
|
|
6639
6644
|
},
|
|
6640
6645
|
`o-${q}`
|
|
@@ -6642,7 +6647,7 @@ const Xl = "OpeningHours-module_pill", Ql = "OpeningHours-module_pillOpen", ec =
|
|
|
6642
6647
|
] }),
|
|
6643
6648
|
t && /* @__PURE__ */ a("div", { className: ee.footnote, style: O, children: n("location.chargingWhenClosed") })
|
|
6644
6649
|
] });
|
|
6645
|
-
},
|
|
6650
|
+
}, fc = ({ parkingType: e }) => {
|
|
6646
6651
|
const { t } = W();
|
|
6647
6652
|
return !e || e === "PARKING_TYPE_UNKNOWN" ? null : /* @__PURE__ */ a(
|
|
6648
6653
|
he,
|
|
@@ -6651,24 +6656,24 @@ const Xl = "OpeningHours-module_pill", Ql = "OpeningHours-module_pillOpen", ec =
|
|
|
6651
6656
|
text: Dr(t, e)
|
|
6652
6657
|
}
|
|
6653
6658
|
);
|
|
6654
|
-
},
|
|
6659
|
+
}, pc = ({ accessibility: e }) => e ? /* @__PURE__ */ a(
|
|
6655
6660
|
he,
|
|
6656
6661
|
{
|
|
6657
6662
|
icon: /* @__PURE__ */ a("img", { src: Ut, alt: "accessibility icon" }),
|
|
6658
6663
|
text: e === "TESLA" ? "Tesla vehicles only" : "All electric vehicles"
|
|
6659
6664
|
}
|
|
6660
|
-
) : null,
|
|
6665
|
+
) : null, mc = ({ evse: e }) => /* @__PURE__ */ a(
|
|
6661
6666
|
he,
|
|
6662
6667
|
{
|
|
6663
6668
|
icon: /* @__PURE__ */ a("img", { src: Ke, alt: "power icon" }),
|
|
6664
6669
|
text: e.evse_id || "",
|
|
6665
6670
|
hint: e.physical_reference || void 0
|
|
6666
6671
|
}
|
|
6667
|
-
),
|
|
6672
|
+
), hc = ({ evse: e }) => {
|
|
6668
6673
|
const { t, language: n, options: r } = W(), i = e.connectors[0], o = i?.power && i?.connectorPowerType ? `${Ar(
|
|
6669
6674
|
n,
|
|
6670
6675
|
Math.floor(
|
|
6671
|
-
|
|
6676
|
+
il(
|
|
6672
6677
|
i
|
|
6673
6678
|
)
|
|
6674
6679
|
)
|
|
@@ -6685,13 +6690,13 @@ const Xl = "OpeningHours-module_pill", Ql = "OpeningHours-module_pillOpen", ec =
|
|
|
6685
6690
|
text: s
|
|
6686
6691
|
}
|
|
6687
6692
|
);
|
|
6688
|
-
},
|
|
6693
|
+
}, gc = ({ connector: e }) => /* @__PURE__ */ a(
|
|
6689
6694
|
he,
|
|
6690
6695
|
{
|
|
6691
6696
|
icon: /* @__PURE__ */ a("img", { src: xr(e), alt: "socket type" }),
|
|
6692
6697
|
text: Or(e)
|
|
6693
6698
|
}
|
|
6694
|
-
),
|
|
6699
|
+
), vc = () => {
|
|
6695
6700
|
const { t: e } = W();
|
|
6696
6701
|
return /* @__PURE__ */ a(
|
|
6697
6702
|
he,
|
|
@@ -6741,7 +6746,7 @@ function Gt(e) {
|
|
|
6741
6746
|
}))
|
|
6742
6747
|
} : null;
|
|
6743
6748
|
}
|
|
6744
|
-
const
|
|
6749
|
+
const yc = ({ tariff: e, additionalCharges: t }) => {
|
|
6745
6750
|
const { t: n } = W(), r = e?.elements?.some(
|
|
6746
6751
|
(i) => i?.price_components?.some((o) => o.type === "CONGESTION_TIME")
|
|
6747
6752
|
);
|
|
@@ -6769,7 +6774,7 @@ const vc = ({ tariff: e, additionalCharges: t }) => {
|
|
|
6769
6774
|
}
|
|
6770
6775
|
)
|
|
6771
6776
|
] });
|
|
6772
|
-
},
|
|
6777
|
+
}, Cc = [
|
|
6773
6778
|
"SUNDAY",
|
|
6774
6779
|
"MONDAY",
|
|
6775
6780
|
"TUESDAY",
|
|
@@ -6782,17 +6787,17 @@ function Vn(e) {
|
|
|
6782
6787
|
const [t, n] = e.split(":").map(Number);
|
|
6783
6788
|
return t * 60 + (n || 0);
|
|
6784
6789
|
}
|
|
6785
|
-
function
|
|
6790
|
+
function bc(e, t, n) {
|
|
6786
6791
|
const r = n.getHours() * 60 + n.getMinutes(), i = Vn(e), o = Vn(t);
|
|
6787
6792
|
return o < i ? r >= i || r < o : r >= i && r < o;
|
|
6788
6793
|
}
|
|
6789
|
-
function
|
|
6794
|
+
function Tc(e, t) {
|
|
6790
6795
|
if (Se(e)) return !0;
|
|
6791
6796
|
const n = e.restrictions;
|
|
6792
|
-
if (n.startTime && n.endTime && !
|
|
6797
|
+
if (n.startTime && n.endTime && !bc(n.startTime, n.endTime, t))
|
|
6793
6798
|
return !1;
|
|
6794
6799
|
if (n.dayOfWeek && n.dayOfWeek.length > 0) {
|
|
6795
|
-
const r =
|
|
6800
|
+
const r = Cc[t.getDay()];
|
|
6796
6801
|
if (!n.dayOfWeek.includes(r)) return !1;
|
|
6797
6802
|
}
|
|
6798
6803
|
if (n.startDate) {
|
|
@@ -6805,17 +6810,17 @@ function bc(e, t) {
|
|
|
6805
6810
|
}
|
|
6806
6811
|
return !0;
|
|
6807
6812
|
}
|
|
6808
|
-
function
|
|
6813
|
+
function Ec(e, t) {
|
|
6809
6814
|
const n = t.restrictions?.minDuration ?? 0, r = t.restrictions?.maxDuration ?? 0;
|
|
6810
6815
|
return `${e}:${n}:${r}`;
|
|
6811
6816
|
}
|
|
6812
|
-
function
|
|
6817
|
+
function wc(e, t = /* @__PURE__ */ new Date()) {
|
|
6813
6818
|
if (!e) return { elements: [], currency: "" };
|
|
6814
|
-
const r = (e.elements || []).filter((l) =>
|
|
6819
|
+
const r = (e.elements || []).filter((l) => Tc(l, t)), i = {};
|
|
6815
6820
|
r.forEach((l) => {
|
|
6816
6821
|
const d = Se(l);
|
|
6817
6822
|
(l.priceComponents || []).forEach((u) => {
|
|
6818
|
-
const f =
|
|
6823
|
+
const f = Ec(u.type, l), h = i[f];
|
|
6819
6824
|
(!h || h.isBase && !d) && (i[f] = { element: l, pc: u, isBase: d });
|
|
6820
6825
|
});
|
|
6821
6826
|
});
|
|
@@ -6827,7 +6832,7 @@ function Ec(e, t = /* @__PURE__ */ new Date()) {
|
|
|
6827
6832
|
priceComponents: o.get(l)
|
|
6828
6833
|
})), currency: e.currency || "" };
|
|
6829
6834
|
}
|
|
6830
|
-
const
|
|
6835
|
+
const Nc = {
|
|
6831
6836
|
display: "flex",
|
|
6832
6837
|
flexWrap: "wrap",
|
|
6833
6838
|
gap: 6
|
|
@@ -6839,7 +6844,7 @@ const wc = {
|
|
|
6839
6844
|
background: "color-mix(in srgb, var(--roadmap-brand-color, #6102d3) 12%, transparent)",
|
|
6840
6845
|
color: "var(--roadmap-brand-color, #6102d3)",
|
|
6841
6846
|
border: "1px solid color-mix(in srgb, var(--roadmap-brand-color, #6102d3) 30%, transparent)"
|
|
6842
|
-
},
|
|
6847
|
+
}, _c = Vr, Sc = {
|
|
6843
6848
|
ENERGY: "tariffPriceComponent.energy",
|
|
6844
6849
|
TIME: "tariffPriceComponent.time",
|
|
6845
6850
|
FLAT: "tariffPriceComponent.flat",
|
|
@@ -6852,14 +6857,14 @@ function Bn(e, t) {
|
|
|
6852
6857
|
maximumFractionDigits: 2
|
|
6853
6858
|
}).format(e);
|
|
6854
6859
|
}
|
|
6855
|
-
function
|
|
6860
|
+
function xc(e) {
|
|
6856
6861
|
const t = e.vat ? e.vat / 100 : 0;
|
|
6857
6862
|
return e.price + e.price * t;
|
|
6858
6863
|
}
|
|
6859
6864
|
function zr(e, t) {
|
|
6860
6865
|
return e.type === "PARKING_TIME" && (e.price || 0) === 0 && !!t?.maxDuration && (!t.minDuration || t.minDuration === 0);
|
|
6861
6866
|
}
|
|
6862
|
-
function
|
|
6867
|
+
function Ac(e, t) {
|
|
6863
6868
|
const n = [];
|
|
6864
6869
|
return e.forEach((r) => {
|
|
6865
6870
|
(r.priceComponents || []).forEach((i) => {
|
|
@@ -6870,23 +6875,23 @@ function xc(e, t) {
|
|
|
6870
6875
|
return o === -1 ? 1 : s === -1 ? -1 : o - s;
|
|
6871
6876
|
});
|
|
6872
6877
|
}
|
|
6873
|
-
const
|
|
6878
|
+
const Oc = ({
|
|
6874
6879
|
elements: e,
|
|
6875
6880
|
currency: t,
|
|
6876
6881
|
skipZero: n = !0,
|
|
6877
6882
|
highlight: r = !1,
|
|
6878
6883
|
additionalCharges: i = []
|
|
6879
6884
|
}) => {
|
|
6880
|
-
const { t: o } = W(), s =
|
|
6881
|
-
return s.length === 0 && i.length === 0 ? null : /* @__PURE__ */ p("div", { style:
|
|
6885
|
+
const { t: o } = W(), s = Ac(e, n), c = r ? _c : Vr;
|
|
6886
|
+
return s.length === 0 && i.length === 0 ? null : /* @__PURE__ */ p("div", { style: Nc, children: [
|
|
6882
6887
|
s.map(({ pc: l, restrictions: d }, u) => {
|
|
6883
6888
|
if (zr(l, d))
|
|
6884
6889
|
return /* @__PURE__ */ a("div", { style: c, children: o("tariffPriceComponent.parkingTimeWait", {
|
|
6885
6890
|
minutes: String(Math.floor(d.maxDuration / 60))
|
|
6886
6891
|
}) }, `pc-${u}`);
|
|
6887
|
-
const f =
|
|
6892
|
+
const f = Sc[l.type];
|
|
6888
6893
|
return f ? /* @__PURE__ */ a("div", { style: c, children: o(f, {
|
|
6889
|
-
total: Bn(
|
|
6894
|
+
total: Bn(xc(l), t)
|
|
6890
6895
|
}) }, `pc-${u}`) : null;
|
|
6891
6896
|
}),
|
|
6892
6897
|
i.map((l) => {
|
|
@@ -6902,7 +6907,7 @@ const Ac = ({
|
|
|
6902
6907
|
flexDirection: "column",
|
|
6903
6908
|
gap: 4,
|
|
6904
6909
|
padding: "6px 0"
|
|
6905
|
-
},
|
|
6910
|
+
}, Pc = {
|
|
6906
6911
|
display: "flex",
|
|
6907
6912
|
flexDirection: "row",
|
|
6908
6913
|
alignItems: "center",
|
|
@@ -6910,7 +6915,7 @@ const Ac = ({
|
|
|
6910
6915
|
gap: 8,
|
|
6911
6916
|
fontSize: 12,
|
|
6912
6917
|
color: "var(--roadmap-muted-color, #6a6a6a)"
|
|
6913
|
-
},
|
|
6918
|
+
}, Dc = {
|
|
6914
6919
|
display: "flex",
|
|
6915
6920
|
flexDirection: "row",
|
|
6916
6921
|
alignItems: "center",
|
|
@@ -6937,10 +6942,10 @@ const Ac = ({
|
|
|
6937
6942
|
s && (u.key === "Enter" || u.key === " ") && (u.preventDefault(), s());
|
|
6938
6943
|
} : void 0,
|
|
6939
6944
|
children: [
|
|
6940
|
-
n != null && /* @__PURE__ */ a("div", { style:
|
|
6941
|
-
/* @__PURE__ */ p("div", { style:
|
|
6945
|
+
n != null && /* @__PURE__ */ a("div", { style: Pc, children: n }),
|
|
6946
|
+
/* @__PURE__ */ p("div", { style: Dc, children: [
|
|
6942
6947
|
/* @__PURE__ */ a(
|
|
6943
|
-
|
|
6948
|
+
Oc,
|
|
6944
6949
|
{
|
|
6945
6950
|
elements: e,
|
|
6946
6951
|
currency: t,
|
|
@@ -6962,21 +6967,21 @@ const Ac = ({
|
|
|
6962
6967
|
background: "transparent",
|
|
6963
6968
|
color: "var(--roadmap-brand-color, #6102d3)",
|
|
6964
6969
|
border: "1px solid color-mix(in srgb, var(--roadmap-brand-color, #6102d3) 40%, transparent)"
|
|
6965
|
-
},
|
|
6970
|
+
}, Ic = {
|
|
6966
6971
|
...Br,
|
|
6967
6972
|
cursor: "default",
|
|
6968
6973
|
opacity: 0.6
|
|
6969
|
-
},
|
|
6974
|
+
}, kc = {
|
|
6970
6975
|
display: "flex",
|
|
6971
6976
|
alignItems: "center",
|
|
6972
6977
|
gap: 6,
|
|
6973
6978
|
fontSize: 12,
|
|
6974
6979
|
color: "var(--roadmap-brand-color, #6102d3)"
|
|
6975
|
-
},
|
|
6980
|
+
}, Mc = {
|
|
6976
6981
|
fontSize: 11,
|
|
6977
6982
|
color: "var(--roadmap-muted-color, #6a6a6a)",
|
|
6978
6983
|
marginTop: 6
|
|
6979
|
-
},
|
|
6984
|
+
}, Rc = ({
|
|
6980
6985
|
type: e,
|
|
6981
6986
|
country_code: t,
|
|
6982
6987
|
party_id: n,
|
|
@@ -6999,8 +7004,8 @@ const Ac = ({
|
|
|
6999
7004
|
}
|
|
7000
7005
|
}
|
|
7001
7006
|
};
|
|
7002
|
-
return c === "done" ? /* @__PURE__ */ p("div", { style:
|
|
7003
|
-
/* @__PURE__ */ a(
|
|
7007
|
+
return c === "done" ? /* @__PURE__ */ p("div", { style: kc, children: [
|
|
7008
|
+
/* @__PURE__ */ a(Hs, {}),
|
|
7004
7009
|
/* @__PURE__ */ a("span", { children: o("tariff.reportThanks") })
|
|
7005
7010
|
] }) : /* @__PURE__ */ p(re, { children: [
|
|
7006
7011
|
/* @__PURE__ */ a(
|
|
@@ -7009,13 +7014,13 @@ const Ac = ({
|
|
|
7009
7014
|
type: "button",
|
|
7010
7015
|
onClick: d,
|
|
7011
7016
|
disabled: c === "submitting",
|
|
7012
|
-
style: c === "submitting" ?
|
|
7017
|
+
style: c === "submitting" ? Ic : Br,
|
|
7013
7018
|
children: o("tariff.report")
|
|
7014
7019
|
}
|
|
7015
7020
|
),
|
|
7016
|
-
c === "error" && /* @__PURE__ */ a("div", { style:
|
|
7021
|
+
c === "error" && /* @__PURE__ */ a("div", { style: Mc, children: o("tariff.reportError") })
|
|
7017
7022
|
] });
|
|
7018
|
-
},
|
|
7023
|
+
}, Lc = {
|
|
7019
7024
|
display: "flex",
|
|
7020
7025
|
flexDirection: "column",
|
|
7021
7026
|
alignItems: "flex-start",
|
|
@@ -7024,7 +7029,7 @@ const Ac = ({
|
|
|
7024
7029
|
marginTop: 6,
|
|
7025
7030
|
borderRadius: 8,
|
|
7026
7031
|
background: "color-mix(in srgb, var(--roadmap-text-color, #2a2a2a) 4%, transparent)"
|
|
7027
|
-
},
|
|
7032
|
+
}, Fc = {
|
|
7028
7033
|
fontSize: 12,
|
|
7029
7034
|
fontStyle: "italic",
|
|
7030
7035
|
color: "var(--roadmap-muted-color, #6a6a6a)"
|
|
@@ -7035,10 +7040,10 @@ const Ac = ({
|
|
|
7035
7040
|
evse_uid: r
|
|
7036
7041
|
}) => {
|
|
7037
7042
|
const { t: i } = W();
|
|
7038
|
-
return /* @__PURE__ */ p("div", { style:
|
|
7039
|
-
/* @__PURE__ */ a("div", { style:
|
|
7043
|
+
return /* @__PURE__ */ p("div", { style: Lc, children: [
|
|
7044
|
+
/* @__PURE__ */ a("div", { style: Fc, children: i("tariffPriceComponent.noTariff") }),
|
|
7040
7045
|
/* @__PURE__ */ a(
|
|
7041
|
-
|
|
7046
|
+
Rc,
|
|
7042
7047
|
{
|
|
7043
7048
|
type: "missing_tariff",
|
|
7044
7049
|
country_code: e,
|
|
@@ -7048,13 +7053,13 @@ const Ac = ({
|
|
|
7048
7053
|
}
|
|
7049
7054
|
)
|
|
7050
7055
|
] });
|
|
7051
|
-
},
|
|
7056
|
+
}, Hc = {
|
|
7052
7057
|
display: "inline-flex",
|
|
7053
7058
|
alignItems: "center",
|
|
7054
7059
|
justifyContent: "center",
|
|
7055
7060
|
color: "var(--roadmap-muted-color, #6a6a6a)",
|
|
7056
7061
|
flex: "0 0 auto"
|
|
7057
|
-
},
|
|
7062
|
+
}, $c = ({
|
|
7058
7063
|
tariff: e,
|
|
7059
7064
|
additionalCharges: t = [],
|
|
7060
7065
|
evseId: n,
|
|
@@ -7065,7 +7070,7 @@ const Ac = ({
|
|
|
7065
7070
|
locationName: c,
|
|
7066
7071
|
setView: l
|
|
7067
7072
|
}) => {
|
|
7068
|
-
const d = e ? Gt(e) : null, { elements: u, currency: f } =
|
|
7073
|
+
const d = e ? Gt(e) : null, { elements: u, currency: f } = wc(d), h = u.map((m) => ({
|
|
7069
7074
|
...m,
|
|
7070
7075
|
priceComponents: (m.priceComponents || []).filter((b) => !!((b.price || 0) > 0 || b.type === "PARKING_TIME" && m.restrictions?.maxDuration && (!m.restrictions.minDuration || m.restrictions.minDuration === 0)))
|
|
7071
7076
|
})).filter((m) => m.priceComponents.length > 0);
|
|
@@ -7086,7 +7091,7 @@ const Ac = ({
|
|
|
7086
7091
|
partyId: o,
|
|
7087
7092
|
locationId: s
|
|
7088
7093
|
}),
|
|
7089
|
-
trailing: /* @__PURE__ */ a("span", { style:
|
|
7094
|
+
trailing: /* @__PURE__ */ a("span", { style: Hc, children: /* @__PURE__ */ a(Er, {}) })
|
|
7090
7095
|
}
|
|
7091
7096
|
) : /* @__PURE__ */ p(re, { children: [
|
|
7092
7097
|
/* @__PURE__ */ a(
|
|
@@ -7107,7 +7112,7 @@ const Ac = ({
|
|
|
7107
7112
|
}
|
|
7108
7113
|
)
|
|
7109
7114
|
] });
|
|
7110
|
-
},
|
|
7115
|
+
}, Vc = ({
|
|
7111
7116
|
connector: e,
|
|
7112
7117
|
tariffs: t,
|
|
7113
7118
|
cdrAdditionalCharges: n,
|
|
@@ -7118,10 +7123,10 @@ const Ac = ({
|
|
|
7118
7123
|
}) => {
|
|
7119
7124
|
const c = t?.find((l) => l.id === e?.tariff_ids?.[0]);
|
|
7120
7125
|
return /* @__PURE__ */ p(re, { children: [
|
|
7121
|
-
/* @__PURE__ */ a(
|
|
7122
|
-
/* @__PURE__ */ a(
|
|
7126
|
+
/* @__PURE__ */ a(gc, { connector: e }),
|
|
7127
|
+
/* @__PURE__ */ a(vc, {}),
|
|
7123
7128
|
/* @__PURE__ */ a(
|
|
7124
|
-
|
|
7129
|
+
$c,
|
|
7125
7130
|
{
|
|
7126
7131
|
tariff: c,
|
|
7127
7132
|
additionalCharges: n,
|
|
@@ -7135,31 +7140,31 @@ const Ac = ({
|
|
|
7135
7140
|
}
|
|
7136
7141
|
)
|
|
7137
7142
|
] });
|
|
7138
|
-
},
|
|
7143
|
+
}, zc = {
|
|
7139
7144
|
background: "color-mix(in srgb, var(--roadmap-text-color, #2a2a2a) 4%, transparent)",
|
|
7140
7145
|
borderRadius: 8,
|
|
7141
7146
|
padding: "8px 12px",
|
|
7142
7147
|
marginTop: 12
|
|
7143
|
-
},
|
|
7148
|
+
}, Bc = {
|
|
7144
7149
|
paddingLeft: 10,
|
|
7145
7150
|
marginTop: 10
|
|
7146
|
-
},
|
|
7151
|
+
}, Uc = ({
|
|
7147
7152
|
evse: e,
|
|
7148
7153
|
tariffs: t,
|
|
7149
7154
|
cdrAdditionalCharges: n,
|
|
7150
7155
|
location: r,
|
|
7151
7156
|
setView: i
|
|
7152
7157
|
}) => {
|
|
7153
|
-
const o =
|
|
7154
|
-
...
|
|
7158
|
+
const o = We(e.status), s = {
|
|
7159
|
+
...Bc,
|
|
7155
7160
|
borderLeft: `3px solid ${o}`,
|
|
7156
7161
|
borderRadius: 2
|
|
7157
7162
|
};
|
|
7158
|
-
return /* @__PURE__ */ p("div", { style:
|
|
7159
|
-
/* @__PURE__ */ a(pc, { evse: e }),
|
|
7163
|
+
return /* @__PURE__ */ p("div", { style: zc, children: [
|
|
7160
7164
|
/* @__PURE__ */ a(mc, { evse: e }),
|
|
7165
|
+
/* @__PURE__ */ a(hc, { evse: e }),
|
|
7161
7166
|
e.connectors.map((c, l) => /* @__PURE__ */ a("div", { style: s, children: /* @__PURE__ */ a(
|
|
7162
|
-
|
|
7167
|
+
Vc,
|
|
7163
7168
|
{
|
|
7164
7169
|
connector: c,
|
|
7165
7170
|
tariffs: t,
|
|
@@ -7171,7 +7176,7 @@ const Ac = ({
|
|
|
7171
7176
|
}
|
|
7172
7177
|
) }, `connector-${l}`))
|
|
7173
7178
|
] });
|
|
7174
|
-
},
|
|
7179
|
+
}, Wc = {
|
|
7175
7180
|
fontSize: 12,
|
|
7176
7181
|
fontStyle: "italic",
|
|
7177
7182
|
lineHeight: 1.5,
|
|
@@ -7180,23 +7185,23 @@ const Ac = ({
|
|
|
7180
7185
|
margin: "8px 0",
|
|
7181
7186
|
borderLeft: "3px solid color-mix(in srgb, var(--roadmap-text-color, #2a2a2a) 20%, transparent)"
|
|
7182
7187
|
};
|
|
7183
|
-
function
|
|
7188
|
+
function jc(e, t) {
|
|
7184
7189
|
if (!e || e.length === 0) return;
|
|
7185
7190
|
const n = (t || "").toLowerCase(), r = e.find((o) => o.language?.toLowerCase() === n);
|
|
7186
7191
|
return r ? r.text : (e.find((o) => o.language?.toLowerCase() === "en") || e[0])?.text;
|
|
7187
7192
|
}
|
|
7188
|
-
const
|
|
7189
|
-
const { language: t } = W(), n =
|
|
7190
|
-
return n ? /* @__PURE__ */ a("div", { style:
|
|
7191
|
-
},
|
|
7193
|
+
const Gc = ({ directions: e }) => {
|
|
7194
|
+
const { language: t } = W(), n = jc(e || [], t);
|
|
7195
|
+
return n ? /* @__PURE__ */ a("div", { style: Wc, children: n }) : null;
|
|
7196
|
+
}, Yc = ({ currentLocation: e, setView: t }) => {
|
|
7192
7197
|
const { options: n, mapKind: r } = W();
|
|
7193
7198
|
return /* @__PURE__ */ p("div", { className: x.container, children: [
|
|
7194
7199
|
r === "cpo" && /* @__PURE__ */ a("div", { className: x.publishingMode, children: e?.publish ? "Public location" : "Private location" }),
|
|
7195
|
-
/* @__PURE__ */ a(
|
|
7196
|
-
/* @__PURE__ */ a(
|
|
7197
|
-
/* @__PURE__ */ a(
|
|
7200
|
+
/* @__PURE__ */ a(Gc, { directions: e.directions }),
|
|
7201
|
+
/* @__PURE__ */ a($l, { location: e }),
|
|
7202
|
+
/* @__PURE__ */ a(Vl, { evses: e.evses }),
|
|
7198
7203
|
/* @__PURE__ */ a(
|
|
7199
|
-
|
|
7204
|
+
Kl,
|
|
7200
7205
|
{
|
|
7201
7206
|
operator: e.operator,
|
|
7202
7207
|
suboperator: e.suboperator || e.subOperator,
|
|
@@ -7205,16 +7210,16 @@ const jc = ({ directions: e }) => {
|
|
|
7205
7210
|
}
|
|
7206
7211
|
),
|
|
7207
7212
|
/* @__PURE__ */ a(
|
|
7208
|
-
|
|
7213
|
+
uc,
|
|
7209
7214
|
{
|
|
7210
7215
|
openingTimes: e.opening_times,
|
|
7211
7216
|
chargingWhenClosed: e.charging_when_closed
|
|
7212
7217
|
}
|
|
7213
7218
|
),
|
|
7214
|
-
/* @__PURE__ */ a(
|
|
7215
|
-
/* @__PURE__ */ a(
|
|
7219
|
+
/* @__PURE__ */ a(fc, { parkingType: e.parkingType }),
|
|
7220
|
+
/* @__PURE__ */ a(pc, { accessibility: e.charging_accessibility }),
|
|
7216
7221
|
e.evses?.map((i) => /* @__PURE__ */ a(
|
|
7217
|
-
|
|
7222
|
+
Uc,
|
|
7218
7223
|
{
|
|
7219
7224
|
evse: i,
|
|
7220
7225
|
tariffs: e.tariffs,
|
|
@@ -7225,14 +7230,14 @@ const jc = ({ directions: e }) => {
|
|
|
7225
7230
|
`${i.evse_id}-${i.uid}`
|
|
7226
7231
|
))
|
|
7227
7232
|
] });
|
|
7228
|
-
},
|
|
7233
|
+
}, Kc = () => {
|
|
7229
7234
|
const { setView: e } = Ve(), { locations: t, locationsStatus: n, options: r } = W(), [i, o] = Y(0);
|
|
7230
7235
|
J(() => {
|
|
7231
7236
|
o(0);
|
|
7232
7237
|
}, [t]);
|
|
7233
7238
|
const s = t[i];
|
|
7234
7239
|
if (n.type === "loading" || !s)
|
|
7235
|
-
return /* @__PURE__ */ a("div", { className: x.container, children: /* @__PURE__ */ a(
|
|
7240
|
+
return /* @__PURE__ */ a("div", { className: x.container, children: /* @__PURE__ */ a(Rs, {}) });
|
|
7236
7241
|
const { evses: c = [], cdrAdditionalCharges: l } = s, d = i < t.length - 1, u = i > 0, f = window.location?.search?.includes("debug"), h = () => {
|
|
7237
7242
|
switch (r.version) {
|
|
7238
7243
|
case "v2":
|
|
@@ -7242,7 +7247,7 @@ const jc = ({ directions: e }) => {
|
|
|
7242
7247
|
}
|
|
7243
7248
|
}, v = oe(r.version, "v2");
|
|
7244
7249
|
return /* @__PURE__ */ p(re, { children: [
|
|
7245
|
-
f && s && /* @__PURE__ */ a(
|
|
7250
|
+
f && s && /* @__PURE__ */ a(Gs, { location: s }),
|
|
7246
7251
|
/* @__PURE__ */ a("div", { className: x.headerContainer, children: /* @__PURE__ */ p("div", { className: x.header, children: [
|
|
7247
7252
|
t.length > 1 && /* @__PURE__ */ p("div", { className: x.pagingation, children: [
|
|
7248
7253
|
/* @__PURE__ */ p("span", { children: [
|
|
@@ -7274,7 +7279,7 @@ const jc = ({ directions: e }) => {
|
|
|
7274
7279
|
h().filter(Boolean).join(", ")
|
|
7275
7280
|
] }) }),
|
|
7276
7281
|
!v && /* @__PURE__ */ a(
|
|
7277
|
-
|
|
7282
|
+
Nl,
|
|
7278
7283
|
{
|
|
7279
7284
|
setView: e,
|
|
7280
7285
|
cdrAdditionalCharges: l,
|
|
@@ -7283,25 +7288,25 @@ const jc = ({ directions: e }) => {
|
|
|
7283
7288
|
}
|
|
7284
7289
|
),
|
|
7285
7290
|
v && /* @__PURE__ */ a(
|
|
7286
|
-
|
|
7291
|
+
Yc,
|
|
7287
7292
|
{
|
|
7288
7293
|
setView: e,
|
|
7289
7294
|
currentLocation: s
|
|
7290
7295
|
}
|
|
7291
7296
|
)
|
|
7292
7297
|
] });
|
|
7293
|
-
},
|
|
7294
|
-
backButton:
|
|
7298
|
+
}, Zc = "BackButton-module_backButton", qc = {
|
|
7299
|
+
backButton: Zc
|
|
7295
7300
|
};
|
|
7296
7301
|
function Yt({ onClick: e = () => {
|
|
7297
7302
|
} }) {
|
|
7298
7303
|
const { t } = W();
|
|
7299
|
-
return /* @__PURE__ */ p("button", { onClick: e, className:
|
|
7304
|
+
return /* @__PURE__ */ p("button", { onClick: e, className: qc.backButton, children: [
|
|
7300
7305
|
/* @__PURE__ */ a(Tr, {}),
|
|
7301
7306
|
t("backButton.backTo")
|
|
7302
7307
|
] });
|
|
7303
7308
|
}
|
|
7304
|
-
function
|
|
7309
|
+
function Jc() {
|
|
7305
7310
|
const { t: e } = W(), { current: t, setView: n } = Ve(), { notes: r = [], evseId: i, locationName: o } = t?.args || {};
|
|
7306
7311
|
return /* @__PURE__ */ p(re, { children: [
|
|
7307
7312
|
/* @__PURE__ */ a("div", { className: x.headerContainer, children: /* @__PURE__ */ p(
|
|
@@ -7326,7 +7331,7 @@ function qc() {
|
|
|
7326
7331
|
] })
|
|
7327
7332
|
] });
|
|
7328
7333
|
}
|
|
7329
|
-
function
|
|
7334
|
+
function Xc() {
|
|
7330
7335
|
const { t: e } = W(), { current: t, setView: n } = Ve(), { connector: r, tariff: i, additionalCharges: o, locationName: s, evseId: c, notes: l } = t?.args || {};
|
|
7331
7336
|
return i || r?.tariff ? /* @__PURE__ */ p(re, { children: [
|
|
7332
7337
|
/* @__PURE__ */ a("div", { className: x.headerContainer, children: /* @__PURE__ */ p(
|
|
@@ -7347,7 +7352,7 @@ function Jc() {
|
|
|
7347
7352
|
/* @__PURE__ */ a("img", { className: x.icon, src: Ke, alt: "power icon" }),
|
|
7348
7353
|
/* @__PURE__ */ a("div", { className: x.text, children: c })
|
|
7349
7354
|
] }),
|
|
7350
|
-
i && /* @__PURE__ */ a(
|
|
7355
|
+
i && /* @__PURE__ */ a(yc, { tariff: i, additionalCharges: o }),
|
|
7351
7356
|
r.tariff && /* @__PURE__ */ a(jt, { tariff: r.tariff, compact: !1 }),
|
|
7352
7357
|
/* @__PURE__ */ p(
|
|
7353
7358
|
"div",
|
|
@@ -7370,7 +7375,7 @@ function Jc() {
|
|
|
7370
7375
|
] })
|
|
7371
7376
|
] }) : null;
|
|
7372
7377
|
}
|
|
7373
|
-
const
|
|
7378
|
+
const Qc = Intl.DateTimeFormat().resolvedOptions().timeZone, Et = {
|
|
7374
7379
|
display: "flex",
|
|
7375
7380
|
flexDirection: "column",
|
|
7376
7381
|
gap: 4,
|
|
@@ -7380,12 +7385,12 @@ const Xc = Intl.DateTimeFormat().resolvedOptions().timeZone, Et = {
|
|
|
7380
7385
|
fontWeight: 600,
|
|
7381
7386
|
textTransform: "capitalize",
|
|
7382
7387
|
lineHeight: 1.4
|
|
7383
|
-
},
|
|
7388
|
+
}, e2 = {
|
|
7384
7389
|
fontSize: 12,
|
|
7385
7390
|
lineHeight: 1.5,
|
|
7386
7391
|
color: "var(--roadmap-text-color, #2a2a2a)",
|
|
7387
7392
|
marginTop: 8
|
|
7388
|
-
},
|
|
7393
|
+
}, t2 = {
|
|
7389
7394
|
fontSize: 11,
|
|
7390
7395
|
color: "var(--roadmap-muted-color, #6a6a6a)",
|
|
7391
7396
|
marginTop: 6
|
|
@@ -7397,7 +7402,7 @@ function at(e) {
|
|
|
7397
7402
|
minute: "2-digit"
|
|
7398
7403
|
});
|
|
7399
7404
|
}
|
|
7400
|
-
function
|
|
7405
|
+
function n2(e) {
|
|
7401
7406
|
const { format: t } = new Intl.DateTimeFormat(e, { weekday: "long" });
|
|
7402
7407
|
return [
|
|
7403
7408
|
"SUNDAY",
|
|
@@ -7412,15 +7417,15 @@ function t2(e) {
|
|
|
7412
7417
|
{}
|
|
7413
7418
|
);
|
|
7414
7419
|
}
|
|
7415
|
-
function
|
|
7420
|
+
function r2(e) {
|
|
7416
7421
|
return (e.priceComponents || []).some((t) => !!((t.price || 0) > 0 || t.type === "PARKING_TIME" && e.restrictions?.maxDuration && (!e.restrictions.minDuration || e.restrictions.minDuration === 0)));
|
|
7417
7422
|
}
|
|
7418
|
-
function
|
|
7423
|
+
function i2(e, t) {
|
|
7419
7424
|
return !e || e.length === 0 ? void 0 : (e.find(
|
|
7420
7425
|
(r) => r.language?.toLowerCase() === t?.toLowerCase()
|
|
7421
7426
|
) || e[0])?.text;
|
|
7422
7427
|
}
|
|
7423
|
-
function
|
|
7428
|
+
function o2(e, t) {
|
|
7424
7429
|
if (!e) return;
|
|
7425
7430
|
const n = new Date(e);
|
|
7426
7431
|
if (!isNaN(n.getTime()))
|
|
@@ -7432,7 +7437,7 @@ function i2(e, t) {
|
|
|
7432
7437
|
minute: "2-digit"
|
|
7433
7438
|
}).format(n);
|
|
7434
7439
|
}
|
|
7435
|
-
function
|
|
7440
|
+
function a2() {
|
|
7436
7441
|
const { t: e, language: t } = W(), { current: n, setView: r } = Ve(), {
|
|
7437
7442
|
tariff: i,
|
|
7438
7443
|
additionalCharges: o,
|
|
@@ -7449,7 +7454,7 @@ function o2() {
|
|
|
7449
7454
|
party_id: u || i.party_id || "",
|
|
7450
7455
|
location_id: f || "",
|
|
7451
7456
|
evse_uid: l || ""
|
|
7452
|
-
}, C =
|
|
7457
|
+
}, C = i2(i.tariff_alt_text, t), m = o2(i.last_updated, t), b = () => /* @__PURE__ */ a("div", { className: x.headerContainer, children: /* @__PURE__ */ p(
|
|
7453
7458
|
"div",
|
|
7454
7459
|
{
|
|
7455
7460
|
className: x.header,
|
|
@@ -7466,13 +7471,13 @@ function o2() {
|
|
|
7466
7471
|
b(),
|
|
7467
7472
|
/* @__PURE__ */ a("div", { className: x.container, children: /* @__PURE__ */ a(Dt, { ...v }) })
|
|
7468
7473
|
] });
|
|
7469
|
-
const
|
|
7470
|
-
|
|
7471
|
-
), B = h.currency || "", D = o || [], O =
|
|
7472
|
-
elements:
|
|
7474
|
+
const M = (h.elements || []).filter(
|
|
7475
|
+
r2
|
|
7476
|
+
), B = h.currency || "", D = o || [], O = M.filter(Se), g = Wt({
|
|
7477
|
+
elements: M,
|
|
7473
7478
|
limit: 40,
|
|
7474
7479
|
now: /* @__PURE__ */ new Date()
|
|
7475
|
-
}), _ = g.length ? [] : Fr(
|
|
7480
|
+
}), _ = g.length ? [] : Fr(M, Qc, /* @__PURE__ */ new Date()), q = !_.some((Z) => Z.isActive), K = n2(t);
|
|
7476
7481
|
return /* @__PURE__ */ p(re, { children: [
|
|
7477
7482
|
b(),
|
|
7478
7483
|
/* @__PURE__ */ p("div", { className: x.container, children: [
|
|
@@ -7484,8 +7489,8 @@ function o2() {
|
|
|
7484
7489
|
text: c
|
|
7485
7490
|
}
|
|
7486
7491
|
),
|
|
7487
|
-
C && /* @__PURE__ */ a("div", { style:
|
|
7488
|
-
m && /* @__PURE__ */ a("div", { style:
|
|
7492
|
+
C && /* @__PURE__ */ a("div", { style: e2, children: C }),
|
|
7493
|
+
m && /* @__PURE__ */ a("div", { style: t2, children: e("tariff.lastUpdated", { date: m }) }),
|
|
7489
7494
|
O.length > 0 && /* @__PURE__ */ a("div", { style: Et, children: /* @__PURE__ */ a(
|
|
7490
7495
|
Ge,
|
|
7491
7496
|
{
|
|
@@ -7531,33 +7536,33 @@ function o2() {
|
|
|
7531
7536
|
] })
|
|
7532
7537
|
] });
|
|
7533
7538
|
}
|
|
7534
|
-
const
|
|
7535
|
-
closeButton:
|
|
7539
|
+
const s2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='10'%20height='11'%20viewBox='0%200%2010%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.48751%205.99758L9.85376%202.63133C10.0484%202.43664%2010.0484%202.1207%209.85376%201.9257L9.07157%201.14351C8.87688%200.948826%208.56095%200.948826%208.36595%201.14351L5.00001%204.51008L1.63376%201.14383C1.43907%200.949138%201.12313%200.949138%200.928135%201.14383L0.14626%201.9257C-0.0484277%202.12039%20-0.0484277%202.43633%200.14626%202.63133L3.51251%205.99758L0.14626%209.36383C-0.0484277%209.55851%20-0.0484277%209.87445%200.14626%2010.0695L0.928447%2010.8516C1.12313%2011.0463%201.43907%2011.0463%201.63407%2010.8516L5.00001%207.48508L8.36626%2010.8513C8.56095%2011.046%208.87688%2011.046%209.07188%2010.8513L9.85407%2010.0691C10.0488%209.87445%2010.0488%209.55851%209.85407%209.36351L6.48751%205.99758Z'%20fill='black'/%3e%3c/svg%3e", l2 = "CloseButton-module_closeButton", c2 = {
|
|
7540
|
+
closeButton: l2
|
|
7536
7541
|
};
|
|
7537
7542
|
function Ur({ onClick: e }) {
|
|
7538
|
-
return /* @__PURE__ */ a("button", { onClick: e, className:
|
|
7543
|
+
return /* @__PURE__ */ a("button", { onClick: e, className: c2.closeButton, children: /* @__PURE__ */ a("img", { src: s2 }) });
|
|
7539
7544
|
}
|
|
7540
|
-
function
|
|
7545
|
+
function d2() {
|
|
7541
7546
|
const [e, t] = Y("locations"), { setView: n } = Ve();
|
|
7542
7547
|
return /* @__PURE__ */ p(Ee, { name: "locations", currentView: e, onViewChange: t, children: [
|
|
7543
7548
|
/* @__PURE__ */ a(Ee.View, { name: "locations", children: /* @__PURE__ */ p(He, { children: [
|
|
7544
7549
|
/* @__PURE__ */ a(Ur, { onClick: () => n("none") }),
|
|
7545
|
-
/* @__PURE__ */ a(
|
|
7550
|
+
/* @__PURE__ */ a(Kc, {})
|
|
7546
7551
|
] }) }),
|
|
7547
|
-
/* @__PURE__ */ a(Ee.View, { name: "tariffNote", children: /* @__PURE__ */ a(He, { children: /* @__PURE__ */ a(
|
|
7548
|
-
/* @__PURE__ */ a(Ee.View, { name: "dynamicTariff", children: /* @__PURE__ */ a(He, { children: /* @__PURE__ */ a(
|
|
7549
|
-
/* @__PURE__ */ a(Ee.View, { name: "tariffDetails", children: /* @__PURE__ */ a(He, { children: /* @__PURE__ */ a(
|
|
7552
|
+
/* @__PURE__ */ a(Ee.View, { name: "tariffNote", children: /* @__PURE__ */ a(He, { children: /* @__PURE__ */ a(Jc, {}) }) }),
|
|
7553
|
+
/* @__PURE__ */ a(Ee.View, { name: "dynamicTariff", children: /* @__PURE__ */ a(He, { children: /* @__PURE__ */ a(Xc, {}) }) }),
|
|
7554
|
+
/* @__PURE__ */ a(Ee.View, { name: "tariffDetails", children: /* @__PURE__ */ a(He, { children: /* @__PURE__ */ a(a2, {}) }) })
|
|
7550
7555
|
] });
|
|
7551
7556
|
}
|
|
7552
|
-
const
|
|
7553
|
-
function
|
|
7557
|
+
const u2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cpath%20d='M14.4985%200H1.50178C0.169343%200%20-0.502939%201.61659%200.441124%202.56066L5.5%207.62131V13C5.5%2013.4721%205.72228%2013.9167%206.1%2014.25L8.1%2015.7208C9.07728%2016.4038%2010.5%2015.7689%2010.5%2014.5208V7.62131L15.5592%202.56066C16.5013%201.6185%2015.8336%200%2014.4985%200ZM9%207V14.5L7%2013V7L1.5%201.5H14.5L9%207Z'%20fill='currentColor'%20/%3e%3c/svg%3e";
|
|
7558
|
+
function f2() {
|
|
7554
7559
|
const { locationIds: e, fetchLocations: t, filters: n, isSearching: r } = W(), [i, o] = U.useState("none");
|
|
7555
7560
|
return J(() => {
|
|
7556
7561
|
e.length > 0 && o("locations");
|
|
7557
7562
|
}, [e, o]), /* @__PURE__ */ p("div", { className: xe.container, children: [
|
|
7558
7563
|
/* @__PURE__ */ p("div", { className: xe.controlsContainer, children: [
|
|
7559
7564
|
/* @__PURE__ */ a(
|
|
7560
|
-
|
|
7565
|
+
_a,
|
|
7561
7566
|
{
|
|
7562
7567
|
onFocus: () => {
|
|
7563
7568
|
o("none");
|
|
@@ -7572,8 +7577,8 @@ function u2() {
|
|
|
7572
7577
|
o("filters");
|
|
7573
7578
|
},
|
|
7574
7579
|
children: [
|
|
7575
|
-
r ?? !1 ? /* @__PURE__ */ a("div", { className: xe.spinner }) : /* @__PURE__ */ a("img", { className: xe.filterIcon, src:
|
|
7576
|
-
|
|
7580
|
+
r ?? !1 ? /* @__PURE__ */ a("div", { className: xe.spinner }) : /* @__PURE__ */ a("img", { className: xe.filterIcon, src: u2 }),
|
|
7581
|
+
fs(n) && !(r ?? !1) && /* @__PURE__ */ a("span", { className: xe.filterCounter })
|
|
7577
7582
|
]
|
|
7578
7583
|
}
|
|
7579
7584
|
)
|
|
@@ -7587,24 +7592,24 @@ function u2() {
|
|
|
7587
7592
|
o(s);
|
|
7588
7593
|
},
|
|
7589
7594
|
children: [
|
|
7590
|
-
/* @__PURE__ */ a(Ee.View, { name: "locations", children: /* @__PURE__ */ a(
|
|
7595
|
+
/* @__PURE__ */ a(Ee.View, { name: "locations", children: /* @__PURE__ */ a(d2, {}) }),
|
|
7591
7596
|
/* @__PURE__ */ a(Ee.View, { name: "filters", children: /* @__PURE__ */ p(He, { children: [
|
|
7592
7597
|
/* @__PURE__ */ a(Ur, { onClick: () => o("none") }),
|
|
7593
|
-
/* @__PURE__ */ a(
|
|
7598
|
+
/* @__PURE__ */ a(gs, {})
|
|
7594
7599
|
] }) })
|
|
7595
7600
|
]
|
|
7596
7601
|
}
|
|
7597
7602
|
) })
|
|
7598
7603
|
] });
|
|
7599
7604
|
}
|
|
7600
|
-
function
|
|
7601
|
-
return !e.shadowRoot && e?.theming?.backgroundColor ? /* @__PURE__ */ a(
|
|
7602
|
-
/* @__PURE__ */ a(
|
|
7603
|
-
/* @__PURE__ */ a(
|
|
7604
|
-
/* @__PURE__ */ a(
|
|
7605
|
+
function p2(e) {
|
|
7606
|
+
return !e.shadowRoot && e?.theming?.backgroundColor ? /* @__PURE__ */ a(m2, { ...e }) : /* @__PURE__ */ a(Pi, { options: e, language: e.language, children: /* @__PURE__ */ p(Di, { height: e?.height, children: [
|
|
7607
|
+
/* @__PURE__ */ a(f2, {}),
|
|
7608
|
+
/* @__PURE__ */ a(Go, {}),
|
|
7609
|
+
/* @__PURE__ */ a(ko, {})
|
|
7605
7610
|
] }) });
|
|
7606
7611
|
}
|
|
7607
|
-
const
|
|
7612
|
+
const m2 = (e) => {
|
|
7608
7613
|
const t = be(null), n = be(null), r = be(null), i = be(!1);
|
|
7609
7614
|
return J(() => {
|
|
7610
7615
|
const o = t.current;
|
|
@@ -7621,7 +7626,7 @@ const p2 = (e) => {
|
|
|
7621
7626
|
};
|
|
7622
7627
|
}, []), J(() => {
|
|
7623
7628
|
if (!n.current || !r.current) return;
|
|
7624
|
-
const o = U.createElement(
|
|
7629
|
+
const o = U.createElement(p2, {
|
|
7625
7630
|
...e,
|
|
7626
7631
|
shadowRoot: r.current
|
|
7627
7632
|
});
|
|
@@ -7629,6 +7634,6 @@ const p2 = (e) => {
|
|
|
7629
7634
|
}, [e]), /* @__PURE__ */ a("div", { ref: t, style: { height: "100%", width: "100%" } });
|
|
7630
7635
|
};
|
|
7631
7636
|
export {
|
|
7632
|
-
|
|
7637
|
+
p2 as RoadMap
|
|
7633
7638
|
};
|
|
7634
7639
|
//# sourceMappingURL=index.mjs.map
|