@road-labs/map-sdk 0.0.15 → 0.0.16
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.css +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +188 -189
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -59,10 +59,10 @@ function Oo() {
|
|
|
59
59
|
{
|
|
60
60
|
var X = R.ReactDebugCurrentFrame, ue = X.getStackAddendum();
|
|
61
61
|
ue !== "" && (x += "%s", A = A.concat([ue]));
|
|
62
|
-
var
|
|
62
|
+
var ge = A.map(function(se) {
|
|
63
63
|
return String(se);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
ge.unshift("Warning: " + x), Function.prototype.apply.call(console[f], console, ge);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
var y = !1, m = !1, P = !1, Z = !1, L = !1, J;
|
|
@@ -119,9 +119,9 @@ function Oo() {
|
|
|
119
119
|
var X = f.displayName || null;
|
|
120
120
|
return X !== null ? X : D(f.type) || "Memo";
|
|
121
121
|
case h: {
|
|
122
|
-
var ue = f,
|
|
122
|
+
var ue = f, ge = ue._payload, se = ue._init;
|
|
123
123
|
try {
|
|
124
|
-
return D(se(
|
|
124
|
+
return D(se(ge));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -222,8 +222,8 @@ function Oo() {
|
|
|
222
222
|
Q = !0;
|
|
223
223
|
var ue = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var ge;
|
|
226
|
+
ge = j.current, j.current = null, V();
|
|
227
227
|
try {
|
|
228
228
|
if (x) {
|
|
229
229
|
var se = function() {
|
|
@@ -276,7 +276,7 @@ function Oo() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
Q = !1, j.current =
|
|
279
|
+
Q = !1, j.current = ge, q(), Error.prepareStackTrace = ue;
|
|
280
280
|
}
|
|
281
281
|
var rt = f ? f.displayName || f.name : "", Ze = rt ? F(rt) : "";
|
|
282
282
|
return typeof f == "function" && W.set(f, Ze), Ze;
|
|
@@ -308,9 +308,9 @@ function Oo() {
|
|
|
308
308
|
case p:
|
|
309
309
|
return we(f.type, x, A);
|
|
310
310
|
case h: {
|
|
311
|
-
var X = f, ue = X._payload,
|
|
311
|
+
var X = f, ue = X._payload, ge = X._init;
|
|
312
312
|
try {
|
|
313
|
-
return we(
|
|
313
|
+
return we(ge(ue), x, A);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -327,9 +327,9 @@ function Oo() {
|
|
|
327
327
|
}
|
|
328
328
|
function Qt(f, x, A, X, ue) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
330
|
+
var ge = Function.call.bind(_e);
|
|
331
331
|
for (var se in f)
|
|
332
|
-
if (
|
|
332
|
+
if (ge(f, se)) {
|
|
333
333
|
var oe = void 0;
|
|
334
334
|
try {
|
|
335
335
|
if (typeof f[se] != "function") {
|
|
@@ -415,7 +415,7 @@ function Oo() {
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var lo = function(f, x, A, X, ue,
|
|
418
|
+
var lo = function(f, x, A, X, ue, ge, se) {
|
|
419
419
|
var oe = {
|
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
421
|
$$typeof: n,
|
|
@@ -425,7 +425,7 @@ function Oo() {
|
|
|
425
425
|
ref: A,
|
|
426
426
|
props: se,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
428
|
-
_owner:
|
|
428
|
+
_owner: ge
|
|
429
429
|
};
|
|
430
430
|
return oe._store = {}, Object.defineProperty(oe._store, "validated", {
|
|
431
431
|
configurable: !1,
|
|
@@ -446,14 +446,14 @@ function Oo() {
|
|
|
446
446
|
};
|
|
447
447
|
function co(f, x, A, X, ue) {
|
|
448
448
|
{
|
|
449
|
-
var
|
|
449
|
+
var ge, se = {}, oe = null, Oe = null;
|
|
450
450
|
A !== void 0 && (Yn(A), oe = "" + A), io(x) && (Yn(x.key), oe = "" + x.key), ro(x) && (Oe = x.ref, oo(x, ue));
|
|
451
|
-
for (
|
|
452
|
-
_e.call(x,
|
|
451
|
+
for (ge in x)
|
|
452
|
+
_e.call(x, ge) && !no.hasOwnProperty(ge) && (se[ge] = x[ge]);
|
|
453
453
|
if (f && f.defaultProps) {
|
|
454
454
|
var Ce = f.defaultProps;
|
|
455
|
-
for (
|
|
456
|
-
se[
|
|
455
|
+
for (ge in Ce)
|
|
456
|
+
se[ge] === void 0 && (se[ge] = Ce[ge]);
|
|
457
457
|
}
|
|
458
458
|
if (oe || Oe) {
|
|
459
459
|
var Ee = typeof f == "function" ? f.displayName || f.name || "Unknown" : f;
|
|
@@ -530,7 +530,7 @@ Check the top-level render call using <` + A + ">.");
|
|
|
530
530
|
else if (f) {
|
|
531
531
|
var ue = _(f);
|
|
532
532
|
if (typeof ue == "function" && ue !== f.entries)
|
|
533
|
-
for (var
|
|
533
|
+
for (var ge = ue.call(f), se; !(se = ge.next()).done; )
|
|
534
534
|
rn(se.value) && Xn(se.value, x);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
@@ -573,7 +573,7 @@ Check the top-level render call using <` + A + ">.");
|
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
var er = {};
|
|
576
|
-
function tr(f, x, A, X, ue,
|
|
576
|
+
function tr(f, x, A, X, ue, ge) {
|
|
577
577
|
{
|
|
578
578
|
var se = K(f);
|
|
579
579
|
if (!se) {
|
|
@@ -584,7 +584,7 @@ Check the top-level render call using <` + A + ">.");
|
|
|
584
584
|
var Ce;
|
|
585
585
|
f === null ? Ce = "null" : ze(f) ? Ce = "array" : f !== void 0 && f.$$typeof === n ? (Ce = "<" + (D(f.type) || "Unknown") + " />", oe = " Did you accidentally export a JSX literal instead of a component?") : Ce = typeof f, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ce, oe);
|
|
586
586
|
}
|
|
587
|
-
var Ee = co(f, x, A, ue,
|
|
587
|
+
var Ee = co(f, x, A, ue, ge);
|
|
588
588
|
if (Ee == null)
|
|
589
589
|
return Ee;
|
|
590
590
|
if (se) {
|
|
@@ -3283,12 +3283,12 @@ function Fs({ onFocus: e }) {
|
|
|
3283
3283
|
}
|
|
3284
3284
|
) });
|
|
3285
3285
|
}
|
|
3286
|
-
const $s = "filters-module_headerContainer", Bs = "filters-module_container", zs = "filters-module_header", Us = "filters-module_heading", Ys = "filters-
|
|
3286
|
+
const $s = "filters-module_headerContainer", Bs = "filters-module_container", zs = "filters-module_header", Us = "filters-module_heading", Ys = "filters-module_actionLinkClearAll", Ks = "filters-module_optionsGroup", Ws = "filters-module_rowLabel", Gs = "filters-module_label", qs = "filters-module_dot", Zs = "filters-module_connectorIcon", Y = {
|
|
3287
3287
|
headerContainer: $s,
|
|
3288
3288
|
container: Bs,
|
|
3289
3289
|
header: zs,
|
|
3290
3290
|
heading: Us,
|
|
3291
|
-
|
|
3291
|
+
actionLinkClearAll: Ys,
|
|
3292
3292
|
optionsGroup: Ks,
|
|
3293
3293
|
rowLabel: Ws,
|
|
3294
3294
|
label: Gs,
|
|
@@ -3335,9 +3335,9 @@ function Re({
|
|
|
3335
3335
|
height: "12",
|
|
3336
3336
|
fill: "none",
|
|
3337
3337
|
stroke: "currentColor",
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3338
|
+
strokeWidth: "4",
|
|
3339
|
+
strokeLinecap: "round",
|
|
3340
|
+
strokeLinejoin: "round",
|
|
3341
3341
|
children: /* @__PURE__ */ a.jsx("polyline", { points: "20 6 9 17 4 12" })
|
|
3342
3342
|
}
|
|
3343
3343
|
) })
|
|
@@ -5119,7 +5119,7 @@ process.env.NODE_ENV;
|
|
|
5119
5119
|
process.env.NODE_ENV;
|
|
5120
5120
|
process.env.NODE_ENV;
|
|
5121
5121
|
process.env.NODE_ENV;
|
|
5122
|
-
const Ga = "MultiSelect-module_multiSelect", qa = "MultiSelect-module_control", Za = "MultiSelect-module_disabled", Ja = "MultiSelect-module_valueContainer", Xa = "MultiSelect-module_input", Qa = "MultiSelect-module_multiValue", el = "MultiSelect-module_multiValueLabel", tl = "MultiSelect-module_multiValueRemove", nl = "MultiSelect-module_dropdownIndicator", rl = "MultiSelect-module_menu", il = "MultiSelect-
|
|
5122
|
+
const Ga = "MultiSelect-module_multiSelect", qa = "MultiSelect-module_control", Za = "MultiSelect-module_disabled", Ja = "MultiSelect-module_valueContainer", Xa = "MultiSelect-module_input", Qa = "MultiSelect-module_multiValue", el = "MultiSelect-module_multiValueLabel", tl = "MultiSelect-module_multiValueRemove", nl = "MultiSelect-module_dropdownIndicator", rl = "MultiSelect-module_menu", il = "MultiSelect-module_menuOpen", ol = "MultiSelect-module_menuList", sl = "MultiSelect-module_groupHeading", al = "MultiSelect-module_groupSeparator", ll = "MultiSelect-module_option", cl = "MultiSelect-module_optionLast", ul = "MultiSelect-module_optionSelected", dl = "MultiSelect-module_optionFocused", fl = "MultiSelect-module_optionDisabled", pl = "MultiSelect-module_optionLabel", hl = "MultiSelect-module_noOptions", me = {
|
|
5123
5123
|
multiSelect: Ga,
|
|
5124
5124
|
control: qa,
|
|
5125
5125
|
disabled: Za,
|
|
@@ -5130,17 +5130,18 @@ const Ga = "MultiSelect-module_multiSelect", qa = "MultiSelect-module_control",
|
|
|
5130
5130
|
multiValueRemove: tl,
|
|
5131
5131
|
dropdownIndicator: nl,
|
|
5132
5132
|
menu: rl,
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5133
|
+
menuOpen: il,
|
|
5134
|
+
menuList: ol,
|
|
5135
|
+
groupHeading: sl,
|
|
5136
|
+
groupSeparator: al,
|
|
5137
|
+
option: ll,
|
|
5138
|
+
optionLast: cl,
|
|
5139
|
+
optionSelected: ul,
|
|
5140
|
+
optionFocused: dl,
|
|
5141
|
+
optionDisabled: fl,
|
|
5142
|
+
optionLabel: pl,
|
|
5143
|
+
noOptions: hl
|
|
5144
|
+
}, ml = ({
|
|
5144
5145
|
id: e,
|
|
5145
5146
|
name: n,
|
|
5146
5147
|
options: i,
|
|
@@ -5206,17 +5207,17 @@ const Ga = "MultiSelect-module_multiSelect", qa = "MultiSelect-module_control",
|
|
|
5206
5207
|
"div",
|
|
5207
5208
|
{
|
|
5208
5209
|
ref: b,
|
|
5209
|
-
className: `${
|
|
5210
|
+
className: `${me.multiSelect} ${l ?? ""}`,
|
|
5210
5211
|
children: [
|
|
5211
|
-
/* @__PURE__ */ a.jsxs("div", { className: `${
|
|
5212
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
5213
|
-
R.map((D) => /* @__PURE__ */ a.jsxs("div", { className:
|
|
5214
|
-
/* @__PURE__ */ a.jsx("span", { className:
|
|
5212
|
+
/* @__PURE__ */ a.jsxs("div", { className: `${me.control} ${s ? me.disabled : ""}`, children: [
|
|
5213
|
+
/* @__PURE__ */ a.jsxs("div", { className: me.valueContainer, children: [
|
|
5214
|
+
R.map((D) => /* @__PURE__ */ a.jsxs("div", { className: me.multiValue, children: [
|
|
5215
|
+
/* @__PURE__ */ a.jsx("span", { className: me.multiValueLabel, children: D.label }),
|
|
5215
5216
|
/* @__PURE__ */ a.jsx(
|
|
5216
5217
|
"button",
|
|
5217
5218
|
{
|
|
5218
5219
|
type: "button",
|
|
5219
|
-
className:
|
|
5220
|
+
className: me.multiValueRemove,
|
|
5220
5221
|
onClick: () => G(D.value),
|
|
5221
5222
|
disabled: s,
|
|
5222
5223
|
children: "×"
|
|
@@ -5229,7 +5230,7 @@ const Ga = "MultiSelect-module_multiSelect", qa = "MultiSelect-module_control",
|
|
|
5229
5230
|
ref: T,
|
|
5230
5231
|
id: e,
|
|
5231
5232
|
name: n,
|
|
5232
|
-
className:
|
|
5233
|
+
className: me.input,
|
|
5233
5234
|
value: p,
|
|
5234
5235
|
onChange: Z,
|
|
5235
5236
|
onKeyDown: L,
|
|
@@ -5244,7 +5245,7 @@ const Ga = "MultiSelect-module_multiSelect", qa = "MultiSelect-module_control",
|
|
|
5244
5245
|
"button",
|
|
5245
5246
|
{
|
|
5246
5247
|
type: "button",
|
|
5247
|
-
className:
|
|
5248
|
+
className: me.dropdownIndicator,
|
|
5248
5249
|
onClick: ee,
|
|
5249
5250
|
disabled: s,
|
|
5250
5251
|
...E(),
|
|
@@ -5265,29 +5266,29 @@ const Ga = "MultiSelect-module_multiSelect", qa = "MultiSelect-module_control",
|
|
|
5265
5266
|
}
|
|
5266
5267
|
)
|
|
5267
5268
|
] }),
|
|
5268
|
-
|
|
5269
|
+
/* @__PURE__ */ a.jsx(
|
|
5269
5270
|
"div",
|
|
5270
5271
|
{
|
|
5271
|
-
className:
|
|
5272
|
+
className: `${me.menu} ${u ? me.menuOpen : ""}`,
|
|
5272
5273
|
...y(),
|
|
5273
5274
|
onClick: J,
|
|
5274
5275
|
onMouseDown: K,
|
|
5275
|
-
children: /* @__PURE__ */ a.jsxs("div", { className:
|
|
5276
|
+
children: /* @__PURE__ */ a.jsxs("div", { className: me.menuList, children: [
|
|
5276
5277
|
_.preferred.length > 0 && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
5277
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
5278
|
+
/* @__PURE__ */ a.jsx("div", { className: me.groupHeading, children: "Preferred" }),
|
|
5278
5279
|
_.preferred.map((D, S) => {
|
|
5279
5280
|
const re = S === _.preferred.length - 1 && _.others.length === 0;
|
|
5280
5281
|
return /* @__PURE__ */ a.jsx(
|
|
5281
5282
|
"div",
|
|
5282
5283
|
{
|
|
5283
|
-
className: `${
|
|
5284
|
+
className: `${me.option} ${P === S ? me.optionFocused : ""} ${r.includes(D.value) ? me.optionSelected : ""} ${D.disabled ? me.optionDisabled : ""} ${re ? me.optionLast : ""}`,
|
|
5284
5285
|
onClick: J,
|
|
5285
5286
|
...m({
|
|
5286
5287
|
item: D,
|
|
5287
5288
|
index: S,
|
|
5288
5289
|
disabled: D.disabled
|
|
5289
5290
|
}),
|
|
5290
|
-
children: /* @__PURE__ */ a.jsx("span", { className:
|
|
5291
|
+
children: /* @__PURE__ */ a.jsx("span", { className: me.optionLabel, children: D.label })
|
|
5291
5292
|
},
|
|
5292
5293
|
D.value
|
|
5293
5294
|
);
|
|
@@ -5295,38 +5296,38 @@ const Ga = "MultiSelect-module_multiSelect", qa = "MultiSelect-module_control",
|
|
|
5295
5296
|
] }),
|
|
5296
5297
|
_.others.length > 0 && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
5297
5298
|
_.preferred.length > 0 && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
5298
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
5299
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
5299
|
+
/* @__PURE__ */ a.jsx("div", { className: me.groupSeparator }),
|
|
5300
|
+
/* @__PURE__ */ a.jsx("div", { className: me.groupHeading, children: "All" })
|
|
5300
5301
|
] }),
|
|
5301
5302
|
_.others.map((D, S) => {
|
|
5302
5303
|
const ne = _.preferred.length + S, re = S === _.others.length - 1;
|
|
5303
5304
|
return /* @__PURE__ */ a.jsx(
|
|
5304
5305
|
"div",
|
|
5305
5306
|
{
|
|
5306
|
-
className: `${
|
|
5307
|
+
className: `${me.option} ${P === ne ? me.optionFocused : ""} ${r.includes(D.value) ? me.optionSelected : ""} ${D.disabled ? me.optionDisabled : ""} ${re ? me.optionLast : ""}`,
|
|
5307
5308
|
onClick: J,
|
|
5308
5309
|
...m({
|
|
5309
5310
|
item: D,
|
|
5310
5311
|
index: ne,
|
|
5311
5312
|
disabled: D.disabled
|
|
5312
5313
|
}),
|
|
5313
|
-
children: /* @__PURE__ */ a.jsx("span", { className:
|
|
5314
|
+
children: /* @__PURE__ */ a.jsx("span", { className: me.optionLabel, children: D.label })
|
|
5314
5315
|
},
|
|
5315
5316
|
D.value
|
|
5316
5317
|
);
|
|
5317
5318
|
})
|
|
5318
5319
|
] }),
|
|
5319
|
-
_.preferred.length === 0 && _.others.length === 0 && /* @__PURE__ */ a.jsx("div", { className:
|
|
5320
|
+
_.preferred.length === 0 && _.others.length === 0 && /* @__PURE__ */ a.jsx("div", { className: me.noOptions, children: "No options found" })
|
|
5320
5321
|
] })
|
|
5321
5322
|
}
|
|
5322
5323
|
)
|
|
5323
5324
|
]
|
|
5324
5325
|
}
|
|
5325
5326
|
);
|
|
5326
|
-
},
|
|
5327
|
-
selectField:
|
|
5328
|
-
select:
|
|
5329
|
-
},
|
|
5327
|
+
}, gl = "SelectField-module_selectField", vl = "SelectField-module_select", jr = {
|
|
5328
|
+
selectField: gl,
|
|
5329
|
+
select: vl
|
|
5330
|
+
}, _l = ({
|
|
5330
5331
|
id: e,
|
|
5331
5332
|
name: n,
|
|
5332
5333
|
value: i,
|
|
@@ -5470,10 +5471,10 @@ const Ga = "MultiSelect-module_multiSelect", qa = "MultiSelect-module_control",
|
|
|
5470
5471
|
powerType: void 0,
|
|
5471
5472
|
operatorOnly: ""
|
|
5472
5473
|
};
|
|
5473
|
-
function
|
|
5474
|
+
function Cl(e) {
|
|
5474
5475
|
return !!(e.minPower && e.minPower !== $t.minPower || e?.status?.length || e?.connectorTypes?.length || e?.operator?.length || e?.powerType || e?.partyId || e?.noAdditionalCharges || e?.operatorOnly);
|
|
5475
5476
|
}
|
|
5476
|
-
const
|
|
5477
|
+
const El = [
|
|
5477
5478
|
{
|
|
5478
5479
|
label: 7,
|
|
5479
5480
|
value: 7
|
|
@@ -5511,36 +5512,34 @@ const Cl = [
|
|
|
5511
5512
|
value: 250
|
|
5512
5513
|
}
|
|
5513
5514
|
];
|
|
5514
|
-
function
|
|
5515
|
+
function yl(e) {
|
|
5515
5516
|
return Kr((n, i) => ({ ...n, ...i }), e);
|
|
5516
5517
|
}
|
|
5517
|
-
function
|
|
5518
|
+
function Tl() {
|
|
5518
5519
|
const {
|
|
5519
5520
|
setFilters: e,
|
|
5520
5521
|
t: n,
|
|
5521
5522
|
filters: i,
|
|
5522
5523
|
filterConfiguration: r,
|
|
5523
5524
|
options: o
|
|
5524
|
-
} = Ae(), [t, s] =
|
|
5525
|
+
} = Ae(), [t, s] = yl($t), { setView: l } = yt(), c = o.version === "v2" && r?.operators?.length > 1;
|
|
5525
5526
|
return le(() => {
|
|
5526
5527
|
s(i);
|
|
5527
5528
|
}, []), le(() => {
|
|
5528
5529
|
e(t);
|
|
5529
5530
|
}, [t]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
5530
|
-
/* @__PURE__ */ a.jsx("div", { className: Y.headerContainer, children: /* @__PURE__ */ a.
|
|
5531
|
-
|
|
5531
|
+
/* @__PURE__ */ a.jsx("div", { className: Y.headerContainer, children: /* @__PURE__ */ a.jsx("div", { className: Y.header, children: n("filters.header") }) }),
|
|
5532
|
+
/* @__PURE__ */ a.jsxs("div", { className: Y.container, children: [
|
|
5532
5533
|
/* @__PURE__ */ a.jsx(
|
|
5533
5534
|
"button",
|
|
5534
5535
|
{
|
|
5535
5536
|
onClick: () => {
|
|
5536
5537
|
s($t), e($t);
|
|
5537
5538
|
},
|
|
5538
|
-
className: Y.
|
|
5539
|
+
className: Y.actionLinkClearAll,
|
|
5539
5540
|
children: n("filters.clearAll")
|
|
5540
5541
|
}
|
|
5541
|
-
)
|
|
5542
|
-
] }) }),
|
|
5543
|
-
/* @__PURE__ */ a.jsxs("div", { className: Y.container, children: [
|
|
5542
|
+
),
|
|
5544
5543
|
/* @__PURE__ */ a.jsxs("div", { className: Y.optionsGroup, children: [
|
|
5545
5544
|
/* @__PURE__ */ a.jsx("div", { className: Y.heading, children: n("filters.onlyShow") }),
|
|
5546
5545
|
/* @__PURE__ */ a.jsxs("label", { htmlFor: "dsChargers", className: Y.rowLabel, children: [
|
|
@@ -5613,7 +5612,7 @@ function yl() {
|
|
|
5613
5612
|
c && /* @__PURE__ */ a.jsxs("div", { className: Y.optionsGroup, children: [
|
|
5614
5613
|
/* @__PURE__ */ a.jsx("div", { className: Y.heading, children: "Operator" }),
|
|
5615
5614
|
/* @__PURE__ */ a.jsx(
|
|
5616
|
-
|
|
5615
|
+
ml,
|
|
5617
5616
|
{
|
|
5618
5617
|
id: "operator",
|
|
5619
5618
|
preferredValues: o.preferredOperators,
|
|
@@ -5637,7 +5636,7 @@ function yl() {
|
|
|
5637
5636
|
r?.showPublishingModeFilter && r?.publishingMode?.length > 1 && /* @__PURE__ */ a.jsxs("div", { className: Y.optionsGroup, children: [
|
|
5638
5637
|
/* @__PURE__ */ a.jsx("div", { className: Y.heading, children: "Visibility" }),
|
|
5639
5638
|
/* @__PURE__ */ a.jsx(
|
|
5640
|
-
|
|
5639
|
+
_l,
|
|
5641
5640
|
{
|
|
5642
5641
|
id: "publishingMode",
|
|
5643
5642
|
value: t.publishingMode,
|
|
@@ -5729,7 +5728,7 @@ function yl() {
|
|
|
5729
5728
|
onChange: (u) => {
|
|
5730
5729
|
s({ minPower: u });
|
|
5731
5730
|
},
|
|
5732
|
-
ticks:
|
|
5731
|
+
ticks: El
|
|
5733
5732
|
}
|
|
5734
5733
|
)
|
|
5735
5734
|
] }),
|
|
@@ -5891,28 +5890,28 @@ function yl() {
|
|
|
5891
5890
|
] })
|
|
5892
5891
|
] });
|
|
5893
5892
|
}
|
|
5894
|
-
const
|
|
5895
|
-
headerContainer:
|
|
5896
|
-
publishingMode:
|
|
5897
|
-
container:
|
|
5898
|
-
header:
|
|
5899
|
-
subheader:
|
|
5900
|
-
row:
|
|
5901
|
-
icon:
|
|
5902
|
-
statusIcon:
|
|
5903
|
-
text:
|
|
5904
|
-
note:
|
|
5905
|
-
divider:
|
|
5906
|
-
pagingation:
|
|
5907
|
-
tariffNoteLink:
|
|
5908
|
-
},
|
|
5909
|
-
container:
|
|
5910
|
-
header:
|
|
5911
|
-
divider:
|
|
5912
|
-
iconLine:
|
|
5913
|
-
priceLine:
|
|
5893
|
+
const xl = "locations-module_headerContainer", bl = "locations-module_publishingMode", Il = "locations-module_container", Nl = "locations-module_header", wl = "locations-module_subheader", Ol = "locations-module_row", Sl = "locations-module_icon", Dl = "locations-module_statusIcon", Pl = "locations-module_text", Al = "locations-module_note", Rl = "locations-module_divider", Ml = "locations-module_pagingation", jl = "locations-module_tariffNoteLink", O = {
|
|
5894
|
+
headerContainer: xl,
|
|
5895
|
+
publishingMode: bl,
|
|
5896
|
+
container: Il,
|
|
5897
|
+
header: Nl,
|
|
5898
|
+
subheader: wl,
|
|
5899
|
+
row: Ol,
|
|
5900
|
+
icon: Sl,
|
|
5901
|
+
statusIcon: Dl,
|
|
5902
|
+
text: Pl,
|
|
5903
|
+
note: Al,
|
|
5904
|
+
divider: Rl,
|
|
5905
|
+
pagingation: Ml,
|
|
5906
|
+
tariffNoteLink: jl
|
|
5907
|
+
}, kl = "LocationPlaceholder-module_container", Ll = "LocationPlaceholder-module_header", Vl = "LocationPlaceholder-module_divider", Hl = "LocationPlaceholder-module_iconLine", Fl = "LocationPlaceholder-module_priceLine", Pe = {
|
|
5908
|
+
container: kl,
|
|
5909
|
+
header: Ll,
|
|
5910
|
+
divider: Vl,
|
|
5911
|
+
iconLine: Hl,
|
|
5912
|
+
priceLine: Fl
|
|
5914
5913
|
};
|
|
5915
|
-
function
|
|
5914
|
+
function $l() {
|
|
5916
5915
|
return /* @__PURE__ */ a.jsxs("div", { className: Pe.container, children: [
|
|
5917
5916
|
/* @__PURE__ */ a.jsx("div", { className: Pe.header }),
|
|
5918
5917
|
/* @__PURE__ */ a.jsx("div", { className: Pe.divider, style: { marginTop: "15px", marginBottom: "23px" } }),
|
|
@@ -5940,7 +5939,7 @@ function Mi() {
|
|
|
5940
5939
|
}
|
|
5941
5940
|
);
|
|
5942
5941
|
}
|
|
5943
|
-
function
|
|
5942
|
+
function Bl() {
|
|
5944
5943
|
return /* @__PURE__ */ a.jsx(
|
|
5945
5944
|
"svg",
|
|
5946
5945
|
{
|
|
@@ -5962,20 +5961,20 @@ function Bn() {
|
|
|
5962
5961
|
}
|
|
5963
5962
|
);
|
|
5964
5963
|
}
|
|
5965
|
-
const
|
|
5966
|
-
container:
|
|
5964
|
+
const zl = "SidebarContainer-module_container", Ul = {
|
|
5965
|
+
container: zl
|
|
5967
5966
|
};
|
|
5968
5967
|
function Ct({ children: e }) {
|
|
5969
|
-
return /* @__PURE__ */ a.jsx("div", { className:
|
|
5970
|
-
}
|
|
5971
|
-
const
|
|
5972
|
-
container:
|
|
5973
|
-
content:
|
|
5974
|
-
connectorHeader:
|
|
5975
|
-
code:
|
|
5976
|
-
evse:
|
|
5968
|
+
return /* @__PURE__ */ a.jsx("div", { className: Ul.container, children: e });
|
|
5969
|
+
}
|
|
5970
|
+
const Yl = "Debug-module_container", Kl = "Debug-module_content", Wl = "Debug-module_connectorHeader", Gl = "Debug-module_code", ql = "Debug-module_evse", at = {
|
|
5971
|
+
container: Yl,
|
|
5972
|
+
content: Kl,
|
|
5973
|
+
connectorHeader: Wl,
|
|
5974
|
+
code: Gl,
|
|
5975
|
+
evse: ql
|
|
5977
5976
|
};
|
|
5978
|
-
function
|
|
5977
|
+
function Zl({ location: e }) {
|
|
5979
5978
|
return console.log(e), /* @__PURE__ */ a.jsx("div", { className: at.container, children: /* @__PURE__ */ a.jsxs(Ct, { children: [
|
|
5980
5979
|
/* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsxs("h3", { children: [
|
|
5981
5980
|
"Debug: ",
|
|
@@ -6014,7 +6013,7 @@ function Fi(e, n) {
|
|
|
6014
6013
|
maximumFractionDigits: 2
|
|
6015
6014
|
}).format(n);
|
|
6016
6015
|
}
|
|
6017
|
-
const
|
|
6016
|
+
const Jl = {
|
|
6018
6017
|
CONNECTOR_POWER_TYPE_UNSPECIFIED: "Unspecified",
|
|
6019
6018
|
CONNECTOR_POWER_TYPE_AC_1_PHASE: "AC x 1",
|
|
6020
6019
|
CONNECTOR_POWER_TYPE_AC_2_PHASE: "AC x 2",
|
|
@@ -6028,14 +6027,14 @@ const Zl = {
|
|
|
6028
6027
|
};
|
|
6029
6028
|
function $i(e) {
|
|
6030
6029
|
return [
|
|
6031
|
-
|
|
6030
|
+
Xl(
|
|
6032
6031
|
e.standard || e.connectorStandardType
|
|
6033
6032
|
),
|
|
6034
|
-
|
|
6033
|
+
Jl[e.powerType || e.connectorPowerType],
|
|
6035
6034
|
"Socket"
|
|
6036
6035
|
].join(", ");
|
|
6037
6036
|
}
|
|
6038
|
-
function
|
|
6037
|
+
function Xl(e) {
|
|
6039
6038
|
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;
|
|
6040
6039
|
}
|
|
6041
6040
|
function Bi(e, n) {
|
|
@@ -6087,16 +6086,16 @@ function Gi(e, n = /* @__PURE__ */ new Date()) {
|
|
|
6087
6086
|
const t = $r(e, n), s = $r(e, o);
|
|
6088
6087
|
return s > t ? o.setUTCDate(o.getUTCDate() - 1) : s < t && o.setUTCDate(o.getUTCDate() + 1), o;
|
|
6089
6088
|
}
|
|
6090
|
-
function
|
|
6089
|
+
function Ql(e, n = /* @__PURE__ */ new Date()) {
|
|
6091
6090
|
return new Date(Gi(e, n).valueOf() + 86399999);
|
|
6092
6091
|
}
|
|
6093
|
-
function
|
|
6092
|
+
function ec(e, n, i) {
|
|
6094
6093
|
const r = Wi(i, e);
|
|
6095
6094
|
return r.getUTCDate() !== n && r.setUTCDate(
|
|
6096
6095
|
e.getUTCDate() + (7 + n - e.getUTCDay() - 1) % 7 + 1
|
|
6097
6096
|
), {
|
|
6098
6097
|
start: Gi(i, r),
|
|
6099
|
-
end:
|
|
6098
|
+
end: Ql(i, r)
|
|
6100
6099
|
};
|
|
6101
6100
|
}
|
|
6102
6101
|
function yn(e, n) {
|
|
@@ -6124,7 +6123,7 @@ function qi(e) {
|
|
|
6124
6123
|
endTime: i
|
|
6125
6124
|
};
|
|
6126
6125
|
}
|
|
6127
|
-
function
|
|
6126
|
+
function tc(e, n, i) {
|
|
6128
6127
|
const r = (i.getHours() * 60 + i.getMinutes()) % 60;
|
|
6129
6128
|
if (e.length <= 1)
|
|
6130
6129
|
return e.map((t) => (t.isActive = n && t.startTime <= r && t.endTime >= r, t));
|
|
@@ -6209,7 +6208,7 @@ function Zi({
|
|
|
6209
6208
|
};
|
|
6210
6209
|
});
|
|
6211
6210
|
}
|
|
6212
|
-
function
|
|
6211
|
+
function nc(e, n) {
|
|
6213
6212
|
const i = /* @__PURE__ */ new Date();
|
|
6214
6213
|
return [...e].reduce(
|
|
6215
6214
|
(r, o) => {
|
|
@@ -6233,7 +6232,7 @@ function tc(e, n) {
|
|
|
6233
6232
|
"FRIDAY",
|
|
6234
6233
|
"SATURDAY"
|
|
6235
6234
|
].forEach((d, p) => {
|
|
6236
|
-
const { start: h, end: T } =
|
|
6235
|
+
const { start: h, end: T } = ec(i, p, n);
|
|
6237
6236
|
c && c.valueOf() > h.valueOf() || u && u.valueOf() < T.valueOf() || l.length && !l.includes(d) || (r[d] = [...r[d], o]);
|
|
6238
6237
|
}), r;
|
|
6239
6238
|
},
|
|
@@ -6251,18 +6250,18 @@ function tc(e, n) {
|
|
|
6251
6250
|
function zr(e, n) {
|
|
6252
6251
|
return Object.keys(e).reduce((i, r) => (n.includes(r) || (i[r] = e[r]), i), {});
|
|
6253
6252
|
}
|
|
6254
|
-
function
|
|
6253
|
+
function rc(e, n) {
|
|
6255
6254
|
const i = e.map((o) => zr(o, ["isActive"])), r = n.map((o) => zr(o, ["isActive"]));
|
|
6256
6255
|
return JSON.stringify(i) === JSON.stringify(r);
|
|
6257
6256
|
}
|
|
6258
|
-
function
|
|
6257
|
+
function ic(e) {
|
|
6259
6258
|
return e.reduce((n, i) => {
|
|
6260
6259
|
const r = n.find((o) => o.startTime === i.startTime && o.endTime === i.endTime);
|
|
6261
6260
|
return r ? r.elements.push(...i.elements) : n.push(i), n;
|
|
6262
6261
|
}, []);
|
|
6263
6262
|
}
|
|
6264
|
-
function
|
|
6265
|
-
const r =
|
|
6263
|
+
function oc(e, n, i) {
|
|
6264
|
+
const r = nc(
|
|
6266
6265
|
e.concat().filter((c) => !Tt(c)),
|
|
6267
6266
|
n
|
|
6268
6267
|
), { SUNDAY: o, ...t } = r, [s, ...l] = Object.keys({
|
|
@@ -6273,8 +6272,8 @@ function ic(e, n, i) {
|
|
|
6273
6272
|
return {
|
|
6274
6273
|
day: c,
|
|
6275
6274
|
isActive: p,
|
|
6276
|
-
items:
|
|
6277
|
-
|
|
6275
|
+
items: tc(
|
|
6276
|
+
ic(d.map(qi)),
|
|
6278
6277
|
p,
|
|
6279
6278
|
i
|
|
6280
6279
|
)
|
|
@@ -6282,7 +6281,7 @@ function ic(e, n, i) {
|
|
|
6282
6281
|
});
|
|
6283
6282
|
return [...l, s].reduce((c, u, d, p) => {
|
|
6284
6283
|
const h = c[c.length - 1], T = h?.items;
|
|
6285
|
-
if (!T || !
|
|
6284
|
+
if (!T || !rc(T, u.items)) {
|
|
6286
6285
|
const { day: b, ...w } = u;
|
|
6287
6286
|
c.push({
|
|
6288
6287
|
...w,
|
|
@@ -6293,7 +6292,7 @@ function ic(e, n, i) {
|
|
|
6293
6292
|
return c;
|
|
6294
6293
|
}, []).filter((c) => !!c.items.length);
|
|
6295
6294
|
}
|
|
6296
|
-
function
|
|
6295
|
+
function sc(e) {
|
|
6297
6296
|
if (!e)
|
|
6298
6297
|
return "none";
|
|
6299
6298
|
const { elements: n = [] } = e;
|
|
@@ -6318,7 +6317,7 @@ const pt = {
|
|
|
6318
6317
|
CONNECTOR_POWER_TYPE_AC_3_PHASE: "CONNECTOR_POWER_TYPE_AC_3_PHASE",
|
|
6319
6318
|
CONNECTOR_POWER_TYPE_DC: "CONNECTOR_POWER_TYPE_DC"
|
|
6320
6319
|
};
|
|
6321
|
-
function
|
|
6320
|
+
function ac(e) {
|
|
6322
6321
|
switch (e.connectorPowerType) {
|
|
6323
6322
|
case pt.CONNECTOR_POWER_TYPE_AC_1_PHASE:
|
|
6324
6323
|
case pt.CONNECTOR_POWER_TYPE_DC:
|
|
@@ -6332,30 +6331,30 @@ function sc(e) {
|
|
|
6332
6331
|
return 0;
|
|
6333
6332
|
}
|
|
6334
6333
|
}
|
|
6335
|
-
const
|
|
6336
|
-
container:
|
|
6337
|
-
bold:
|
|
6338
|
-
dynamicTariffItem:
|
|
6339
|
-
dynamicTariffItemRange:
|
|
6340
|
-
tariffHeader:
|
|
6341
|
-
tariffLabel:
|
|
6342
|
-
tariffNote:
|
|
6343
|
-
activeNowLabel:
|
|
6344
|
-
},
|
|
6345
|
-
tariffItem:
|
|
6334
|
+
const lc = "ConnectorTariff-module_container", cc = "ConnectorTariff-module_bold", uc = "ConnectorTariff-module_dynamicTariffItem", dc = "ConnectorTariff-module_dynamicTariffItemRange", fc = "ConnectorTariff-module_tariffHeader", pc = "ConnectorTariff-module_tariffLabel", hc = "ConnectorTariff-module_tariffNote", mc = "ConnectorTariff-module_activeNowLabel", ye = {
|
|
6335
|
+
container: lc,
|
|
6336
|
+
bold: cc,
|
|
6337
|
+
dynamicTariffItem: uc,
|
|
6338
|
+
dynamicTariffItemRange: dc,
|
|
6339
|
+
tariffHeader: fc,
|
|
6340
|
+
tariffLabel: pc,
|
|
6341
|
+
tariffNote: hc,
|
|
6342
|
+
activeNowLabel: mc
|
|
6343
|
+
}, gc = "Price-module_tariffItem", Tn = {
|
|
6344
|
+
tariffItem: gc
|
|
6346
6345
|
};
|
|
6347
|
-
function
|
|
6346
|
+
function vc(e, n) {
|
|
6348
6347
|
return new Intl.NumberFormat(void 0, {
|
|
6349
6348
|
style: "currency",
|
|
6350
6349
|
currency: n.currency || "EUR",
|
|
6351
6350
|
maximumFractionDigits: 2
|
|
6352
6351
|
}).format(e);
|
|
6353
6352
|
}
|
|
6354
|
-
function
|
|
6353
|
+
function _c(e) {
|
|
6355
6354
|
const n = e.vat ? e.vat / 100 : 0;
|
|
6356
6355
|
return e.price + e.price * n;
|
|
6357
6356
|
}
|
|
6358
|
-
function
|
|
6357
|
+
function Cc({
|
|
6359
6358
|
priceComponent: e,
|
|
6360
6359
|
restrictions: n = {},
|
|
6361
6360
|
currency: i
|
|
@@ -6369,13 +6368,13 @@ function _c({
|
|
|
6369
6368
|
return n?.minDuration === 0 && n?.maxDuration && e.type === "PARKING_TIME" ? /* @__PURE__ */ a.jsx("div", { className: Tn.tariffItem, children: r("tariffPriceComponent.parkingTimeWait", {
|
|
6370
6369
|
minutes: Math.floor(n.maxDuration / 60)
|
|
6371
6370
|
}) }) : o[e.type] ? /* @__PURE__ */ a.jsx("div", { className: Tn.tariffItem, children: r(o[e.type], {
|
|
6372
|
-
total:
|
|
6371
|
+
total: vc(_c(e), {
|
|
6373
6372
|
currency: i
|
|
6374
6373
|
})
|
|
6375
6374
|
}) }) : null;
|
|
6376
6375
|
}
|
|
6377
|
-
const
|
|
6378
|
-
container:
|
|
6376
|
+
const Ec = "PriceComponents-module_container", yc = {
|
|
6377
|
+
container: Ec
|
|
6379
6378
|
}, Ur = ["ENERGY", "TIME", "FLAT", "PARKING_TIME"];
|
|
6380
6379
|
function jt({
|
|
6381
6380
|
elements: e,
|
|
@@ -6393,8 +6392,8 @@ function jt({
|
|
|
6393
6392
|
const l = Ur.indexOf(t.type), c = Ur.indexOf(s.type);
|
|
6394
6393
|
return l === -1 ? 1 : c === -1 ? -1 : l - c;
|
|
6395
6394
|
});
|
|
6396
|
-
return /* @__PURE__ */ a.jsx("div", { className:
|
|
6397
|
-
|
|
6395
|
+
return /* @__PURE__ */ a.jsx("div", { className: yc.container, children: o.map(({ type: t, elements: s }, l) => s.reverse().map((c, u) => /* @__PURE__ */ a.jsx(
|
|
6396
|
+
Cc,
|
|
6398
6397
|
{
|
|
6399
6398
|
currency: n,
|
|
6400
6399
|
priceComponent: c.priceComponent,
|
|
@@ -6403,24 +6402,24 @@ function jt({
|
|
|
6403
6402
|
`${t}-${l}-${u}`
|
|
6404
6403
|
))) });
|
|
6405
6404
|
}
|
|
6406
|
-
function
|
|
6405
|
+
function Tc(e, n) {
|
|
6407
6406
|
return new Intl.NumberFormat(void 0, {
|
|
6408
6407
|
style: "currency",
|
|
6409
6408
|
currency: n.currency || "EUR",
|
|
6410
6409
|
maximumFractionDigits: 2
|
|
6411
6410
|
}).format(e);
|
|
6412
6411
|
}
|
|
6413
|
-
function
|
|
6412
|
+
function xc({ vat: e, price: n }) {
|
|
6414
6413
|
const i = e ? e / 100 : 0;
|
|
6415
6414
|
return n + n * i;
|
|
6416
6415
|
}
|
|
6417
|
-
function
|
|
6416
|
+
function bc({
|
|
6418
6417
|
cdrAdditionalCharge: e,
|
|
6419
6418
|
currency: n
|
|
6420
6419
|
}) {
|
|
6421
6420
|
const { t: i } = Ae(), r = {
|
|
6422
6421
|
FLAT_FEE: i("cdrPrice.flatFee", {
|
|
6423
|
-
total:
|
|
6422
|
+
total: Tc(xc(e), {
|
|
6424
6423
|
currency: n
|
|
6425
6424
|
})
|
|
6426
6425
|
})
|
|
@@ -6434,8 +6433,8 @@ function kt(e, n) {
|
|
|
6434
6433
|
minute: "2-digit"
|
|
6435
6434
|
});
|
|
6436
6435
|
}
|
|
6437
|
-
const
|
|
6438
|
-
function
|
|
6436
|
+
const Ic = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
6437
|
+
function Nc(e) {
|
|
6439
6438
|
const { format: n } = new Intl.DateTimeFormat(e, { weekday: "long" });
|
|
6440
6439
|
return [
|
|
6441
6440
|
"SUNDAY",
|
|
@@ -6451,15 +6450,15 @@ function ht({
|
|
|
6451
6450
|
currency: e,
|
|
6452
6451
|
cdrAdditionalCharges: n
|
|
6453
6452
|
}) {
|
|
6454
|
-
return n.map((i) => /* @__PURE__ */ a.jsx(
|
|
6453
|
+
return n.map((i) => /* @__PURE__ */ a.jsx(bc, { currency: e, cdrAdditionalCharge: i }, i.id));
|
|
6455
6454
|
}
|
|
6456
6455
|
function zn({
|
|
6457
|
-
timezone: e =
|
|
6456
|
+
timezone: e = Ic,
|
|
6458
6457
|
tariff: n,
|
|
6459
6458
|
compact: i = !0,
|
|
6460
6459
|
cdrAdditionalCharges: r = []
|
|
6461
6460
|
}) {
|
|
6462
|
-
const { t: o, language: t } = Ae(), s =
|
|
6461
|
+
const { t: o, language: t } = Ae(), s = Nc(t);
|
|
6463
6462
|
if (!n) return null;
|
|
6464
6463
|
const l = n.elements || [], c = n.currency || "", u = l.some(
|
|
6465
6464
|
(b) => b.priceComponents && b.priceComponents.length > 0
|
|
@@ -6467,7 +6466,7 @@ function zn({
|
|
|
6467
6466
|
elements: l,
|
|
6468
6467
|
limit: i ? 6 : 40,
|
|
6469
6468
|
now: /* @__PURE__ */ new Date()
|
|
6470
|
-
}), p = d.length ? [] :
|
|
6469
|
+
}), p = d.length ? [] : oc(l, e, /* @__PURE__ */ new Date()), h = l.filter(Tt);
|
|
6471
6470
|
if (!u)
|
|
6472
6471
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6473
6472
|
/* @__PURE__ */ a.jsx("div", { className: ye.tariffNote, children: o("tariffPriceComponent.noTariff") }),
|
|
@@ -6594,7 +6593,7 @@ function Gt(e, n, i) {
|
|
|
6594
6593
|
e("tariffNote.scheduledTariffNote")
|
|
6595
6594
|
) : r.push(e("tariffNote.baseTariffNote")), r));
|
|
6596
6595
|
}
|
|
6597
|
-
const
|
|
6596
|
+
const wc = ({
|
|
6598
6597
|
currentLocation: e,
|
|
6599
6598
|
evses: n,
|
|
6600
6599
|
setView: i,
|
|
@@ -6760,13 +6759,13 @@ function Xi(e) {
|
|
|
6760
6759
|
}))
|
|
6761
6760
|
} : null;
|
|
6762
6761
|
}
|
|
6763
|
-
const
|
|
6762
|
+
const Oc = ({ origin: e, tariff: n, additionalCharges: i }) => /* @__PURE__ */ a.jsx(
|
|
6764
6763
|
zn,
|
|
6765
6764
|
{
|
|
6766
6765
|
tariff: Xi(n),
|
|
6767
6766
|
cdrAdditionalCharges: i
|
|
6768
6767
|
}
|
|
6769
|
-
),
|
|
6768
|
+
), Sc = ({ currentLocation: e, setView: n }) => {
|
|
6770
6769
|
const [i, r] = Te([]), { fetchTariffs: o, options: t, t: s, language: l } = Ae(), c = (Array.isArray(e.evses) ? e.evses : []).map((d) => d.connectors.map((p) => p.tariffIds)).flat(2).filter(Boolean);
|
|
6771
6770
|
le(() => {
|
|
6772
6771
|
c.length > 0 && o({
|
|
@@ -6838,14 +6837,14 @@ const wc = ({ origin: e, tariff: n, additionalCharges: i }) => /* @__PURE__ */ a
|
|
|
6838
6837
|
Bi(s, d.evseStatus),
|
|
6839
6838
|
`${Fi(
|
|
6840
6839
|
l,
|
|
6841
|
-
Math.floor(
|
|
6840
|
+
Math.floor(ac(d.connectors[0]))
|
|
6842
6841
|
)}kW`
|
|
6843
6842
|
].filter(Boolean).join(", ") })
|
|
6844
6843
|
] }),
|
|
6845
6844
|
d.connectors.map((p, h) => {
|
|
6846
6845
|
const T = i.find(
|
|
6847
6846
|
(_) => _.externalTariffId === p?.tariffIds?.[0]
|
|
6848
|
-
), b =
|
|
6847
|
+
), b = sc(
|
|
6849
6848
|
Xi(T)
|
|
6850
6849
|
), w = Gt(s, e, b);
|
|
6851
6850
|
return /* @__PURE__ */ a.jsxs("div", { children: [
|
|
@@ -6873,7 +6872,7 @@ const wc = ({ origin: e, tariff: n, additionalCharges: i }) => /* @__PURE__ */ a
|
|
|
6873
6872
|
/* @__PURE__ */ a.jsx("div", { className: O.text, children: s("evse.pricing") })
|
|
6874
6873
|
] }),
|
|
6875
6874
|
/* @__PURE__ */ a.jsx(
|
|
6876
|
-
|
|
6875
|
+
Oc,
|
|
6877
6876
|
{
|
|
6878
6877
|
origin: e.origin,
|
|
6879
6878
|
tariff: T,
|
|
@@ -6917,14 +6916,14 @@ const wc = ({ origin: e, tariff: n, additionalCharges: i }) => /* @__PURE__ */ a
|
|
|
6917
6916
|
})
|
|
6918
6917
|
] }, d.externalEvseId))
|
|
6919
6918
|
] });
|
|
6920
|
-
},
|
|
6919
|
+
}, Dc = () => {
|
|
6921
6920
|
const { setView: e } = yt(), { locations: n, locationsStatus: i, options: r } = Ae(), [o, t] = Te(0);
|
|
6922
6921
|
le(() => {
|
|
6923
6922
|
t(0);
|
|
6924
6923
|
}, [n]);
|
|
6925
6924
|
const s = n[o];
|
|
6926
6925
|
if (i.type === "loading" || !s)
|
|
6927
|
-
return /* @__PURE__ */ a.jsx("div", { className: O.container, children: /* @__PURE__ */ a.jsx(
|
|
6926
|
+
return /* @__PURE__ */ a.jsx("div", { className: O.container, children: /* @__PURE__ */ a.jsx($l, {}) });
|
|
6928
6927
|
const { evses: l = [], cdrAdditionalCharges: c } = s, u = o < n.length - 1, d = o > 0, p = window.location?.search?.includes("debug"), h = () => {
|
|
6929
6928
|
switch (r.version) {
|
|
6930
6929
|
case "v2":
|
|
@@ -6939,7 +6938,7 @@ const wc = ({ origin: e, tariff: n, additionalCharges: i }) => /* @__PURE__ */ a
|
|
|
6939
6938
|
}
|
|
6940
6939
|
}, T = r.version === "v2";
|
|
6941
6940
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6942
|
-
p && s && /* @__PURE__ */ a.jsx(
|
|
6941
|
+
p && s && /* @__PURE__ */ a.jsx(Zl, { location: s }),
|
|
6943
6942
|
/* @__PURE__ */ a.jsx("div", { className: O.headerContainer, children: /* @__PURE__ */ a.jsxs("div", { className: O.header, children: [
|
|
6944
6943
|
n.length > 1 && /* @__PURE__ */ a.jsxs("div", { className: O.pagingation, children: [
|
|
6945
6944
|
/* @__PURE__ */ a.jsxs("span", { children: [
|
|
@@ -6964,14 +6963,14 @@ const wc = ({ origin: e, tariff: n, additionalCharges: i }) => /* @__PURE__ */ a
|
|
|
6964
6963
|
onClick: () => t(
|
|
6965
6964
|
Math.min(n.length - 1, o + 1)
|
|
6966
6965
|
),
|
|
6967
|
-
children: /* @__PURE__ */ a.jsx(
|
|
6966
|
+
children: /* @__PURE__ */ a.jsx(Bl, {})
|
|
6968
6967
|
}
|
|
6969
6968
|
)
|
|
6970
6969
|
] }),
|
|
6971
6970
|
h().filter(Boolean).join(", ")
|
|
6972
6971
|
] }) }),
|
|
6973
6972
|
!T && /* @__PURE__ */ a.jsx(
|
|
6974
|
-
|
|
6973
|
+
wc,
|
|
6975
6974
|
{
|
|
6976
6975
|
setView: e,
|
|
6977
6976
|
cdrAdditionalCharges: c,
|
|
@@ -6980,25 +6979,25 @@ const wc = ({ origin: e, tariff: n, additionalCharges: i }) => /* @__PURE__ */ a
|
|
|
6980
6979
|
}
|
|
6981
6980
|
),
|
|
6982
6981
|
T && /* @__PURE__ */ a.jsx(
|
|
6983
|
-
|
|
6982
|
+
Sc,
|
|
6984
6983
|
{
|
|
6985
6984
|
setView: e,
|
|
6986
6985
|
currentLocation: s
|
|
6987
6986
|
}
|
|
6988
6987
|
)
|
|
6989
6988
|
] });
|
|
6990
|
-
},
|
|
6991
|
-
backButton:
|
|
6989
|
+
}, Pc = "BackButton-module_backButton", Ac = {
|
|
6990
|
+
backButton: Pc
|
|
6992
6991
|
};
|
|
6993
6992
|
function Qi({ onClick: e = () => {
|
|
6994
6993
|
} }) {
|
|
6995
6994
|
const { t: n } = Ae();
|
|
6996
|
-
return /* @__PURE__ */ a.jsxs("button", { onClick: e, className:
|
|
6995
|
+
return /* @__PURE__ */ a.jsxs("button", { onClick: e, className: Ac.backButton, children: [
|
|
6997
6996
|
/* @__PURE__ */ a.jsx(Mi, {}),
|
|
6998
6997
|
n("backButton.backTo")
|
|
6999
6998
|
] });
|
|
7000
6999
|
}
|
|
7001
|
-
function
|
|
7000
|
+
function Rc() {
|
|
7002
7001
|
const { t: e } = Ae(), { current: n, setView: i } = yt(), { notes: r = [], evseId: o, locationName: t } = n?.args || {};
|
|
7003
7002
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7004
7003
|
/* @__PURE__ */ a.jsx("div", { className: O.headerContainer, children: /* @__PURE__ */ a.jsxs(
|
|
@@ -7023,7 +7022,7 @@ function Ac() {
|
|
|
7023
7022
|
] })
|
|
7024
7023
|
] });
|
|
7025
7024
|
}
|
|
7026
|
-
function
|
|
7025
|
+
function Mc() {
|
|
7027
7026
|
const { t: e } = Ae(), { current: n, setView: i } = yt(), { connector: r, locationName: o, evseId: t, notes: s } = n?.args || {};
|
|
7028
7027
|
return r?.tariff ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7029
7028
|
/* @__PURE__ */ a.jsx("div", { className: O.headerContainer, children: /* @__PURE__ */ a.jsxs(
|
|
@@ -7066,25 +7065,25 @@ function Rc() {
|
|
|
7066
7065
|
] })
|
|
7067
7066
|
] }) : null;
|
|
7068
7067
|
}
|
|
7069
|
-
const
|
|
7070
|
-
closeButton:
|
|
7068
|
+
const jc = "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", kc = "CloseButton-module_closeButton", Lc = {
|
|
7069
|
+
closeButton: kc
|
|
7071
7070
|
};
|
|
7072
7071
|
function eo({ onClick: e }) {
|
|
7073
|
-
return /* @__PURE__ */ a.jsx("button", { onClick: e, className:
|
|
7072
|
+
return /* @__PURE__ */ a.jsx("button", { onClick: e, className: Lc.closeButton, children: /* @__PURE__ */ a.jsx("img", { src: jc }) });
|
|
7074
7073
|
}
|
|
7075
|
-
function
|
|
7074
|
+
function Vc() {
|
|
7076
7075
|
const [e, n] = Te("locations"), { setView: i } = yt();
|
|
7077
7076
|
return /* @__PURE__ */ a.jsxs(Ye, { name: "locations", currentView: e, onViewChange: n, children: [
|
|
7078
7077
|
/* @__PURE__ */ a.jsx(Ye.View, { name: "locations", children: /* @__PURE__ */ a.jsxs(Ct, { children: [
|
|
7079
7078
|
/* @__PURE__ */ a.jsx(eo, { onClick: () => i("none") }),
|
|
7080
|
-
/* @__PURE__ */ a.jsx(
|
|
7079
|
+
/* @__PURE__ */ a.jsx(Dc, {})
|
|
7081
7080
|
] }) }),
|
|
7082
|
-
/* @__PURE__ */ a.jsx(Ye.View, { name: "tariffNote", children: /* @__PURE__ */ a.jsx(Ct, { children: /* @__PURE__ */ a.jsx(
|
|
7083
|
-
/* @__PURE__ */ a.jsx(Ye.View, { name: "dynamicTariff", children: /* @__PURE__ */ a.jsx(Ct, { children: /* @__PURE__ */ a.jsx(
|
|
7081
|
+
/* @__PURE__ */ a.jsx(Ye.View, { name: "tariffNote", children: /* @__PURE__ */ a.jsx(Ct, { children: /* @__PURE__ */ a.jsx(Rc, {}) }) }),
|
|
7082
|
+
/* @__PURE__ */ a.jsx(Ye.View, { name: "dynamicTariff", children: /* @__PURE__ */ a.jsx(Ct, { children: /* @__PURE__ */ a.jsx(Mc, {}) }) })
|
|
7084
7083
|
] });
|
|
7085
7084
|
}
|
|
7086
|
-
const
|
|
7087
|
-
function
|
|
7085
|
+
const Hc = "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";
|
|
7086
|
+
function Fc() {
|
|
7088
7087
|
const { locationIds: e, fetchLocations: n, filters: i } = Ae(), [r, o] = ae.useState("none");
|
|
7089
7088
|
return le(() => {
|
|
7090
7089
|
e.length > 0 && o("locations");
|
|
@@ -7106,8 +7105,8 @@ function Hc() {
|
|
|
7106
7105
|
o("filters");
|
|
7107
7106
|
},
|
|
7108
7107
|
children: [
|
|
7109
|
-
/* @__PURE__ */ a.jsx("img", { className: ot.filterIcon, src:
|
|
7110
|
-
|
|
7108
|
+
/* @__PURE__ */ a.jsx("img", { className: ot.filterIcon, src: Hc }),
|
|
7109
|
+
Cl(i) && /* @__PURE__ */ a.jsx("span", { className: ot.filterCounter })
|
|
7111
7110
|
]
|
|
7112
7111
|
}
|
|
7113
7112
|
)
|
|
@@ -7121,23 +7120,23 @@ function Hc() {
|
|
|
7121
7120
|
o(t);
|
|
7122
7121
|
},
|
|
7123
7122
|
children: [
|
|
7124
|
-
/* @__PURE__ */ a.jsx(Ye.View, { name: "locations", children: /* @__PURE__ */ a.jsx(
|
|
7123
|
+
/* @__PURE__ */ a.jsx(Ye.View, { name: "locations", children: /* @__PURE__ */ a.jsx(Vc, {}) }),
|
|
7125
7124
|
/* @__PURE__ */ a.jsx(Ye.View, { name: "filters", children: /* @__PURE__ */ a.jsxs(Ct, { children: [
|
|
7126
7125
|
/* @__PURE__ */ a.jsx(eo, { onClick: () => o("none") }),
|
|
7127
|
-
/* @__PURE__ */ a.jsx(
|
|
7126
|
+
/* @__PURE__ */ a.jsx(Tl, {})
|
|
7128
7127
|
] }) })
|
|
7129
7128
|
]
|
|
7130
7129
|
}
|
|
7131
7130
|
) })
|
|
7132
7131
|
] });
|
|
7133
7132
|
}
|
|
7134
|
-
function
|
|
7133
|
+
function zc(e) {
|
|
7135
7134
|
return /* @__PURE__ */ a.jsx(Yo, { options: e, language: e.language, children: /* @__PURE__ */ a.jsxs(Ko, { height: e?.height, children: [
|
|
7136
|
-
/* @__PURE__ */ a.jsx(
|
|
7135
|
+
/* @__PURE__ */ a.jsx(Fc, {}),
|
|
7137
7136
|
/* @__PURE__ */ a.jsx(cs, {})
|
|
7138
7137
|
] }) });
|
|
7139
7138
|
}
|
|
7140
7139
|
export {
|
|
7141
|
-
|
|
7140
|
+
zc as RoadMap
|
|
7142
7141
|
};
|
|
7143
7142
|
//# sourceMappingURL=index.mjs.map
|