@sbb-esta/lyne-elements-experimental 3.0.1 → 3.2.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.
Files changed (64) hide show
  1. package/custom-elements.json +908 -567
  2. package/development/seat-reservation/common/mapper/icon-mapper.d.ts.map +1 -1
  3. package/development/seat-reservation/common/mapper/icon-mapper.js +1 -3
  4. package/development/seat-reservation/common/mapper/mapper.d.ts +4 -3
  5. package/development/seat-reservation/common/mapper/mapper.d.ts.map +1 -1
  6. package/development/seat-reservation/common/mapper/mapper.js +6 -4
  7. package/development/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts.map +1 -1
  8. package/development/seat-reservation/common/mapper/seat-reservation-sample-data.js +4989 -4
  9. package/development/seat-reservation/common/svgs.d.ts +0 -1
  10. package/development/seat-reservation/common/svgs.d.ts.map +1 -1
  11. package/development/seat-reservation/common/svgs.js +1 -3
  12. package/development/seat-reservation/common/translations/i18n.js +194 -194
  13. package/development/seat-reservation/common/types.d.ts +10 -0
  14. package/development/seat-reservation/common/types.d.ts.map +1 -1
  15. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +38 -12
  16. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
  17. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +252 -122
  18. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +28 -13
  19. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
  20. package/development/seat-reservation/seat-reservation/seat-reservation.component.js +481 -262
  21. package/development/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +17 -10
  22. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +1 -1
  23. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +1 -6
  24. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +36 -18
  25. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +3 -1
  26. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
  27. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +26 -4
  28. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
  29. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +86 -54
  30. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts +1 -16
  31. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +1 -1
  32. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +10 -164
  33. package/package.json +3 -3
  34. package/seat-reservation/common/mapper/icon-mapper.d.ts.map +1 -1
  35. package/seat-reservation/common/mapper/icon-mapper.js +0 -2
  36. package/seat-reservation/common/mapper/mapper.d.ts +4 -3
  37. package/seat-reservation/common/mapper/mapper.d.ts.map +1 -1
  38. package/seat-reservation/common/mapper/mapper.js +16 -14
  39. package/seat-reservation/common/mapper/seat-reservation-sample-data.d.ts.map +1 -1
  40. package/seat-reservation/common/mapper/seat-reservation-sample-data.js +4988 -3
  41. package/seat-reservation/common/svgs.d.ts +0 -1
  42. package/seat-reservation/common/svgs.d.ts.map +1 -1
  43. package/seat-reservation/common/svgs.js +4 -11
  44. package/seat-reservation/common/translations/i18n.js +197 -197
  45. package/seat-reservation/common/types.d.ts +10 -0
  46. package/seat-reservation/common/types.d.ts.map +1 -1
  47. package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +38 -12
  48. package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
  49. package/seat-reservation/seat-reservation/seat-reservation-base-element.js +208 -134
  50. package/seat-reservation/seat-reservation/seat-reservation.component.d.ts +28 -13
  51. package/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
  52. package/seat-reservation/seat-reservation/seat-reservation.component.js +290 -298
  53. package/seat-reservation/seat-reservation-area/seat-reservation-area.component.js +22 -22
  54. package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.d.ts.map +1 -1
  55. package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +0 -5
  56. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +37 -37
  57. package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts +3 -1
  58. package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
  59. package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +69 -58
  60. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
  61. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +28 -27
  62. package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts +1 -16
  63. package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.d.ts.map +1 -1
  64. package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +14 -101
@@ -4,6 +4,7 @@ export type SeatReservation = {
4
4
  deckCoachIndex: number;
5
5
  coachItems: CoachItem[];
6
6
  };
