@sbb-esta/lyne-elements-experimental-dev 4.7.0-dev.1773349433 → 4.7.0-dev.1773388997
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/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +65 -76
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +72 -52
- package/autocomplete-grid/autocomplete-grid-button.js +3 -6
- package/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +2 -17
- package/autocomplete-grid/autocomplete-grid-cell.js +4 -7
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +20 -21
- package/autocomplete-grid/autocomplete-grid-optgroup.js +3 -6
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +2 -33
- package/autocomplete-grid/autocomplete-grid-option.js +4 -9
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -22
- package/autocomplete-grid/autocomplete-grid-row.js +4 -7
- package/autocomplete-grid/autocomplete-grid.js +3 -6
- package/autocomplete-grid-cell.component-Dak9wlBr.js +24 -0
- package/autocomplete-grid-option.component-DNRFHOwc.js +37 -0
- package/autocomplete-grid-row.component-DBHZQ0GQ.js +27 -0
- package/autocomplete-grid.js +9 -21
- package/autocomplete-grid.pure.js +7 -15
- package/core/datetime/date-helper.js +2 -191
- package/core/datetime.js +2 -5
- package/core/timetable/access-leg-helper.js +76 -71
- package/core/timetable/timetable-helper.js +9 -11
- package/core/timetable/timetable-properties.js +0 -1
- package/core/timetable.js +3 -7
- package/date-helper-CGproP5d.js +185 -0
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +114 -122
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +92 -70
- package/development/autocomplete-grid/autocomplete-grid-button.js +6 -4
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +2 -29
- package/development/autocomplete-grid/autocomplete-grid-cell.js +7 -5
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +27 -22
- package/development/autocomplete-grid/autocomplete-grid-optgroup.js +6 -4
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +2 -109
- package/development/autocomplete-grid/autocomplete-grid-option.js +7 -7
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -91
- package/development/autocomplete-grid/autocomplete-grid-row.js +7 -5
- package/development/autocomplete-grid/autocomplete-grid.js +6 -4
- package/development/autocomplete-grid-cell.component-BBvM4o2H.js +42 -0
- package/development/autocomplete-grid-option.component-QzfM5eIE.js +123 -0
- package/development/autocomplete-grid-row.component-H8sCTCkT.js +104 -0
- package/development/autocomplete-grid.js +10 -14
- package/development/autocomplete-grid.pure.js +4 -13
- package/development/core/datetime/date-helper.js +2 -285
- package/development/core/datetime.js +2 -6
- package/development/core/timetable/access-leg-helper.js +104 -82
- package/development/core/timetable/timetable-helper.js +16 -17
- package/development/core/timetable/timetable-properties.js +0 -2
- package/development/core/timetable.js +3 -8
- package/development/date-helper-8_Y-PuHh.js +520 -0
- package/development/differenceInMinutes-DN_1Rk3O.js +110 -0
- package/development/format-Bbrn2bgo.js +1848 -0
- package/development/isValid-C-HzKv4v.js +178 -0
- package/development/journey-summary/journey-summary.component.js +2 -288
- package/development/journey-summary.component-uGhZvA4p.js +385 -0
- package/development/journey-summary.js +8 -5
- package/development/journey-summary.pure.js +2 -5
- package/development/pearl-chain/pearl-chain.component.js +2 -634
- package/development/pearl-chain-time/pearl-chain-time.component.js +2 -306
- package/development/pearl-chain-time.component-B8mayTWD.js +415 -0
- package/development/pearl-chain-time.js +8 -5
- package/development/pearl-chain-time.pure.js +2 -5
- package/development/pearl-chain-vertical/pearl-chain-vertical.component.js +2 -28
- package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +2 -393
- package/development/pearl-chain-vertical-item.component-BDzbcIaf.js +435 -0
- package/development/pearl-chain-vertical-item.js +8 -5
- package/development/pearl-chain-vertical-item.pure.js +2 -5
- package/development/pearl-chain-vertical.component-CswE7b3M.js +39 -0
- package/development/pearl-chain-vertical.js +8 -5
- package/development/pearl-chain-vertical.pure.js +2 -5
- package/development/pearl-chain.component-wpsTvoSe.js +704 -0
- package/development/pearl-chain.js +8 -5
- package/development/pearl-chain.pure.js +2 -5
- package/development/seat-reservation/common/mapper/icon-mapper.js +168 -71
- package/development/seat-reservation/common/mapper/mapper.js +153 -122
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-bus.js +570 -559
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-decks.js +992 -972
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-giruno.js +20334 -20367
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-others.js +1731 -1738
- package/development/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-train.js +9741 -9782
- package/development/seat-reservation/common/mapper.js +1 -8
- package/development/seat-reservation/common/svgs.js +2 -46
- package/development/seat-reservation/common/translations/i18n.js +1118 -900
- package/development/seat-reservation/common/translations.js +1 -4
- package/development/seat-reservation/common/types.js +0 -2
- package/development/seat-reservation/common.js +7 -11
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +1305 -1230
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +2 -859
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +2 -106
- package/development/seat-reservation/seat-reservation-area.js +7 -5
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +35 -34
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +2 -162
- package/development/seat-reservation/seat-reservation-graphic.js +7 -5
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -713
- package/development/seat-reservation/seat-reservation-navigation-coach.js +7 -5
- package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +2 -131
- package/development/seat-reservation/seat-reservation-navigation-services.js +7 -5
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +2 -601
- package/development/seat-reservation/seat-reservation-place-control.js +7 -5
- package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +2 -22
- package/development/seat-reservation/seat-reservation-scoped.js +7 -5
- package/development/seat-reservation/seat-reservation.js +7 -6
- package/development/seat-reservation-area.component-BK92ZtFo.js +138 -0
- package/development/seat-reservation-graphic.component-cUnsHh5x.js +193 -0
- package/development/seat-reservation-navigation-coach.component-D6Bglus8.js +828 -0
- package/development/seat-reservation-navigation-services.component-DYJ6Ddkg.js +179 -0
- package/development/seat-reservation-place-control.component-Bg9evKBW.js +726 -0
- package/development/seat-reservation-scoped.component-DRQ_I702.js +31 -0
- package/development/seat-reservation.component-Cq_aJKR0.js +818 -0
- package/development/seat-reservation.js +15 -28
- package/development/seat-reservation.pure.js +10 -28
- package/development/svgs-C3JMWR26.js +28 -0
- package/development/timetable-duration/timetable-duration.component.js +2 -108
- package/development/timetable-duration.component-DI0lET17.js +125 -0
- package/development/timetable-duration.js +8 -5
- package/development/timetable-duration.pure.js +2 -5
- package/development/timetable-row/timetable-row.component.js +2 -781
- package/development/timetable-row.component-CAED6Zwc.js +932 -0
- package/development/timetable-row.js +8 -13
- package/development/timetable-row.pure.js +2 -12
- package/development/toDate-Biiv3kyf.js +150 -0
- package/differenceInMinutes-Dr9gRqtu.js +27 -0
- package/format-CM5exOsN.js +1103 -0
- package/isValid-B9oVW3lA.js +36 -0
- package/journey-summary/journey-summary.component.js +2 -194
- package/journey-summary.component-Cq_4kaOp.js +264 -0
- package/journey-summary.js +5 -4
- package/journey-summary.pure.js +2 -4
- package/package.json +2 -2
- package/pearl-chain/pearl-chain.component.js +2 -165
- package/pearl-chain-time/pearl-chain-time.component.js +2 -157
- package/pearl-chain-time.component-DGDW5S1c.js +239 -0
- package/pearl-chain-time.js +5 -4
- package/pearl-chain-time.pure.js +2 -4
- package/pearl-chain-vertical/pearl-chain-vertical.component.js +2 -17
- package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +2 -77
- package/pearl-chain-vertical-item.component-G22bWhLU.js +108 -0
- package/pearl-chain-vertical-item.js +5 -4
- package/pearl-chain-vertical-item.pure.js +2 -4
- package/pearl-chain-vertical.component-CXIDT5RD.js +21 -0
- package/pearl-chain-vertical.js +5 -4
- package/pearl-chain-vertical.pure.js +2 -4
- package/pearl-chain.component-DmjkVIva.js +194 -0
- package/pearl-chain.js +5 -4
- package/pearl-chain.pure.js +2 -4
- package/seat-reservation/common/mapper/icon-mapper.js +71 -71
- package/seat-reservation/common/mapper/mapper.js +95 -89
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-bus.js +568 -558
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-decks.js +989 -970
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-giruno.js +20332 -20366
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-others.js +1729 -1737
- package/seat-reservation/common/mapper/sample-data/seat-reservation-sample-data-train.js +9739 -9781
- package/seat-reservation/common/mapper.js +3 -9
- package/seat-reservation/common/svgs.js +2 -243
- package/seat-reservation/common/translations/i18n.js +1084 -891
- package/seat-reservation/common/translations.js +2 -4
- package/seat-reservation/common/types.js +0 -1
- package/seat-reservation/common.js +9 -15
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +832 -810
- package/seat-reservation/seat-reservation/seat-reservation.component.js +2 -420
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +2 -51
- package/seat-reservation/seat-reservation-area.js +4 -7
- package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +68 -71
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +2 -75
- package/seat-reservation/seat-reservation-graphic.js +4 -7
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +2 -234
- package/seat-reservation/seat-reservation-navigation-coach.js +4 -7
- package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +2 -85
- package/seat-reservation/seat-reservation-navigation-services.js +4 -7
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +2 -203
- package/seat-reservation/seat-reservation-place-control.js +4 -7
- package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +2 -13
- package/seat-reservation/seat-reservation-scoped.js +4 -7
- package/seat-reservation/seat-reservation.js +5 -9
- package/seat-reservation-area.component-n-9rGn_y.js +75 -0
- package/seat-reservation-graphic.component-YTXRmKt0.js +102 -0
- package/seat-reservation-navigation-coach.component-YJ0vaYmO.js +333 -0
- package/seat-reservation-navigation-services.component-C3xnLJg2.js +127 -0
- package/seat-reservation-place-control.component-DmBAfM6K.js +322 -0
- package/seat-reservation-scoped.component-DPkz6u17.js +17 -0
- package/seat-reservation.component-C_anMkgw.js +364 -0
- package/seat-reservation.js +17 -39
- package/seat-reservation.pure.js +15 -32
- package/svgs-D9arBcqr.js +26 -0
- package/timetable-duration/timetable-duration.component.js +2 -57
- package/timetable-duration.component-DCu8Phts.js +65 -0
- package/timetable-duration.js +5 -4
- package/timetable-duration.pure.js +2 -4
- package/timetable-row/timetable-row.component.js +2 -427
- package/timetable-row.component-BVRCB3xK.js +559 -0
- package/timetable-row.js +6 -13
- package/timetable-row.pure.js +2 -11
- package/toDate-p-Tpkb7t.js +16 -0
- package/development/differenceInMinutes-B0dawX-5.js +0 -26
- package/development/format-BMkeaqaF.js +0 -1433
- package/development/isValid-BYRch7pV.js +0 -53
- package/development/toDate-BWb6Z1JD.js +0 -24
- package/differenceInMinutes-COvvdYsJ.js +0 -23
- package/format-CmKROkbc.js +0 -1186
- package/isValid-m3_OsPaB.js +0 -45
- package/toDate-Bw2KTWeq.js +0 -15
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { svgs as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
export {
|
|
71
|
-
E as mapIconToSvg
|
|
1
|
+
import { svgs as e } from "../svgs.js";
|
|
2
|
+
//#region src/elements-experimental/seat-reservation/common/mapper/icon-mapper.ts
|
|
3
|
+
var t = {
|
|
4
|
+
BICYCLE: { svgName: "sa-vo" },
|
|
5
|
+
BICYCLE_HIGH: { svgName: "sa-vo" },
|
|
6
|
+
BICYCLE_HIGH_ICON: { svgName: "sa-vo" },
|
|
7
|
+
BICYCLE_ICON: { svgName: "sa-vo" },
|
|
8
|
+
BICYCLE_LOW: { svgName: "sa-vo" },
|
|
9
|
+
BICYCLE_LOW_ICON: { svgName: "sa-vo" },
|
|
10
|
+
BICYCLE_MIDDLE: { svgName: "sa-vo" },
|
|
11
|
+
BICYCLE_MIDDLE_ICON: { svgName: "sa-vo" },
|
|
12
|
+
BISTRO: { svgName: "sa-mi" },
|
|
13
|
+
BISTRO_ICON: { svgName: "sa-mi" },
|
|
14
|
+
BUSINESS: { svgName: "sa-bz" },
|
|
15
|
+
BUSINESS_COMFORT: { svgName: "sa-bz" },
|
|
16
|
+
BUSINESS_ICON: { svgName: "sa-bz" },
|
|
17
|
+
COACH_BORDER_MIDDLE: { svg: e.chassisRowMiddle },
|
|
18
|
+
COACH_WALL_NO_PASSAGE: { svg: e.chassisRowOuter },
|
|
19
|
+
COACH_PASSAGE: { svg: e.chassisPassageWaggonTopLeft },
|
|
20
|
+
COMPARTMENT_PASSAGE: { svg: e.chassisPassageCompartmentMiddle },
|
|
21
|
+
COMPARTMENT_PASSAGE_HIGH: { svg: e.chassisPassageCompartmentLeftTop },
|
|
22
|
+
COMPARTMENT_PASSAGE_LOW: { svg: e.chassisPassageCompartmentRightBottom },
|
|
23
|
+
COMPARTMENT_WALL: { svg: e.chassisSeparator },
|
|
24
|
+
DRIVER_AREA: { svg: e.chassisDriverTrain },
|
|
25
|
+
DRIVER_AREA_BUS: { svg: e.chassisDriverBus },
|
|
26
|
+
DRIVER_AREA_TRAIN: { svg: e.chassisDriverTrainFull },
|
|
27
|
+
DRIVER_AREA_NO_VERTICAL_WALL: { svg: e.chassisDriverTrain },
|
|
28
|
+
EASY_ACCESS: { svgName: "sa-em" },
|
|
29
|
+
EASY_ACCESS_AREA: { svgName: "sa-em" },
|
|
30
|
+
EASY_ACCESS_ICON: { svgName: "sa-em" },
|
|
31
|
+
ENTRY_EXIT: { svg: e.layoutEntrance },
|
|
32
|
+
FAMILY: { svgName: "sa-fa" },
|
|
33
|
+
LUGGAGE_AREA: { svgName: "sa-ga" },
|
|
34
|
+
LUGGAGE_ICON: { svgName: "sa-ga" },
|
|
35
|
+
MULTI_FUNCTION_AREA: { svgName: "sa-mf" },
|
|
36
|
+
MULTI_FUNCTION_ICON: { svgName: "sa-mf" },
|
|
37
|
+
PLACE_BICYCLE_ALLOCATED: { svg: e.interiorPlaceBikeUnavailable },
|
|
38
|
+
PLACE_BICYCLE_FREE: { svg: e.interiorPlaceBikeDefault },
|
|
39
|
+
PLACE_BICYCLE_RESTRICTED: { svg: e.interiorPlaceBikeNotBookable },
|
|
40
|
+
PLACE_BICYCLE_SELECTED: { svg: e.interiorPlaceBikeSelected },
|
|
41
|
+
PLACE_SEAT_ALLOCATED: { svg: e.interiorPlaceSeatUnavailable },
|
|
42
|
+
PLACE_SEAT_FREE: { svg: e.interiorPlaceSeatDefault },
|
|
43
|
+
PLACE_SEAT_RESTRICTED: { svg: e.interiorPlaceSeatNotBookable },
|
|
44
|
+
PLACE_SEAT_SELECTED: { svg: e.interiorPlaceSeatSelected },
|
|
45
|
+
PLAYGROUND_AREA: { svgName: "sa-fa" },
|
|
46
|
+
PLAYGROUND_ICON: { svgName: "sa-fa" },
|
|
47
|
+
PRAM: { svgName: "sa-abteilkinderwagen" },
|
|
48
|
+
PRAM_AREA: { svgName: "sa-abteilkinderwagen" },
|
|
49
|
+
PRAM_ICON: { svgName: "sa-abteilkinderwagen" },
|
|
50
|
+
RESTAURANT: { svgName: "sa-wr" },
|
|
51
|
+
RESTAURANT_AREA: { svgName: "sa-wr" },
|
|
52
|
+
RESTAURANT_ICON: { svgName: "sa-wr" },
|
|
53
|
+
SILENCE: { svgName: "sa-rz" },
|
|
54
|
+
SILENCE_AREA_ICON: { svgName: "sa-rz" },
|
|
55
|
+
SILENCE_ICON: { svgName: "sa-rz" },
|
|
56
|
+
SKI_AREA: { svgName: "sa-sa" },
|
|
57
|
+
SKI_ICON: { svgName: "sa-sa" },
|
|
58
|
+
STAFF_AREA: { svgName: "avatar-train-staff-medium" },
|
|
59
|
+
STAIR_AREA: { svgName: "sa-ac" },
|
|
60
|
+
TOILET_AREA: { svgName: "sa-wc" },
|
|
61
|
+
TOILET_ICON: { svgName: "sa-wc" },
|
|
62
|
+
TOILET_WHEELCHAIR_AREA: { svgName: "sa-rw" },
|
|
63
|
+
TOILET_WHEELCHAIR_ICON: { svgName: "sa-rw" },
|
|
64
|
+
WARDROBE_AREA: { svgName: "sa-ka" },
|
|
65
|
+
WHEELCHAIR: { svgName: "sa-rs" },
|
|
66
|
+
WHEELCHAIR_AND_SEAT: { svgName: "sa-rs" },
|
|
67
|
+
WHEELCHAIR_ICON: { svgName: "sa-rs" },
|
|
68
|
+
WHEELCHAIR_NO_SEAT: { svgName: "sa-rn" },
|
|
69
|
+
WIFI: { svgName: "sa-wv" }
|
|
72
70
|
};
|
|
71
|
+
//#endregion
|
|
72
|
+
export { t as mapIconToSvg };
|
|
@@ -1,91 +1,97 @@
|
|
|
1
|
-
import { MOCK_COACHES_RAW_BUS as
|
|
2
|
-
import { MOCK_COACHE_RAW_DECK_LOWER as
|
|
3
|
-
import { MOCK_COACHES_RAW_TRAIN as
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { MOCK_COACHES_RAW_BUS as e } from "./sample-data/seat-reservation-sample-data-bus.js";
|
|
2
|
+
import { MOCK_COACHE_RAW_DECK_LOWER as t, MOCK_COACHE_RAW_DECK_UPPPER as n } from "./sample-data/seat-reservation-sample-data-decks.js";
|
|
3
|
+
import { MOCK_COACHES_RAW_TRAIN as r } from "./sample-data/seat-reservation-sample-data-train.js";
|
|
4
|
+
//#region src/elements-experimental/seat-reservation/common/mapper/mapper.ts
|
|
5
|
+
function i(i, a) {
|
|
6
|
+
return i === null ? a === "LOWER_DECK" ? t : a === "UPPER_DECK" ? n : r : i === "TRAIN" ? r : e;
|
|
6
7
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
8
|
+
var a = (e, t = null) => {
|
|
9
|
+
let n = i(e, t), r = t === "LOWER_DECK" ? 1 : 0, a = n.map((e) => {
|
|
10
|
+
let t = e?.coachDeckLayout, n = [], r = [], i = t.placeGroups.map((e) => (n.indexOf(e.travelClass) === -1 && n.push(e.travelClass), r.indexOf(e.accommodationSubType) === -1 && r.push(e.accommodationSubType), e.places?.map((t) => ({
|
|
11
|
+
number: t?.number,
|
|
12
|
+
state: t?.state,
|
|
13
|
+
type: e.accommodationSubType.indexOf("BICYCLE") === -1 ? "SEAT" : "BICYCLE",
|
|
14
|
+
dimension: {
|
|
15
|
+
w: t.rectangle.dimension.width,
|
|
16
|
+
h: t.rectangle.dimension.height
|
|
17
|
+
},
|
|
18
|
+
position: {
|
|
19
|
+
x: t.rectangle.position.x,
|
|
20
|
+
y: t.rectangle.position.y,
|
|
21
|
+
z: t.rectangle.position.z
|
|
22
|
+
},
|
|
23
|
+
rotation: t?.orientation || 0,
|
|
24
|
+
travelClass: e?.travelClass,
|
|
25
|
+
propertyIds: t.placeProperties || []
|
|
26
|
+
})))).flat(), a = t.serviceIcons.map((e) => ({
|
|
27
|
+
icon: e.type,
|
|
28
|
+
position: {
|
|
29
|
+
x: e.rectangle.position.x,
|
|
30
|
+
y: e.rectangle.position.y,
|
|
31
|
+
z: e.rectangle.position.z
|
|
32
|
+
},
|
|
33
|
+
dimension: {
|
|
34
|
+
w: e.rectangle.dimension.width,
|
|
35
|
+
h: e.rectangle.dimension.height
|
|
36
|
+
}
|
|
37
|
+
})), o = t.graphicElements.map((e) => ({
|
|
38
|
+
icon: e?.type,
|
|
39
|
+
position: {
|
|
40
|
+
x: e.rectangle.position.x,
|
|
41
|
+
y: e.rectangle.position.y,
|
|
42
|
+
z: e.rectangle.position.z
|
|
43
|
+
},
|
|
44
|
+
dimension: {
|
|
45
|
+
w: e.rectangle.dimension.width,
|
|
46
|
+
h: e.rectangle.dimension.height
|
|
47
|
+
},
|
|
48
|
+
rotation: e.orientation
|
|
49
|
+
}));
|
|
50
|
+
return {
|
|
51
|
+
id: t?.id,
|
|
52
|
+
number: t?.name,
|
|
53
|
+
dimension: {
|
|
54
|
+
w: t.dimension?.width,
|
|
55
|
+
h: t.dimension?.height
|
|
56
|
+
},
|
|
57
|
+
places: i,
|
|
58
|
+
serviceElements: a,
|
|
59
|
+
graphicElements: o,
|
|
60
|
+
travelClass: n,
|
|
61
|
+
propertyIds: r
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
return {
|
|
65
|
+
vehicleType: e || "TRAIN",
|
|
66
|
+
deckCoachIndex: r,
|
|
67
|
+
deckCoachLevel: "SINGLE_DECK",
|
|
68
|
+
coachItems: a
|
|
69
|
+
};
|
|
70
|
+
}, o = (e, t, n, r) => ({
|
|
71
|
+
id: t,
|
|
72
|
+
number: e.number,
|
|
73
|
+
deckIndex: n,
|
|
74
|
+
coachIndex: r,
|
|
75
|
+
state: e.state,
|
|
76
|
+
placeType: e.type
|
|
77
|
+
}), s = (e, t, n, r, i) => ({
|
|
78
|
+
id: n,
|
|
79
|
+
coachId: t.id,
|
|
80
|
+
coachNumber: t.number,
|
|
81
|
+
coachIndex: i,
|
|
82
|
+
deckIndex: r,
|
|
83
|
+
placeNumber: e.number,
|
|
84
|
+
placeType: e.type,
|
|
85
|
+
placeTravelClass: e.travelClass || "ANY_CLASS",
|
|
86
|
+
propertyIds: e.propertyIds || []
|
|
87
|
+
}), c = (e, t, n) => ({
|
|
88
|
+
coachId: t.id,
|
|
89
|
+
coachNumber: t.number,
|
|
90
|
+
coachIndex: e,
|
|
91
|
+
coachType: t?.type,
|
|
92
|
+
coachTravelClass: t?.travelClass,
|
|
93
|
+
coachPropertyIds: t?.propertyIds,
|
|
94
|
+
coachNumberOfFreePlaces: n
|
|
85
95
|
});
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
O as mapPlaceAndCoachToSeatReservationPlaceSelection,
|
|
89
|
-
f as mapPlaceInfosToPlaceSelection,
|
|
90
|
-
I as mapRawDataToSeatReservation
|
|
91
|
-
};
|
|
96
|
+
//#endregion
|
|
97
|
+
export { c as mapCoachInfosToCoachSelection, s as mapPlaceAndCoachToSeatReservationPlaceSelection, o as mapPlaceInfosToPlaceSelection, a as mapRawDataToSeatReservation };
|