@sbb-esta/lyne-elements-experimental 2.11.2 → 3.0.0-next.1
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/core/datetime/date-helper.js +142 -142
- package/core/timetable/access-leg-helper.js +52 -49
- package/core/timetable/timetable-helper.js +8 -7
- package/custom-elements.json +8 -8
- package/development/core/datetime/date-helper.js +10 -10
- package/development/core/timetable/access-leg-helper.js +15 -12
- package/development/core/timetable/timetable-helper.js +7 -6
- package/development/{differenceInMinutes-D5Nj8Stc.js → differenceInMinutes-CHSyWiQs.js} +3 -3
- package/development/{format-BQfaa1ZT.js → format-D0-yhzi4.js} +26 -22
- package/development/{isValid-DvieCZVi.js → isValid-Bo4R7iA7.js} +3 -3
- package/development/journey-summary/journey-summary.component.d.ts +5 -3
- package/development/journey-summary/journey-summary.component.d.ts.map +1 -1
- package/development/journey-summary/journey-summary.component.js +9 -5
- package/development/pearl-chain/pearl-chain.component.d.ts +5 -3
- package/development/pearl-chain/pearl-chain.component.d.ts.map +1 -1
- package/development/pearl-chain/pearl-chain.component.js +43 -29
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts +5 -3
- package/development/pearl-chain-time/pearl-chain-time.component.d.ts.map +1 -1
- package/development/pearl-chain-time/pearl-chain-time.component.js +10 -6
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +1 -1
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +1 -1
- package/development/seat-reservation/common/mapper/icon-mapper.js +1 -1
- package/development/seat-reservation/common/mapper/mapper.js +16 -14
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.js +1 -1
- package/development/seat-reservation/common/svgs.js +1 -1
- package/development/seat-reservation/common/translations/i18n.js +3 -2
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +33 -22
- package/development/seat-reservation/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +7 -6
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +23 -16
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +3 -2
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +8 -7
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +11 -7
- package/development/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +3 -2
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +5 -4
- package/development/timetable-duration/timetable-duration.component.js +1 -1
- package/development/timetable-row/timetable-row.component.d.ts +5 -3
- package/development/timetable-row/timetable-row.component.d.ts.map +1 -1
- package/development/timetable-row/timetable-row.component.js +93 -59
- package/differenceInMinutes-BMqUZdhj.js +23 -0
- package/{format-lqeCzmzS.js → format-Dg8rkk7h.js} +442 -438
- package/isValid-DJ69OMZJ.js +45 -0
- package/journey-summary/journey-summary.component.d.ts +5 -3
- package/journey-summary/journey-summary.component.d.ts.map +1 -1
- package/journey-summary/journey-summary.component.js +8 -4
- package/package.json +2 -2
- package/pearl-chain/pearl-chain.component.d.ts +5 -3
- package/pearl-chain/pearl-chain.component.d.ts.map +1 -1
- package/pearl-chain/pearl-chain.component.js +99 -79
- package/pearl-chain-time/pearl-chain-time.component.d.ts +5 -3
- package/pearl-chain-time/pearl-chain-time.component.d.ts.map +1 -1
- package/pearl-chain-time/pearl-chain-time.component.js +49 -45
- package/seat-reservation/common/mapper/mapper.js +54 -50
- package/seat-reservation/common/translations/i18n.js +6 -5
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +115 -104
- package/seat-reservation/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +41 -40
- package/seat-reservation/seat-reservation/seat-reservation.component.js +87 -78
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +18 -15
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +59 -58
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +75 -71
- package/seat-reservation/seat-reservation-navigation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +13 -12
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +24 -23
- package/timetable-row/timetable-row.component.d.ts +5 -3
- package/timetable-row/timetable-row.component.d.ts.map +1 -1
- package/timetable-row/timetable-row.component.js +251 -208
- package/differenceInMinutes-CP_C5onR.js +0 -23
- package/isValid-Ceq2O0NQ.js +0 -45
|
@@ -1,32 +1,56 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var Ke = (e) => {
|
|
2
|
+
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __runInitializers as
|
|
7
|
-
import { SbbLanguageController as
|
|
8
|
-
import { defaultDateAdapter as
|
|
9
|
-
import { forceType as
|
|
10
|
-
import { setOrRemoveAttribute as
|
|
11
|
-
import { i18nFromPlatform as
|
|
12
|
-
import { css as
|
|
13
|
-
import { customElement as
|
|
14
|
-
import { removeTimezoneFromISOTimeString as
|
|
15
|
-
import { isRideLeg as
|
|
4
|
+
var Ye = (e, i, s) => i.has(e) || Ke("Cannot " + s);
|
|
5
|
+
var T = (e, i, s) => (Ye(e, i, "read from private field"), s ? s.call(e) : i.get(e)), A = (e, i, s) => i.has(e) ? Ke("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, s), h = (e, i, s, n) => (Ye(e, i, "write to private field"), n ? n.call(e, s) : i.set(e, s), s);
|
|
6
|
+
import { __runInitializers as d, __esDecorate as w } from "tslib";
|
|
7
|
+
import { SbbLanguageController as yt } from "@sbb-esta/lyne-elements/core/controllers.js";
|
|
8
|
+
import { defaultDateAdapter as Xe } from "@sbb-esta/lyne-elements/core/datetime.js";
|
|
9
|
+
import { forceType as I } from "@sbb-esta/lyne-elements/core/decorators.js";
|
|
10
|
+
import { setOrRemoveAttribute as vt } from "@sbb-esta/lyne-elements/core/dom.js";
|
|
11
|
+
import { i18nFromPlatform as xt, i18nDeparture as Ze, i18nMeansOfTransport as G, i18nDirection as Ge, i18nRealTimeInfo as Ve, i18nSupersaver as et, i18nTransferProcedures as wt, i18nTransferProcedure as $t, i18nArrival as Tt, i18nClass as tt, i18nOccupancy as at, i18nTravelhints as At, i18nTripDuration as it, i18nNew as st, i18nTripQuayChange as Nt } from "@sbb-esta/lyne-elements/core/i18n.js";
|
|
12
|
+
import { css as Ct, LitElement as kt, nothing as u, html as m } from "lit";
|
|
13
|
+
import { customElement as zt, property as N } from "lit/decorators.js";
|
|
14
|
+
import { removeTimezoneFromISOTimeString as rt, durationToTime as nt } from "../core/datetime.js";
|
|
15
|
+
import { isRideLeg as dt, getDepartureArrivalTimeAttribute as It } from "../core/timetable.js";
|
|
16
16
|
import "@sbb-esta/lyne-elements/card.js";
|
|
17
17
|
import "@sbb-esta/lyne-elements/icon.js";
|
|
18
18
|
import "@sbb-esta/lyne-elements/timetable-occupancy.js";
|
|
19
19
|
import "../pearl-chain-time.js";
|
|
20
|
-
import { f as
|
|
21
|
-
const
|
|
22
|
-
<sbb-icon name=${
|
|
20
|
+
import { f as lt } from "../format-Dg8rkk7h.js";
|
|
21
|
+
const Lt = Ct`*,:before,:after{box-sizing:border-box}:host{--sbb-timetable-row-gap: var(--sbb-spacing-fixed-2x);--sbb-timetable-row-height: 1.5625rem;--sbb-timetable-row-height-header: 1.25rem;--sbb-timetable-row-height-footer: 1rem;--sbb-timetable-row-skeleton-pulse-duration: 1.8s;display:block}:host([disable-animation]){--sbb-timetable-row-skeleton-pulse-duration: 0}.sbb-timetable__row-transport-icon{--sbb-icon-svg-width: 1.25rem;--sbb-icon-svg-height: 1.25rem}.sbb-travel-hints__item{--sbb-icon-svg-height: .875rem}.sbb-screen-reader-only{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.sbb-timetable__row--quay{margin-inline-end:var(--sbb-spacing-fixed-1x)}.sbb-timetable__row--quay-type{float:left}ul{list-style:none;margin:0;padding:0;font-size:inherit;display:inline-flex}li,.sbb-timetable__row-transport{display:inline-flex;align-self:center}.sbb-timetable__row-transportnumber,.sbb-timetable__row-time{--sbb-text-font-size: var(--sbb-font-size-text-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);font-weight:700;line-height:unset;white-space:nowrap;align-self:center}.sbb-timetable__row{--sbb-text-font-size: var(--sbb-font-size-text-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size);display:flex;flex-direction:column;gap:var(--sbb-timetable-row-gap)}.sbb-timetable__row-header,.sbb-timetable__row-footer{animation:none}.sbb-timetable__row-header{display:flex;gap:var(--sbb-spacing-fixed-2x);align-items:center;line-height:var(--sbb-timetable-row-height-header)}.sbb-timetable__row-details,.sbb-timetable__row-hints{display:inline-flex;gap:var(--sbb-spacing-fixed-1x);align-items:center}.sbb-timetable__row-header p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0;align-self:center}.sbb-timetable__row-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:var(--sbb-spacing-fixed-2x);line-height:var(--sbb-timetable-row-height-footer)}.sbb-timetable__row-footer>span{align-self:center}.sbb-timetable__row-footer :only-child{margin-inline-start:auto}.sbb-timetable__row-quay--changed{color:var(--sbb-color-red)}.sbb-timetable__row-transport-wrapper,.sbb-timetable__row-warning{display:inline-flex}.sbb-loading{pointer-events:none}.sbb-loading__wrapper{display:flex;flex-direction:column;gap:var(--sbb-spacing-fixed-2x)}.sbb-loading__row{width:100%;border-radius:var(--sbb-border-radius-1x);height:var(--sbb-timetable-row-height)}@media (min-width: 52.5rem){.sbb-loading__row{height:1.75rem}}@media (forced-colors: active){.sbb-loading__row{border:var(--sbb-border-width-1x) solid ButtonBorder!important}}.sbb-loading__row,.sbb-loading__badge{background:var(--sbb-color-cloud);animation:skeleton-pulse var(--sbb-timetable-row-skeleton-pulse-duration) ease-out infinite}.sbb-loading__row:first-of-type{height:var(--sbb-timetable-row-height-header);width:50%}.sbb-loading__row:last-of-type{height:var(--sbb-timetable-row-height-footer)}.sbb-loading__badge{margin-inline:auto calc(var(--sbb-spacing-fixed-3x) * -1);padding-inline-end:var(--sbb-spacing-fixed-6x);border-end-start-radius:var(--sbb-border-radius-4x);transform:skew(16deg);width:7.1875rem;height:1.25rem}@keyframes skeleton-pulse{0%{background:var(--sbb-color-cloud)}17%{background:var(--sbb-color-cloud)}50%{background:var(--sbb-color-milk)}67%{background:var(--sbb-color-milk)}to{background:var(--sbb-color-cloud)}}`, Rt = (e, i) => m`<span class="sbb-timetable__row-transport">
|
|
22
|
+
<sbb-icon name=${e}></sbb-icon>
|
|
23
23
|
<span class="sbb-screen-reader-only">${i}</span>
|
|
24
|
-
</span>`,
|
|
25
|
-
const s = ["M", "B", "T"].includes(
|
|
26
|
-
return
|
|
27
|
-
${i !== null ?
|
|
24
|
+
</span>`, Mt = (e, i) => {
|
|
25
|
+
const s = ["M", "B", "T"].includes(e) ? " " : "";
|
|
26
|
+
return m`<span class="sbb-timetable__row-transportnumber">
|
|
27
|
+
${i !== null ? e + s + i : e}
|
|
28
28
|
</span>`;
|
|
29
|
-
},
|
|
29
|
+
}, ot = (e) => {
|
|
30
|
+
var i, s, n;
|
|
31
|
+
return (n = (s = (i = e == null ? void 0 : e.find((b) => {
|
|
32
|
+
var r, p;
|
|
33
|
+
return (p = (r = b.serviceJourney) == null ? void 0 : r.serviceAlteration) == null ? void 0 : p.reachableText;
|
|
34
|
+
})) == null ? void 0 : i.serviceJourney) == null ? void 0 : s.serviceAlteration) == null ? void 0 : n.reachableText;
|
|
35
|
+
}, Et = (e) => {
|
|
36
|
+
var i, s, n;
|
|
37
|
+
return (n = (s = (i = e == null ? void 0 : e.find((b) => {
|
|
38
|
+
var r, p;
|
|
39
|
+
return (p = (r = b.serviceJourney) == null ? void 0 : r.serviceAlteration) == null ? void 0 : p.delayText;
|
|
40
|
+
})) == null ? void 0 : i.serviceJourney) == null ? void 0 : s.serviceAlteration) == null ? void 0 : n.delayText;
|
|
41
|
+
}, ct = (e) => {
|
|
42
|
+
var i, s, n;
|
|
43
|
+
return (n = (s = (i = e == null ? void 0 : e.find((b) => {
|
|
44
|
+
var r, p;
|
|
45
|
+
return !!((p = (r = b.serviceJourney) == null ? void 0 : r.serviceAlteration) != null && p.redirectedText);
|
|
46
|
+
})) == null ? void 0 : i.serviceJourney) == null ? void 0 : s.serviceAlteration) == null ? void 0 : n.redirectedText;
|
|
47
|
+
}, bt = (e) => {
|
|
48
|
+
var i, s, n;
|
|
49
|
+
return (n = (s = (i = e == null ? void 0 : e.find((b) => {
|
|
50
|
+
var r, p;
|
|
51
|
+
return !!((p = (r = b.serviceJourney) == null ? void 0 : r.serviceAlteration) != null && p.unplannedStopPointsText);
|
|
52
|
+
})) == null ? void 0 : i.serviceJourney) == null ? void 0 : s.serviceAlteration) == null ? void 0 : n.unplannedStopPointsText;
|
|
53
|
+
}, St = (e) => {
|
|
30
54
|
const i = {
|
|
31
55
|
DISTURBANCE: 0,
|
|
32
56
|
INFORMATION: 1,
|
|
@@ -35,132 +59,133 @@ const ft = pt`*,:before,:after{box-sizing:border-box}:host{--sbb-timetable-row-g
|
|
|
35
59
|
CONSTRUCTION_SITE: 4,
|
|
36
60
|
END_MESSAGE: 5
|
|
37
61
|
};
|
|
38
|
-
return [...
|
|
39
|
-
},
|
|
40
|
-
|
|
62
|
+
return [...e].sort((s, n) => i[s.cause] - i[n.cause]);
|
|
63
|
+
}, Ot = (e) => {
|
|
64
|
+
var i;
|
|
65
|
+
switch (e == null ? void 0 : e.cause) {
|
|
41
66
|
case "DISTURBANCE":
|
|
42
67
|
return {
|
|
43
68
|
name: "disruption",
|
|
44
|
-
text:
|
|
69
|
+
text: (i = e == null ? void 0 : e.broadcastMessages) != null && i.length ? e == null ? void 0 : e.broadcastMessages[0].title : ""
|
|
45
70
|
};
|
|
46
71
|
case "INFORMATION":
|
|
47
72
|
return {
|
|
48
73
|
name: "info",
|
|
49
|
-
text:
|
|
74
|
+
text: e != null && e.broadcastMessages.length ? e == null ? void 0 : e.broadcastMessages[0].title : ""
|
|
50
75
|
};
|
|
51
76
|
case "DELAY":
|
|
52
77
|
return {
|
|
53
78
|
name: "delay",
|
|
54
|
-
text:
|
|
79
|
+
text: e != null && e.broadcastMessages.length ? e == null ? void 0 : e.broadcastMessages[0].title : ""
|
|
55
80
|
};
|
|
56
81
|
case "TRAIN_REPLACEMENT_BY_BUS":
|
|
57
82
|
return {
|
|
58
83
|
name: "replacementbus",
|
|
59
|
-
text:
|
|
84
|
+
text: e != null && e.broadcastMessages.length ? e == null ? void 0 : e.broadcastMessages[0].title : ""
|
|
60
85
|
};
|
|
61
86
|
case "CONSTRUCTION_SITE":
|
|
62
87
|
return {
|
|
63
88
|
name: "construction",
|
|
64
|
-
text:
|
|
89
|
+
text: e != null && e.broadcastMessages.length ? e == null ? void 0 : e.broadcastMessages[0].title : ""
|
|
65
90
|
};
|
|
66
91
|
default:
|
|
67
92
|
return {
|
|
68
93
|
name: "info",
|
|
69
|
-
text:
|
|
94
|
+
text: e != null && e.broadcastMessages.length ? e == null ? void 0 : e.broadcastMessages[0].title : ""
|
|
70
95
|
};
|
|
71
96
|
}
|
|
72
|
-
},
|
|
73
|
-
const { summary: s, legs: n } =
|
|
74
|
-
if (
|
|
75
|
-
return { name: "cancellation", text:
|
|
76
|
-
if (
|
|
77
|
-
return { name: "missed-connection", text:
|
|
78
|
-
if (
|
|
79
|
-
return { name: "alternative", text:
|
|
80
|
-
if (
|
|
81
|
-
return { name: "reroute", text:
|
|
82
|
-
if (
|
|
83
|
-
return { name: "add-stop", text:
|
|
84
|
-
if (
|
|
85
|
-
return { name: "delay", text:
|
|
86
|
-
if (
|
|
87
|
-
const
|
|
97
|
+
}, Pt = (e, i) => {
|
|
98
|
+
const { summary: s, legs: n } = e || {}, b = n == null ? void 0 : n.filter((p) => dt(p)), { tripStatus: r } = s || {};
|
|
99
|
+
if (r != null && r.cancelled || r != null && r.partiallyCancelled)
|
|
100
|
+
return { name: "cancellation", text: r == null ? void 0 : r.cancelledText };
|
|
101
|
+
if (ot(b))
|
|
102
|
+
return { name: "missed-connection", text: ot(b) };
|
|
103
|
+
if (r != null && r.alternative)
|
|
104
|
+
return { name: "alternative", text: r.alternativeText };
|
|
105
|
+
if (ct(b))
|
|
106
|
+
return { name: "reroute", text: ct(b) };
|
|
107
|
+
if (bt(b))
|
|
108
|
+
return { name: "add-stop", text: bt(b) };
|
|
109
|
+
if (r != null && r.delayed || r != null && r.delayedUnknown)
|
|
110
|
+
return { name: "delay", text: Et(b) };
|
|
111
|
+
if (r != null && r.quayChanged) {
|
|
112
|
+
const p = b[0].departure;
|
|
88
113
|
return {
|
|
89
114
|
name: "platform-change",
|
|
90
|
-
text:
|
|
115
|
+
text: p.quayChanged ? p.quayChangedText : Nt[i]
|
|
91
116
|
};
|
|
92
117
|
}
|
|
93
118
|
return {};
|
|
94
|
-
},
|
|
119
|
+
}, Dt = (e) => {
|
|
95
120
|
const i = ["RR", "RK", "RC", "RL", "RM", "RS", "RU", "XP", "XR", "XT"];
|
|
96
|
-
return
|
|
121
|
+
return e.reduce((s, n) => {
|
|
97
122
|
if (s)
|
|
98
123
|
return s;
|
|
99
124
|
if (i.includes(n.name))
|
|
100
125
|
return { ...n, name: "RR" };
|
|
101
126
|
}, void 0);
|
|
102
|
-
},
|
|
127
|
+
}, Ft = (e) => {
|
|
103
128
|
const i = ["Z", "SB", "SZ", "VR", "TG"];
|
|
104
|
-
return
|
|
105
|
-
},
|
|
106
|
-
const i =
|
|
129
|
+
return e.filter((n, b) => e.findIndex((r) => r.name === n.name) === b).filter((n) => i.includes(n.name)).sort((n, b) => i.indexOf(n.name) - i.indexOf(b.name));
|
|
130
|
+
}, ae = (e) => {
|
|
131
|
+
const i = Dt(e), s = Ft(e);
|
|
107
132
|
return i === void 0 ? s : s.length ? s[0].name === "Z" && s[1] ? [s[0], i, s[1]].concat(s.slice(2)) : [i, ...s] : [i];
|
|
108
133
|
};
|
|
109
|
-
let
|
|
110
|
-
var
|
|
111
|
-
let
|
|
112
|
-
return
|
|
134
|
+
let ia = (() => {
|
|
135
|
+
var L, R, M, E, S, O, P, D, F, B, _;
|
|
136
|
+
let e = [zt("sbb-timetable-row")], i, s = [], n, b = kt, r = [], p, ie = [], se = [], re, ne = [], le = [], oe, ce = [], be = [], de, he = [], ge = [], me, pe = [], _e = [], ue, fe = [], ye = [], ve, xe = [], we = [], $e, Te = [], Ae = [], Ne, Ce = [], ke = [], ze, Ie = [], Le = [], Re;
|
|
137
|
+
return _ = class extends b {
|
|
113
138
|
constructor() {
|
|
114
139
|
super(...arguments);
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
140
|
+
A(this, L);
|
|
141
|
+
A(this, R);
|
|
142
|
+
A(this, M);
|
|
143
|
+
A(this, E);
|
|
144
|
+
A(this, S);
|
|
145
|
+
A(this, O);
|
|
146
|
+
A(this, P);
|
|
147
|
+
A(this, D);
|
|
148
|
+
A(this, F);
|
|
149
|
+
A(this, B);
|
|
150
|
+
h(this, L, (d(this, r), d(this, ie, null))), h(this, R, (d(this, se), d(this, ne, null))), h(this, M, (d(this, le), d(this, ce, !1))), h(this, E, (d(this, be), d(this, he, null))), h(this, S, (d(this, ge), d(this, pe, !1))), h(this, O, (d(this, _e), d(this, fe, !1))), h(this, P, (d(this, ye), d(this, xe, !1))), h(this, D, (d(this, we), d(this, Te, ""))), h(this, F, (d(this, Ae), d(this, Ce, !1))), h(this, B, (d(this, ke), d(this, Ie, !1))), this._now = (d(this, Le), null), this._language = new yt(this);
|
|
126
151
|
}
|
|
127
152
|
/** The trip Prop. */
|
|
128
153
|
get trip() {
|
|
129
|
-
return
|
|
154
|
+
return T(this, L);
|
|
130
155
|
}
|
|
131
156
|
set trip(a) {
|
|
132
|
-
|
|
157
|
+
h(this, L, a);
|
|
133
158
|
}
|
|
134
159
|
/** The price Prop, which consists of the data for the badge. */
|
|
135
160
|
get price() {
|
|
136
|
-
return
|
|
161
|
+
return T(this, R);
|
|
137
162
|
}
|
|
138
163
|
set price(a) {
|
|
139
|
-
|
|
164
|
+
h(this, R, a);
|
|
140
165
|
}
|
|
141
166
|
/** This will be forwarded to the sbb-pearl-chain component - if true the position won't be animated. */
|
|
142
167
|
get disableAnimation() {
|
|
143
|
-
return
|
|
168
|
+
return T(this, M);
|
|
144
169
|
}
|
|
145
170
|
set disableAnimation(a) {
|
|
146
|
-
|
|
171
|
+
h(this, M, a);
|
|
147
172
|
}
|
|
148
173
|
/** This will be forwarded to the notices section */
|
|
149
174
|
get boarding() {
|
|
150
|
-
return
|
|
175
|
+
return T(this, E);
|
|
151
176
|
}
|
|
152
177
|
set boarding(a) {
|
|
153
|
-
|
|
178
|
+
h(this, E, a);
|
|
154
179
|
}
|
|
155
180
|
/**
|
|
156
181
|
* The loading state -
|
|
157
182
|
* when this is true it will be render skeleton with an idling animation
|
|
158
183
|
*/
|
|
159
184
|
get loadingTrip() {
|
|
160
|
-
return
|
|
185
|
+
return T(this, S);
|
|
161
186
|
}
|
|
162
187
|
set loadingTrip(a) {
|
|
163
|
-
|
|
188
|
+
h(this, S, a);
|
|
164
189
|
}
|
|
165
190
|
/**
|
|
166
191
|
* The Footpath attribute for rendering different icons
|
|
@@ -169,59 +194,62 @@ let jt = (() => {
|
|
|
169
194
|
* default: render walk-icon
|
|
170
195
|
*/
|
|
171
196
|
get a11yFootpath() {
|
|
172
|
-
return
|
|
197
|
+
return T(this, O);
|
|
173
198
|
}
|
|
174
199
|
set a11yFootpath(a) {
|
|
175
|
-
|
|
200
|
+
h(this, O, a);
|
|
176
201
|
}
|
|
177
202
|
/**
|
|
178
203
|
* The loading state -
|
|
179
204
|
* when this is true it will be render skeleton with an idling animation
|
|
180
205
|
*/
|
|
181
206
|
get loadingPrice() {
|
|
182
|
-
return
|
|
207
|
+
return T(this, P);
|
|
183
208
|
}
|
|
184
209
|
set loadingPrice(a) {
|
|
185
|
-
|
|
210
|
+
h(this, P, a);
|
|
186
211
|
}
|
|
187
212
|
/**
|
|
188
213
|
* Hidden label for the card action. It overrides the automatically generated accessibility text for the component. Use this prop to provide custom accessibility information for the component.
|
|
189
214
|
*/
|
|
190
215
|
get cardActionLabel() {
|
|
191
|
-
return
|
|
216
|
+
return T(this, D);
|
|
192
217
|
}
|
|
193
218
|
set cardActionLabel(a) {
|
|
194
|
-
|
|
219
|
+
h(this, D, a);
|
|
195
220
|
}
|
|
196
221
|
/** This will be forwarded to the sbb-card component as aria-expanded. */
|
|
197
222
|
get accessibilityExpanded() {
|
|
198
|
-
return
|
|
223
|
+
return T(this, F);
|
|
199
224
|
}
|
|
200
225
|
set accessibilityExpanded(a) {
|
|
201
|
-
|
|
226
|
+
h(this, F, a);
|
|
202
227
|
}
|
|
203
228
|
/** When this prop is true the sbb-card will be in the active state. */
|
|
204
229
|
get active() {
|
|
205
|
-
return
|
|
230
|
+
return T(this, B);
|
|
206
231
|
}
|
|
207
232
|
set active(a) {
|
|
208
|
-
|
|
233
|
+
h(this, B, a);
|
|
209
234
|
}
|
|
210
|
-
/**
|
|
235
|
+
/**
|
|
236
|
+
* A configured date which acts as the current date instead of the real current date.
|
|
237
|
+
* Only recommended for testing purposes.
|
|
238
|
+
*/
|
|
211
239
|
set now(a) {
|
|
212
|
-
this._now =
|
|
240
|
+
this._now = Xe.getValidDateOrNull(Xe.deserialize(a));
|
|
213
241
|
}
|
|
214
242
|
get now() {
|
|
215
243
|
return this._now ?? /* @__PURE__ */ new Date();
|
|
216
244
|
}
|
|
217
245
|
willUpdate(a) {
|
|
218
|
-
super.willUpdate(a), a.has("loadingTrip") &&
|
|
246
|
+
super.willUpdate(a), a.has("loadingTrip") && vt(this, "role", this.loadingTrip ? null : "rowgroup");
|
|
219
247
|
}
|
|
220
248
|
/** The skeleton render function for the loading state */
|
|
221
249
|
_renderSkeleton() {
|
|
222
|
-
return
|
|
250
|
+
return m`
|
|
223
251
|
<sbb-card size="l" class="sbb-loading">
|
|
224
|
-
${this.loadingPrice ?
|
|
252
|
+
${this.loadingPrice ? m`<sbb-card-badge class="sbb-loading__badge"></sbb-card-badge>` : u}
|
|
225
253
|
<div class="sbb-loading__wrapper">
|
|
226
254
|
<div class="sbb-loading__row"></div>
|
|
227
255
|
<div class="sbb-loading__row"></div>
|
|
@@ -231,192 +259,207 @@ let jt = (() => {
|
|
|
231
259
|
`;
|
|
232
260
|
}
|
|
233
261
|
_getRideLegs() {
|
|
234
|
-
|
|
262
|
+
var a, t;
|
|
263
|
+
return ((t = (a = this.trip) == null ? void 0 : a.legs) == null ? void 0 : t.filter((l) => dt(l))) ?? [];
|
|
235
264
|
}
|
|
236
265
|
_getQuayTypeStrings() {
|
|
237
|
-
|
|
266
|
+
var $, o;
|
|
267
|
+
if (!(($ = this.trip.summary) != null && $.product))
|
|
238
268
|
return null;
|
|
239
|
-
const a = this._getRideLegs(),
|
|
269
|
+
const a = this._getRideLegs(), l = ((o = this.trip.summary.product) == null ? void 0 : o.vehicleMode) === "TRAIN" ? a[0].serviceJourney.quayTypeShortName || "" : a[0].serviceJourney.quayTypeName || "";
|
|
240
270
|
return {
|
|
241
|
-
long:
|
|
242
|
-
short:
|
|
271
|
+
long: xt[this._language.current] + " " + l,
|
|
272
|
+
short: l
|
|
243
273
|
};
|
|
244
274
|
}
|
|
245
275
|
/** map Quay */
|
|
246
276
|
_renderQuayType() {
|
|
247
|
-
|
|
277
|
+
var t;
|
|
278
|
+
if (!((t = this.trip.summary) != null && t.product))
|
|
248
279
|
return;
|
|
249
280
|
const a = this._getQuayTypeStrings();
|
|
250
|
-
return
|
|
281
|
+
return m`
|
|
251
282
|
<span class="sbb-timetable__row--quay">
|
|
252
|
-
<span class="sbb-screen-reader-only">${a
|
|
283
|
+
<span class="sbb-screen-reader-only">${a == null ? void 0 : a.long} </span>
|
|
253
284
|
<span class="sbb-timetable__row--quay-type" aria-hidden="true"
|
|
254
|
-
>${a
|
|
285
|
+
>${a == null ? void 0 : a.short}</span
|
|
255
286
|
>
|
|
256
287
|
</span>
|
|
257
288
|
`;
|
|
258
289
|
}
|
|
259
290
|
_handleHimCus(a) {
|
|
260
|
-
|
|
291
|
+
var o;
|
|
292
|
+
const { situations: t } = a || {}, l = t && St(t), $ = Pt(a, this._language.current);
|
|
261
293
|
return {
|
|
262
|
-
cus: Object.keys(
|
|
263
|
-
him:
|
|
294
|
+
cus: (o = Object.keys($)) != null && o.length ? $ : null,
|
|
295
|
+
him: t != null && t.length ? Ot(l[0]) : null
|
|
264
296
|
};
|
|
265
297
|
}
|
|
266
298
|
_getAccessibilityText(a) {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
299
|
+
var Se, Oe, Pe, De, Fe, Be, qe, Ue, We, je, Je, He;
|
|
300
|
+
const { summary: t, legs: l, notices: $ } = a || {}, { departureWalk: o, arrivalWalk: j, departure: f, arrival: g, product: y, direction: V, occupancy: c, duration: z } = t || {}, { departureTimeAttribute: v, arrivalTimeAttribute: q } = It(l, o || 0, j || 0, this._language.current, this.a11yFootpath), C = this._getRideLegs(), U = f != null && f.time ? rt(f.time) : void 0, W = g != null && g.time ? rt(g.time) : void 0, J = v ? `${v.text} ${v.duration}, ` : "", H = q ? `${q.text} ${q.duration}, ` : "", Q = U ? `${Ze[this._language.current]}: ${lt(U, "HH:mm")}, ` : "", K = () => {
|
|
301
|
+
var Z;
|
|
302
|
+
return f != null && f.quayFormatted ? `${f != null && f.quayChanged ? `${st[this._language.current]} ` : ""}${(Z = this._getQuayTypeStrings()) == null ? void 0 : Z.long} ${f == null ? void 0 : f.quayFormatted}, ` : "";
|
|
303
|
+
}, ee = y && y.vehicleMode ? G[y.vehicleMode.toLowerCase()] && `${G[y.vehicleMode.toLowerCase()][this._language.current]}, ` : "", Y = y != null && y.vehicleSubModeShortName ? `${y.vehicleSubModeShortName} ${y.line || ""}, ` : "", X = `${Ge[this._language.current]} ${V}, `, x = this._handleHimCus(a), Me = (Se = x == null ? void 0 : x.cus) != null && Se.text ? `${Ve[this._language.current]}: ${(Oe = x == null ? void 0 : x.cus) == null ? void 0 : Oe.text}, ` : "", ht = (Pe = x == null ? void 0 : x.him) != null && Pe.text ? `${Ve[this._language.current]}: ${(De = x == null ? void 0 : x.him) == null ? void 0 : De.text}, ` : "", gt = this.boarding ? `${this.boarding.text}, ` : "", mt = `${(Fe = this.price) != null && Fe.isDiscount ? et[this._language.current] : ""} ${(Be = this.price) != null && Be.text && ((qe = this.price) != null && qe.price) ? (((Ue = this.price) == null ? void 0 : Ue.text) || "") + " " + (((We = this.price) == null ? void 0 : We.price) || "") + ", " : ""}`, pt = C.length > 2 ? `${C.length - 1} ${wt[this._language.current]}, ` : C.length > 1 ? `${C.length - 1} ${$t[this._language.current]}, ` : "", _t = W ? `${Tt[this._language.current]}: ${lt(W, "HH:mm")}, ` : "";
|
|
304
|
+
let te = "";
|
|
305
|
+
c && (c.firstClass && c.firstClass !== "UNKNOWN" && (te += `${tt.first[this._language.current]} ${(je = at[c.firstClass.toLowerCase()]) == null ? void 0 : je[this._language.current]}.`), c.secondClass && c.secondClass !== "UNKNOWN" && (te += ` ${tt.second[this._language.current]} ${(Je = at[c.secondClass.toLowerCase()]) == null ? void 0 : Je[this._language.current]}.`));
|
|
306
|
+
const Ee = $ && ae($).length && ((He = ae($)) == null ? void 0 : He.map((k, Z) => {
|
|
307
|
+
var Qe;
|
|
308
|
+
return Z < 4 && ((Qe = k.text) == null ? void 0 : Qe.template);
|
|
309
|
+
}).join(", ")) + ", ", ut = Ee ? `${At[this._language.current]}: ${Ee}` : "", ft = z && z > 0 ? `${it[this._language.current]} ${nt(z, this._language.current).long}, ` : "";
|
|
271
310
|
return [
|
|
311
|
+
J,
|
|
272
312
|
Q,
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
].map((N) => N?.trim()).filter((N) => N && N.length > 0).join(" ");
|
|
313
|
+
K(),
|
|
314
|
+
ee,
|
|
315
|
+
Y,
|
|
316
|
+
X,
|
|
317
|
+
Me,
|
|
318
|
+
gt,
|
|
319
|
+
mt,
|
|
320
|
+
Me ? "" : ht,
|
|
321
|
+
_t,
|
|
322
|
+
H,
|
|
323
|
+
ft,
|
|
324
|
+
pt,
|
|
325
|
+
te,
|
|
326
|
+
ut
|
|
327
|
+
].map((k) => k == null ? void 0 : k.trim()).filter((k) => k && k.length > 0).join(" ");
|
|
289
328
|
}
|
|
290
329
|
render() {
|
|
330
|
+
var W, J, H, Q;
|
|
291
331
|
if (this.loadingTrip)
|
|
292
332
|
return this._renderSkeleton();
|
|
293
|
-
const { legs: a, id:
|
|
294
|
-
return
|
|
295
|
-
<sbb-card size="l" id=${
|
|
333
|
+
const { legs: a, id: t, notices: l, summary: $ } = this.trip || {}, { product: o, direction: j, departureWalk: f, departure: g, arrival: y, arrivalWalk: V, occupancy: c, duration: z } = $ || {}, v = this._handleHimCus(this.trip), q = !!v.cus || !!v.him, C = l && ae(l), U = z ? nt(z, this._language.current) : null;
|
|
334
|
+
return m`
|
|
335
|
+
<sbb-card size="l" id=${t}>
|
|
296
336
|
<sbb-card-button
|
|
297
337
|
?active=${this.active}
|
|
298
|
-
aria-expanded=${this.accessibilityExpanded ? "true" :
|
|
338
|
+
aria-expanded=${this.accessibilityExpanded ? "true" : u}
|
|
299
339
|
>
|
|
300
340
|
${this.cardActionLabel ? this.cardActionLabel : this._getAccessibilityText(this.trip)}
|
|
301
341
|
</sbb-card-button>
|
|
302
|
-
${this.loadingPrice ?
|
|
303
|
-
${this.price && !this.loadingPrice ?
|
|
304
|
-
${this.price.isDiscount ?
|
|
342
|
+
${this.loadingPrice ? m`<sbb-card-badge class="sbb-loading__badge"></sbb-card-badge>` : u}
|
|
343
|
+
${this.price && !this.loadingPrice ? m`<sbb-card-badge color=${this.price.isDiscount ? "charcoal" : "white"}>
|
|
344
|
+
${this.price.isDiscount ? m`<span aria-hidden="true">
|
|
305
345
|
%<span class="sbb-screen-reader-only"
|
|
306
|
-
>${
|
|
346
|
+
>${et[this._language.current]}</span
|
|
307
347
|
>
|
|
308
|
-
</span>` :
|
|
309
|
-
${this.price.text ?
|
|
310
|
-
${this.price.price ?
|
|
311
|
-
</sbb-card-badge>` :
|
|
348
|
+
</span>` : u}
|
|
349
|
+
${this.price.text ? m`<span>${this.price.text}</span>` : u}
|
|
350
|
+
${this.price.price ? m`<span>${this.price.price}</span>` : u}
|
|
351
|
+
</sbb-card-badge>` : u}
|
|
312
352
|
<div class="sbb-timetable__row" role="row">
|
|
313
353
|
<div class="sbb-timetable__row-header" role="gridcell">
|
|
314
354
|
<div class="sbb-timetable__row-details">
|
|
315
|
-
${
|
|
355
|
+
${(o == null ? void 0 : o.corporateIdentityPictogram) && m`<span class="sbb-timetable__row-transport-wrapper">
|
|
316
356
|
<sbb-icon
|
|
317
357
|
class="sbb-timetable__row-transport-icon"
|
|
318
|
-
name="picto:${
|
|
358
|
+
name="picto:${o.corporateIdentityPictogram}"
|
|
319
359
|
></sbb-icon>
|
|
320
360
|
<span class="sbb-screen-reader-only">
|
|
321
|
-
${
|
|
361
|
+
${o && o.vehicleMode && G[o.vehicleMode.toLowerCase()] && G[o.vehicleMode.toLowerCase()][this._language.current]}
|
|
322
362
|
|
|
323
363
|
</span>
|
|
324
364
|
</span>`}
|
|
325
|
-
${
|
|
365
|
+
${o && (o.corporateIdentityIcon ? Rt(o.corporateIdentityIcon, o.name) : o.vehicleSubModeShortName && Mt(o.vehicleSubModeShortName, o == null ? void 0 : o.line))}
|
|
326
366
|
</div>
|
|
327
|
-
${
|
|
367
|
+
${j ? m`<p>${`${Ge[this._language.current]} ${j}`}</p>` : u}
|
|
328
368
|
</div>
|
|
329
369
|
<sbb-pearl-chain-time
|
|
330
370
|
role="gridcell"
|
|
331
371
|
.legs=${a}
|
|
332
|
-
.departureTime=${
|
|
333
|
-
.arrivalTime=${
|
|
334
|
-
.departureWalk=${
|
|
335
|
-
.arrivalWalk=${
|
|
372
|
+
.departureTime=${g == null ? void 0 : g.time}
|
|
373
|
+
.arrivalTime=${y == null ? void 0 : y.time}
|
|
374
|
+
.departureWalk=${f}
|
|
375
|
+
.arrivalWalk=${V}
|
|
336
376
|
?disable-animation=${this.disableAnimation}
|
|
337
377
|
?a11y-footpath=${this.a11yFootpath}
|
|
338
378
|
.now=${this.now}
|
|
339
379
|
></sbb-pearl-chain-time>
|
|
340
380
|
<div class="sbb-timetable__row-footer" role="gridcell">
|
|
341
|
-
${
|
|
342
|
-
class=${
|
|
381
|
+
${o && (g != null && g.quayFormatted) ? m`<span
|
|
382
|
+
class=${g != null && g.quayChanged ? "sbb-timetable__row-quay--changed" : u}
|
|
343
383
|
>
|
|
344
384
|
<span class="sbb-screen-reader-only">
|
|
345
|
-
${`${
|
|
385
|
+
${`${Ze[this._language.current]} ${g != null && g.quayChanged ? st[this._language.current] : ""}`}
|
|
346
386
|
|
|
347
387
|
</span>
|
|
348
|
-
${this._renderQuayType()} ${
|
|
349
|
-
</span>` :
|
|
350
|
-
${
|
|
351
|
-
.firstClassOccupancy=${
|
|
352
|
-
.secondClassOccupancy=${
|
|
353
|
-
></sbb-timetable-occupancy>` :
|
|
354
|
-
${
|
|
355
|
-
${
|
|
388
|
+
${this._renderQuayType()} ${g == null ? void 0 : g.quayFormatted}
|
|
389
|
+
</span>` : u}
|
|
390
|
+
${c != null && c.firstClass && (c == null ? void 0 : c.firstClass) !== "UNKNOWN" || c != null && c.secondClass && c.secondClass !== "UNKNOWN" ? m`<sbb-timetable-occupancy
|
|
391
|
+
.firstClassOccupancy=${(W = c == null ? void 0 : c.firstClass) == null ? void 0 : W.toLowerCase()}
|
|
392
|
+
.secondClassOccupancy=${(J = c == null ? void 0 : c.secondClass) == null ? void 0 : J.toLowerCase()}
|
|
393
|
+
></sbb-timetable-occupancy>` : u}
|
|
394
|
+
${C && C.length || this.boarding ? m`<ul class="sbb-timetable__row-hints" role="list">
|
|
395
|
+
${C == null ? void 0 : C.map((K, ee) => {
|
|
396
|
+
var Y, X;
|
|
397
|
+
return ee < 4 ? m`<li>
|
|
356
398
|
<sbb-icon
|
|
357
399
|
class="sbb-travel-hints__item"
|
|
358
|
-
name=${"sa-" +
|
|
400
|
+
name=${"sa-" + ((Y = K.name) == null ? void 0 : Y.toLowerCase())}
|
|
359
401
|
></sbb-icon>
|
|
360
|
-
<span class="sbb-screen-reader-only">${
|
|
361
|
-
</li>` :
|
|
362
|
-
|
|
402
|
+
<span class="sbb-screen-reader-only">${(X = K.text) == null ? void 0 : X.template}</span>
|
|
403
|
+
</li>` : u;
|
|
404
|
+
})}
|
|
405
|
+
${this.boarding ? m`<li>
|
|
363
406
|
<sbb-icon
|
|
364
407
|
class="sbb-travel-hints__item"
|
|
365
|
-
name=${this.boarding
|
|
366
|
-
aria-label=${this.boarding
|
|
408
|
+
name=${(H = this.boarding) == null ? void 0 : H.name}
|
|
409
|
+
aria-label=${(Q = this.boarding) == null ? void 0 : Q.text}
|
|
367
410
|
aria-hidden="false"
|
|
368
411
|
></sbb-icon>
|
|
369
|
-
</li>` :
|
|
370
|
-
</ul>` :
|
|
371
|
-
${
|
|
412
|
+
</li>` : u}
|
|
413
|
+
</ul>` : u}
|
|
414
|
+
${z && z > 0 ? m`<time>
|
|
372
415
|
<span class="sbb-screen-reader-only">
|
|
373
|
-
${`${
|
|
416
|
+
${`${it[this._language.current]} ${U.long}`}
|
|
374
417
|
</span>
|
|
375
|
-
<span aria-hidden="true">${
|
|
376
|
-
</time>` :
|
|
377
|
-
${q && (
|
|
378
|
-
<sbb-icon name=${(
|
|
379
|
-
<span class="sbb-screen-reader-only">${(
|
|
380
|
-
</span>` :
|
|
418
|
+
<span aria-hidden="true">${U.short}</span>
|
|
419
|
+
</time>` : u}
|
|
420
|
+
${q && (v.cus || v.him) ? m`<span class="sbb-timetable__row-warning">
|
|
421
|
+
<sbb-icon name=${(v.cus || v.him).name}></sbb-icon>
|
|
422
|
+
<span class="sbb-screen-reader-only">${(v.cus || v.him).text}</span>
|
|
423
|
+
</span>` : u}
|
|
381
424
|
</div>
|
|
382
425
|
</div>
|
|
383
426
|
</sbb-card>
|
|
384
427
|
`;
|
|
385
428
|
}
|
|
386
|
-
},
|
|
387
|
-
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
} }, metadata: a },
|
|
391
|
-
|
|
392
|
-
} }, metadata: a },
|
|
393
|
-
|
|
394
|
-
} }, metadata: a },
|
|
395
|
-
|
|
396
|
-
} }, metadata: a },
|
|
397
|
-
|
|
398
|
-
} }, metadata: a },
|
|
399
|
-
|
|
400
|
-
} }, metadata: a },
|
|
401
|
-
|
|
402
|
-
} }, metadata: a },
|
|
403
|
-
|
|
404
|
-
} }, metadata: a },
|
|
405
|
-
|
|
406
|
-
} }, metadata: a },
|
|
407
|
-
|
|
408
|
-
} }, metadata: a },
|
|
409
|
-
|
|
410
|
-
} }, metadata: a }, null,
|
|
411
|
-
})(),
|
|
429
|
+
}, L = new WeakMap(), R = new WeakMap(), M = new WeakMap(), E = new WeakMap(), S = new WeakMap(), O = new WeakMap(), P = new WeakMap(), D = new WeakMap(), F = new WeakMap(), B = new WeakMap(), n = _, (() => {
|
|
430
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(b[Symbol.metadata] ?? null) : void 0;
|
|
431
|
+
p = [N({ type: Object })], re = [N({ type: Object })], oe = [I(), N({ attribute: "disable-animation", reflect: !0, type: Boolean })], de = [N({ type: Object })], me = [I(), N({ attribute: "loading-trip", type: Boolean })], ue = [I(), N({ attribute: "a11y-footpath", type: Boolean })], ve = [I(), N({ attribute: "loading-price", type: Boolean })], $e = [I(), N({ attribute: "card-action-label" })], Ne = [I(), N({ attribute: "accessibility-expanded", type: Boolean })], ze = [I(), N({ type: Boolean })], Re = [N()], w(_, null, p, { kind: "accessor", name: "trip", static: !1, private: !1, access: { has: (t) => "trip" in t, get: (t) => t.trip, set: (t, l) => {
|
|
432
|
+
t.trip = l;
|
|
433
|
+
} }, metadata: a }, ie, se), w(_, null, re, { kind: "accessor", name: "price", static: !1, private: !1, access: { has: (t) => "price" in t, get: (t) => t.price, set: (t, l) => {
|
|
434
|
+
t.price = l;
|
|
435
|
+
} }, metadata: a }, ne, le), w(_, null, oe, { kind: "accessor", name: "disableAnimation", static: !1, private: !1, access: { has: (t) => "disableAnimation" in t, get: (t) => t.disableAnimation, set: (t, l) => {
|
|
436
|
+
t.disableAnimation = l;
|
|
437
|
+
} }, metadata: a }, ce, be), w(_, null, de, { kind: "accessor", name: "boarding", static: !1, private: !1, access: { has: (t) => "boarding" in t, get: (t) => t.boarding, set: (t, l) => {
|
|
438
|
+
t.boarding = l;
|
|
439
|
+
} }, metadata: a }, he, ge), w(_, null, me, { kind: "accessor", name: "loadingTrip", static: !1, private: !1, access: { has: (t) => "loadingTrip" in t, get: (t) => t.loadingTrip, set: (t, l) => {
|
|
440
|
+
t.loadingTrip = l;
|
|
441
|
+
} }, metadata: a }, pe, _e), w(_, null, ue, { kind: "accessor", name: "a11yFootpath", static: !1, private: !1, access: { has: (t) => "a11yFootpath" in t, get: (t) => t.a11yFootpath, set: (t, l) => {
|
|
442
|
+
t.a11yFootpath = l;
|
|
443
|
+
} }, metadata: a }, fe, ye), w(_, null, ve, { kind: "accessor", name: "loadingPrice", static: !1, private: !1, access: { has: (t) => "loadingPrice" in t, get: (t) => t.loadingPrice, set: (t, l) => {
|
|
444
|
+
t.loadingPrice = l;
|
|
445
|
+
} }, metadata: a }, xe, we), w(_, null, $e, { kind: "accessor", name: "cardActionLabel", static: !1, private: !1, access: { has: (t) => "cardActionLabel" in t, get: (t) => t.cardActionLabel, set: (t, l) => {
|
|
446
|
+
t.cardActionLabel = l;
|
|
447
|
+
} }, metadata: a }, Te, Ae), w(_, null, Ne, { kind: "accessor", name: "accessibilityExpanded", static: !1, private: !1, access: { has: (t) => "accessibilityExpanded" in t, get: (t) => t.accessibilityExpanded, set: (t, l) => {
|
|
448
|
+
t.accessibilityExpanded = l;
|
|
449
|
+
} }, metadata: a }, Ce, ke), w(_, null, ze, { kind: "accessor", name: "active", static: !1, private: !1, access: { has: (t) => "active" in t, get: (t) => t.active, set: (t, l) => {
|
|
450
|
+
t.active = l;
|
|
451
|
+
} }, metadata: a }, Ie, Le), w(_, null, Re, { kind: "setter", name: "now", static: !1, private: !1, access: { has: (t) => "now" in t, set: (t, l) => {
|
|
452
|
+
t.now = l;
|
|
453
|
+
} }, metadata: a }, null, r), w(null, i = { value: n }, e, { kind: "class", name: n.name, metadata: a }, null, s), n = i.value, a && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
|
|
454
|
+
})(), _.styles = Lt, d(n, s), n;
|
|
412
455
|
})();
|
|
413
456
|
export {
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
457
|
+
ia as SbbTimetableRowElement,
|
|
458
|
+
Ft as filterNotices,
|
|
459
|
+
Pt as getCus,
|
|
460
|
+
Ot as getHimIcon,
|
|
461
|
+
ae as handleNotices,
|
|
462
|
+
Rt as renderIconProduct,
|
|
463
|
+
Mt as renderStringProduct,
|
|
464
|
+
St as sortSituation
|
|
422
465
|
};
|