7
+ /** Describes a coach (wagon) in the reservation. */
7
8
  export type CoachItem = {
8
9
  id: string;
9
10
  number: string;
@@ -15,6 +16,7 @@ export type CoachItem = {
15
16
  travelClass: PlaceTravelClass[];
16
17
  propertyIds?: string[];
17
18
  };
19
+ /** Extends BaseElement with seat-specific data. */
18
20
  export interface Place extends BaseElement {
19
21
  number: string;
20
22
  state: PlaceState;
@@ -24,6 +26,7 @@ export interface Place extends BaseElement {
24
26
  propertyIds?: string[];
25
27
  selected?: boolean;
26
28
  }
29
+ /** Base properties for any renderable element within a coach. */
27
30
  export type BaseElement = {
28
31
  icon?: string | null;
29
32
  rotation?: number;
@@ -39,11 +42,17 @@ export type ElementPosition = {
39
42
  y: number;
40
43
  z: number;
41
44
  };
45
+ export type CoachNumberOfFreePlaces = {
46
+ seats: number;
47
+ bicycles: number;
48
+ };
49
+ /** Selection info for a single place. */
42
50
  export type PlaceSelection = {
43
51
  id: string;
44
52
  number: string;
45
53
  coachIndex: number;
46
54
  state: PlaceState;
55
+ placeType: PlaceType;
47
56
  };
48
57
  export type SeatReservationPlaceSelection = {
49
58
  id: string;
@@ -62,6 +71,7 @@ export type SeatReservationCoachSelection = {
62
71
  coachType?: CoachType;
63
72
  coachTravelClass: PlaceTravelClass[];
64
73
  coachPropertyIds?: string[];
74
+ coachNumberOfFreePlaces?: CoachNumberOfFreePlaces;
65
75
  };
66
76
  export type PlaceType = 'SEAT' | 'BICYCLE';
67
77
  export type CoachType = 'RESTAURANT_COACH' | 'BICYCLE_COACH' | 'LUGGAGE_COACH' | 'TRAIN_HEAD';
@@ -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,MAAM,MAAM,SAAS,GAAG;IAGtB,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;CACxB,CAAC;AAEF,MAAM,WAAW,KAAM,SAAQ,WAAW;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,SAAS,CAAC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gB,EAAE,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAC3C,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
+ {"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;CACxB,CAAC;AAEF,mDAAmD;AACnD,MAAM,WAAW,KAAM,SAAQ,WAAW;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IA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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,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAC3C,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 { ElementDimension, ElementPosition, Place, PlaceSelection, SeatReservation, SeatReservationPlaceSelection } from '../common.js';
2
+ import { CoachNumberOfFreePlaces, ElementDimension, ElementPosition, Place, PlaceSelection, SeatReservation, SeatReservationPlaceSelection } from '../common.js';
3
3
  declare enum ScrollDirection {
4
4
  right = "right",
5
5
  left = "left"
@@ -9,7 +9,10 @@ interface CoachScrollTriggerPoint {
9
9
  end: number;
10
10
  width: number;
11
11
  }
12
- export type SeatReservationSelectedPlacesEventDetails = SeatReservationPlaceSelection[];
12
+ export type SeatReservationSelectedPlacesEventDetails = {
13
+ seats: SeatReservationPlaceSelection[];
14
+ bicycles: SeatReservationPlaceSelection[];
15
+ };
13
16
  export declare class SeatReservationBaseElement extends LitElement {
14
17
  static readonly events: {
15
18
  readonly selectedplaces: "selectedplaces";
@@ -26,25 +29,33 @@ export declare class SeatReservationBaseElement extends LitElement {
26
29
  /** The seat reservation area's width */
27
30
  accessor height: number;
28
31
  /** Maximal number of possible clickable seats */
29
- accessor maxReservations: number;
32
+ accessor maxSeatReservations: number;
33
+ /** Maximal number of possible clickable bicycle places */
34
+ accessor maxBicycleReservations: number;
30
35
  /** Any click functionality is prevented */
31
36
  accessor preventPlaceClick: boolean;
37
+ accessor preselectCoachIndex: number;
32
38
  protected accessor selectedCoachIndex: number;
33
39
  protected accessor focusedCoachIndex: number;
40
+ protected accessor hoveredScrollCoachIndex: number;
34
41
  protected coachBorderPadding: number;
42
+ protected gapBetweenCoaches: number;
35
43
  protected coachBorderOffset: number;
44
+ protected coachNavButtonDim: number;
36
45
  protected currScrollDirection: ScrollDirection;
37
46
  protected maxCalcCoachsWidth: number;
38
47
  protected scrollCoachsAreaWidth: number;
48
+ protected scrollNavigationAreaDim: number;
39
49
  protected triggerCoachPositionsCollection: CoachScrollTriggerPoint[];
40
50
  protected firstTabElement: HTMLElement;
41
51
  protected lastTabElement: HTMLElement;
52
+ protected navigationScrollArea: HTMLElement;
42
53
  protected coachScrollArea: HTMLElement;
43
54
  protected currSelectedPlace: Place | null;
44
55
  protected currSelectedPlaceElementId: string | null;
45
56
  protected currSelectedCoachIndex: number;
46
57
  protected preventCoachScrollByPlaceClick: boolean;
47
- protected selectedSeatReservationPlaces: SeatReservationPlaceSelection[];
58
+ protected selectedSeatReservationPlaces: SeatReservationSelectedPlacesEventDetails;
48
59
  protected seatReservationWithoutNavigationHasFocus: boolean;
49
60
  protected isCoachGridFocusable: boolean;
50
61
  protected isAutoScrolling: boolean;
@@ -58,6 +69,7 @@ export declare class SeatReservationBaseElement extends LitElement {
58
69
  readonly Enter: "Enter";
59
70
  };
60
71
  protected willUpdate(changedProperties: PropertyValues<this>): void;
72
+ protected navigateByDirectionBtn(btnDirection: string): void;
61
73
  protected initNavigationSelectionByScrollEvent(): void;
62
74
  /**
63
75
  * If no navigation exists (property setting -> hasNavigation) and a table coach gets the focus,
@@ -77,14 +89,31 @@ export declare class SeatReservationBaseElement extends LitElement {
77
89
  */
78
90
  protected preselectPlaceInCoach(): void;
79
91
  protected scrollToSelectedNavCoach(selectedNavCoachIndex: number): void;
92
+ protected focusPlaceElement(place: Place | null, coachIndex?: number): void;
93
+ protected unfocusPlaceElement(): void;
94
+ protected getCalculatedDimension(elementDimension: ElementDimension, coachDimension?: ElementDimension, isOriginHeight?: boolean, isStretchHeight?: boolean): ElementDimension;
95
+ protected getCalculatedPosition(elementPosition: ElementPosition, elementDimension?: ElementDimension, coachDimension?: ElementDimension, isOriginHeight?: boolean): ElementPosition;
96
+ /**
97
+ * Counts all available seats together depending on the seat type
98
+ *
99
+ * @param coachIndex
100
+ * @returns An Object with count of free seats and free bicycle places
101
+ */
102
+ protected getAvailableFreePlacesNumFromCoach(coachIndex: number): CoachNumberOfFreePlaces;
103
+ /**
104
+ * Performs an automatic main navigation scroll to the specified selectedNavCoachIndex.
105
+ * Calculates the central scroll offset of the nav coach to be selected.
106
+ * @param selectedNavCoachIndex
107
+ */
108
+ private _scrollToSelectedNavigationButton;
80
109
  /**
81
110
  * Sets the new ScrollDirection by the new given target coach index.
82
111
  */
83
112
  private _setScrollDirectionByCoachIndex;
84
113
  /**
85
114
  * Returns the scroll start or end position X from the selected coach.
86
- * In case the user is curretnly navigate throught places by keyboard and goes to previous coach,
87
- * then we return the end position of the coach to get clostest next scroll position of the next focus place.
115
+ * In case the user is currently navigating through places by keyboard and goes to previous coach,
116
+ * then we return the end position of the coach to get the closest scroll position of the next focus place.
88
117
  * @returns number
89
118
  */
90
119
  private _getCoachScrollPositionX;
@@ -114,15 +143,12 @@ export declare class SeatReservationBaseElement extends LitElement {
114
143
  * @returns Place or null
115
144
  */
116
145
  private _getClosestPlaceByKeyDirection;
117
- protected focusPlaceElement(place: Place | null, coachIndex?: number): void;
118
- protected unfocusPlaceElement(): void;
119
- protected getCalculatedDimension(elementDimension: ElementDimension, coachDimension?: ElementDimension, isOriginHeight?: boolean, isStretchHeight?: boolean): ElementDimension;
120
- protected getCalculatedPosition(elementPosition: ElementPosition, elementDimension?: ElementDimension, coachDimension?: ElementDimension, isOriginHeight?: boolean): ElementPosition;
121
146
  private _navigateCoachNavigationByKeyboard;
122
147
  private _navigateToPlaceByKeyboard;
123
148
  protected getNextAvailableCoachIndex(currentIndex?: number): number;
124
149
  protected getPrevAvailableCoachIndex(currentIndex?: number): number;
125
150
  protected updateSelectedSeatReservationPlaces(placeSelection: PlaceSelection): void;
151
+ private _updateSelectedSeatReservationPlaces;
126
152
  protected updateCurrentSelectedPlaceInCoach(placeSelection: PlaceSelection): void;
127
153
  protected updateCurrentSelectedCoach(): void;
128
154
  /**
@@ -132,6 +158,7 @@ export declare class SeatReservationBaseElement extends LitElement {
132
158
  private _initSeatReservationPlaceSelection;
133
159
  /**
134
160
  * All selected places will be reset or the currentSelectedPlace was given, then we reset all except currentSelectedPlace
161
+ * @param reservationPlaceSelections
135
162
  * @param currSelectedPlace
136
163
  */
137
164
  private _resetAllPlaceSelections;
@@ -140,13 +167,12 @@ export declare class SeatReservationBaseElement extends LitElement {
140
167
  private _setCurrSelectedPlaceElementId;
141
168
  /**
142
169
  * Returns the current selected place HTML element by given placeNumber and coachIndex.
143
- * If both doesnt exist, we try to return the place HTML element by the _currentSelectedPlaceElementId
170
+ * If both doesn't exist, we try to return the place HTML element by the _currentSelectedPlaceElementId
144
171
  * @param placeNumber optional as string
145
172
  * @param coachIndex optional as string
146
173
  * @returns HTMLElement or null
147
174
  */
148
175
  private _getPlaceHtmlElement;
149
- private _setVerticalAlignmentOffset;
150
176
  }
151
177
  export {};
152
178
  //# sourceMappingURL=seat-reservation-base-element.d.ts.map
@@ -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,gBAAgB,EAChB,eAAe,EACf,KAAK,EACL,cA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AmB,IAAI,IAAI;IASrC,SAAS,CAAC,sBAAsB,CAC9B,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,CAAC,EAAE,gBAAgB,EACjC,cAAc,CAAC,EAAE,OAAO,EACxB,eAAe,CAAC,EAAE,OAAO,GACxB,gBAAgB;IAenB,SAAS,CAAC,qBAAqB,CAC7B,eAAe,EAAE,eAAe,EAChC,gBAAgB,CAAC,EAAE,gBAAgB,EACnC,cAAc,CAAC,EAAE,gBAAgB,EACjC,cAAc,CAAC,EAAE,OAAO,GACvB,eAAe;IAsBlB,OAAO,CAAC,kCAAkC;IAiE1C,OAAO,CAAC,0BAA0B;IAkClC,SAAS,CAAC,0BAA0B,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM;IAKnE,SAAS,CAAC,0BAA0B,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM;IAKnE,SAAS,CAAC,mCAAmC,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI;IAiCnF,SAAS,CAAC,iCAAiC,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI;IAgBjF,SAAS,CAAC,0BAA0B,IAAI,IAAI;IAmB5C;;;OAGG;IACH,OAAO,CAAC,kCAAkC;IAiB1C;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IAkBhC,OAAO,CAAC,iCAAiC;IAWzC,OAAO,CAAC,iCAAiC;IASzC,OAAO,CAAC,8BAA8B;IAStC;;;;;;OAMG;IACH,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,2BAA2B;CAepC"}
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,EA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