@sbb-esta/lyne-elements-experimental 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +341 -125
- package/development/seat-reservation/common/mapper/icon-mapper.d.ts.map +1 -1
- package/development/seat-reservation/common/mapper/icon-mapper.js +4 -3
- package/development/seat-reservation/common/mapper/mapper.d.ts +4 -4
- package/development/seat-reservation/common/mapper/mapper.d.ts.map +1 -1
- package/development/seat-reservation/common/mapper/mapper.js +9 -8
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts +113 -0
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts.map +1 -1
- package/development/seat-reservation/common/mapper/seat-reservation-sample-data.js +20373 -8
- package/development/seat-reservation/common/translations/i18n.d.ts.map +1 -1
- package/development/seat-reservation/common/translations/i18n.js +35 -4
- package/development/seat-reservation/common/types.d.ts +10 -3
- package/development/seat-reservation/common/types.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +20 -14
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +129 -79
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +11 -10
- package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation/seat-reservation.component.js +208 -132
- package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +4 -4
- package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +28 -28
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +2 -0
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
- package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +22 -5
- package/package.json +2 -2
- package/seat-reservation/common/mapper/icon-mapper.d.ts.map +1 -1
- package/seat-reservation/common/mapper/icon-mapper.js +3 -2
- package/seat-reservation/common/mapper/mapper.d.ts +4 -4
- package/seat-reservation/common/mapper/mapper.d.ts.map +1 -1
- package/seat-reservation/common/mapper/mapper.js +29 -28
- package/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts +113 -0
- package/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts.map +1 -1
- package/seat-reservation/common/mapper/seat-reservation-sample-data.js +20375 -11
- package/seat-reservation/common/translations/i18n.d.ts.map +1 -1
- package/seat-reservation/common/translations/i18n.js +34 -3
- package/seat-reservation/common/types.d.ts +10 -3
- package/seat-reservation/common/types.d.ts.map +1 -1
- package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +20 -14
- package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
- package/seat-reservation/seat-reservation/seat-reservation-base-element.js +191 -146
- package/seat-reservation/seat-reservation/seat-reservation.component.d.ts +11 -10
- package/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
- package/seat-reservation/seat-reservation/seat-reservation.component.js +211 -188
- package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +1 -1
- package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +1 -1
- package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +74 -74
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +2 -0
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
- package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +64 -53
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../../src/elements-experimental/seat-reservation/common/translations/i18n.ts"],"names":[],"mappings":"AAAA;;;;;;;;;qHASqH;
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../../src/elements-experimental/seat-reservation/common/translations/i18n.ts"],"names":[],"mappings":"AAAA;;;;;;;;;qHASqH;AA4erH;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GAAI,KAAK,MAAM,EAAE,UAAU,MAAM,EAAE,OAAO,GAAG,EAAE,KAAG,MAMpF,CAAC"}
|
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
const s = {
|
|
2
2
|
// BASICS
|
|
3
|
+
// COACH DECK LABEL DESCRIPTIONS
|
|
4
|
+
SINGLE_DECK: {
|
|
5
|
+
de: "Einzeldeck",
|
|
6
|
+
en: "Single deck",
|
|
7
|
+
fr: "Étage unique",
|
|
8
|
+
it: "Piano singolo"
|
|
9
|
+
},
|
|
10
|
+
LOWER_DECK: {
|
|
11
|
+
de: "Unterdeck",
|
|
12
|
+
en: "Lower deck",
|
|
13
|
+
fr: "Salle basse",
|
|
14
|
+
it: "Sala bassa"
|
|
15
|
+
},
|
|
16
|
+
MIDDLE_DECK: {
|
|
17
|
+
de: "Mitteldeck",
|
|
18
|
+
en: "Middle deck",
|
|
19
|
+
fr: "Niveau du milieu",
|
|
20
|
+
it: "Livello centrale"
|
|
21
|
+
},
|
|
22
|
+
UPPER_DECK: {
|
|
23
|
+
de: "Oberdeck",
|
|
24
|
+
en: "Upper deck",
|
|
25
|
+
fr: "Salle haute",
|
|
26
|
+
it: "Sala alta"
|
|
27
|
+
},
|
|
3
28
|
// CAPTION FOR SCREENREADER INSIDE WAGON
|
|
4
29
|
COACH_TABLE_CAPTION: {
|
|
5
30
|
de: "Wagen _param0_ selektiert",
|
|
@@ -34,9 +59,9 @@ const s = {
|
|
|
34
59
|
},
|
|
35
60
|
NAVIGATE_TO_COACH_SERVICE_CLASS_SUB: {
|
|
36
61
|
de: " mit _param0_ Abteil",
|
|
37
|
-
en: "with _param0_ compartment",
|
|
38
|
-
fr: "avec compartiment _param0_",
|
|
39
|
-
it: "con compartimento di _param0_"
|
|
62
|
+
en: " with _param0_ compartment",
|
|
63
|
+
fr: " avec compartiment _param0_",
|
|
64
|
+
it: " con compartimento di _param0_"
|
|
40
65
|
},
|
|
41
66
|
NAVIGATE_COACH_BLOCKED: {
|
|
42
67
|
de: "Zugabteil _param0_ ist nicht betretbar",
|
|
@@ -285,6 +310,12 @@ const s = {
|
|
|
285
310
|
fr: "Espace ski",
|
|
286
311
|
it: "Area sci"
|
|
287
312
|
},
|
|
313
|
+
STAFF_AREA: {
|
|
314
|
+
de: "Zugpersonal",
|
|
315
|
+
en: "en:Zugpersonal",
|
|
316
|
+
fr: "fr:Zugpersonal",
|
|
317
|
+
it: "it:Zugpersonal"
|
|
318
|
+
},
|
|
288
319
|
STAIR_AREA: {
|
|
289
320
|
de: "Treppenbereich",
|
|
290
321
|
en: "Stair area",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export type SeatReservation = {
|
|
3
3
|
vehicleType: VehicleType;
|
|
4
4
|
deckCoachIndex: number;
|
|
5
|
+
deckCoachLevel: CoachDeckLevel;
|
|
5
6
|
coachItems: CoachItem[];
|
|
6
7
|
};
|
|
7
8
|
/** Describes a coach (wagon) in the reservation. */
|
|
@@ -15,6 +16,7 @@ export type CoachItem = {
|
|
|
15
16
|
serviceElements?: BaseElement[];
|
|
16
17
|
travelClass: PlaceTravelClass[];
|
|
17
18
|
propertyIds?: string[];
|
|
19
|
+
driverAreaSide?: Record<string, boolean>;
|
|
18
20
|
};
|
|
19
21
|
/** Extends BaseElement with seat-specific data. */
|
|
20
22
|
export interface Place extends BaseElement {
|
|
@@ -22,9 +24,7 @@ export interface Place extends BaseElement {
|
|
|
22
24
|
state: PlaceState;
|
|
23
25
|
type: PlaceType;
|
|
24
26
|
travelClass?: PlaceTravelClass;
|
|
25
|
-
remarkId?: string;
|
|
26
27
|
propertyIds?: string[];
|
|
27
|
-
selected?: boolean;
|
|
28
28
|
}
|
|
29
29
|
/** Base properties for any renderable element within a coach. */
|
|
30
30
|
export type BaseElement = {
|
|
@@ -50,6 +50,7 @@ export type CoachNumberOfFreePlaces = {
|
|
|
50
50
|
export type PlaceSelection = {
|
|
51
51
|
id: string;
|
|
52
52
|
number: string;
|
|
53
|
+
deckIndex: number;
|
|
53
54
|
coachIndex: number;
|
|
54
55
|
state: PlaceState;
|
|
55
56
|
placeType: PlaceType;
|
|
@@ -59,12 +60,13 @@ export type SeatReservationPlaceSelection = {
|
|
|
59
60
|
coachId: string;
|
|
60
61
|
coachNumber: string;
|
|
61
62
|
coachIndex: number;
|
|
63
|
+
deckIndex: number;
|
|
62
64
|
placeNumber: string;
|
|
63
65
|
placeType: PlaceType;
|
|
64
66
|
placeTravelClass: PlaceTravelClass;
|
|
65
67
|
propertyIds: string[];
|
|
66
68
|
};
|
|
67
|
-
export type
|
|
69
|
+
export type SeatReservationSelectedCoach = {
|
|
68
70
|
coachId: string;
|
|
69
71
|
coachNumber: string;
|
|
70
72
|
coachIndex: number;
|
|
@@ -73,7 +75,12 @@ export type SeatReservationCoachSelection = {
|
|
|
73
75
|
coachPropertyIds?: string[];
|
|
74
76
|
coachNumberOfFreePlaces?: CoachNumberOfFreePlaces;
|
|
75
77
|
};
|
|
78
|
+
export type SeatReservationSelectedPlaces = {
|
|
79
|
+
seats: SeatReservationPlaceSelection[];
|
|
80
|
+
bicycles: SeatReservationPlaceSelection[];
|
|
81
|
+
};
|
|
76
82
|
export type PlaceType = 'SEAT' | 'BICYCLE';
|
|
83
|
+
export type CoachDeckLevel = 'SINGLE_DECK' | 'LOWER_DECK' | 'MIDDLE_DECK' | 'UPPER_DECK';
|
|
77
84
|
export type CoachType = 'RESTAURANT_COACH' | 'BICYCLE_COACH' | 'LUGGAGE_COACH' | 'TRAIN_HEAD';
|
|
78
85
|
export type PlaceState = 'FREE' | 'ALLOCATED' | 'RESTRICTED' | 'SELECTED';
|
|
79
86
|
export type PlaceTravelClass = 'FIRST' | 'SECOND' | 'ANY_CLASS';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/common/types.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,EAAE,WAAW,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB,CAAC;AAEF,oDAAoD;AACpD,MAAM,MAAM,SAAS,GAAG;IAEtB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,gBAAgB,CAAC;IAC5B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjB,eAAe,CAAC,EAAE,WAAW,EAAE,CAAC;IAChC,eAAe,CAAC,EAAE,WAAW,EAAE,CAAC;IAChC,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/common/types.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,EAAE,WAAW,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB,CAAC;AAEF,oDAAoD;AACpD,MAAM,MAAM,SAAS,GAAG;IAEtB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,gBAAgB,CAAC;IAC5B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjB,eAAe,CAAC,EAAE,WAAW,EAAE,CAAC;IAChC,eAAe,CAAC,EAAE,WAAW,EAAE,CAAC;IAChC,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,EAA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,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,EAAE,6BAA6B,EAAE,CAAC;IACvC,QAAQ,EAAE,6BAA6B,EAAE,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAC3C,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,YAAY,GAAG,aAAa,GAAG,YAAY,CAAC;AACzF,MAAM,MAAM,SAAS,GAAG,kBAAkB,GAAG,eAAe,GAAG,eAAe,GAAG,YAAY,CAAC;AAC9F,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,CAAC;AAC1E,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;AAChE,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,KAAK,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
import { CoachNumberOfFreePlaces, ElementDimension, ElementPosition, Place, PlaceSelection, SeatReservation,
|
|
2
|
+
import { CoachNumberOfFreePlaces, ElementDimension, ElementPosition, Place, PlaceSelection, SeatReservation, SeatReservationSelectedPlaces } from '../common.js';
|
|
3
3
|
declare enum ScrollDirection {
|
|
4
4
|
right = "right",
|
|
5
5
|
left = "left"
|
|
@@ -9,17 +9,13 @@ interface CoachScrollTriggerPoint {
|
|
|
9
9
|
end: number;
|
|
10
10
|
width: number;
|
|
11
11
|
}
|
|
12
|
-
export type SeatReservationSelectedPlacesEventDetails = {
|
|
13
|
-
seats: SeatReservationPlaceSelection[];
|
|
14
|
-
bicycles: SeatReservationPlaceSelection[];
|
|
15
|
-
};
|
|
16
12
|
export declare class SeatReservationBaseElement extends LitElement {
|
|
17
13
|
static readonly events: {
|
|
18
14
|
readonly selectedplaces: "selectedplaces";
|
|
19
15
|
readonly selectedcoach: "selectedcoach";
|
|
20
16
|
};
|
|
21
|
-
/** The seat
|
|
22
|
-
accessor
|
|
17
|
+
/** The seat reservations array contains all coaches and places */
|
|
18
|
+
accessor seatReservations: SeatReservation[];
|
|
23
19
|
/** The seat reservation navigation can be toggled by this property */
|
|
24
20
|
accessor hasNavigation: boolean;
|
|
25
21
|
/** The seat reservation area is aligned vertically */
|
|
@@ -41,6 +37,7 @@ export declare class SeatReservationBaseElement extends LitElement {
|
|
|
41
37
|
protected coachBorderPadding: number;
|
|
42
38
|
protected gapBetweenCoaches: number;
|
|
43
39
|
protected coachBorderOffset: number;
|
|
40
|
+
protected gapBetweenCoachDecks: number;
|
|
44
41
|
protected coachNavButtonDim: number;
|
|
45
42
|
protected currScrollDirection: ScrollDirection;
|
|
46
43
|
protected maxCalcCoachsWidth: number;
|
|
@@ -54,12 +51,14 @@ export declare class SeatReservationBaseElement extends LitElement {
|
|
|
54
51
|
protected currSelectedPlace: Place | null;
|
|
55
52
|
protected currSelectedPlaceElementId: string | null;
|
|
56
53
|
protected currSelectedCoachIndex: number;
|
|
54
|
+
protected currSelectedDeckIndex: number;
|
|
57
55
|
protected preventCoachScrollByPlaceClick: boolean;
|
|
58
|
-
protected selectedSeatReservationPlaces:
|
|
56
|
+
protected selectedSeatReservationPlaces: SeatReservationSelectedPlaces;
|
|
59
57
|
protected seatReservationWithoutNavigationHasFocus: boolean;
|
|
60
58
|
protected isCoachGridFocusable: boolean;
|
|
61
59
|
protected isAutoScrolling: boolean;
|
|
62
60
|
protected isKeyboardNavigation: boolean;
|
|
61
|
+
protected hasMultipleDecks: boolean;
|
|
63
62
|
protected keyboardNavigationEvents: {
|
|
64
63
|
readonly ArrowLeft: "ArrowLeft";
|
|
65
64
|
readonly ArrowRight: "ArrowRight";
|
|
@@ -70,6 +69,11 @@ export declare class SeatReservationBaseElement extends LitElement {
|
|
|
70
69
|
};
|
|
71
70
|
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
72
71
|
protected navigateByDirectionBtn(btnDirection: string): void;
|
|
72
|
+
/**
|
|
73
|
+
* Data can be prepared once for the entire component
|
|
74
|
+
* in order to avoid recurring iteration processes in rendering.
|
|
75
|
+
*/
|
|
76
|
+
protected initPrepairSeatReservationData(): void;
|
|
73
77
|
protected initNavigationSelectionByScrollEvent(): void;
|
|
74
78
|
/**
|
|
75
79
|
* If no navigation exists (property setting -> hasNavigation) and a table coach gets the focus,
|
|
@@ -89,7 +93,7 @@ export declare class SeatReservationBaseElement extends LitElement {
|
|
|
89
93
|
*/
|
|
90
94
|
protected preselectPlaceInCoach(): void;
|
|
91
95
|
protected scrollToSelectedNavCoach(selectedNavCoachIndex: number): void;
|
|
92
|
-
protected focusPlaceElement(place: Place | null
|
|
96
|
+
protected focusPlaceElement(place: Place | null): void;
|
|
93
97
|
protected unfocusPlaceElement(): void;
|
|
94
98
|
protected getCalculatedDimension(elementDimension: ElementDimension, coachDimension?: ElementDimension, isOriginHeight?: boolean, isStretchHeight?: boolean): ElementDimension;
|
|
95
99
|
protected getCalculatedPosition(elementPosition: ElementPosition, elementDimension?: ElementDimension, coachDimension?: ElementDimension, isOriginHeight?: boolean): ElementPosition;
|
|
@@ -136,6 +140,7 @@ export declare class SeatReservationBaseElement extends LitElement {
|
|
|
136
140
|
* @returns Place or null
|
|
137
141
|
*/
|
|
138
142
|
private _getFirstPlaceInSelecedCoach;
|
|
143
|
+
private _getSwitchedCoachDeckIndexByKeyNavigation;
|
|
139
144
|
/**
|
|
140
145
|
* To get the correct closest place of current pressed key and the current selected place,
|
|
141
146
|
* we have to investigate the coordinates of each place to find the closest place of the currSelectedPlaceElementId.
|
|
@@ -163,13 +168,14 @@ export declare class SeatReservationBaseElement extends LitElement {
|
|
|
163
168
|
*/
|
|
164
169
|
private _resetAllPlaceSelections;
|
|
165
170
|
private _getSeatReservationPlaceSelection;
|
|
166
|
-
private
|
|
171
|
+
private _getSeatReservationSelectedCoach;
|
|
167
172
|
private _setCurrSelectedPlaceElementId;
|
|
168
173
|
/**
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
|
|
172
|
-
|
|
174
|
+
* Prepares all coaches with the values for whether there is a driver area left or right
|
|
175
|
+
* */
|
|
176
|
+
private _prepairCoachDriverArea;
|
|
177
|
+
/**
|
|
178
|
+
* Returns the current selected place HTML element by currSelectedPlaceElementId.
|
|
173
179
|
* @returns HTMLElement or null
|
|
174
180
|
*/
|
|
175
181
|
private _getPlaceHtmlElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seat-reservation-base-element.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation/seat-reservation-base-element.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAQtD,OAAO,KAAK,EAEV,uBAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,KAAK,EACL,cAAc,EACd,eAAe,EAEf,6BAA6B,
|
|
1
|
+
{"version":3,"file":"seat-reservation-base-element.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation/seat-reservation-base-element.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,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