@sbb-esta/lyne-elements-experimental-dev 5.10.0-dev.1791282377 → 5.10.0-dev.1791284708

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.
@@ -9286,7 +9286,7 @@
9286
9286
  "type": {
9287
9287
  "text": "object"
9288
9288
  },
9289
- "default": "{ chassisDriverBus, chassisDriverTrain, chassisDriverTrainFull, chassisPassageCompartmentLeftTop, chassisPassageCompartmentMiddle, chassisPassageCompartmentRightBottom, chassisPassageWaggonBottomRight, chassisPassageWaggonTopLeft, chassisRowOuter, chassisRowMiddle, chassisSeparator, familyArea, interiorPlaceBikeDefault, interiorPlaceBikeNotBookable, interiorPlaceBikeSelected, interiorPlaceBikeUnavailable, interiorPlaceSeatDefault, interiorPlaceSeatNotBookable, interiorPlaceSeatSelected, interiorPlaceSeatUnavailable, layoutEntrance, mobilePhone, mobilePhoneForbidden, toddler, }"
9289
+ "default": "{ chassisDriverBus, chassisDriverTrain, chassisDriverTrainFull, chassisPassageCompartmentLeftTop, chassisPassageCompartmentMiddle, chassisPassageCompartmentRightBottom, chassisPassageWaggonBottomRight, chassisPassageWaggonTopLeft, chassisRowOuter, chassisRowMiddle, chassisSeparator, familyArea, interiorPlaceBikeDefault, interiorPlaceBikeNotBookable, interiorPlaceBikeSelected, interiorPlaceBikeUnavailable, interiorPlaceSeatDefault, interiorPlaceSeatNotBookable, interiorPlaceSeatSelected, interiorPlaceSeatUnavailable, layoutEntrance, mobilePhone, mobilePhoneForbidden, toddler, wallLeft1, wallLeft2, wallLeft3, wallCompartments1, wallCompartments2, wallCompartments3, wallRight1, wallRight2, wallRight3, tWallCompartments1, tWallCompartments2, tWallCompartments3, }"
9290
9290
  }
9291
9291
  ],
9292
9292
  "exports": [
@@ -9310,7 +9310,7 @@
9310
9310
  "type": {
9311
9311
  "text": "Record<string, SeatReservationIcon>"
9312
9312
  },
9313
- "default": "{ BICYCLE: { svgName: 'sa-vo' }, BICYCLE_HIGH: { svgName: 'sa-vo' }, BICYCLE_HIGH_ICON: { svgName: 'sa-vo' }, BICYCLE_ICON: { svgName: 'sa-vo' }, BICYCLE_LOW: { svgName: 'sa-vo' }, BICYCLE_LOW_ICON: { svgName: 'sa-vo' }, BICYCLE_MIDDLE: { svgName: 'sa-vo' }, BICYCLE_MIDDLE_ICON: { svgName: 'sa-vo' }, BISTRO: { svgName: 'sa-mi' }, BISTRO_ICON: { svgName: 'sa-mi' }, BUSINESS: { svgName: 'sa-bz' }, BUSINESS_COMFORT: { svgName: 'sa-bz' }, BUSINESS_ICON: { svgName: 'sa-bz' }, COACH_BORDER_MIDDLE: { svg: svgs.chassisRowMiddle }, COACH_WALL_NO_PASSAGE: { svg: svgs.chassisRowOuter }, COACH_PASSAGE: { svg: svgs.chassisPassageWaggonTopLeft }, COMPARTMENT_PASSAGE: { svg: svgs.chassisPassageCompartmentMiddle }, COMPARTMENT_PASSAGE_HIGH: { svg: svgs.chassisPassageCompartmentLeftTop }, COMPARTMENT_PASSAGE_LOW: { svg: svgs.chassisPassageCompartmentRightBottom }, COMPARTMENT_WALL: { svg: svgs.chassisSeparator }, DRIVER_AREA: { svg: svgs.chassisDriverTrain }, DRIVER_AREA_BUS: { svg: svgs.chassisDriverBus }, DRIVER_AREA_TRAIN: { svg: svgs.chassisDriverTrainFull }, DRIVER_AREA_NO_VERTICAL_WALL: { svg: svgs.chassisDriverTrain }, EASY_ACCESS: { svgName: 'sa-em' }, EASY_ACCESS_AREA: { svgName: 'sa-em' }, EASY_ACCESS_ICON: { svgName: 'sa-em' }, ENTRY_EXIT: { svg: svgs.layoutEntrance }, FAMILY: { svgName: 'sa-fa' }, FAMILY_AREA: { svg: svgs.familyArea }, LUGGAGE_AREA: { svgName: 'sa-ga' }, LUGGAGE_ICON: { svgName: 'sa-ga' }, MOBILE_PHONE_AREA: { svg: svgs.mobilePhone }, MOBILE_PHONE_ICON: { svg: svgs.mobilePhone }, MOBILE_PHONE_FORBIDDEN_AREA: { svg: svgs.mobilePhoneForbidden }, MOBILE_PHONE_FORBIDDEN_ICON: { svg: svgs.mobilePhoneForbidden }, MULTI_FUNCTION_AREA: { svgName: 'sa-mf' }, MULTI_FUNCTION_ICON: { svgName: 'sa-mf' }, PLACE_BICYCLE_ALLOCATED: { svg: svgs.interiorPlaceBikeUnavailable }, PLACE_BICYCLE_FREE: { svg: svgs.interiorPlaceBikeDefault }, PLACE_BICYCLE_RESTRICTED: { svg: svgs.interiorPlaceBikeNotBookable }, PLACE_BICYCLE_SELECTED: { svg: svgs.interiorPlaceBikeSelected }, PLACE_SEAT_ALLOCATED: { svg: svgs.interiorPlaceSeatUnavailable }, PLACE_SEAT_FREE: { svg: svgs.interiorPlaceSeatDefault }, PLACE_SEAT_RESTRICTED: { svg: svgs.interiorPlaceSeatNotBookable }, PLACE_SEAT_SELECTED: { svg: svgs.interiorPlaceSeatSelected }, PLAYGROUND_AREA: { svgName: 'sa-fa' }, PLAYGROUND_ICON: { svgName: 'sa-fa' }, PRAM: { svgName: 'sa-abteilkinderwagen' }, PRAM_AREA: { svgName: 'sa-abteilkinderwagen' }, PRAM_ICON: { svgName: 'sa-abteilkinderwagen' }, RESTAURANT: { svgName: 'sa-wr' }, RESTAURANT_AREA: { svgName: 'sa-wr' }, RESTAURANT_ICON: { svgName: 'sa-wr' }, SILENCE: { svgName: 'sa-rz' }, SILENCE_AREA_ICON: { svgName: 'sa-rz' }, SILENCE_ICON: { svgName: 'sa-rz' }, SKI_AREA: { svgName: 'sa-sa' }, SKI_ICON: { svgName: 'sa-sa' }, STAFF_AREA: { svgName: 'avatar-train-staff-medium' }, STAIR_AREA: { svgName: 'sa-ac' }, TODDLER: { svg: svgs.toddler }, TODDLER_AREA: { svg: svgs.toddler }, TOILET_AREA: { svgName: 'sa-wc' }, TOILET_ICON: { svgName: 'sa-wc' }, TOILET_WHEELCHAIR_AREA: { svgName: 'sa-rw' }, TOILET_WHEELCHAIR_ICON: { svgName: 'sa-rw' }, WARDROBE_AREA: { svgName: 'sa-ka' }, WHEELCHAIR: { svgName: 'sa-rs' }, WHEELCHAIR_AND_SEAT: { svgName: 'sa-rs' }, WHEELCHAIR_ICON: { svgName: 'sa-rs' }, WHEELCHAIR_NO_SEAT: { svgName: 'sa-rn' }, WIFI: { svgName: 'sa-wv' }, }"
9313
+ "default": "{ BICYCLE: { svgName: 'sa-vo' }, BICYCLE_HIGH: { svgName: 'sa-vo' }, BICYCLE_HIGH_ICON: { svgName: 'sa-vo' }, BICYCLE_ICON: { svgName: 'sa-vo' }, BICYCLE_LOW: { svgName: 'sa-vo' }, BICYCLE_LOW_ICON: { svgName: 'sa-vo' }, BICYCLE_MIDDLE: { svgName: 'sa-vo' }, BICYCLE_MIDDLE_ICON: { svgName: 'sa-vo' }, BISTRO: { svgName: 'sa-mi' }, BISTRO_ICON: { svgName: 'sa-mi' }, BUSINESS: { svgName: 'sa-bz' }, BUSINESS_COMFORT: { svgName: 'sa-bz' }, BUSINESS_ICON: { svgName: 'sa-bz' }, COACH_BORDER_MIDDLE: { svg: svgs.chassisRowMiddle }, COACH_WALL_NO_PASSAGE: { svg: svgs.chassisRowOuter }, COACH_PASSAGE: { svg: svgs.chassisPassageWaggonTopLeft }, COMPARTMENT_PASSAGE: { svg: svgs.chassisPassageCompartmentMiddle }, COMPARTMENT_PASSAGE_HIGH: { svg: svgs.chassisPassageCompartmentLeftTop }, COMPARTMENT_PASSAGE_LOW: { svg: svgs.chassisPassageCompartmentRightBottom }, COMPARTMENT_WALL: { svg: svgs.chassisSeparator }, DRIVER_AREA: { svg: svgs.chassisDriverTrain }, DRIVER_AREA_BUS: { svg: svgs.chassisDriverBus }, DRIVER_AREA_TRAIN: { svg: svgs.chassisDriverTrainFull }, DRIVER_AREA_NO_VERTICAL_WALL: { svg: svgs.chassisDriverTrain }, EASY_ACCESS: { svgName: 'sa-em' }, EASY_ACCESS_AREA: { svgName: 'sa-em' }, EASY_ACCESS_ICON: { svgName: 'sa-em' }, ENTRY_EXIT: { svg: svgs.layoutEntrance }, FAMILY: { svgName: 'sa-fa' }, FAMILY_AREA: { svg: svgs.familyArea }, LUGGAGE_AREA: { svgName: 'sa-ga' }, LUGGAGE_ICON: { svgName: 'sa-ga' }, MOBILE_PHONE_AREA: { svg: svgs.mobilePhone }, MOBILE_PHONE_ICON: { svg: svgs.mobilePhone }, MOBILE_PHONE_FORBIDDEN_AREA: { svg: svgs.mobilePhoneForbidden }, MOBILE_PHONE_FORBIDDEN_ICON: { svg: svgs.mobilePhoneForbidden }, MULTI_FUNCTION_AREA: { svgName: 'sa-mf' }, MULTI_FUNCTION_ICON: { svgName: 'sa-mf' }, PLACE_BICYCLE_ALLOCATED: { svg: svgs.interiorPlaceBikeUnavailable }, PLACE_BICYCLE_FREE: { svg: svgs.interiorPlaceBikeDefault }, PLACE_BICYCLE_RESTRICTED: { svg: svgs.interiorPlaceBikeNotBookable }, PLACE_BICYCLE_SELECTED: { svg: svgs.interiorPlaceBikeSelected }, PLACE_SEAT_ALLOCATED: { svg: svgs.interiorPlaceSeatUnavailable }, PLACE_SEAT_FREE: { svg: svgs.interiorPlaceSeatDefault }, PLACE_SEAT_RESTRICTED: { svg: svgs.interiorPlaceSeatNotBookable }, PLACE_SEAT_SELECTED: { svg: svgs.interiorPlaceSeatSelected }, WALL_LEFT_3: { svg: svgs.wallLeft3 }, WALL_LEFT_2: { svg: svgs.wallLeft2 }, WALL_LEFT_1: { svg: svgs.wallLeft1 }, WALL_COMPARTMENTS_3: { svg: svgs.wallCompartments3 }, WALL_COMPARTMENTS_2: { svg: svgs.wallCompartments2 }, WALL_COMPARTMENTS_1: { svg: svgs.wallCompartments1 }, WALL_RIGHT_3: { svg: svgs.wallRight3 }, WALL_RIGHT_2: { svg: svgs.wallRight2 }, WALL_RIGHT_1: { svg: svgs.wallRight1 }, T_WALL_COMPARTMENTS_3: { svg: svgs.tWallCompartments3 }, T_WALL_COMPARTMENTS_2: { svg: svgs.tWallCompartments2 }, T_WALL_COMPARTMENTS_1: { svg: svgs.tWallCompartments1 }, PLAYGROUND_AREA: { svgName: 'sa-fa' }, PLAYGROUND_ICON: { svgName: 'sa-fa' }, PRAM: { svgName: 'sa-abteilkinderwagen' }, PRAM_AREA: { svgName: 'sa-abteilkinderwagen' }, PRAM_ICON: { svgName: 'sa-abteilkinderwagen' }, RESTAURANT: { svgName: 'sa-wr' }, RESTAURANT_AREA: { svgName: 'sa-wr' }, RESTAURANT_ICON: { svgName: 'sa-wr' }, SILENCE: { svgName: 'sa-rz' }, SILENCE_AREA_ICON: { svgName: 'sa-rz' }, SILENCE_ICON: { svgName: 'sa-rz' }, SKI_AREA: { svgName: 'sa-sa' }, SKI_ICON: { svgName: 'sa-sa' }, STAFF_AREA: { svgName: 'avatar-train-staff-medium' }, STAIR_AREA: { svgName: 'sa-ac' }, TODDLER: { svg: svgs.toddler }, TODDLER_AREA: { svg: svgs.toddler }, TOILET_AREA: { svgName: 'sa-wc' }, TOILET_ICON: { svgName: 'sa-wc' }, TOILET_WHEELCHAIR_AREA: { svgName: 'sa-rw' }, TOILET_WHEELCHAIR_ICON: { svgName: 'sa-rw' }, WARDROBE_AREA: { svgName: 'sa-ka' }, WHEELCHAIR: { svgName: 'sa-rs' }, WHEELCHAIR_AND_SEAT: { svgName: 'sa-rs' }, WHEELCHAIR_ICON: { svgName: 'sa-rs' }, WHEELCHAIR_NO_SEAT: { svgName: 'sa-rn' }, WIFI: { svgName: 'sa-wv' }, }"
9314
9314
  }
9315
9315
  ],
9316
9316
  "exports": [
@@ -13082,6 +13082,15 @@
13082
13082
  "privacy": "protected",
13083
13083
  "default": "48"
13084
13084
  },
13085
+ {
13086
+ "kind": "field",
13087
+ "name": "gapWallCompartmentToPlace",
13088
+ "type": {
13089
+ "text": "number"
13090
+ },
13091
+ "privacy": "protected",
13092
+ "default": "2"
13093
+ },
13085
13094
  {
13086
13095
  "kind": "field",
13087
13096
  "name": "coachNavButtonDim",
@@ -13323,7 +13332,7 @@
13323
13332
  "text": "array"
13324
13333
  },
13325
13334
  "privacy": "protected",
13326
- "default": "[ 'DRIVER_AREA', 'DRIVER_AREA_NO_VERTICAL_WALL', 'COACH_PASSAGE', 'COACH_WALL_NO_PASSAGE', 'COMPARTMENT_PASSAGE', 'COMPARTMENT_PASSAGE_HIGH', 'COMPARTMENT_PASSAGE_MIDDLE', 'COMPARTMENT_PASSAGE_LOW', 'COMPARTMENT_WALL', ]"
13335
+ "default": "[ 'DRIVER_AREA', 'DRIVER_AREA_NO_VERTICAL_WALL', 'COACH_PASSAGE', 'COACH_WALL_NO_PASSAGE', 'COMPARTMENT_PASSAGE', 'COMPARTMENT_PASSAGE_HIGH', 'COMPARTMENT_PASSAGE_MIDDLE', 'COMPARTMENT_PASSAGE_LOW', 'COMPARTMENT_WALL', 'WALL_LEFT_1', 'WALL_LEFT_2', 'WALL_LEFT_3', 'WALL_COMPARTMENTS_1', 'WALL_COMPARTMENTS_2', 'WALL_COMPARTMENTS_3', 'WALL_RIGHT_1', 'WALL_RIGHT_2', 'WALL_RIGHT_3', 'T_WALL_COMPARTMENTS_1', 'T_WALL_COMPARTMENTS_2', 'T_WALL_COMPARTMENTS_3', ]"
13327
13336
  },
13328
13337
  {
13329
13338
  "kind": "field",
@@ -14305,6 +14314,48 @@
14305
14314
  ],
14306
14315
  "description": "Returns the calculated positions and dimensions of graphical, service and area elements"
14307
14316
  },
14317
+ {
14318
+ "kind": "method",
14319
+ "name": "_isElementAtTopBorder",
14320
+ "privacy": "private",
14321
+ "return": {
14322
+ "type": {
14323
+ "text": "boolean"
14324
+ }
14325
+ },
14326
+ "parameters": [
14327
+ {
14328
+ "name": "element",
14329
+ "type": {
14330
+ "text": "BaseElement"
14331
+ }
14332
+ }
14333
+ ]
14334
+ },
14335
+ {
14336
+ "kind": "method",
14337
+ "name": "_isElementAtBottomBorder",
14338
+ "privacy": "private",
14339
+ "return": {
14340
+ "type": {
14341
+ "text": "boolean"
14342
+ }
14343
+ },
14344
+ "parameters": [
14345
+ {
14346
+ "name": "element",
14347
+ "type": {
14348
+ "text": "BaseElement"
14349
+ }
14350
+ },
14351
+ {
14352
+ "name": "coachDimension",
14353
+ "type": {
14354
+ "text": "ElementDimension"
14355
+ }
14356
+ }
14357
+ ]
14358
+ },
14308
14359
  {
14309
14360
  "kind": "method",
14310
14361
  "name": "_getPlaceHtmlElement",
@@ -15617,6 +15668,19 @@
15617
15668
  "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
15618
15669
  }
15619
15670
  },
15671
+ {
15672
+ "kind": "field",
15673
+ "name": "gapWallCompartmentToPlace",
15674
+ "type": {
15675
+ "text": "number"
15676
+ },
15677
+ "privacy": "protected",
15678
+ "default": "2",
15679
+ "inheritedFrom": {
15680
+ "name": "SeatReservationBaseElement",
15681
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
15682
+ }
15683
+ },
15620
15684
  {
15621
15685
  "kind": "field",
15622
15686
  "name": "coachNavButtonDim",
@@ -15962,7 +16026,7 @@
15962
16026
  "text": "array"
15963
16027
  },
15964
16028
  "privacy": "protected",
15965
- "default": "[ 'DRIVER_AREA', 'DRIVER_AREA_NO_VERTICAL_WALL', 'COACH_PASSAGE', 'COACH_WALL_NO_PASSAGE', 'COMPARTMENT_PASSAGE', 'COMPARTMENT_PASSAGE_HIGH', 'COMPARTMENT_PASSAGE_MIDDLE', 'COMPARTMENT_PASSAGE_LOW', 'COMPARTMENT_WALL', ]",
16029
+ "default": "[ 'DRIVER_AREA', 'DRIVER_AREA_NO_VERTICAL_WALL', 'COACH_PASSAGE', 'COACH_WALL_NO_PASSAGE', 'COMPARTMENT_PASSAGE', 'COMPARTMENT_PASSAGE_HIGH', 'COMPARTMENT_PASSAGE_MIDDLE', 'COMPARTMENT_PASSAGE_LOW', 'COMPARTMENT_WALL', 'WALL_LEFT_1', 'WALL_LEFT_2', 'WALL_LEFT_3', 'WALL_COMPARTMENTS_1', 'WALL_COMPARTMENTS_2', 'WALL_COMPARTMENTS_3', 'WALL_RIGHT_1', 'WALL_RIGHT_2', 'WALL_RIGHT_3', 'T_WALL_COMPARTMENTS_1', 'T_WALL_COMPARTMENTS_2', 'T_WALL_COMPARTMENTS_3', ]",
15966
16030
  "inheritedFrom": {
15967
16031
  "name": "SeatReservationBaseElement",
15968
16032
  "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
@@ -17180,6 +17244,56 @@
17180
17244
  "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
17181
17245
  }
17182
17246
  },
17247
+ {
17248
+ "kind": "method",
17249
+ "name": "_isElementAtTopBorder",
17250
+ "privacy": "private",
17251
+ "return": {
17252
+ "type": {
17253
+ "text": "boolean"
17254
+ }
17255
+ },
17256
+ "parameters": [
17257
+ {
17258
+ "name": "element",
17259
+ "type": {
17260
+ "text": "BaseElement"
17261
+ }
17262
+ }
17263
+ ],
17264
+ "inheritedFrom": {
17265
+ "name": "SeatReservationBaseElement",
17266
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
17267
+ }
17268
+ },
17269
+ {
17270
+ "kind": "method",
17271
+ "name": "_isElementAtBottomBorder",
17272
+ "privacy": "private",
17273
+ "return": {
17274
+ "type": {
17275
+ "text": "boolean"
17276
+ }
17277
+ },
17278
+ "parameters": [
17279
+ {
17280
+ "name": "element",
17281
+ "type": {
17282
+ "text": "BaseElement"
17283
+ }
17284
+ },
17285
+ {
17286
+ "name": "coachDimension",
17287
+ "type": {
17288
+ "text": "ElementDimension"
17289
+ }
17290
+ }
17291
+ ],
17292
+ "inheritedFrom": {
17293
+ "name": "SeatReservationBaseElement",
17294
+ "module": "seat-reservation/seat-reservation/seat-reservation-base-element.js"
17295
+ }
17296
+ },
17183
17297
  {
17184
17298
  "kind": "method",
17185
17299
  "name": "_getPlaceHtmlElement",
@@ -23,5 +23,17 @@ declare const svgs: {
23
23
  mobilePhone: any;
24
24
  mobilePhoneForbidden: any;
25
25
  toddler: any;
26
+ wallLeft1: any;
27
+ wallLeft2: any;
28
+ wallLeft3: any;
29
+ wallCompartments1: any;
30
+ wallCompartments2: any;
31
+ wallCompartments3: any;
32
+ wallRight1: any;
33
+ wallRight2: any;
34
+ wallRight3: any;
35
+ tWallCompartments1: any;
36
+ tWallCompartments2: any;
37
+ tWallCompartments3: any;
26
38
  };
27
39
  export { svgs };
@@ -69,6 +69,7 @@ export declare class SeatReservationBaseElement extends SbbElement {
69
69
  protected gapBetweenCoaches: number;
70
70
  protected coachBorderOffset: number;
71
71
  protected gapBetweenCoachDecks: number;
72
+ protected gapWallCompartmentToPlace: number;
72
73
  protected coachNavButtonDim: number;
73
74
  protected globalAreaIconDim: ElementDimension;
74
75
  protected globalAreaIconPadding: number;
@@ -288,6 +289,8 @@ export declare class SeatReservationBaseElement extends SbbElement {
288
289
  * @returns BaseElement
289
290
  */
290
291
  private _getCalculatedDimensionPositionElement;
292
+ private _isElementAtTopBorder;
293
+ private _isElementAtBottomBorder;
291
294
  /**
292
295
  * Returns the current selected place HTML element by currSelectedPlaceElementId.
293
296
  * @returns HTMLElement or null
@@ -11555,10 +11555,58 @@ var mobile_phone_forbidden_default = "<svg width=\"18\" height=\"19\" viewBox=\"
11555
11555
  //#region src/elements-experimental/seat-reservation/common/svgs/mobile-phone.svg?raw
11556
11556
  var mobile_phone_default = "<svg width=\"10\" height=\"19\" viewBox=\"0 0 10 19\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M8.37357 0H1.62643C0.727444 0 0 0.71363 0 1.59554V17.4045C0 18.2864 0.727444 19 1.62643 19H8.37357C9.27256 19 10 18.2864 10 17.4045V1.59554C10 0.71363 9.27256 0 8.37357 0ZM4.98412 18.0869C4.59975 18.0807 4.29479 17.7566 4.30432 17.3639C4.31067 16.9713 4.63151 16.6597 5.01271 16.6628C5.39708 16.669 5.70521 16.9931 5.69568 17.3858C5.68933 17.7815 5.37167 18.0932 4.98412 18.0869ZM8.68171 15.4412H1.31829V1.78875H8.68171V15.4412Z\" fill=\"#686868\"/>\n</svg>\n";
11557
11557
 
11558
+ //#endregion
11559
+ //#region src/elements-experimental/seat-reservation/common/svgs/t-wall-compartments-1.svg?raw
11560
+ var t_wall_compartments_1_default = "<svg width=\"32\" height=\"40\" viewBox=\"0 0 32 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"15\" y=\"0\" width=\"2\" height=\"40\" fill=\"#B7B7B7\"/>\n<rect x=\"8\" y=\"38\" width=\"16\" height=\"2\" fill=\"#B7B7B7\"/>\n</svg>\n";
11561
+
11562
+ //#endregion
11563
+ //#region src/elements-experimental/seat-reservation/common/svgs/t-wall-compartments-2.svg?raw
11564
+ var t_wall_compartments_2_default = "<svg width=\"32\" height=\"72\" viewBox=\"0 0 32 72\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"15\" y=\"0\" width=\"2\" height=\"72\" fill=\"#B7B7B7\"/>\n<rect x=\"8\" y=\"70\" width=\"16\" height=\"2\" fill=\"#B7B7B7\"/>\n</svg>\n";
11565
+
11566
+ //#endregion
11567
+ //#region src/elements-experimental/seat-reservation/common/svgs/t-wall-compartments-3.svg?raw
11568
+ var t_wall_compartments_3_default = "<svg width=\"32\" height=\"104\" viewBox=\"0 0 32 104\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"15\" y=\"0\" width=\"2\" height=\"104\" fill=\"#B7B7B7\"/>\n<rect x=\"8\" y=\"102\" width=\"16\" height=\"2\" fill=\"#B7B7B7\"/>\n</svg>\n";
11569
+
11558
11570
  //#endregion
11559
11571
  //#region src/elements-experimental/seat-reservation/common/svgs/toddler.svg?raw
11560
11572
  var toddler_default = "<svg width=\"13\" height=\"20\" viewBox=\"0 0 13 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M4.98916 4.86326C5.54098 4.86345 6.00409 5.27771 6.06504 5.82514L6.92087 13.5128H9.40374C10.178 13.513 10.8449 14.058 10.9969 14.8157L11.9057 19.3527C11.9643 19.6454 11.7746 19.9307 11.4814 19.9894C11.1881 20.048 10.9022 19.8577 10.8435 19.565L9.93481 15.028C9.8841 14.7755 9.66171 14.5942 9.40374 14.594H4.22007C3.66817 14.594 3.20421 14.1796 3.14314 13.6321L2.3 6.06377C2.22871 5.42338 2.7314 4.8634 3.37693 4.86326H4.98916Z\" fill=\"#686868\"/>\n<path d=\"M0.493117 3.78418C0.79086 3.75726 1.05409 3.9759 1.08131 4.27304L2.07467 15.1832C2.10002 15.4615 2.33419 15.675 2.61419 15.6752H7.58311C7.88225 15.6752 8.12475 15.9172 8.12475 16.2158C8.12458 16.5142 7.88215 16.7564 7.58311 16.7564H2.61419C1.77401 16.7562 1.07289 16.1165 0.996674 15.2814L0.00225479 4.37123C-0.0248281 4.07389 0.195205 3.81121 0.493117 3.78418Z\" fill=\"#686868\"/>\n<path d=\"M9.15091 7.70878C9.45749 7.70878 9.71465 7.92646 9.74862 8.21454L9.88932 9.40871L10.5082 10.3453L11.9511 11.1635C12.0934 11.2445 12.1392 11.4196 12.0538 11.5542C11.9681 11.6886 11.7835 11.732 11.6412 11.6513L10.0744 10.7623L10.0427 10.7148L10.2247 12.2606H11.6031C12.0333 12.2606 12.4041 12.548 12.4886 12.9469L12.9942 15.3352C13.0265 15.4891 12.9201 15.6391 12.7573 15.6699C12.5945 15.7004 12.4365 15.6 12.4039 15.4461L11.8983 13.0588C11.8701 12.9258 11.7465 12.8297 11.6031 12.8297H8.72352C8.41703 12.8296 8.15978 12.6119 8.12581 12.3239L7.65716 8.34018C7.61771 8.0032 7.89732 7.70878 8.25593 7.70878H9.15091Z\" fill=\"#686868\"/>\n<path d=\"M8.78699 4.86326C9.45169 4.86332 9.99087 5.37295 9.99087 6.00147C9.99081 6.62993 9.45165 7.13962 8.78699 7.13968C8.12229 7.13968 7.58318 6.62997 7.58311 6.00147C7.58311 5.37292 8.12224 4.86326 8.78699 4.86326Z\" fill=\"#686868\"/>\n<path d=\"M4.22007 0C5.2669 0.000181223 6.11581 0.847228 6.11581 1.89209C6.11581 2.93696 5.26691 3.784 4.22007 3.78418C3.17308 3.78418 2.32433 2.93707 2.32433 1.89209C2.32434 0.847116 3.17309 0 4.22007 0Z\" fill=\"#686868\"/>\n</svg>\n";
11561
11573
 
11574
+ //#endregion
11575
+ //#region src/elements-experimental/seat-reservation/common/svgs/wall-compartments-1.svg?raw
11576
+ var wall_compartments_1_default = "<svg width=\"32\" height=\"40\" viewBox=\"0 0 32 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"15\" y=\"0\" width=\"2\" height=\"40\" fill=\"#B7B7B7\"/>\n</svg>\n";
11577
+
11578
+ //#endregion
11579
+ //#region src/elements-experimental/seat-reservation/common/svgs/wall-compartments-2.svg?raw
11580
+ var wall_compartments_2_default = "<svg width=\"32\" height=\"72\" viewBox=\"0 0 32 72\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"15\" y=\"0\" width=\"2\" height=\"72\" fill=\"#B7B7B7\"/>\n</svg>\n";
11581
+
11582
+ //#endregion
11583
+ //#region src/elements-experimental/seat-reservation/common/svgs/wall-compartments-3.svg?raw
11584
+ var wall_compartments_3_default = "<svg width=\"32\" height=\"104\" viewBox=\"0 0 32 104\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"15\" y=\"0\" width=\"2\" height=\"104\" fill=\"#B7B7B7\"/>\n</svg>\n";
11585
+
11586
+ //#endregion
11587
+ //#region src/elements-experimental/seat-reservation/common/svgs/wall-left-1.svg?raw
11588
+ var wall_left_1_default = "<svg width=\"32\" height=\"40\" viewBox=\"0 0 32 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"30\" y=\"0\" width=\"2\" height=\"40\" fill=\"#B7B7B7\"/>\n<rect x=\"24\" y=\"38\" width=\"8\" height=\"2\" fill=\"#B7B7B7\"/>\n</svg>\n";
11589
+
11590
+ //#endregion
11591
+ //#region src/elements-experimental/seat-reservation/common/svgs/wall-left-2.svg?raw
11592
+ var wall_left_2_default = "<svg width=\"32\" height=\"72\" viewBox=\"0 0 32 72\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"30\" y=\"0\" width=\"2\" height=\"72\" fill=\"#B7B7B7\"/>\n<rect x=\"24\" y=\"70\" width=\"8\" height=\"2\" fill=\"#B7B7B7\"/>\n</svg>\n";
11593
+
11594
+ //#endregion
11595
+ //#region src/elements-experimental/seat-reservation/common/svgs/wall-left-3.svg?raw
11596
+ var wall_left_3_default = "<svg width=\"32\" height=\"104\" viewBox=\"0 0 32 104\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"30\" y=\"0\" width=\"2\" height=\"104\" fill=\"#B7B7B7\"/>\n<rect x=\"24\" y=\"102\" width=\"8\" height=\"2\" fill=\"#B7B7B7\"/>\n</svg>\n";
11597
+
11598
+ //#endregion
11599
+ //#region src/elements-experimental/seat-reservation/common/svgs/wall-right-1.svg?raw
11600
+ var wall_right_1_default = "<svg width=\"32\" height=\"40\" viewBox=\"0 0 32 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"0\" y=\"0\" width=\"2\" height=\"40\" fill=\"#B7B7B7\"/>\n<rect x=\"0\" y=\"38\" width=\"8\" height=\"2\" fill=\"#B7B7B7\"/>\n</svg>\n";
11601
+
11602
+ //#endregion
11603
+ //#region src/elements-experimental/seat-reservation/common/svgs/wall-right-2.svg?raw
11604
+ var wall_right_2_default = "<svg width=\"32\" height=\"72\" viewBox=\"0 0 32 72\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"0\" y=\"0\" width=\"2\" height=\"72\" fill=\"#B7B7B7\"/>\n<rect x=\"0\" y=\"70\" width=\"8\" height=\"2\" fill=\"#B7B7B7\"/>\n</svg>\n";
11605
+
11606
+ //#endregion
11607
+ //#region src/elements-experimental/seat-reservation/common/svgs/wall-right-3.svg?raw
11608
+ var wall_right_3_default = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"104\" viewBox=\"0 0 32 104\">\n <rect x=\"0\" y=\"0\" width=\"2\" height=\"104\" fill=\"#B7B7B7\"/>\n <rect x=\"0\" y=\"102\" width=\"8\" height=\"2\" fill=\"#B7B7B7\"/>\n</svg>\n";
11609
+
11562
11610
  //#endregion
11563
11611
  //#region src/elements-experimental/seat-reservation/common/svgs.ts
11564
11612
  const svgs = {
@@ -11585,7 +11633,19 @@ const svgs = {
11585
11633
  layoutEntrance: layout_entrance_default,
11586
11634
  mobilePhone: mobile_phone_default,
11587
11635
  mobilePhoneForbidden: mobile_phone_forbidden_default,
11588
- toddler: toddler_default
11636
+ toddler: toddler_default,
11637
+ wallLeft1: wall_left_1_default,
11638
+ wallLeft2: wall_left_2_default,
11639
+ wallLeft3: wall_left_3_default,
11640
+ wallCompartments1: wall_compartments_1_default,
11641
+ wallCompartments2: wall_compartments_2_default,
11642
+ wallCompartments3: wall_compartments_3_default,
11643
+ wallRight1: wall_right_1_default,
11644
+ wallRight2: wall_right_2_default,
11645
+ wallRight3: wall_right_3_default,
11646
+ tWallCompartments1: t_wall_compartments_1_default,
11647
+ tWallCompartments2: t_wall_compartments_2_default,
11648
+ tWallCompartments3: t_wall_compartments_3_default
11589
11649
  };
11590
11650
 
11591
11651
  //#endregion
@@ -11637,6 +11697,18 @@ const mapIconToSvg = {
11637
11697
  PLACE_SEAT_FREE: { svg: svgs.interiorPlaceSeatDefault },
11638
11698
  PLACE_SEAT_RESTRICTED: { svg: svgs.interiorPlaceSeatNotBookable },
11639
11699
  PLACE_SEAT_SELECTED: { svg: svgs.interiorPlaceSeatSelected },
11700
+ WALL_LEFT_3: { svg: svgs.wallLeft3 },
11701
+ WALL_LEFT_2: { svg: svgs.wallLeft2 },
11702
+ WALL_LEFT_1: { svg: svgs.wallLeft1 },
11703
+ WALL_COMPARTMENTS_3: { svg: svgs.wallCompartments3 },
11704
+ WALL_COMPARTMENTS_2: { svg: svgs.wallCompartments2 },
11705
+ WALL_COMPARTMENTS_1: { svg: svgs.wallCompartments1 },
11706
+ WALL_RIGHT_3: { svg: svgs.wallRight3 },
11707
+ WALL_RIGHT_2: { svg: svgs.wallRight2 },
11708
+ WALL_RIGHT_1: { svg: svgs.wallRight1 },
11709
+ T_WALL_COMPARTMENTS_3: { svg: svgs.tWallCompartments3 },
11710
+ T_WALL_COMPARTMENTS_2: { svg: svgs.tWallCompartments2 },
11711
+ T_WALL_COMPARTMENTS_1: { svg: svgs.tWallCompartments1 },
11640
11712
  PLAYGROUND_AREA: { svgName: "sa-fa" },
11641
11713
  PLAYGROUND_ICON: { svgName: "sa-fa" },
11642
11714
  PRAM: { svgName: "sa-abteilkinderwagen" },
@@ -14646,6 +14718,7 @@ let SeatReservationBaseElement = (() => {
14646
14718
  this.gapBetweenCoaches = 4;
14647
14719
  this.coachBorderOffset = this.coachBorderPadding / this.baseGridSize;
14648
14720
  this.gapBetweenCoachDecks = 48;
14721
+ this.gapWallCompartmentToPlace = 2;
14649
14722
  this.coachNavButtonDim = 0;
14650
14723
  this.globalAreaIconDim = {
14651
14724
  w: 2,
@@ -14694,7 +14767,19 @@ let SeatReservationBaseElement = (() => {
14694
14767
  "COMPARTMENT_PASSAGE_HIGH",
14695
14768
  "COMPARTMENT_PASSAGE_MIDDLE",
14696
14769
  "COMPARTMENT_PASSAGE_LOW",
14697
- "COMPARTMENT_WALL"
14770
+ "COMPARTMENT_WALL",
14771
+ "WALL_LEFT_1",
14772
+ "WALL_LEFT_2",
14773
+ "WALL_LEFT_3",
14774
+ "WALL_COMPARTMENTS_1",
14775
+ "WALL_COMPARTMENTS_2",
14776
+ "WALL_COMPARTMENTS_3",
14777
+ "WALL_RIGHT_1",
14778
+ "WALL_RIGHT_2",
14779
+ "WALL_RIGHT_3",
14780
+ "T_WALL_COMPARTMENTS_1",
14781
+ "T_WALL_COMPARTMENTS_2",
14782
+ "T_WALL_COMPARTMENTS_3"
14698
14783
  ];
14699
14784
  this.middleBorderDockingElements = [
14700
14785
  "DRIVER_AREA",
@@ -15537,17 +15622,32 @@ let SeatReservationBaseElement = (() => {
15537
15622
  const isNotTableGraphic = element.icon?.indexOf("TABLE") === -1;
15538
15623
  const areaProperty = element.icon && isNotTableGraphic ? element.icon : null;
15539
15624
  const stretchHeight = this.isElementDirectlyOnBorder(element, coachDimension) && areaProperty !== "ENTRY_EXIT";
15540
- if (element.position.y === 0) {
15625
+ if (this._isElementAtTopBorder(element)) {
15541
15626
  areaMounting = "upper-border";
15542
15627
  pos.y -= this.coachBorderOffset - this.coachBorderOffset / 3;
15543
- } else if (element.position.y + element.dimension.h === coachDimension.h) {
15628
+ } else if (this._isElementAtBottomBorder(element, coachDimension)) {
15544
15629
  areaMounting = "lower-border";
15545
15630
  if (!stretchHeight) pos.y += this.coachBorderOffset - this.coachBorderOffset / 3;
15546
15631
  }
15547
15632
  if (stretchHeight) dim.h += this.coachBorderOffset - this.coachBorderOffset / 3;
15548
15633
  } else if (elementType === "OTHER") {
15549
- if (element.position.y === 0) pos.y -= this.coachBorderOffset;
15550
- if (coachDimension.h === element.position.y + element.dimension.h) dim.h += this.coachBorderOffset * 2;
15634
+ if (!(element.icon?.startsWith("WALL") || element.icon?.startsWith("T_WALL"))) {
15635
+ if (this._isElementAtTopBorder(element)) pos.y -= this.coachBorderOffset;
15636
+ if (this._isElementAtBottomBorder(element, coachDimension)) dim.h += this.coachBorderOffset * 2;
15637
+ } else {
15638
+ const calcGapWallPlace = this.gapWallCompartmentToPlace / this.baseGridSize;
15639
+ if (this._isElementAtTopBorder(element)) {
15640
+ pos.y -= this.coachBorderOffset;
15641
+ dim.h += this.coachBorderOffset + calcGapWallPlace;
15642
+ }
15643
+ if (this._isElementAtBottomBorder(element, coachDimension)) {
15644
+ pos.y -= calcGapWallPlace;
15645
+ dim.h += this.coachBorderOffset + calcGapWallPlace;
15646
+ }
15647
+ const optimizedWallPos = 1 / this.baseGridSize;
15648
+ if (element.icon?.indexOf("RIGHT") !== -1) pos.x -= element.rotation === 0 ? optimizedWallPos : -optimizedWallPos;
15649
+ else if (element.icon?.indexOf("LEFT") !== -1) pos.x += element.rotation === 0 ? optimizedWallPos : -optimizedWallPos;
15650
+ }
15551
15651
  }
15552
15652
  dim.w = Math.floor(dim.w * this.baseGridSize);
15553
15653
  dim.h = Math.floor(dim.h * this.baseGridSize);
@@ -15561,6 +15661,12 @@ let SeatReservationBaseElement = (() => {
15561
15661
  mounting: areaMounting
15562
15662
  };
15563
15663
  }
15664
+ _isElementAtTopBorder(element) {
15665
+ return element.position.y === 0;
15666
+ }
15667
+ _isElementAtBottomBorder(element, coachDimension) {
15668
+ return coachDimension.h === element.position.y + element.dimension.h;
15669
+ }
15564
15670
  /**
15565
15671
  * Returns the current selected place HTML element by currSelectedPlaceElementId.
15566
15672
  * @returns HTMLElement or null
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sbb-esta/lyne-elements-experimental-dev",
3
- "version": "5.10.0-dev.1791282377",
3
+ "version": "5.10.0-dev.1791284708",
4
4
  "description": "Lyne Design System",
5
5
  "keywords": [
6
6
  "design system",
7
7
  "web components",
8
8
  "lit",
9
- "https://github.com/sbb-design-systems/lyne-components/commit/e8d69de61b87862ada6b36d769502d7d785ee38f"
9
+ "https://github.com/sbb-design-systems/lyne-components/commit/fd40ceb3a1323177e610c807079e4ae532db23d5"
10
10
  ],
11
11
  "type": "module",
12
12
  "exports": {
@@ -236,7 +236,52 @@ import{__esDecorate as e,__runInitializers as t}from"tslib";import{SbbButtonBase
236
236
  <path d="M8.78699 4.86326C9.45169 4.86332 9.99087 5.37295 9.99087 6.00147C9.99081 6.62993 9.45165 7.13962 8.78699 7.13968C8.12229 7.13968 7.58318 6.62997 7.58311 6.00147C7.58311 5.37292 8.12224 4.86326 8.78699 4.86326Z" fill="#686868"/>
237
237
  <path d="M4.22007 0C5.2669 0.000181223 6.11581 0.847228 6.11581 1.89209C6.11581 2.93696 5.26691 3.784 4.22007 3.78418C3.17308 3.78418 2.32433 2.93707 2.32433 1.89209C2.32434 0.847116 3.17309 0 4.22007 0Z" fill="#686868"/>
238
238
  </svg>
239
- `},P={BICYCLE:{svgName:`sa-vo`},BICYCLE_HIGH:{svgName:`sa-vo`},BICYCLE_HIGH_ICON:{svgName:`sa-vo`},BICYCLE_ICON:{svgName:`sa-vo`},BICYCLE_LOW:{svgName:`sa-vo`},BICYCLE_LOW_ICON:{svgName:`sa-vo`},BICYCLE_MIDDLE:{svgName:`sa-vo`},BICYCLE_MIDDLE_ICON:{svgName:`sa-vo`},BISTRO:{svgName:`sa-mi`},BISTRO_ICON:{svgName:`sa-mi`},BUSINESS:{svgName:`sa-bz`},BUSINESS_COMFORT:{svgName:`sa-bz`},BUSINESS_ICON:{svgName:`sa-bz`},COACH_BORDER_MIDDLE:{svg:N.chassisRowMiddle},COACH_WALL_NO_PASSAGE:{svg:N.chassisRowOuter},COACH_PASSAGE:{svg:N.chassisPassageWaggonTopLeft},COMPARTMENT_PASSAGE:{svg:N.chassisPassageCompartmentMiddle},COMPARTMENT_PASSAGE_HIGH:{svg:N.chassisPassageCompartmentLeftTop},COMPARTMENT_PASSAGE_LOW:{svg:N.chassisPassageCompartmentRightBottom},COMPARTMENT_WALL:{svg:N.chassisSeparator},DRIVER_AREA:{svg:N.chassisDriverTrain},DRIVER_AREA_BUS:{svg:N.chassisDriverBus},DRIVER_AREA_TRAIN:{svg:N.chassisDriverTrainFull},DRIVER_AREA_NO_VERTICAL_WALL:{svg:N.chassisDriverTrain},EASY_ACCESS:{svgName:`sa-em`},EASY_ACCESS_AREA:{svgName:`sa-em`},EASY_ACCESS_ICON:{svgName:`sa-em`},ENTRY_EXIT:{svg:N.layoutEntrance},FAMILY:{svgName:`sa-fa`},FAMILY_AREA:{svg:N.familyArea},LUGGAGE_AREA:{svgName:`sa-ga`},LUGGAGE_ICON:{svgName:`sa-ga`},MOBILE_PHONE_AREA:{svg:N.mobilePhone},MOBILE_PHONE_ICON:{svg:N.mobilePhone},MOBILE_PHONE_FORBIDDEN_AREA:{svg:N.mobilePhoneForbidden},MOBILE_PHONE_FORBIDDEN_ICON:{svg:N.mobilePhoneForbidden},MULTI_FUNCTION_AREA:{svgName:`sa-mf`},MULTI_FUNCTION_ICON:{svgName:`sa-mf`},PLACE_BICYCLE_ALLOCATED:{svg:N.interiorPlaceBikeUnavailable},PLACE_BICYCLE_FREE:{svg:N.interiorPlaceBikeDefault},PLACE_BICYCLE_RESTRICTED:{svg:N.interiorPlaceBikeNotBookable},PLACE_BICYCLE_SELECTED:{svg:N.interiorPlaceBikeSelected},PLACE_SEAT_ALLOCATED:{svg:N.interiorPlaceSeatUnavailable},PLACE_SEAT_FREE:{svg:N.interiorPlaceSeatDefault},PLACE_SEAT_RESTRICTED:{svg:N.interiorPlaceSeatNotBookable},PLACE_SEAT_SELECTED:{svg:N.interiorPlaceSeatSelected},PLAYGROUND_AREA:{svgName:`sa-fa`},PLAYGROUND_ICON:{svgName:`sa-fa`},PRAM:{svgName:`sa-abteilkinderwagen`},PRAM_AREA:{svgName:`sa-abteilkinderwagen`},PRAM_ICON:{svgName:`sa-abteilkinderwagen`},RESTAURANT:{svgName:`sa-wr`},RESTAURANT_AREA:{svgName:`sa-wr`},RESTAURANT_ICON:{svgName:`sa-wr`},SILENCE:{svgName:`sa-rz`},SILENCE_AREA_ICON:{svgName:`sa-rz`},SILENCE_ICON:{svgName:`sa-rz`},SKI_AREA:{svgName:`sa-sa`},SKI_ICON:{svgName:`sa-sa`},STAFF_AREA:{svgName:`avatar-train-staff-medium`},STAIR_AREA:{svgName:`sa-ac`},TODDLER:{svg:N.toddler},TODDLER_AREA:{svg:N.toddler},TOILET_AREA:{svgName:`sa-wc`},TOILET_ICON:{svgName:`sa-wc`},TOILET_WHEELCHAIR_AREA:{svgName:`sa-rw`},TOILET_WHEELCHAIR_ICON:{svgName:`sa-rw`},WARDROBE_AREA:{svgName:`sa-ka`},WHEELCHAIR:{svgName:`sa-rs`},WHEELCHAIR_AND_SEAT:{svgName:`sa-rs`},WHEELCHAIR_ICON:{svgName:`sa-rs`},WHEELCHAIR_NO_SEAT:{svgName:`sa-rn`},WIFI:{svgName:`sa-wv`}},F={SINGLE_DECK:{de:`Einzeldeck`,en:`Single deck`,fr:`Étage unique`,it:`Piano singolo`},LOWER_DECK:{de:`Unterdeck`,en:`Lower deck`,fr:`Salle basse`,it:`Sala bassa`},MIDDLE_DECK:{de:`Mitteldeck`,en:`Middle deck`,fr:`Niveau du milieu`,it:`Livello centrale`},UPPER_DECK:{de:`Oberdeck`,en:`Upper deck`,fr:`Salle haute`,it:`Sala alta`},COACH_TABLE_CAPTION:{de:`Wagen _param0_ selektiert`,en:`Coach _param0_ selected`,fr:`Voiture _param0_ sélectionnée`,it:`Carrozza _param0_ selezionata`},COACH_BLOCKED_TABLE_CAPTION:{de:`Wagen _param0_ ist nicht betretbar. Navigieren Sie bitte zum nächsten verfügbaren Wagen`,en:`No access to coach _param0_. Please navigate to the next available coach`,fr:`La voiture _param0_ n’est pas accessible. Veuillez continuer jusqu’à la prochaine voiture disponible`,it:`La carrozza _param0_ non è accessibile. Naviga verso la prossima carrozza disponibile`},SEAT_RESERVATION_BEGIN:{de:`Beginn der Grafische Sitzplatzreservierung`,en:`Start Graphic Seat Reservation`,fr:`Commencer la réservation graphique de places`,it:`Avvio della prenotazione grafica dei posti`},SEAT_RESERVATION_END:{de:`Verlassen der Grafische Sitzplatzreservierung`,en:`Exit Graphic Seat Reservation`,fr:`Terminer la réservation graphique de places`,it:`Uscita dalla prenotazione grafica dei posti`},COACH_LOCOMOTIVE:{de:`Lokomotive`,en:`Locomotive`,fr:`Locomotive`,it:`Locomotiva`},SEAT_RESERVATION_TRAVEL_DIRECTION:{de:`Fahrtrichtung`,en:`Travel direction`,fr:`Direction du voyage`,it:`Direzione di viaggio`},NAVIGATE_TO_COACH:{de:`Navigiere zu Wagen _param0_`,en:`Navigate to coach _param0_`,fr:`Aller à la voiture _param0_`,it:`Naviga verso la carrozza _param0_`},NAVIGATE_TO_COACH_SERVICE_CLASS_SUB:{de:` mit _param0_ Abteil`,en:` with _param0_ compartment`,fr:` avec compartiment _param0_`,it:` con compartimento di _param0_`},NAVIGATE_COACH_BLOCKED:{de:`Zugabteil _param0_ ist nicht betretbar`,en:`No access to train compartment _param0_`,fr:`Le compartiment _param0_ n’est pas accessible`,it:`Il compartimento del treno _param0_ non è accessibile`},SEAT_RESERVATION_NAVIGATION:{de:`Sitzplatzreservierungsnavigation`,en:`Seat reservation navigation`,fr:`Navigation pour la réservation de places`,it:`Navigazione per la prenotazione dei posti`},COACH_AVAILABLE_NUMBER_OF_PLACES:{de:`_param0_ verfügbare Sitzplätze. _param1_ verfügbare Veloplätze.`,en:`_param0_ seats available. _param1_ available bicycle spaces.`,fr:`_param0_ places assises disponibles. _param1_ places pour vélos disponibles.`,it:`_param0_ posti a sedere disponibili. _param1_ posti per biciclette disponibili.`},SERVICE_CLASS_FIRST:{de:`erste Klasse`,en:`First class`,fr:`première classe`,it:`prima classe`},SERVICE_CLASS_SECOND:{de:`zweite Klasse`,en:`Second class`,fr:`deuxième classe`,it:`seconda classe`},BICYCLE:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BICYCLE_HIGH:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BICYCLE_HIGH_ICON:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BICYCLE_ICON:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BICYCLE_LOW:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BICYCLE_LOW_ICON:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BICYCLE_MIDDLE:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BICYCLE_MIDDLE_ICON:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BISTRO:{de:`Bistro`,en:`Bistro`,fr:`Bistro`,it:`Bistro`},BISTRO_ICON:{de:`Bistro`,en:`Bistro`,fr:`Bistro`,it:`Bistro`},BUSINESS:{de:`Businesszone`,en:`Business zone`,fr:`Espace affaires`,it:`Zona business`},BUSINESS_COMFORT:{de:`Businesszone`,en:`Business zone`,fr:`Espace affaires`,it:`Zona business`},BUSINESS_ICON:{de:`Businesszone`,en:`Business zone`,fr:`Espace affaires`,it:`Zona business`},COACH_PASSAGE:{de:`Wagenübergang`,en:`Inter-coach gangway`,fr:`Intercirculation`,it:`Passaggio intercomunicante`},EASY_ACCESS:{de:`Zone für Reisende mit eingeschränkter Mobilität`,en:`Zone for travellers with reduced mobility`,fr:`Zone pour voyageurs à mobilité réduite`,it:`Zona viaggiatori a mobilità ridotta`},EASY_ACCESS_AREA:{de:`Zone für Reisende mit eingeschränkter Mobilität`,en:`Zone for travellers with reduced mobility`,fr:`Zone pour voyageurs à mobilité réduite`,it:`Zona viaggiatori a mobilità ridotta`},EASY_ACCESS_ICON:{de:`Zone für Reisende mit eingeschränkter Mobilität`,en:`Zone for travellers with reduced mobility`,fr:`Zone pour voyageurs à mobilité réduite`,it:`Zona viaggiatori a mobilità ridotta`},ENTRY_EXIT:{de:`Ausgang / Eingang`,en:`Exit / entrance`,fr:`Sortie / Entrée`,it:`Uscita / Ingresso`},FAMILY:{de:`Familienwagen`,en:`Family coach`,fr:`Voiture-familles`,it:`Carrozza famiglia`},FAMILY_AREA:{de:`Familienzone`,en:`Family zone`,fr:`Espace familles`,it:`Zona famiglie`},LUGGAGE_AREA:{de:`Gepäckzone`,en:`Luggage zone`,fr:`Espace bagages`,it:`Zona bagagli`},LUGGAGE_ICON:{de:`Gepäckzone`,en:`Luggage zone`,fr:`Espace bagages`,it:`Zona bagagli`},MOBILE_PHONE_AREA:{de:`Handyzone`,en:`Mobile phone area`,fr:`Espace téléphones portables`,it:`Zona cellulari`},MOBILE_PHONE_ICON:{de:`Handyzone`,en:`Mobile phone area`,fr:`Espace téléphones portables`,it:`Zona cellulari`},MOBILE_PHONE_FORBIDDEN_AREA:{de:`Handyverbot`,en:`Mobile phones prohibited`,fr:`Téléphones portables interdits`,it:`Cellulari vietati`},MOBILE_PHONE_FORBIDDEN_ICON:{de:`Handyverbot`,en:`Mobile phones prohibited`,fr:`Téléphones portables interdits`,it:`Cellulari vietati`},MULTI_FUNCTION_AREA:{de:`Multifunktionsbereich`,en:`Multifunction area`,fr:`Zone multifonctionnelle`,it:`Zona multifunzionale`},MULTI_FUNCTION_ICON:{de:`Multifunktionsbereich`,en:`Multifunction area`,fr:`Zone multifonctionnelle`,it:`Zona multifunzionale`},PLAYGROUND_AREA:{de:`Familienwagen`,en:`Family coach`,fr:`Voiture-familles`,it:`Carrozza famiglia`},PLAYGROUND_ICON:{de:`Familienwagen`,en:`Family coach`,fr:`Voiture-familles`,it:`Carrozza famiglia`},PRAM:{de:`Kinderwagenbereich`,en:`Pram/pushchair area`,fr:`Espace poussette`,it:`Area per passeggini`},PRAM_AREA:{de:`Kinderwagenbereich`,en:`Pram/pushchair area`,fr:`Espace poussette`,it:`Area per passeggini`},PRAM_ICON:{de:`Kinderwagenbereich`,en:`Pram/pushchair area`,fr:`Espace poussette`,it:`Area per passeggini`},RESTAURANT:{de:`Restaurant`,en:`Restaurant`,fr:`Restaurant`,it:`Ristorante`},RESTAURANT_AREA:{de:`Restaurant`,en:`Restaurant`,fr:`Restaurant`,it:`Ristorante`},RESTAURANT_ICON:{de:`Restaurant`,en:`Restaurant`,fr:`Restaurant`,it:`Ristorante`},SILENCE:{de:`Ruhezone`,en:`Quiet zone`,fr:`Espace silence`,it:`Zona del silenzio`},SILENCE_AREA_ICON:{de:`Ruhezone`,en:`Quiet zone`,fr:`Espace silence`,it:`Zona del silenzio`},SILENCE_ICON:{de:`Ruhezone`,en:`Quiet zone`,fr:`Espace silence`,it:`Zona del silenzio`},SKI_AREA:{de:`Ski Bereich`,en:`Ski area`,fr:`Espace ski`,it:`Area sci`},SKI_ICON:{de:`Ski Bereich`,en:`Ski area`,fr:`Espace ski`,it:`Area sci`},STAFF_AREA:{de:`Zugpersonal`,en:`Train crew`,fr:`Personnel de train`,it:`Personale di treno`},STAIR_AREA:{de:`Treppenbereich`,en:`Stair area`,fr:`Escalier`,it:`Area scale`},TODDLER:{de:`Kleinkinderbereich`,en:`Toddler compartment`,fr:`Compartiment pour enfants en bas âge`,it:`Compartimento per bambini piccoli`},TODDLER_AREA:{de:`Kleinkinderbereich`,en:`Toddler compartment`,fr:`Compartiment pour enfants en bas âge`,it:`Compartimento per bambini piccoli`},TOILET_AREA:{de:`Toilettenbereich`,en:`Toilet area`,fr:`Toilettes`,it:`Area toilette`},TOILET_ICON:{de:`Toilettenbereich`,en:`Toilet area`,fr:`Toilettes`,it:`Area toilette`},TOILET_WHEELCHAIR_AREA:{de:`Rollstuhl Toilettenbereich`,en:`Wheelchair/toilet area`,fr:`Toilettes pour fauteuils roulants`,it:`Area toilette accessibile in sedia a rotelle`},TOILET_WHEELCHAIR_ICON:{de:`Rollstuhl Toilettenbereich`,en:`Wheelchair/toilet area`,fr:`Toilettes pour fauteuils roulants`,it:`Area toilette accessibile in sedia a rotelle`},WARDROBE_AREA:{de:`Garderobenbereich`,en:`Coat rack`,fr:`Espace vestiaire`,it:`Area guardaroba`},WHEELCHAIR:{de:`Rollstuhlzone`,en:`Wheelchair zone`,fr:`Espace pour fauteuils roulants`,it:`Zona per sedie a rotelle`},WHEELCHAIR_AND_SEAT:{de:`Rollstuhlzone`,en:`Wheelchair zone`,fr:`Espace pour fauteuils roulants`,it:`Zona per sedie a rotelle`},WHEELCHAIR_ICON:{de:`Rollstuhlzone`,en:`Wheelchair zone`,fr:`Espace pour fauteuils roulants`,it:`Zona per sedie a rotelle`},WHEELCHAIR_NO_SEAT:{de:`Rollstuhlzone`,en:`Wheelchair zone`,fr:`Espace pour fauteuils roulants`,it:`Zona per sedie a rotelle`},WIFI:{de:`Gratis-Internet mit der App SBB FreeSurf`,en:`Free internet with the SBB FreeSurf app`,fr:`Internet gratuit avec l’appli FreeSurf CFF`,it:`Internet gratis con l’app FreeSurf FFS`},PLACE_PROPERTIES:{AISLE_SEAT:{de:`Gang`,en:`aisle`,fr:`Couloir`,it:`corridoio`},"AIR-CONDITIONED":{de:`Klimatisierter Bereich`,en:`air-conditioned area`,fr:`Zone climatisée`,it:`area climatizzata`},ANY_SEAT:{de:`optionale Auswahl`,en:`optional selection`,fr:`sélection facultative`,it:`selezione opzionale`},BISTRO:{de:`Bistro`,en:`bistro`,fr:`Bistro`,it:`bistrò`},BICYCLE:{de:`Velo`,en:`bicycle`,fr:`Vélo`,it:`biciclette`},BICYCLE_LOW:{de:`Velohaken tief`,en:`bicycle hook low`,fr:`Crochets pour vélos abaissés`,it:`gancio per biciclette abbassare`},BICYCLE_MIDDLE:{de:`Velohaken mittel`,en:`bicycle hook medium`,fr:`Crochets pour vélos moyens`,it:`gancio per biciclette medio`},BICYCLE_HIGH:{de:`Velohaken hoch`,en:`bicycle hook high`,fr:`Crochets pour vélos surélevés`,it:`gancio per biciclette alto`},BUSINESS:{de:`Business`,en:`business`,fr:`Business`,it:`business`},BUSINESS_COMFORT:{de:`Business comfort`,en:`business Comfort`,fr:`Business Confort`,it:`business Comfort`},CABIN8:{de:`Gruppen`,en:`groups`,fr:`Groupes`,it:`gruppi`},CAR_LARGE:{de:`Fahrzeug mit einer Länge zwischen 4,42m und 5,3m und einer Dachbreite zwischen 1,36m und 1,55m`,en:`Vehicle with a length between 4.42m and 5.3m and a roof width between 1.36m and 1.55m`,fr:`Véhicule d’une longueur comprise entre 4,42m et 5,3m et d’une largeur de toit comprise entre 1,36m et 1,55m`,it:`Veicoli con una lunghezza compresa tra 4,42m e 5,3m e una larghezza del tetto compresa tra 1,36m e 1,55m`},CAR_SMALL:{de:`Fahrzeug mit einer Länge zwischen 4,42m und 5,3m und einerDachbreite bis 1,35m`,en:`Vehicle with a length between 4.42m and 5.3m and a roof width of up to 1.35m`,fr:`Véhicule d’une longueur comprise entre 4,42m et 5,3m et d’une largeur de toit inférieure ou égale à 1,35m`,it:`Veicolo con una lunghezza compresa tra 4,42m e 5,3m e unalarghezza del tetto fino a 1,35m`},CARRE:{de:`Carré`,en:`Carré`,fr:`Carré`,it:`Carré`},CHILDREN_AREA:{de:`Kinderabteil`,en:`children’s compartment`,fr:`Compartiment enfants`,it:`compartimento per bambini`},CLUB:{de:`Club`,en:`Club`,fr:`Club`,it:`Club`},CLUB_2:{de:`Club Duo`,en:`Club Duo`,fr:`Club Duo`,it:`Club Duo`},CLUB_4:{de:`Club 4`,en:`Club 4`,fr:`Club 4`,it:`Club 4`},COMPARTMENT:{de:`Seitengang`,en:`side aisle`,fr:`Couloir latéral`,it:`corridoio laterale`},COMPLETE:{de:`Privatabteil`,en:`private compartment`,fr:`Compartiment privé`,it:`compartimento privato`},CONFERENCE:{de:`Konferenzraum`,en:`conference room`,fr:`Compartiment conférence`,it:`compartimento Conferenza`},CONNECTING_DOOR:{de:`Abteil mit Verbindungstür`,en:`compartment with connecting door`,fr:`Compartiment avec porte communicante`,it:`compartimento con porta di collegamento`},COUCHETTE_2:{de:`2er`,en:`2 berths`,fr:`2 places`,it:`2 posti`},COUCHETTE_4:{de:`4er`,en:`4 berths`,fr:`4 places`,it:`4 posti`},COUCHETTE_5:{de:`5er`,en:`5 berths`,fr:`5 places`,it:`5 posti`},COUCHETTE_6:{de:`6er`,en:`6 berths`,fr:`6 places`,it:`6 posti`},COUCHETTE_COMFORT_4:{de:`4er comfort`,en:`4 berths comfort`,fr:`4 places confort`,it:`4 posti comfort`},COUCHETTE_COMFORT_5:{de:`5er comfort`,en:`5 berths comfort`,fr:`5 places confort`,it:`5 posti comfort`},COUCHETTE_COMFORT_6:{de:`6er`,en:`6 berths comfort`,fr:`6 places confort`,it:`6 posti comfort`},COUCHETTE_PRM_2:{de:`2er PRM`,en:`2 berths PRM`,fr:`2 places PMR`,it:`2 posti PRM`},COUCHETTE_PRM_3:{de:`3er PRM`,en:`3 berths PRM`,fr:`3 places PMR`,it:`3 posti PRM`},COUCHETTE_PRM_4:{de:`4er PRM`,en:`4 berths PRM`,fr:`4 places PMR`,it:`4 posti PRM`},DOUBLE:{de:`Double`,en:`Double`,fr:`Double`,it:`Double`},DOUBLE_WC:{de:`Double mit WC`,en:`Double with WC`,fr:`Double avec WC`,it:`Double con WC`},DOUBLE_SWC:{de:`Double Deluxe`,en:`Double Deluxe`,fr:`Double Deluxe`,it:`Double Deluxe`},DOUBLE_S:{de:`Double mit Dusche`,en:`Double with shower`,fr:`Double avec douche`,it:`Double con Doccia`},EASY_ACCESS:{de:`PRM`,en:`PRM`,fr:`PRM`,it:`PRM`},FACE_2_FACE:{de:`Duo vis à vis`,en:`Duo vis à vis`,fr:`Duo vis à vis`,it:`Duo vis à vis`},EXCELLENCE:{de:`Excellence`,en:`excellence`,fr:`excellence`,it:`excellence`},FAMILY:{de:`Familienabteil`,en:`family zone`,fr:`compartement famille`,it:`compartimente familia`},FRONT_VIEW:{de:`VIP`,en:`VIP`,fr:`VIP`,it:`VIP`},HISTORIC_COACH:{de:`Historic`,en:`historic`,fr:`historique`,it:`historic`},INCLUDING_MEAL:{de:`Mahlzeit inbegriffen`,en:`meal included`,fr:`repas inclus`,it:`pasto incluso`},INCLUDING_DRINK:{de:`Willkommensgetränk inbegriffen`,en:`welcome drink included`,fr:`boisson de bienvenue incluse`,it:`bevanda di benvenuto incluso`},KIOSQUE:{de:`Kiosk`,en:`kiosk`,fr:`kiosque`,it:`chiosco`},LADIES:{de:`Damenabteil`,en:`women Compartment`,fr:`compartiment femmes`,it:`compartimento donne`},LOWER_BED:{de:`unten`,en:`at the bottom`,fr:`en bas`,it:`in basso`},LOWER_DECK:{de:`unten`,en:`at the bottom`,fr:`en bas`,it:`in basso`},MEN:{de:`Herrenabteil`,en:`gents compartment`,fr:`compartiment hommes`,it:`compartimento Uomini`},MIDDLE_BED:{de:`Mitte`,en:`middle`,fr:`milieu`,it:`centro`},MIDDLE_DECK:{de:`Mitte`,en:`middle`,fr:`milieu`,it:`centro`},MIDDLE_SEAT:{de:`Mitte`,en:`middle`,fr:`milieu`,it:`centro`},MINI_SUITE:{de:`Mini Cabin`,en:`mini Cabin`,fr:`Mini Cabin`,it:`Mini Cabin`},MIXED:{de:`gemischtes Abteil`,en:`mixed compartment`,fr:`compartiment mixte`,it:`compartimento misto`},MOTOR_CYCLE:{de:`Motorrad`,en:`motorcycle`,fr:`moto`,it:`motocicletta`},MOTOR_CYCLE_SC:{de:`Motorrad mit Seitenwagen`,en:`motorcycle with sidecar`,fr:`moto avec side-car`,it:`motocicletta con sidecar`},NEAR_ANIMALS:{de:`nah am Haustier`,en:`close to pet`,fr:`proche de l’animal de compagnie`,it:`vicino all’animale domestico`},NEAR_ASSISTANT_DOG_AREA:{de:`nah am Assistenzhund`,en:`close to assistance dog`,fr:`près du chien d’assistance`,it:`vicino al cane da assistenza`},NEAR_DINING:{de:`nah am Speisewagen`,en:`close to dining car`,fr:`à proximité de la voiture-restaurant`,it:`nelle vicinanze della carrozza ristorantev`},NEAR_PLAY_AREA:{de:`nah am Spielplatz`,en:`close to playground`,fr:`à proximité de l’aire de jeux`,it:`vicino al parco giochi`},NEAR_BICYCLE_AREA:{de:`nah am Veloplatz`,en:`close to bike space`,fr:`à proximité de la place pour vélo`,it:`vicino al posto bici`},NEAR_WHEELCHAIR:{de:`nah am Rollstuhlplatz`,en:`close to wheelchair space`,fr:`à proximité de l’emplacement pour fauteuils roulants`,it:`vicino al posto per sedie a rotelle`},OPEN_SPACE:{de:`Mittelgang`,en:`middle aisle`,fr:`couloir central`,it:`corridoio centrale`},PANORAMA:{de:`Panoramawagen`,en:`panorama coach`,fr:`voiture panoramique`,it:`carrozza panoramica`},PHONE:{de:`Mobile`,en:`mobile`,fr:`mobile`,it:`mobile`},POWER:{de:`Mit Steckdose`,en:`with power socket`,fr:`avec prise`,it:`con presa elettrica`},PRAM:{de:`Kinderwagen`,en:`close to space for strollers`,fr:`poussettes`,it:`passeggino`},PRAM_WITH_SEAT:{de:`nah am Platz für Kinderwagen`,en:`Seat with space for a pram`,fr:`près de l’espace pour les poussettes`,it:`vicino al posto per passeggini`},PREMIUM:{de:`Premium`,en:`premium`,fr:`premium`,it:`premium`},RESTAURANT:{de:`Restaurant`,en:`restaurant`,fr:`restaurant`,it:`ristorante`},RESTRICTED_VIEW:{de:`Fenster mit eingeschränkter Sicht`,en:`windows with restricted visibility`,fr:`fenêtres avec visibilité réduite`,it:`finestre con visibilità limitata`},SALON:{de:`Salon`,en:`Salon`,fr:`salon`,it:`Salon`},SILENCE:{de:`Ruheabteil`,en:`quiet compartment`,fr:`compartiment silence`,it:`compartimento del silenzio`},SINGLE:{de:`Single`,en:`Single`,fr:`Single`,it:`Single`},SINGLE_WC:{de:`Single mit WC`,en:`Single with WC`,fr:`Single avec WC`,it:`Single con WC`},SINGLE_SWC:{de:`Single Deluxe`,en:`Single Deluxe`,fr:`Single Deluxe`,it:`Single Deluxe`},SIDE_BY_SIDE:{de:`Duo côte à côte`,en:`Duo côte à côte`,fr:`Duo côte à côte`,it:`Duo côte à côte`},SLEEPERETTE:{de:`Sleeperette`,en:`Sleeperette`,fr:`Sleeperette`,it:`Sleeperette`},SOLO:{de:`freier Nebensitz`,en:`free side seat`,fr:`siège voisin libre`,it:`sedile secondario libero`},SOLO_COM:{de:`freier Nebensitz`,en:`free side seat`,fr:`siège voisin libre`,it:`sedile secondario libero`},SLEEPER:{de:`Single (klein)`,en:`Single (small)`,fr:`Single (petit)`,it:`Single (piccolo)`},TANDEM:{de:`Tandem`,en:`tandem`,fr:`tandem`,it:`tandem`},TABLE:{de:`Tisch`,en:`table`,fr:`table`,it:`tavolo`},TOURIST_SLEEPER_2:{de:`Duo`,en:`Duo`,fr:`Duo`,it:`Duo`},TOURIST_SLEEPER_3:{de:`3er`,en:`Triple`,fr:`Triple`,it:`Triple`},TOURIST_SLEEPER_3_WC:{de:`3er mit WC`,en:`Triple with WC`,fr:`3 places avec WC`,it:`3 posti con WC`},TOURIST_SLEEPER_3_SWC:{de:`3er Deluxe`,en:`Triple Deluxe`,fr:`3 places Deluxe`,it:`3 posti Deluxe`},TOURIST_SLEEPER_4:{de:`4er`,en:`4-berth`,fr:`4 places`,it:`4 posti`},TRAVEL_DIRECTION_TRANSVERSELY:{de:`quer zur Fahrtrichtung`,en:`transversely to travel direction`,fr:`Transversalement à la direction du voyage`,it:`trasversalmente alla direzione di viaggio`},TRAVEL_DIRECTION_IN_DIRECTION:{de:`in Fahrtrichtung`,en:`in travel direction`,fr:`Dans le sens de la marche`,it:`nella direzione di marcia`},TRAVEL_DIRECTION_IN_OPPOSITE_DIRECTION:{de:`gegen die Fahrtrichtung`,en:`in opposite direction`,fr:`Dans le sens inverse de la marche`,it:`nella direzione opposta alla marcia`},UPPER_BED:{de:`oben`,en:`at the top`,fr:`en haut`,it:`in alto`},UPPER_DECK:{de:`oben`,en:`at the top`,fr:`en haut`,it:`in alto`},VIDEO:{de:`mit Unterhaltungssytem`,en:`with entertainment system`,fr:`avec système de divertissement`,it:`con sistema di intrattenimento`},WHEELCHAIR:{de:`Rollstuhl`,en:`wheelchair`,fr:`fauteuil roulant`,it:`sedia a rotelle`},WHEELCHAIR_AND_SEAT:{de:`Rollstuhl mit zusätzlichem Sitzplatz`,en:`wheelchair with additional seat`,fr:`fauteuil roulant avec place assise supplémentaire`,it:`sedia a rotelle con posto a sedere aggiuntivo`},WHEELCHAIR_NO_SEAT:{de:`Rollstuhl ohne zusätzlichen Sitzplatz`,en:`Wheelchair space without additional seat`,fr:`fauteuil roulant avec place assise supplémentaire`,it:`sedia a rotelle con posto a sedere aggiuntivo`},WIFI:{de:`Wlan`,en:`Wi-Fi`,fr:`Wi-Fi`,it:`Wlan`},WINDOW_SEAT:{de:`Fenster`,en:`window`,fr:`fenêtre`,it:`finestre`},WITHOUT_TRAY_TABLE:{de:`ohne Tisch`,en:`without table`,fr:`sans table`,it:`senza tavolo`},WITH_ANIMALS:{de:`Tiere erlaubt`,en:`animals allowed`,fr:`animaux admis`,it:`animali ammessi`},WITH_SMALL_CHILDREN:{de:`Kleinkindabteil`,en:`infant compartment`,fr:`compartiment petit enfants`,it:`compartimento per bambini piccoli`},WITHOUT_ANIMALS:{de:`Tiere nicht erlaubt`,en:`pets not allowed`,fr:`animaux non autorisés`,it:`animali non ammessi`}},PLACE_CONTROL_SEAT_FREE:{de:`Sitzplatz _param0_ ist frei`,en:`Seat _param0_ is available`,fr:`Place _param0_ est libre`,it:`Posto a sedere _param0_ è libero`},PLACE_CONTROL_SEAT_SELECTED:{de:`Sitzplatz _param0_ ist ausgewählt`,en:`Seat _param0_ has been selected`,fr:`Place _param0_ est sélectionnée`,it:`Posto a sedere _param0_ è selezionato`},PLACE_CONTROL_BICYCLE_FREE:{de:`Veloplatz _param0_ ist frei`,en:`Bike space _param0_ is available`,fr:`Place pour vélo _param0_ est libre`,it:`Posto bici _param0_ è libero`},PLACE_CONTROL_BICYCLE_SELECTED:{de:`Veloplatz _param0_ ist ausgewählt`,en:`Bike space _param0_ has been selected`,fr:`Place pour vélo _param0_ est sélectionnée`,it:`Posto bici _param0_ è selezionato`},PLACE_CONTROL_SEAT_RESTRICTED:{de:`Sitzplatz ist nicht buchbar`,en:`Seat cannot be reserved`,fr:`Place ne peut pas être réservée`,it:`Posto a sedere non è prenotabile`},PLACE_CONTROL_BICYCLE_RESTRICTED:{de:`Veloplatz ist nicht buchbar`,en:`Bike space cannot be reserved`,fr:`Place pour vélo indisponible`,it:`Posto bici non è prenotabile`},PLACE_CONTROL_SEAT_ALLOCATED:{de:`Sitzplatz _param0_ ist besetzt`,en:`Seat _param0_ is occupied`,fr:`Place _param0_ est occupée`,it:`Posto a sedere _param0_ è occupato`},PLACE_CONTROL_BICYCLE_ALLOCATED:{de:`Veloplatz _param0_ ist besetzt`,en:`Bike space _param0_ is occupied`,fr:`Place pour vélo _param0_ est occupée`,it:`Posto bici _param0_ è occupato`},PLACE_PROPERTY:{de:`Platzeigenschaften`,en:`Seat features`,fr:`Caractéristiques de la place`,it:`Caratteristiche del posto`},COACH_AVAILABLE_SERVICES:{de:`Verfügbare Services`,en:`Available services`,fr:`Services disponibles`,it:`Servizi disponibili`},EXAMPLE_WITH_PARAMS_DO_NOT_USE:{de:`Test mit Parametern: _param0_ und _param1_`,en:`Test with parameters: _param0_ and _param1_`,fr:`Test avec paramètres: _param0_ et _param1_`,it:`Test con parametri: _param0_ e _param1_`}},I=(e,t,n)=>{let r=F,i=``;for(let t of e.split(`.`))if(r=r?.[t],!r)break;return typeof r==`object`&&r&&!Array.isArray(r)?i=r[t]||``:typeof r==`string`&&(i=r),n?n.reduce((e,t,n)=>e.replace(`_param${n}_`,t),i):i};var L=`:host{--sbb-seat-reservation-area-border-radius:var(--sbb-border-width-4x);--sbb-seat-reservation-area-rotation:0;--sbb-seat-reservation-area-z-index:0;height:calc(var(--sbb-seat-reservation-area-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem));width:calc(var(--sbb-seat-reservation-area-width) * var(--sbb-seat-reservation-one-px-rem,.0625rem));border:var(--sbb-border-width-1x) solid var(--sbb-color-graphite);border:var(--sbb-border-width-1x) solid light-dark(var(--sbb-color-graphite),var(--sbb-color-granite));border-radius:var(--sbb-seat-reservation-area-border-radius);z-index:var(--sbb-seat-reservation-area-z-index);rotate:calc(var(--sbb-seat-reservation-area-rotation) * 1deg);background-color:var(--sbb-background-color-2);justify-content:center;align-items:center;line-height:normal;display:flex;position:absolute;inset-block-start:calc(var(--sbb-seat-reservation-area-top) * var(--sbb-seat-reservation-one-px-rem,.0625rem));inset-inline-start:calc(var(--sbb-seat-reservation-area-left) * var(--sbb-seat-reservation-one-px-rem,.0625rem))}:host([background=dark]){background-color:var(--sbb-color-milk);background-color:light-dark(var(--sbb-color-milk),var(--sbb-color-iron))}:host([mounting=upper-border]){border-radius:0 0 var(--sbb-seat-reservation-area-border-radius) var(--sbb-seat-reservation-area-border-radius);border-block-start-width:0}:host([mounting=lower-border]){border-radius:var(--sbb-seat-reservation-area-border-radius) var(--sbb-seat-reservation-area-border-radius) 0 0;border-block-end-width:0}:host([mounting=upper-to-lower-border]){border-block:none;border-radius:0}:host(.sbb-seat-reservation-area--cursor-pointer){cursor:var(--sbb-cursor-pointer)}
239
+ `,wallLeft1:`<svg width="32" height="40" viewBox="0 0 32 40" fill="none" xmlns="http://www.w3.org/2000/svg">
240
+ <rect x="30" y="0" width="2" height="40" fill="#B7B7B7"/>
241
+ <rect x="24" y="38" width="8" height="2" fill="#B7B7B7"/>
242
+ </svg>
243
+ `,wallLeft2:`<svg width="32" height="72" viewBox="0 0 32 72" fill="none" xmlns="http://www.w3.org/2000/svg">
244
+ <rect x="30" y="0" width="2" height="72" fill="#B7B7B7"/>
245
+ <rect x="24" y="70" width="8" height="2" fill="#B7B7B7"/>
246
+ </svg>
247
+ `,wallLeft3:`<svg width="32" height="104" viewBox="0 0 32 104" fill="none" xmlns="http://www.w3.org/2000/svg">
248
+ <rect x="30" y="0" width="2" height="104" fill="#B7B7B7"/>
249
+ <rect x="24" y="102" width="8" height="2" fill="#B7B7B7"/>
250
+ </svg>
251
+ `,wallCompartments1:`<svg width="32" height="40" viewBox="0 0 32 40" fill="none" xmlns="http://www.w3.org/2000/svg">
252
+ <rect x="15" y="0" width="2" height="40" fill="#B7B7B7"/>
253
+ </svg>
254
+ `,wallCompartments2:`<svg width="32" height="72" viewBox="0 0 32 72" fill="none" xmlns="http://www.w3.org/2000/svg">
255
+ <rect x="15" y="0" width="2" height="72" fill="#B7B7B7"/>
256
+ </svg>
257
+ `,wallCompartments3:`<svg width="32" height="104" viewBox="0 0 32 104" fill="none" xmlns="http://www.w3.org/2000/svg">
258
+ <rect x="15" y="0" width="2" height="104" fill="#B7B7B7"/>
259
+ </svg>
260
+ `,wallRight1:`<svg width="32" height="40" viewBox="0 0 32 40" fill="none" xmlns="http://www.w3.org/2000/svg">
261
+ <rect x="0" y="0" width="2" height="40" fill="#B7B7B7"/>
262
+ <rect x="0" y="38" width="8" height="2" fill="#B7B7B7"/>
263
+ </svg>
264
+ `,wallRight2:`<svg width="32" height="72" viewBox="0 0 32 72" fill="none" xmlns="http://www.w3.org/2000/svg">
265
+ <rect x="0" y="0" width="2" height="72" fill="#B7B7B7"/>
266
+ <rect x="0" y="70" width="8" height="2" fill="#B7B7B7"/>
267
+ </svg>
268
+ `,wallRight3:`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="104" viewBox="0 0 32 104">
269
+ <rect x="0" y="0" width="2" height="104" fill="#B7B7B7"/>
270
+ <rect x="0" y="102" width="8" height="2" fill="#B7B7B7"/>
271
+ </svg>
272
+ `,tWallCompartments1:`<svg width="32" height="40" viewBox="0 0 32 40" fill="none" xmlns="http://www.w3.org/2000/svg">
273
+ <rect x="15" y="0" width="2" height="40" fill="#B7B7B7"/>
274
+ <rect x="8" y="38" width="16" height="2" fill="#B7B7B7"/>
275
+ </svg>
276
+ `,tWallCompartments2:`<svg width="32" height="72" viewBox="0 0 32 72" fill="none" xmlns="http://www.w3.org/2000/svg">
277
+ <rect x="15" y="0" width="2" height="72" fill="#B7B7B7"/>
278
+ <rect x="8" y="70" width="16" height="2" fill="#B7B7B7"/>
279
+ </svg>
280
+ `,tWallCompartments3:`<svg width="32" height="104" viewBox="0 0 32 104" fill="none" xmlns="http://www.w3.org/2000/svg">
281
+ <rect x="15" y="0" width="2" height="104" fill="#B7B7B7"/>
282
+ <rect x="8" y="102" width="16" height="2" fill="#B7B7B7"/>
283
+ </svg>
284
+ `},P={BICYCLE:{svgName:`sa-vo`},BICYCLE_HIGH:{svgName:`sa-vo`},BICYCLE_HIGH_ICON:{svgName:`sa-vo`},BICYCLE_ICON:{svgName:`sa-vo`},BICYCLE_LOW:{svgName:`sa-vo`},BICYCLE_LOW_ICON:{svgName:`sa-vo`},BICYCLE_MIDDLE:{svgName:`sa-vo`},BICYCLE_MIDDLE_ICON:{svgName:`sa-vo`},BISTRO:{svgName:`sa-mi`},BISTRO_ICON:{svgName:`sa-mi`},BUSINESS:{svgName:`sa-bz`},BUSINESS_COMFORT:{svgName:`sa-bz`},BUSINESS_ICON:{svgName:`sa-bz`},COACH_BORDER_MIDDLE:{svg:N.chassisRowMiddle},COACH_WALL_NO_PASSAGE:{svg:N.chassisRowOuter},COACH_PASSAGE:{svg:N.chassisPassageWaggonTopLeft},COMPARTMENT_PASSAGE:{svg:N.chassisPassageCompartmentMiddle},COMPARTMENT_PASSAGE_HIGH:{svg:N.chassisPassageCompartmentLeftTop},COMPARTMENT_PASSAGE_LOW:{svg:N.chassisPassageCompartmentRightBottom},COMPARTMENT_WALL:{svg:N.chassisSeparator},DRIVER_AREA:{svg:N.chassisDriverTrain},DRIVER_AREA_BUS:{svg:N.chassisDriverBus},DRIVER_AREA_TRAIN:{svg:N.chassisDriverTrainFull},DRIVER_AREA_NO_VERTICAL_WALL:{svg:N.chassisDriverTrain},EASY_ACCESS:{svgName:`sa-em`},EASY_ACCESS_AREA:{svgName:`sa-em`},EASY_ACCESS_ICON:{svgName:`sa-em`},ENTRY_EXIT:{svg:N.layoutEntrance},FAMILY:{svgName:`sa-fa`},FAMILY_AREA:{svg:N.familyArea},LUGGAGE_AREA:{svgName:`sa-ga`},LUGGAGE_ICON:{svgName:`sa-ga`},MOBILE_PHONE_AREA:{svg:N.mobilePhone},MOBILE_PHONE_ICON:{svg:N.mobilePhone},MOBILE_PHONE_FORBIDDEN_AREA:{svg:N.mobilePhoneForbidden},MOBILE_PHONE_FORBIDDEN_ICON:{svg:N.mobilePhoneForbidden},MULTI_FUNCTION_AREA:{svgName:`sa-mf`},MULTI_FUNCTION_ICON:{svgName:`sa-mf`},PLACE_BICYCLE_ALLOCATED:{svg:N.interiorPlaceBikeUnavailable},PLACE_BICYCLE_FREE:{svg:N.interiorPlaceBikeDefault},PLACE_BICYCLE_RESTRICTED:{svg:N.interiorPlaceBikeNotBookable},PLACE_BICYCLE_SELECTED:{svg:N.interiorPlaceBikeSelected},PLACE_SEAT_ALLOCATED:{svg:N.interiorPlaceSeatUnavailable},PLACE_SEAT_FREE:{svg:N.interiorPlaceSeatDefault},PLACE_SEAT_RESTRICTED:{svg:N.interiorPlaceSeatNotBookable},PLACE_SEAT_SELECTED:{svg:N.interiorPlaceSeatSelected},WALL_LEFT_3:{svg:N.wallLeft3},WALL_LEFT_2:{svg:N.wallLeft2},WALL_LEFT_1:{svg:N.wallLeft1},WALL_COMPARTMENTS_3:{svg:N.wallCompartments3},WALL_COMPARTMENTS_2:{svg:N.wallCompartments2},WALL_COMPARTMENTS_1:{svg:N.wallCompartments1},WALL_RIGHT_3:{svg:N.wallRight3},WALL_RIGHT_2:{svg:N.wallRight2},WALL_RIGHT_1:{svg:N.wallRight1},T_WALL_COMPARTMENTS_3:{svg:N.tWallCompartments3},T_WALL_COMPARTMENTS_2:{svg:N.tWallCompartments2},T_WALL_COMPARTMENTS_1:{svg:N.tWallCompartments1},PLAYGROUND_AREA:{svgName:`sa-fa`},PLAYGROUND_ICON:{svgName:`sa-fa`},PRAM:{svgName:`sa-abteilkinderwagen`},PRAM_AREA:{svgName:`sa-abteilkinderwagen`},PRAM_ICON:{svgName:`sa-abteilkinderwagen`},RESTAURANT:{svgName:`sa-wr`},RESTAURANT_AREA:{svgName:`sa-wr`},RESTAURANT_ICON:{svgName:`sa-wr`},SILENCE:{svgName:`sa-rz`},SILENCE_AREA_ICON:{svgName:`sa-rz`},SILENCE_ICON:{svgName:`sa-rz`},SKI_AREA:{svgName:`sa-sa`},SKI_ICON:{svgName:`sa-sa`},STAFF_AREA:{svgName:`avatar-train-staff-medium`},STAIR_AREA:{svgName:`sa-ac`},TODDLER:{svg:N.toddler},TODDLER_AREA:{svg:N.toddler},TOILET_AREA:{svgName:`sa-wc`},TOILET_ICON:{svgName:`sa-wc`},TOILET_WHEELCHAIR_AREA:{svgName:`sa-rw`},TOILET_WHEELCHAIR_ICON:{svgName:`sa-rw`},WARDROBE_AREA:{svgName:`sa-ka`},WHEELCHAIR:{svgName:`sa-rs`},WHEELCHAIR_AND_SEAT:{svgName:`sa-rs`},WHEELCHAIR_ICON:{svgName:`sa-rs`},WHEELCHAIR_NO_SEAT:{svgName:`sa-rn`},WIFI:{svgName:`sa-wv`}},F={SINGLE_DECK:{de:`Einzeldeck`,en:`Single deck`,fr:`Étage unique`,it:`Piano singolo`},LOWER_DECK:{de:`Unterdeck`,en:`Lower deck`,fr:`Salle basse`,it:`Sala bassa`},MIDDLE_DECK:{de:`Mitteldeck`,en:`Middle deck`,fr:`Niveau du milieu`,it:`Livello centrale`},UPPER_DECK:{de:`Oberdeck`,en:`Upper deck`,fr:`Salle haute`,it:`Sala alta`},COACH_TABLE_CAPTION:{de:`Wagen _param0_ selektiert`,en:`Coach _param0_ selected`,fr:`Voiture _param0_ sélectionnée`,it:`Carrozza _param0_ selezionata`},COACH_BLOCKED_TABLE_CAPTION:{de:`Wagen _param0_ ist nicht betretbar. Navigieren Sie bitte zum nächsten verfügbaren Wagen`,en:`No access to coach _param0_. Please navigate to the next available coach`,fr:`La voiture _param0_ n’est pas accessible. Veuillez continuer jusqu’à la prochaine voiture disponible`,it:`La carrozza _param0_ non è accessibile. Naviga verso la prossima carrozza disponibile`},SEAT_RESERVATION_BEGIN:{de:`Beginn der Grafische Sitzplatzreservierung`,en:`Start Graphic Seat Reservation`,fr:`Commencer la réservation graphique de places`,it:`Avvio della prenotazione grafica dei posti`},SEAT_RESERVATION_END:{de:`Verlassen der Grafische Sitzplatzreservierung`,en:`Exit Graphic Seat Reservation`,fr:`Terminer la réservation graphique de places`,it:`Uscita dalla prenotazione grafica dei posti`},COACH_LOCOMOTIVE:{de:`Lokomotive`,en:`Locomotive`,fr:`Locomotive`,it:`Locomotiva`},SEAT_RESERVATION_TRAVEL_DIRECTION:{de:`Fahrtrichtung`,en:`Travel direction`,fr:`Direction du voyage`,it:`Direzione di viaggio`},NAVIGATE_TO_COACH:{de:`Navigiere zu Wagen _param0_`,en:`Navigate to coach _param0_`,fr:`Aller à la voiture _param0_`,it:`Naviga verso la carrozza _param0_`},NAVIGATE_TO_COACH_SERVICE_CLASS_SUB:{de:` mit _param0_ Abteil`,en:` with _param0_ compartment`,fr:` avec compartiment _param0_`,it:` con compartimento di _param0_`},NAVIGATE_COACH_BLOCKED:{de:`Zugabteil _param0_ ist nicht betretbar`,en:`No access to train compartment _param0_`,fr:`Le compartiment _param0_ n’est pas accessible`,it:`Il compartimento del treno _param0_ non è accessibile`},SEAT_RESERVATION_NAVIGATION:{de:`Sitzplatzreservierungsnavigation`,en:`Seat reservation navigation`,fr:`Navigation pour la réservation de places`,it:`Navigazione per la prenotazione dei posti`},COACH_AVAILABLE_NUMBER_OF_PLACES:{de:`_param0_ verfügbare Sitzplätze. _param1_ verfügbare Veloplätze.`,en:`_param0_ seats available. _param1_ available bicycle spaces.`,fr:`_param0_ places assises disponibles. _param1_ places pour vélos disponibles.`,it:`_param0_ posti a sedere disponibili. _param1_ posti per biciclette disponibili.`},SERVICE_CLASS_FIRST:{de:`erste Klasse`,en:`First class`,fr:`première classe`,it:`prima classe`},SERVICE_CLASS_SECOND:{de:`zweite Klasse`,en:`Second class`,fr:`deuxième classe`,it:`seconda classe`},BICYCLE:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BICYCLE_HIGH:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BICYCLE_HIGH_ICON:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BICYCLE_ICON:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BICYCLE_LOW:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BICYCLE_LOW_ICON:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BICYCLE_MIDDLE:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BICYCLE_MIDDLE_ICON:{de:`Velobereich`,en:`Bike area`,fr:`Espace vélo`,it:`Area bici`},BISTRO:{de:`Bistro`,en:`Bistro`,fr:`Bistro`,it:`Bistro`},BISTRO_ICON:{de:`Bistro`,en:`Bistro`,fr:`Bistro`,it:`Bistro`},BUSINESS:{de:`Businesszone`,en:`Business zone`,fr:`Espace affaires`,it:`Zona business`},BUSINESS_COMFORT:{de:`Businesszone`,en:`Business zone`,fr:`Espace affaires`,it:`Zona business`},BUSINESS_ICON:{de:`Businesszone`,en:`Business zone`,fr:`Espace affaires`,it:`Zona business`},COACH_PASSAGE:{de:`Wagenübergang`,en:`Inter-coach gangway`,fr:`Intercirculation`,it:`Passaggio intercomunicante`},EASY_ACCESS:{de:`Zone für Reisende mit eingeschränkter Mobilität`,en:`Zone for travellers with reduced mobility`,fr:`Zone pour voyageurs à mobilité réduite`,it:`Zona viaggiatori a mobilità ridotta`},EASY_ACCESS_AREA:{de:`Zone für Reisende mit eingeschränkter Mobilität`,en:`Zone for travellers with reduced mobility`,fr:`Zone pour voyageurs à mobilité réduite`,it:`Zona viaggiatori a mobilità ridotta`},EASY_ACCESS_ICON:{de:`Zone für Reisende mit eingeschränkter Mobilität`,en:`Zone for travellers with reduced mobility`,fr:`Zone pour voyageurs à mobilité réduite`,it:`Zona viaggiatori a mobilità ridotta`},ENTRY_EXIT:{de:`Ausgang / Eingang`,en:`Exit / entrance`,fr:`Sortie / Entrée`,it:`Uscita / Ingresso`},FAMILY:{de:`Familienwagen`,en:`Family coach`,fr:`Voiture-familles`,it:`Carrozza famiglia`},FAMILY_AREA:{de:`Familienzone`,en:`Family zone`,fr:`Espace familles`,it:`Zona famiglie`},LUGGAGE_AREA:{de:`Gepäckzone`,en:`Luggage zone`,fr:`Espace bagages`,it:`Zona bagagli`},LUGGAGE_ICON:{de:`Gepäckzone`,en:`Luggage zone`,fr:`Espace bagages`,it:`Zona bagagli`},MOBILE_PHONE_AREA:{de:`Handyzone`,en:`Mobile phone area`,fr:`Espace téléphones portables`,it:`Zona cellulari`},MOBILE_PHONE_ICON:{de:`Handyzone`,en:`Mobile phone area`,fr:`Espace téléphones portables`,it:`Zona cellulari`},MOBILE_PHONE_FORBIDDEN_AREA:{de:`Handyverbot`,en:`Mobile phones prohibited`,fr:`Téléphones portables interdits`,it:`Cellulari vietati`},MOBILE_PHONE_FORBIDDEN_ICON:{de:`Handyverbot`,en:`Mobile phones prohibited`,fr:`Téléphones portables interdits`,it:`Cellulari vietati`},MULTI_FUNCTION_AREA:{de:`Multifunktionsbereich`,en:`Multifunction area`,fr:`Zone multifonctionnelle`,it:`Zona multifunzionale`},MULTI_FUNCTION_ICON:{de:`Multifunktionsbereich`,en:`Multifunction area`,fr:`Zone multifonctionnelle`,it:`Zona multifunzionale`},PLAYGROUND_AREA:{de:`Familienwagen`,en:`Family coach`,fr:`Voiture-familles`,it:`Carrozza famiglia`},PLAYGROUND_ICON:{de:`Familienwagen`,en:`Family coach`,fr:`Voiture-familles`,it:`Carrozza famiglia`},PRAM:{de:`Kinderwagenbereich`,en:`Pram/pushchair area`,fr:`Espace poussette`,it:`Area per passeggini`},PRAM_AREA:{de:`Kinderwagenbereich`,en:`Pram/pushchair area`,fr:`Espace poussette`,it:`Area per passeggini`},PRAM_ICON:{de:`Kinderwagenbereich`,en:`Pram/pushchair area`,fr:`Espace poussette`,it:`Area per passeggini`},RESTAURANT:{de:`Restaurant`,en:`Restaurant`,fr:`Restaurant`,it:`Ristorante`},RESTAURANT_AREA:{de:`Restaurant`,en:`Restaurant`,fr:`Restaurant`,it:`Ristorante`},RESTAURANT_ICON:{de:`Restaurant`,en:`Restaurant`,fr:`Restaurant`,it:`Ristorante`},SILENCE:{de:`Ruhezone`,en:`Quiet zone`,fr:`Espace silence`,it:`Zona del silenzio`},SILENCE_AREA_ICON:{de:`Ruhezone`,en:`Quiet zone`,fr:`Espace silence`,it:`Zona del silenzio`},SILENCE_ICON:{de:`Ruhezone`,en:`Quiet zone`,fr:`Espace silence`,it:`Zona del silenzio`},SKI_AREA:{de:`Ski Bereich`,en:`Ski area`,fr:`Espace ski`,it:`Area sci`},SKI_ICON:{de:`Ski Bereich`,en:`Ski area`,fr:`Espace ski`,it:`Area sci`},STAFF_AREA:{de:`Zugpersonal`,en:`Train crew`,fr:`Personnel de train`,it:`Personale di treno`},STAIR_AREA:{de:`Treppenbereich`,en:`Stair area`,fr:`Escalier`,it:`Area scale`},TODDLER:{de:`Kleinkinderbereich`,en:`Toddler compartment`,fr:`Compartiment pour enfants en bas âge`,it:`Compartimento per bambini piccoli`},TODDLER_AREA:{de:`Kleinkinderbereich`,en:`Toddler compartment`,fr:`Compartiment pour enfants en bas âge`,it:`Compartimento per bambini piccoli`},TOILET_AREA:{de:`Toilettenbereich`,en:`Toilet area`,fr:`Toilettes`,it:`Area toilette`},TOILET_ICON:{de:`Toilettenbereich`,en:`Toilet area`,fr:`Toilettes`,it:`Area toilette`},TOILET_WHEELCHAIR_AREA:{de:`Rollstuhl Toilettenbereich`,en:`Wheelchair/toilet area`,fr:`Toilettes pour fauteuils roulants`,it:`Area toilette accessibile in sedia a rotelle`},TOILET_WHEELCHAIR_ICON:{de:`Rollstuhl Toilettenbereich`,en:`Wheelchair/toilet area`,fr:`Toilettes pour fauteuils roulants`,it:`Area toilette accessibile in sedia a rotelle`},WARDROBE_AREA:{de:`Garderobenbereich`,en:`Coat rack`,fr:`Espace vestiaire`,it:`Area guardaroba`},WHEELCHAIR:{de:`Rollstuhlzone`,en:`Wheelchair zone`,fr:`Espace pour fauteuils roulants`,it:`Zona per sedie a rotelle`},WHEELCHAIR_AND_SEAT:{de:`Rollstuhlzone`,en:`Wheelchair zone`,fr:`Espace pour fauteuils roulants`,it:`Zona per sedie a rotelle`},WHEELCHAIR_ICON:{de:`Rollstuhlzone`,en:`Wheelchair zone`,fr:`Espace pour fauteuils roulants`,it:`Zona per sedie a rotelle`},WHEELCHAIR_NO_SEAT:{de:`Rollstuhlzone`,en:`Wheelchair zone`,fr:`Espace pour fauteuils roulants`,it:`Zona per sedie a rotelle`},WIFI:{de:`Gratis-Internet mit der App SBB FreeSurf`,en:`Free internet with the SBB FreeSurf app`,fr:`Internet gratuit avec l’appli FreeSurf CFF`,it:`Internet gratis con l’app FreeSurf FFS`},PLACE_PROPERTIES:{AISLE_SEAT:{de:`Gang`,en:`aisle`,fr:`Couloir`,it:`corridoio`},"AIR-CONDITIONED":{de:`Klimatisierter Bereich`,en:`air-conditioned area`,fr:`Zone climatisée`,it:`area climatizzata`},ANY_SEAT:{de:`optionale Auswahl`,en:`optional selection`,fr:`sélection facultative`,it:`selezione opzionale`},BISTRO:{de:`Bistro`,en:`bistro`,fr:`Bistro`,it:`bistrò`},BICYCLE:{de:`Velo`,en:`bicycle`,fr:`Vélo`,it:`biciclette`},BICYCLE_LOW:{de:`Velohaken tief`,en:`bicycle hook low`,fr:`Crochets pour vélos abaissés`,it:`gancio per biciclette abbassare`},BICYCLE_MIDDLE:{de:`Velohaken mittel`,en:`bicycle hook medium`,fr:`Crochets pour vélos moyens`,it:`gancio per biciclette medio`},BICYCLE_HIGH:{de:`Velohaken hoch`,en:`bicycle hook high`,fr:`Crochets pour vélos surélevés`,it:`gancio per biciclette alto`},BUSINESS:{de:`Business`,en:`business`,fr:`Business`,it:`business`},BUSINESS_COMFORT:{de:`Business comfort`,en:`business Comfort`,fr:`Business Confort`,it:`business Comfort`},CABIN8:{de:`Gruppen`,en:`groups`,fr:`Groupes`,it:`gruppi`},CAR_LARGE:{de:`Fahrzeug mit einer Länge zwischen 4,42m und 5,3m und einer Dachbreite zwischen 1,36m und 1,55m`,en:`Vehicle with a length between 4.42m and 5.3m and a roof width between 1.36m and 1.55m`,fr:`Véhicule d’une longueur comprise entre 4,42m et 5,3m et d’une largeur de toit comprise entre 1,36m et 1,55m`,it:`Veicoli con una lunghezza compresa tra 4,42m e 5,3m e una larghezza del tetto compresa tra 1,36m e 1,55m`},CAR_SMALL:{de:`Fahrzeug mit einer Länge zwischen 4,42m und 5,3m und einerDachbreite bis 1,35m`,en:`Vehicle with a length between 4.42m and 5.3m and a roof width of up to 1.35m`,fr:`Véhicule d’une longueur comprise entre 4,42m et 5,3m et d’une largeur de toit inférieure ou égale à 1,35m`,it:`Veicolo con una lunghezza compresa tra 4,42m e 5,3m e unalarghezza del tetto fino a 1,35m`},CARRE:{de:`Carré`,en:`Carré`,fr:`Carré`,it:`Carré`},CHILDREN_AREA:{de:`Kinderabteil`,en:`children’s compartment`,fr:`Compartiment enfants`,it:`compartimento per bambini`},CLUB:{de:`Club`,en:`Club`,fr:`Club`,it:`Club`},CLUB_2:{de:`Club Duo`,en:`Club Duo`,fr:`Club Duo`,it:`Club Duo`},CLUB_4:{de:`Club 4`,en:`Club 4`,fr:`Club 4`,it:`Club 4`},COMPARTMENT:{de:`Seitengang`,en:`side aisle`,fr:`Couloir latéral`,it:`corridoio laterale`},COMPLETE:{de:`Privatabteil`,en:`private compartment`,fr:`Compartiment privé`,it:`compartimento privato`},CONFERENCE:{de:`Konferenzraum`,en:`conference room`,fr:`Compartiment conférence`,it:`compartimento Conferenza`},CONNECTING_DOOR:{de:`Abteil mit Verbindungstür`,en:`compartment with connecting door`,fr:`Compartiment avec porte communicante`,it:`compartimento con porta di collegamento`},COUCHETTE_2:{de:`2er`,en:`2 berths`,fr:`2 places`,it:`2 posti`},COUCHETTE_4:{de:`4er`,en:`4 berths`,fr:`4 places`,it:`4 posti`},COUCHETTE_5:{de:`5er`,en:`5 berths`,fr:`5 places`,it:`5 posti`},COUCHETTE_6:{de:`6er`,en:`6 berths`,fr:`6 places`,it:`6 posti`},COUCHETTE_COMFORT_4:{de:`4er comfort`,en:`4 berths comfort`,fr:`4 places confort`,it:`4 posti comfort`},COUCHETTE_COMFORT_5:{de:`5er comfort`,en:`5 berths comfort`,fr:`5 places confort`,it:`5 posti comfort`},COUCHETTE_COMFORT_6:{de:`6er`,en:`6 berths comfort`,fr:`6 places confort`,it:`6 posti comfort`},COUCHETTE_PRM_2:{de:`2er PRM`,en:`2 berths PRM`,fr:`2 places PMR`,it:`2 posti PRM`},COUCHETTE_PRM_3:{de:`3er PRM`,en:`3 berths PRM`,fr:`3 places PMR`,it:`3 posti PRM`},COUCHETTE_PRM_4:{de:`4er PRM`,en:`4 berths PRM`,fr:`4 places PMR`,it:`4 posti PRM`},DOUBLE:{de:`Double`,en:`Double`,fr:`Double`,it:`Double`},DOUBLE_WC:{de:`Double mit WC`,en:`Double with WC`,fr:`Double avec WC`,it:`Double con WC`},DOUBLE_SWC:{de:`Double Deluxe`,en:`Double Deluxe`,fr:`Double Deluxe`,it:`Double Deluxe`},DOUBLE_S:{de:`Double mit Dusche`,en:`Double with shower`,fr:`Double avec douche`,it:`Double con Doccia`},EASY_ACCESS:{de:`PRM`,en:`PRM`,fr:`PRM`,it:`PRM`},FACE_2_FACE:{de:`Duo vis à vis`,en:`Duo vis à vis`,fr:`Duo vis à vis`,it:`Duo vis à vis`},EXCELLENCE:{de:`Excellence`,en:`excellence`,fr:`excellence`,it:`excellence`},FAMILY:{de:`Familienabteil`,en:`family zone`,fr:`compartement famille`,it:`compartimente familia`},FRONT_VIEW:{de:`VIP`,en:`VIP`,fr:`VIP`,it:`VIP`},HISTORIC_COACH:{de:`Historic`,en:`historic`,fr:`historique`,it:`historic`},INCLUDING_MEAL:{de:`Mahlzeit inbegriffen`,en:`meal included`,fr:`repas inclus`,it:`pasto incluso`},INCLUDING_DRINK:{de:`Willkommensgetränk inbegriffen`,en:`welcome drink included`,fr:`boisson de bienvenue incluse`,it:`bevanda di benvenuto incluso`},KIOSQUE:{de:`Kiosk`,en:`kiosk`,fr:`kiosque`,it:`chiosco`},LADIES:{de:`Damenabteil`,en:`women Compartment`,fr:`compartiment femmes`,it:`compartimento donne`},LOWER_BED:{de:`unten`,en:`at the bottom`,fr:`en bas`,it:`in basso`},LOWER_DECK:{de:`unten`,en:`at the bottom`,fr:`en bas`,it:`in basso`},MEN:{de:`Herrenabteil`,en:`gents compartment`,fr:`compartiment hommes`,it:`compartimento Uomini`},MIDDLE_BED:{de:`Mitte`,en:`middle`,fr:`milieu`,it:`centro`},MIDDLE_DECK:{de:`Mitte`,en:`middle`,fr:`milieu`,it:`centro`},MIDDLE_SEAT:{de:`Mitte`,en:`middle`,fr:`milieu`,it:`centro`},MINI_SUITE:{de:`Mini Cabin`,en:`mini Cabin`,fr:`Mini Cabin`,it:`Mini Cabin`},MIXED:{de:`gemischtes Abteil`,en:`mixed compartment`,fr:`compartiment mixte`,it:`compartimento misto`},MOTOR_CYCLE:{de:`Motorrad`,en:`motorcycle`,fr:`moto`,it:`motocicletta`},MOTOR_CYCLE_SC:{de:`Motorrad mit Seitenwagen`,en:`motorcycle with sidecar`,fr:`moto avec side-car`,it:`motocicletta con sidecar`},NEAR_ANIMALS:{de:`nah am Haustier`,en:`close to pet`,fr:`proche de l’animal de compagnie`,it:`vicino all’animale domestico`},NEAR_ASSISTANT_DOG_AREA:{de:`nah am Assistenzhund`,en:`close to assistance dog`,fr:`près du chien d’assistance`,it:`vicino al cane da assistenza`},NEAR_DINING:{de:`nah am Speisewagen`,en:`close to dining car`,fr:`à proximité de la voiture-restaurant`,it:`nelle vicinanze della carrozza ristorantev`},NEAR_PLAY_AREA:{de:`nah am Spielplatz`,en:`close to playground`,fr:`à proximité de l’aire de jeux`,it:`vicino al parco giochi`},NEAR_BICYCLE_AREA:{de:`nah am Veloplatz`,en:`close to bike space`,fr:`à proximité de la place pour vélo`,it:`vicino al posto bici`},NEAR_WHEELCHAIR:{de:`nah am Rollstuhlplatz`,en:`close to wheelchair space`,fr:`à proximité de l’emplacement pour fauteuils roulants`,it:`vicino al posto per sedie a rotelle`},OPEN_SPACE:{de:`Mittelgang`,en:`middle aisle`,fr:`couloir central`,it:`corridoio centrale`},PANORAMA:{de:`Panoramawagen`,en:`panorama coach`,fr:`voiture panoramique`,it:`carrozza panoramica`},PHONE:{de:`Mobile`,en:`mobile`,fr:`mobile`,it:`mobile`},POWER:{de:`Mit Steckdose`,en:`with power socket`,fr:`avec prise`,it:`con presa elettrica`},PRAM:{de:`Kinderwagen`,en:`close to space for strollers`,fr:`poussettes`,it:`passeggino`},PRAM_WITH_SEAT:{de:`nah am Platz für Kinderwagen`,en:`Seat with space for a pram`,fr:`près de l’espace pour les poussettes`,it:`vicino al posto per passeggini`},PREMIUM:{de:`Premium`,en:`premium`,fr:`premium`,it:`premium`},RESTAURANT:{de:`Restaurant`,en:`restaurant`,fr:`restaurant`,it:`ristorante`},RESTRICTED_VIEW:{de:`Fenster mit eingeschränkter Sicht`,en:`windows with restricted visibility`,fr:`fenêtres avec visibilité réduite`,it:`finestre con visibilità limitata`},SALON:{de:`Salon`,en:`Salon`,fr:`salon`,it:`Salon`},SILENCE:{de:`Ruheabteil`,en:`quiet compartment`,fr:`compartiment silence`,it:`compartimento del silenzio`},SINGLE:{de:`Single`,en:`Single`,fr:`Single`,it:`Single`},SINGLE_WC:{de:`Single mit WC`,en:`Single with WC`,fr:`Single avec WC`,it:`Single con WC`},SINGLE_SWC:{de:`Single Deluxe`,en:`Single Deluxe`,fr:`Single Deluxe`,it:`Single Deluxe`},SIDE_BY_SIDE:{de:`Duo côte à côte`,en:`Duo côte à côte`,fr:`Duo côte à côte`,it:`Duo côte à côte`},SLEEPERETTE:{de:`Sleeperette`,en:`Sleeperette`,fr:`Sleeperette`,it:`Sleeperette`},SOLO:{de:`freier Nebensitz`,en:`free side seat`,fr:`siège voisin libre`,it:`sedile secondario libero`},SOLO_COM:{de:`freier Nebensitz`,en:`free side seat`,fr:`siège voisin libre`,it:`sedile secondario libero`},SLEEPER:{de:`Single (klein)`,en:`Single (small)`,fr:`Single (petit)`,it:`Single (piccolo)`},TANDEM:{de:`Tandem`,en:`tandem`,fr:`tandem`,it:`tandem`},TABLE:{de:`Tisch`,en:`table`,fr:`table`,it:`tavolo`},TOURIST_SLEEPER_2:{de:`Duo`,en:`Duo`,fr:`Duo`,it:`Duo`},TOURIST_SLEEPER_3:{de:`3er`,en:`Triple`,fr:`Triple`,it:`Triple`},TOURIST_SLEEPER_3_WC:{de:`3er mit WC`,en:`Triple with WC`,fr:`3 places avec WC`,it:`3 posti con WC`},TOURIST_SLEEPER_3_SWC:{de:`3er Deluxe`,en:`Triple Deluxe`,fr:`3 places Deluxe`,it:`3 posti Deluxe`},TOURIST_SLEEPER_4:{de:`4er`,en:`4-berth`,fr:`4 places`,it:`4 posti`},TRAVEL_DIRECTION_TRANSVERSELY:{de:`quer zur Fahrtrichtung`,en:`transversely to travel direction`,fr:`Transversalement à la direction du voyage`,it:`trasversalmente alla direzione di viaggio`},TRAVEL_DIRECTION_IN_DIRECTION:{de:`in Fahrtrichtung`,en:`in travel direction`,fr:`Dans le sens de la marche`,it:`nella direzione di marcia`},TRAVEL_DIRECTION_IN_OPPOSITE_DIRECTION:{de:`gegen die Fahrtrichtung`,en:`in opposite direction`,fr:`Dans le sens inverse de la marche`,it:`nella direzione opposta alla marcia`},UPPER_BED:{de:`oben`,en:`at the top`,fr:`en haut`,it:`in alto`},UPPER_DECK:{de:`oben`,en:`at the top`,fr:`en haut`,it:`in alto`},VIDEO:{de:`mit Unterhaltungssytem`,en:`with entertainment system`,fr:`avec système de divertissement`,it:`con sistema di intrattenimento`},WHEELCHAIR:{de:`Rollstuhl`,en:`wheelchair`,fr:`fauteuil roulant`,it:`sedia a rotelle`},WHEELCHAIR_AND_SEAT:{de:`Rollstuhl mit zusätzlichem Sitzplatz`,en:`wheelchair with additional seat`,fr:`fauteuil roulant avec place assise supplémentaire`,it:`sedia a rotelle con posto a sedere aggiuntivo`},WHEELCHAIR_NO_SEAT:{de:`Rollstuhl ohne zusätzlichen Sitzplatz`,en:`Wheelchair space without additional seat`,fr:`fauteuil roulant avec place assise supplémentaire`,it:`sedia a rotelle con posto a sedere aggiuntivo`},WIFI:{de:`Wlan`,en:`Wi-Fi`,fr:`Wi-Fi`,it:`Wlan`},WINDOW_SEAT:{de:`Fenster`,en:`window`,fr:`fenêtre`,it:`finestre`},WITHOUT_TRAY_TABLE:{de:`ohne Tisch`,en:`without table`,fr:`sans table`,it:`senza tavolo`},WITH_ANIMALS:{de:`Tiere erlaubt`,en:`animals allowed`,fr:`animaux admis`,it:`animali ammessi`},WITH_SMALL_CHILDREN:{de:`Kleinkindabteil`,en:`infant compartment`,fr:`compartiment petit enfants`,it:`compartimento per bambini piccoli`},WITHOUT_ANIMALS:{de:`Tiere nicht erlaubt`,en:`pets not allowed`,fr:`animaux non autorisés`,it:`animali non ammessi`}},PLACE_CONTROL_SEAT_FREE:{de:`Sitzplatz _param0_ ist frei`,en:`Seat _param0_ is available`,fr:`Place _param0_ est libre`,it:`Posto a sedere _param0_ è libero`},PLACE_CONTROL_SEAT_SELECTED:{de:`Sitzplatz _param0_ ist ausgewählt`,en:`Seat _param0_ has been selected`,fr:`Place _param0_ est sélectionnée`,it:`Posto a sedere _param0_ è selezionato`},PLACE_CONTROL_BICYCLE_FREE:{de:`Veloplatz _param0_ ist frei`,en:`Bike space _param0_ is available`,fr:`Place pour vélo _param0_ est libre`,it:`Posto bici _param0_ è libero`},PLACE_CONTROL_BICYCLE_SELECTED:{de:`Veloplatz _param0_ ist ausgewählt`,en:`Bike space _param0_ has been selected`,fr:`Place pour vélo _param0_ est sélectionnée`,it:`Posto bici _param0_ è selezionato`},PLACE_CONTROL_SEAT_RESTRICTED:{de:`Sitzplatz ist nicht buchbar`,en:`Seat cannot be reserved`,fr:`Place ne peut pas être réservée`,it:`Posto a sedere non è prenotabile`},PLACE_CONTROL_BICYCLE_RESTRICTED:{de:`Veloplatz ist nicht buchbar`,en:`Bike space cannot be reserved`,fr:`Place pour vélo indisponible`,it:`Posto bici non è prenotabile`},PLACE_CONTROL_SEAT_ALLOCATED:{de:`Sitzplatz _param0_ ist besetzt`,en:`Seat _param0_ is occupied`,fr:`Place _param0_ est occupée`,it:`Posto a sedere _param0_ è occupato`},PLACE_CONTROL_BICYCLE_ALLOCATED:{de:`Veloplatz _param0_ ist besetzt`,en:`Bike space _param0_ is occupied`,fr:`Place pour vélo _param0_ est occupée`,it:`Posto bici _param0_ è occupato`},PLACE_PROPERTY:{de:`Platzeigenschaften`,en:`Seat features`,fr:`Caractéristiques de la place`,it:`Caratteristiche del posto`},COACH_AVAILABLE_SERVICES:{de:`Verfügbare Services`,en:`Available services`,fr:`Services disponibles`,it:`Servizi disponibili`},EXAMPLE_WITH_PARAMS_DO_NOT_USE:{de:`Test mit Parametern: _param0_ und _param1_`,en:`Test with parameters: _param0_ and _param1_`,fr:`Test avec paramètres: _param0_ et _param1_`,it:`Test con parametri: _param0_ e _param1_`}},I=(e,t,n)=>{let r=F,i=``;for(let t of e.split(`.`))if(r=r?.[t],!r)break;return typeof r==`object`&&r&&!Array.isArray(r)?i=r[t]||``:typeof r==`string`&&(i=r),n?n.reduce((e,t,n)=>e.replace(`_param${n}_`,t),i):i};var L=`:host{--sbb-seat-reservation-area-border-radius:var(--sbb-border-width-4x);--sbb-seat-reservation-area-rotation:0;--sbb-seat-reservation-area-z-index:0;height:calc(var(--sbb-seat-reservation-area-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem));width:calc(var(--sbb-seat-reservation-area-width) * var(--sbb-seat-reservation-one-px-rem,.0625rem));border:var(--sbb-border-width-1x) solid var(--sbb-color-graphite);border:var(--sbb-border-width-1x) solid light-dark(var(--sbb-color-graphite),var(--sbb-color-granite));border-radius:var(--sbb-seat-reservation-area-border-radius);z-index:var(--sbb-seat-reservation-area-z-index);rotate:calc(var(--sbb-seat-reservation-area-rotation) * 1deg);background-color:var(--sbb-background-color-2);justify-content:center;align-items:center;line-height:normal;display:flex;position:absolute;inset-block-start:calc(var(--sbb-seat-reservation-area-top) * var(--sbb-seat-reservation-one-px-rem,.0625rem));inset-inline-start:calc(var(--sbb-seat-reservation-area-left) * var(--sbb-seat-reservation-one-px-rem,.0625rem))}:host([background=dark]){background-color:var(--sbb-color-milk);background-color:light-dark(var(--sbb-color-milk),var(--sbb-color-iron))}:host([mounting=upper-border]){border-radius:0 0 var(--sbb-seat-reservation-area-border-radius) var(--sbb-seat-reservation-area-border-radius);border-block-start-width:0}:host([mounting=lower-border]){border-radius:var(--sbb-seat-reservation-area-border-radius) var(--sbb-seat-reservation-area-border-radius) 0 0;border-block-end-width:0}:host([mounting=upper-to-lower-border]){border-block:none;border-radius:0}:host(.sbb-seat-reservation-area--cursor-pointer){cursor:var(--sbb-cursor-pointer)}
240
285
  `;let R=(()=>{let n=r,i,a=[],s=[],c,l=[],u=[];return class extends n{static{let t=typeof Symbol==`function`&&Symbol.metadata?Object.create(n[Symbol.metadata]??null):void 0;i=[o(),g({reflect:!0})],c=[o(),g({reflect:!0})],e(this,null,i,{kind:`accessor`,name:`mounting`,static:!1,private:!1,access:{has:e=>`mounting`in e,get:e=>e.mounting,set:(e,t)=>{e.mounting=t}},metadata:t},a,s),e(this,null,c,{kind:`accessor`,name:`background`,static:!1,private:!1,access:{has:e=>`background`in e,get:e=>e.background,set:(e,t)=>{e.background=t}},metadata:t},l,u),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static{this.elementName=`sbb-seat-reservation-area`}static{this.styles=[m(L)]}#e=t(this,a,`free`);get mounting(){return this.#e}set mounting(e){this.#e=e}#t=(t(this,s),t(this,l,`light`));get background(){return this.#t}set background(e){this.#t=e}render(){return d`<slot></slot>`}constructor(){super(...arguments),t(this,u)}}})();var z=`:host{--sbb-seat-reservation-graphic-max-width:auto;--sbb-seat-reservation-graphic-max-height:auto;--sbb-seat-reservation-graphic-width:16;--sbb-seat-reservation-graphic-height:16;--sbb-seat-reservation-graphic-rotation:0;--sbb-seat-reservation-graphic-inverse-rotation:0;--sbb-seat-reservation-graphic-padding-percent:1;--sbb-seat-reservation-graphic-position:initial;--sbb-seat-reservation-graphic-z-index:0;--sbb-seat-reservation-graphic-left:0;--sbb-seat-reservation-graphic-top:0;--sbb-icon-svg-width:calc(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem,.0625rem));--sbb-icon-svg-height:calc(var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem));width:calc(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem,.0625rem));height:calc(var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem));position:var(--sbb-seat-reservation-graphic-position);z-index:var(--sbb-seat-reservation-graphic-z-index);justify-content:center;align-items:center;display:flex;inset-block-start:calc(var(--sbb-seat-reservation-graphic-top) * var(--sbb-seat-reservation-one-px-rem,.0625rem));inset-inline-start:calc(var(--sbb-seat-reservation-graphic-left) * var(--sbb-seat-reservation-one-px-rem,.0625rem))}:host(.auto-width){--sbb-icon-svg-width:auto;max-width:calc(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem,.0625rem));width:auto}:host(.sbb-sr-graphic__dimension--square-dim){--sbb-icon-svg-width:min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem,.0625rem), var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent), min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem,.0625rem), var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem)));--sbb-icon-svg-height:min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem,.0625rem), var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent), min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem,.0625rem), var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem)));width:min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem,.0625rem), var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent), min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem,.0625rem), var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem)));height:min(min(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem,.0625rem), var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem)) * var(--sbb-seat-reservation-graphic-padding-percent), min(var(--sbb-seat-reservation-graphic-max-width) * var(--sbb-seat-reservation-one-px-rem,.0625rem), var(--sbb-seat-reservation-graphic-max-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem)))}:host(.sbb-seat-reservation-graphic--cursor-pointer){cursor:var(--sbb-cursor-pointer)}.sbb-sr-icon,.sbb-sr-graphic{width:inherit;height:inherit;transform-origin:50%;rotate:calc(var(--sbb-seat-reservation-graphic-rotation) * 1deg)}.sbb-sr-icon{color:light-dark(var(--sbb-color-granite),var(--sbb-color-graphite))}.sbb-sr-graphic svg{width:100%;height:100%}.sbb-sr-graphic svg .fix-rotation-inverse{transform-origin:50%;rotate:calc(var(--sbb-seat-reservation-graphic-inverse-rotation) * 1deg)}@media (forced-colors:active){.sbb-sr-graphic svg:not(.color-immutable) [fill]:not([fill=none]){fill:currentColor}.sbb-sr-graphic .no-bg{fill:#0000}}
241
286
  `;let B=(()=>{let n=r,a,s=[],c=[],l,u=[],p=[];return class extends n{constructor(){super(...arguments),this.#e=t(this,s,``),this.#t=(t(this,c),t(this,u,!1)),this._language=(t(this,p),new i(this))}static{let t=typeof Symbol==`function`&&Symbol.metadata?Object.create(n[Symbol.metadata]??null):void 0;a=[o(),g({attribute:`name`})],l=[o(),g({attribute:`stretch`,type:Boolean})],e(this,null,a,{kind:`accessor`,name:`name`,static:!1,private:!1,access:{has:e=>`name`in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:t},s,c),e(this,null,l,{kind:`accessor`,name:`stretch`,static:!1,private:!1,access:{has:e=>`stretch`in e,get:e=>e.stretch,set:(e,t)=>{e.stretch=t}},metadata:t},u,p),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static{this.elementName=`sbb-seat-reservation-graphic`}static{this.elementDependencies=[v]}static{this.styles=[m(z)]}#e;get name(){return this.#e}set name(e){this.#e=e}#t;get stretch(){return this.#t}set stretch(e){this.#t=e}render(){let e=P[this.name];return!e?.svg&&!e?.svgName?null:d`<span
242
287
  class="${y({"sbb-sr-icon":!!e.svgName,"sbb-sr-graphic":!!e.svg})}"
@@ -312,7 +357,7 @@ import{__esDecorate as e,__runInitializers as t}from"tslib";import{SbbButtonBase
312
357
  ></sbb-seat-reservation-graphic>
313
358
  <span ${this.text??p} class="sbb-sr-place-ctrl__text">${r} </span>
314
359
  </div>`}_getPlaceSvg(e,t){return`PLACE_${e}_${t}`}_getTitleDescriptionPlace(e){let t=`PLACE_CONTROL_`+this.type+`_`+this.state,n=I(t,this._language.current,[this.text]),r=this._getRelativeTravelDirection(e);return(this.propertyIds.length||r)&&(n+=`. `+I(`PLACE_PROPERTY`,this._language.current).concat(`: `),n+=[r,...this.propertyIds].map(e=>I(`PLACE_PROPERTIES.`+e,this._language.current)).filter(e=>e).join(`, `)),n}_getRelativeTravelDirection(e){if(!this.travelDirection||this.travelDirection===`NONE`||this.placeType!==`SEAT`||!e)return;let t=Number(e);if(t===90||t===270)return`TRAVEL_DIRECTION_TRANSVERSELY`;if(t===0&&this.travelDirection===`RIGHT`||t===180&&this.travelDirection===`LEFT`)return`TRAVEL_DIRECTION_IN_DIRECTION`;if(t===0||t===180)return`TRAVEL_DIRECTION_IN_OPPOSITE_DIRECTION`}_selectPlace(){if((this.state===`FREE`||this.state===`SELECTED`)&&!this.preventClick){this.state=this.state===`FREE`?`SELECTED`:`FREE`;let e={id:this.id,deckIndex:this.deckIndex,coachIndex:this.coachIndex,number:this.text,state:this.state,placeType:this.placeType};this.dispatchEvent(new q(e))}}}})();var Y=`:host{--sbb-seat-reservation-scoped-width:0;--sbb-seat-reservation-scoped-height:0;width:calc(var(--sbb-seat-reservation-scoped-width) * var(--sbb-seat-reservation-one-px-rem,.0625rem));height:calc(var(--sbb-seat-reservation-scoped-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem));display:block}
315
- `,X=class extends r{static{this.elementName=`sbb-seat-reservation-scoped`}static{this.styles=[m(Y)]}render(){return d`<slot></slot>`}},Z;(function(e){e.right=`right`,e.left=`left`})(Z||={});const ee=[`sa-vo`,`sa-rs`,`sa-abteilkinderwagen`,`sa-wr`,`sa-fa`,`sa-bz`,`sa-rz`];var te=class extends Event{get detail(){return this._detail}constructor(e){super(`selectedplaces`,{bubbles:!0,composed:!0}),this._detail=e}},ne=class extends Event{get detail(){return this._detail}constructor(e){super(`selectedcoach`,{bubbles:!0,composed:!0}),this._detail=e}};let Q=(()=>{let n=r,i=[],a,c=[],l=[],u,d=[],p=[],m,v=[],y=[],b,x=[],S=[],C,w=[],T=[],E,D=[],O=[],k,N=[],F=[],I,L=[],R=[],z,B=[],V=[],H,U=[],W=[],G,K=[],q=[],J,Y=[],X=[],Q,$=[],re=[],ie,ae=[],oe=[],se;return class extends n{static{let t=typeof Symbol==`function`&&Symbol.metadata?Object.create(n[Symbol.metadata]??null):void 0;a=[g({attribute:`seat-reservations`,type:Array})],u=[g({attribute:`travel-direction`,type:String})],m=[o(),g({attribute:`has-navigation`,type:Boolean})],b=[o(),g({attribute:`align-vertical`,type:Boolean,reflect:!0,useDefault:!0})],C=[o(),g({attribute:`base-grid-size`,type:Number})],E=[o(),g({attribute:`height`,type:Number})],k=[o(),g({attribute:`max-seat-reservations`,type:Number})],I=[o(),g({attribute:`max-bicycle-reservations`,type:Number})],z=[o(),g({attribute:`prevent-place-click`,type:Boolean})],H=[o(),g({attribute:`preselect-coach-index`,type:Number})],G=[o(),g({attribute:`show-title-info`,type:Boolean})],J=[_()],Q=[_()],ie=[_()],se=[h({passive:!0})],e(this,null,a,{kind:`accessor`,name:`seatReservations`,static:!1,private:!1,access:{has:e=>`seatReservations`in e,get:e=>e.seatReservations,set:(e,t)=>{e.seatReservations=t}},metadata:t},c,l),e(this,null,u,{kind:`accessor`,name:`travelDirection`,static:!1,private:!1,access:{has:e=>`travelDirection`in e,get:e=>e.travelDirection,set:(e,t)=>{e.travelDirection=t}},metadata:t},d,p),e(this,null,m,{kind:`accessor`,name:`hasNavigation`,static:!1,private:!1,access:{has:e=>`hasNavigation`in e,get:e=>e.hasNavigation,set:(e,t)=>{e.hasNavigation=t}},metadata:t},v,y),e(this,null,b,{kind:`accessor`,name:`alignVertical`,static:!1,private:!1,access:{has:e=>`alignVertical`in e,get:e=>e.alignVertical,set:(e,t)=>{e.alignVertical=t}},metadata:t},x,S),e(this,null,C,{kind:`accessor`,name:`baseGridSize`,static:!1,private:!1,access:{has:e=>`baseGridSize`in e,get:e=>e.baseGridSize,set:(e,t)=>{e.baseGridSize=t}},metadata:t},w,T),e(this,null,E,{kind:`accessor`,name:`height`,static:!1,private:!1,access:{has:e=>`height`in e,get:e=>e.height,set:(e,t)=>{e.height=t}},metadata:t},D,O),e(this,null,k,{kind:`accessor`,name:`maxSeatReservations`,static:!1,private:!1,access:{has:e=>`maxSeatReservations`in e,get:e=>e.maxSeatReservations,set:(e,t)=>{e.maxSeatReservations=t}},metadata:t},N,F),e(this,null,I,{kind:`accessor`,name:`maxBicycleReservations`,static:!1,private:!1,access:{has:e=>`maxBicycleReservations`in e,get:e=>e.maxBicycleReservations,set:(e,t)=>{e.maxBicycleReservations=t}},metadata:t},L,R),e(this,null,z,{kind:`accessor`,name:`preventPlaceClick`,static:!1,private:!1,access:{has:e=>`preventPlaceClick`in e,get:e=>e.preventPlaceClick,set:(e,t)=>{e.preventPlaceClick=t}},metadata:t},B,V),e(this,null,H,{kind:`accessor`,name:`preselectCoachIndex`,static:!1,private:!1,access:{has:e=>`preselectCoachIndex`in e,get:e=>e.preselectCoachIndex,set:(e,t)=>{e.preselectCoachIndex=t}},metadata:t},U,W),e(this,null,G,{kind:`accessor`,name:`showTitleInfo`,static:!1,private:!1,access:{has:e=>`showTitleInfo`in e,get:e=>e.showTitleInfo,set:(e,t)=>{e.showTitleInfo=t}},metadata:t},K,q),e(this,null,J,{kind:`accessor`,name:`selectedCoachIndex`,static:!1,private:!1,access:{has:e=>`selectedCoachIndex`in e,get:e=>e.selectedCoachIndex,set:(e,t)=>{e.selectedCoachIndex=t}},metadata:t},Y,X),e(this,null,Q,{kind:`accessor`,name:`focusedCoachIndex`,static:!1,private:!1,access:{has:e=>`focusedCoachIndex`in e,get:e=>e.focusedCoachIndex,set:(e,t)=>{e.focusedCoachIndex=t}},metadata:t},$,re),e(this,null,ie,{kind:`accessor`,name:`hoveredCoachIndex`,static:!1,private:!1,access:{has:e=>`hoveredCoachIndex`in e,get:e=>e.hoveredCoachIndex,set:(e,t)=>{e.hoveredCoachIndex=t}},metadata:t},ae,oe),e(this,null,se,{kind:`method`,name:`coachAreaScrollend`,static:!1,private:!1,access:{has:e=>`coachAreaScrollend`in e,get:e=>e.coachAreaScrollend},metadata:t},null,i),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static{this.events={selectedplaces:`selectedplaces`,selectedcoach:`selectedcoach`}}#e;get seatReservations(){return this.#e}set seatReservations(e){this.#e=e}#t;get travelDirection(){return this.#t}set travelDirection(e){this.#t=e}#n;get hasNavigation(){return this.#n}set hasNavigation(e){this.#n=e}#r;get alignVertical(){return this.#r}set alignVertical(e){this.#r=e}#i;get baseGridSize(){return this.#i}set baseGridSize(e){this.#i=e}#a;get height(){return this.#a}set height(e){this.#a=e}#o;get maxSeatReservations(){return this.#o}set maxSeatReservations(e){this.#o=e}#s;get maxBicycleReservations(){return this.#s}set maxBicycleReservations(e){this.#s=e}#c;get preventPlaceClick(){return this.#c}set preventPlaceClick(e){this.#c=e}#l;get preselectCoachIndex(){return this.#l}set preselectCoachIndex(e){this.#l=e}#u;get showTitleInfo(){return this.#u}set showTitleInfo(e){this.#u=e}#d;get selectedCoachIndex(){return this.#d}set selectedCoachIndex(e){this.#d=e}#f;get focusedCoachIndex(){return this.#f}set focusedCoachIndex(e){this.#f=e}#p;get hoveredCoachIndex(){return this.#p}set hoveredCoachIndex(e){this.#p=e}constructor(){super(),this.#e=(t(this,i),t(this,c,null)),this.#t=(t(this,l),t(this,d,`NONE`)),this.#n=(t(this,p),t(this,v,!0)),this.#r=(t(this,y),t(this,x,!1)),this.#i=(t(this,S),t(this,w,16)),this.#a=(t(this,T),t(this,D,null)),this.#o=(t(this,O),t(this,N,-1)),this.#s=(t(this,F),t(this,L,-1)),this.#c=(t(this,R),t(this,B,!1)),this.#l=(t(this,V),t(this,U,-1)),this.#u=(t(this,W),t(this,K,!1)),this.#d=(t(this,q),t(this,Y,-1)),this.#f=(t(this,X),t(this,$,-1)),this.#p=(t(this,re),t(this,ae,-1)),this.coachBorderPadding=(t(this,oe),6),this.gapBetweenCoaches=4,this.coachBorderOffset=this.coachBorderPadding/this.baseGridSize,this.gapBetweenCoachDecks=48,this.coachNavButtonDim=0,this.globalAreaIconDim={w:2,h:2},this.globalAreaIconPadding=.8,this.coachItemDetailsElements=[],this.currScrollDirection=Z.right,this.maxCalcCoachesWidth=0,this.scrollCoachesAreaWidth=0,this.scrollNavigationAreaDim=0,this.triggerCoachPositionsCollection=[],this.navigationScrollArea=null,this.coachScrollArea=null,this.currSelectedPlace=null,this.currSelectedPlaceElementId=null,this.currSelectedCoachIndex=-1,this.currSelectedDeckIndex=0,this.preventCoachScrollByPlaceClick=!1,this.selectedSeatReservationPlaces={seats:[],bicycles:[]},this.seatReservationWithoutNavigationHasFocus=!1,this.isCoachGridFocusable=!1,this.isAutoScrolling=!1,this.isKeyboardNavigation=!1,this.hasMultipleDecks=!1,this.hasSeatReservationNativeFocus=!1,this.keyboardNavigationEvents={ArrowLeft:`ArrowLeft`,ArrowRight:`ArrowRight`,ArrowUp:`ArrowUp`,ArrowDown:`ArrowDown`,Tab:`Tab`,Enter:`Enter`},this.seatReservationStructure={decks:[]},this.notFixedRotatableAreaIcons=[`ENTRY_EXIT`],this.notAreaElements=[`DRIVER_AREA`,`DRIVER_AREA_NO_VERTICAL_WALL`,`COACH_PASSAGE`,`COACH_WALL_NO_PASSAGE`,`COMPARTMENT_PASSAGE`,`COMPARTMENT_PASSAGE_HIGH`,`COMPARTMENT_PASSAGE_MIDDLE`,`COMPARTMENT_PASSAGE_LOW`,`COMPARTMENT_WALL`],this.middleBorderDockingElements=[`DRIVER_AREA`,`DRIVER_AREA_NO_VERTICAL_WALL`,`COACH_PASSAGE`,`COACH_WALL_NO_PASSAGE`],this._isRunningInitPreselectCoachIndex=!1,this._lastStartScrollPos=-1,this._prepareServiceIconsNavigation=e=>e&&e?.map(function(e){return{pId:e,svgName:P[e]?.svgName?P[e]?.svgName:``}}).filter(e=>ee.indexOf(e.svgName)!==-1).filter((e,t,n)=>n.map(e=>e.svgName).indexOf(e.svgName)===t).map(e=>e.pId).slice(0,3)||[],this.addEventListener(`blur`,()=>this._onLeaveSeatReservationComponent())}willUpdate(e){if(super.willUpdate(e),e.has(`seatReservations`)&&(this.hasMultipleDecks=this.seatReservations?.length>1,this._initPrepareSeatReservationData(),this._initSeatReservationPlaceSelection(),this.initNavigationSelectionByScrollEvent()),e.has(`baseGridSize`)&&(this.coachBorderOffset=this.coachBorderPadding/this.baseGridSize,this.style?.setProperty(`--sbb-seat-reservation-grid-size`,`${this.baseGridSize}px`),this._initPrepareSeatReservationData(),this.initNavigationSelectionByScrollEvent()),e.has(`height`)&&this.height){let e=this.seatReservations[this.currSelectedDeckIndex]||null;e?.coachItems.length&&(this.baseGridSize=this.height/e.coachItems[0].dimension.h,this.coachBorderOffset=this.coachBorderPadding/this.baseGridSize,this.style?.setProperty(`--sbb-seat-reservation-grid-size`,`${this.baseGridSize}px`),this._initPrepareSeatReservationData(),this.initNavigationSelectionByScrollEvent())}e.has(`alignVertical`)&&(this._initPrepareSeatReservationData(),this.initNavigationSelectionByScrollEvent()),e.has(`preselectCoachIndex`)&&(this._isRunningInitPreselectCoachIndex=!0,setTimeout(()=>this.scrollToSelectedNavCoach(this.preselectCoachIndex),1))}navigateByDirectionBtn(e){this.unfocusPlaceElement();let t=this.currSelectedCoachIndex;e==`DIRECTION_LEFT`&&t>0?t=this.currSelectedCoachIndex==-1?0:this.currSelectedCoachIndex-1:e==`DIRECTION_RIGHT`&&t<this.seatReservations[this.currSelectedDeckIndex]?.coachItems.length-1&&(t=this.currSelectedCoachIndex==-1?0:this.currSelectedCoachIndex+1),this.scrollToSelectedNavCoach(t)}_initPrepareSeatReservationData(){this._determineBaseFontSize(),this.hasMultipleDecks&&this._initEmptyCoachDeckOffsets(),this._prepareCoachItemDetailsData(),this._prepareSeatReservationStructureInformation(),this._prepareOptimizeAreaIconDimensionByMedian()}initNavigationSelectionByScrollEvent(){this.coachScrollArea=this.shadowRoot?.querySelector(`#sbb-sr__wrapper-scrollarea`),this.navigationScrollArea=this.shadowRoot?.querySelector(`#sbb-sr__navigation-list-coaches`);let e=this.seatReservations?this.seatReservations[this.currSelectedDeckIndex]:null;if(e&&e.coachItems.length>0){let t=e.coachItems[0].dimension.h*this.baseGridSize+this.coachBorderPadding,n=(this.seatReservations.length-1)*this.gapBetweenCoachDecks;this.style?.setProperty(`--sbb-seat-reservation-height`,`${t*this.seatReservations.length+n}`),this.style?.setProperty(`--sbb-seat-reservation-decks`,`${this.seatReservations.length}`)}if(this.navigationScrollArea){this.scrollNavigationAreaDim=this.alignVertical?this.navigationScrollArea.getBoundingClientRect().height:this.navigationScrollArea.getBoundingClientRect().width;let e=this.navigationScrollArea.querySelector(`ul > li`);if(e){let t=e?.getBoundingClientRect();this.coachNavButtonDim=this.alignVertical?t.height:t.width}}if(this.coachScrollArea&&e){let t=0;this.scrollCoachesAreaWidth=this.alignVertical?this.coachScrollArea.getBoundingClientRect().height:this.coachScrollArea.getBoundingClientRect().width,this.triggerCoachPositionsCollection=e.coachItems.map((e,n)=>{let r=this.seatReservationStructure.decks[this.currSelectedDeckIndex].deckCoaches[n],i=t;return t+=r.width+(r.hasOverhangingElements?2*this.gapBetweenCoaches:this.gapBetweenCoaches),{start:i,end:t,width:r.width}}),this.maxCalcCoachesWidth=t-this.gapBetweenCoaches}}coachAreaScrollend(){this._scrollTimeout&&clearTimeout(this._scrollTimeout),this._scrollTimeout=setTimeout(()=>this._handleCoachAreaScrollendEvent(),150)}onFocusTableCoachAndPreselectPlace(e){!this.seatReservationWithoutNavigationHasFocus&&!this.hasNavigation&&(this.seatReservationWithoutNavigationHasFocus=!0,this.currSelectedCoachIndex=e===0?this.getNextAvailableCoachIndex(-1):this.getPrevAvailableCoachIndex(e),this.preselectPlaceInCoach())}onFocusNavDirectionButton(){this.focusedCoachIndex=-1}onKeyNavigationNavCoachButton(e,t){if(e.key===this.keyboardNavigationEvents.Tab){this._handleTabKeyNavigation(e,`navigation`,t);return}s(e)&&this.keyboardSeatmapEventHandling(e)}_handleTabKeyNavigation(e,t,n){let r=e.key,i=e.shiftKey;r===this.keyboardNavigationEvents.Tab&&(t==`navigation`?(n==this.currSelectedCoachIndex?!this.currSelectedPlace||!i||this.coachItemDetailsElements[n].isDriverArea||this.focusedCoachIndex==-1?this.focusedCoachIndex=n:i&&this.currSelectedPlace&&(this.focusedCoachIndex=-1,this.focusPlaceElement(this.currSelectedPlace)):this.focusedCoachIndex=n,this._scrollToSelectedNavigationButton(n)):t==`seatmap`&&(e.preventDefault(),i?this._navigateCoachNavigationByKeyboard(`PREV_TAB`):this._navigateCoachNavigationByKeyboard(`NEXT_TAB`)))}keyboardSeatmapEventHandling(e){let t=e.key===this.keyboardNavigationEvents.Tab,n=e.shiftKey&&t;if(!this.hasNavigation&&this.currSelectedCoachIndex===0&&n||this.currSelectedCoachIndex===this.coachItemDetailsElements.length-1&&t)return;let r=e.key;if(this.preventCoachScrollByPlaceClick=!1,!this.hasSeatReservationNativeFocus&&(t||n)&&(this.hasSeatReservationNativeFocus=!0),t){this._handleTabKeyNavigation(e,`seatmap`);return}if(this.currSelectedCoachIndex!==-1&&s(e))switch(e.preventDefault(),r){case this.keyboardNavigationEvents.ArrowLeft:{let e=this.alignVertical?this.keyboardNavigationEvents.ArrowDown:r;this._navigateToPlaceByKeyboard(e)}break;case this.keyboardNavigationEvents.ArrowRight:{let e=this.alignVertical?this.keyboardNavigationEvents.ArrowUp:r;this._navigateToPlaceByKeyboard(e)}break;case this.keyboardNavigationEvents.ArrowUp:{let e=this.alignVertical?this.keyboardNavigationEvents.ArrowLeft:r;this._navigateToPlaceByKeyboard(e)}break;case this.keyboardNavigationEvents.ArrowDown:{let e=this.alignVertical?this.keyboardNavigationEvents.ArrowRight:r;this._navigateToPlaceByKeyboard(e)}}}preselectPlaceInCoach(){if(this.isAutoScrolling){if(this._isRunningInitPreselectCoachIndex){this._isRunningInitPreselectCoachIndex=!1;return}if(this.coachItemDetailsElements[this.currSelectedCoachIndex]&&this.coachItemDetailsElements[this.currSelectedCoachIndex].isDriverArea){this._setFocusToSelectedCoachGrid();return}if(this.isKeyboardNavigation&&this.isAutoScrolling){let e=this._getClosestPlaceByKeyDirection();e?(this.unfocusPlaceElement(),this.focusPlaceElement(e),this.focusedCoachIndex=-1):this._setFocusToSelectedCoachGrid()}else this.unfocusPlaceElement(),this.isCoachGridFocusable=!0,this._setFocusToSelectedCoachGrid()}}scrollToSelectedNavCoach(e){if(this._isValidCoachIndex(e)&&e!==this.currSelectedCoachIndex){this.hoveredCoachIndex=e,this.isAutoScrolling=!0,this.isCoachGridFocusable=!0,this.currSelectedCoachIndex=e,this.currSelectedDeckIndex=this._getExistingCoachDeckIndex(),this._setScrollDirectionByCoachIndex();let t=this._getCoachScrollPositionX();(this.selectedCoachIndex!==-1||this.currSelectedCoachIndex>0)&&this._isScrollableToSelectedCoach()?(this._lastStartScrollPos=this.coachScrollArea.scrollLeft,this.coachScrollArea.scrollTo({top:this.alignVertical?t:0,left:this.alignVertical?0:t,behavior:`smooth`})):this.updateCurrentSelectedCoach(),this._scrollToSelectedNavigationButton(e)}}focusPlaceElement(e){if(this.unfocusPlaceElement(),e){this.currSelectedPlace=e,this._setCurrSelectedPlaceElementId(e);let t=this._getPlaceHtmlElement();if(t){t.setAttribute(`keyfocus`,`focus`);let n=setTimeout(()=>{let t=this.getPlaceElementId(this.currSelectedDeckIndex,this.currSelectedCoachIndex,e.number);this._scrollPlaceIntoNearestViewport(t),clearTimeout(n)},0)}}}unfocusPlaceElement(){let e=this._getPlaceHtmlElement();e&&(e.setAttribute(`keyfocus`,`unfocus`),this._setCurrSelectedPlaceElementId(null),this.currSelectedPlace=null)}getCalculatedDimension(e,t,n,r){return t&&!n&&(e.h+=this.coachBorderOffset*2),r&&(e.h+=this.coachBorderOffset),{w:Math.round(this.baseGridSize*e.w),h:Math.round(this.baseGridSize*e.h)}}getCalculatedPosition(e,t,n,r){if(n&&t){let i=r?n.h:n.h+this.coachBorderOffset;e.y===0?e.y-=this.coachBorderOffset:e.y+t.h===i&&(e.y+=this.coachBorderOffset)}return{x:Math.round(this.baseGridSize*e.x),y:Math.round(this.baseGridSize*e.y),z:e.z}}isElementDirectlyOnBorder(e,t){return e.position.y===0||e.position.y+e.dimension.h===t.h}getAvailableFreePlacesNumFromCoach(e){let t={seats:0,bicycles:0};return e?.reduce((e,t)=>(t.state===`FREE`&&(t.type===`SEAT`?e.seats++:e.bicycles++),e),t)||t}hasTravelDirection(){return this.travelDirection&&this.travelDirection!==`NONE`}_handleCoachAreaScrollendEvent(){let e=this.isAutoScrolling?this.currSelectedCoachIndex:this._getCoachIndexByScrollTriggerPosition();if(this.preventCoachScrollByPlaceClick){Math.abs(this._lastStartScrollPos-this.coachScrollArea.scrollLeft)>this.baseGridSize*2&&(this.selectedCoachIndex=e),this.preventCoachScrollByPlaceClick=!1;return}this._lastStartScrollPos=this.coachScrollArea.scrollLeft,this.hoveredCoachIndex=-1,this.currSelectedCoachIndex===-1&&(this.currSelectedCoachIndex=e),this.currSelectedCoachIndex=this._isScrollableToSelectedCoach()?e:e<this.currSelectedCoachIndex?this.currSelectedCoachIndex:e,this.isAutoScrolling||this._scrollToSelectedNavigationButton(e),this.preventCoachScrollByPlaceClick=!1,this.updateCurrentSelectedCoach(),this.hasNavigation||(this.preselectPlaceInCoach(),this.isAutoScrolling=!1)}_scrollToSelectedNavigationButton(e){setTimeout(()=>{if(this.hasNavigation&&this.navigationScrollArea){let t=this.scrollNavigationAreaDim/2,n=e*this.coachNavButtonDim-t+this.coachNavButtonDim;this.navigationScrollArea.scrollTo({top:this.alignVertical?n:0,left:this.alignVertical?0:n,behavior:`smooth`})}},10)}_setScrollDirectionByCoachIndex(){this.currScrollDirection=this.currSelectedCoachIndex>this.selectedCoachIndex?Z.right:Z.left}_getCoachScrollPositionX(){let e=this.triggerCoachPositionsCollection[this.currSelectedCoachIndex];return this.isKeyboardNavigation&&this.currScrollDirection===Z.left&&e.width>this.scrollCoachesAreaWidth?e.end-this.scrollCoachesAreaWidth:e.start}_setFocusToSelectedCoachGrid(){if(this.isCoachGridFocusable&&this.hasSeatReservationNativeFocus){this.isCoachGridFocusable=!1;let e=this.shadowRoot?.querySelector(`#sbb-sr-coach-caption-`+this.currSelectedCoachIndex);e&&e.focus()}}_isScrollableToSelectedCoach(){let e=this.alignVertical?this.coachScrollArea.scrollTop:this.coachScrollArea.scrollLeft,t=this.alignVertical?this.coachScrollArea.getBoundingClientRect().height:this.coachScrollArea.getBoundingClientRect().width,n=this.maxCalcCoachesWidth-t,r=this.triggerCoachPositionsCollection[this.currSelectedCoachIndex],i=e===this.triggerCoachPositionsCollection[this.currSelectedCoachIndex].start;return(e<n||e>r.start)&&!i}_getCoachIndexByScrollTriggerPosition(){let e=(this.alignVertical?this.coachScrollArea.scrollTop:this.coachScrollArea.scrollLeft)+this.scrollCoachesAreaWidth/2;return this.triggerCoachPositionsCollection.findIndex(t=>e>=t.start&&e<=t.end)}_getFirstPlaceInSelectedCoach(){let e=null,t=this.seatReservations[this.currSelectedDeckIndex].coachItems[this.currSelectedCoachIndex],n=`cell-`+this.currSelectedDeckIndex+`-`+this.currSelectedCoachIndex+`-0-0`,r=this.shadowRoot?.querySelector(`#`+n)?.querySelector(`sbb-seat-reservation-place-control`)?.getAttribute(`text`)||null;return t&&r&&(e=t.places?.find(e=>e.number===r)||null),e}_getSwitchedCoachDeckIndexByKeyNavigation(e,t){return!this.currSelectedPlace||e===this.keyboardNavigationEvents.ArrowRight||e===this.keyboardNavigationEvents.ArrowLeft?null:e===this.keyboardNavigationEvents.ArrowDown&&this.currSelectedPlace.position.y+2===t.dimension.h&&this.seatReservations[this.currSelectedDeckIndex+1]?this.currSelectedDeckIndex+1:e===this.keyboardNavigationEvents.ArrowUp&&this.currSelectedPlace.position.y===0&&this.seatReservations[this.currSelectedDeckIndex-1]?this.currSelectedDeckIndex-1:null}_getClosestPlaceByKeyDirection(e){let t=this.seatReservations[this.currSelectedDeckIndex].coachItems[this.currSelectedCoachIndex],n=null,r=t.places,i=null;if(r){if(!this.currSelectedPlaceElementId)return this._getFirstPlaceInSelectedCoach();if(this.currSelectedPlace){let a={...this.currSelectedPlace.position};e&&(i=this._getSwitchedCoachDeckIndexByKeyNavigation(e,t),i!==null&&(r=this.seatReservations[i].coachItems[this.currSelectedCoachIndex].places||[],a.y=i<this.currSelectedDeckIndex?t.dimension.h:-1));for(let t of r)e?t.number!==this.currSelectedPlace?.number&&(e===this.keyboardNavigationEvents.ArrowRight&&(t.position.y===a.y||t.position.y===a.y-1)&&t.position.x>a.x&&(!n||t.position.x<n.position.x)||e===this.keyboardNavigationEvents.ArrowDown&&(t.position.x===a.x||t.position.x===a.x+1)&&t.position.y>a.y&&(!n||t.position.y<n.position.y)||e===this.keyboardNavigationEvents.ArrowLeft&&(t.position.y===a.y||t.position.y===a.y+1)&&t.position.x<a.x&&(!n||t.position.x>n.position.x)||e===this.keyboardNavigationEvents.ArrowUp&&(t.position.x===a.x||t.position.x===a.x-1)&&t.position.y<a.y&&(!n||t.position.y>n.position.y))&&(n=t):(this.currScrollDirection===Z.right&&t.position.y===a.y&&(!n||t.position.x<n.position.x)||this.currScrollDirection===Z.left&&t.position.y===a.y&&(!n||t.position.x>n.position.x))&&(n=t);i!==null&&n&&(this.currSelectedDeckIndex=i)}}return n}_navigateCoachNavigationByKeyboard(e){let t=this.focusedCoachIndex===-1?this.currSelectedCoachIndex===-1?0:this.currSelectedCoachIndex:this.focusedCoachIndex,n=e===`NEXT_TAB`?this.getNextAvailableCoachIndex(t):this.getPrevAvailableCoachIndex(t);if(this.hasNavigation){let r=this._getPlaceHtmlElement(),i=r?r.getAttribute(`keyfocus`)===`focus`:!1;if(e===`PREV_TAB`&&this.selectedCoachIndex===t){if(i||this.currSelectedPlace!==null){this.focusedCoachIndex=t,this.unfocusPlaceElement();return}t===0?this._refocusCurrentFocusedNavCoach(t):this.focusedCoachIndex=n}else n===this.currSelectedCoachIndex?e===`NEXT_TAB`&&n===this.coachItemDetailsElements.length-1?this._refocusCurrentFocusedNavCoach(t):(this.focusedCoachIndex=-1,this.selectedCoachIndex=n,i?this.focusPlaceElement(this.currSelectedPlace):(this.isCoachGridFocusable=!0,this._setFocusToSelectedCoachGrid())):this.focusedCoachIndex=n;this._scrollToSelectedNavigationButton(n)}else this.scrollToSelectedNavCoach(n)}_refocusCurrentFocusedNavCoach(e){this.focusedCoachIndex=-1,setTimeout(()=>this.focusedCoachIndex=e,0)}_navigateToPlaceByKeyboard(e){if(this.isKeyboardNavigation=!0,this.focusedCoachIndex!==-1&&(this.focusedCoachIndex=-1),!this.preventPlaceClick){let t=this._getClosestPlaceByKeyDirection(e);if(t)this.focusPlaceElement(t);else if(e===this.keyboardNavigationEvents.ArrowRight||e===this.keyboardNavigationEvents.ArrowLeft||this.alignVertical&&(e===this.keyboardNavigationEvents.ArrowUp||e===this.keyboardNavigationEvents.ArrowDown)){let t=e===this.keyboardNavigationEvents.ArrowRight?this.getNextAvailableCoachIndex():this.getPrevAvailableCoachIndex();this.scrollToSelectedNavCoach(t)}}}getNextAvailableCoachIndex(e){let t=e??this.currSelectedCoachIndex;return t<this.seatReservations[this.currSelectedDeckIndex].coachItems.length-1?t+1:t}getPrevAvailableCoachIndex(e){let t=e??this.currSelectedCoachIndex;return t>0?t-1:t}updateSelectedSeatReservationPlaces(e){let t=e.placeType===`SEAT`?`seats`:`bicycles`,n=e.placeType===`SEAT`?this.maxSeatReservations:this.maxBicycleReservations,r=this.selectedSeatReservationPlaces[t];this.selectedSeatReservationPlaces[t]=this._updateSelectedSeatReservationPlaces(r,n,e);let i=this.selectedSeatReservationPlaces;this.dispatchEvent(new te(i))}_updateSelectedSeatReservationPlaces(e,t,n){if(n.state===`SELECTED`){let t=this._getDeckIndexByPlaceId(n.id),r=this._getSeatReservationPlaceSelection(n,t);r&&e.push(r)}else e=e.filter(e=>e.id!==n.id);if(t>-1&&e.length>t){let r=t>0?n:void 0;e=this._resetAllPlaceSelections(e,r)}return e}updateCurrentSelectedPlaceInCoach(e){let t=this._getDeckIndexByPlaceId(e.id),n=e.coachIndex;if(t===null)return;let r=this.seatReservations[t].coachItems[n].places?.find(t=>t.number==e.number);if(!r)return;this.currSelectedDeckIndex=t,this.currSelectedCoachIndex=n,this.currSelectedPlace=r,this.currSelectedCoachIndex!==this.selectedCoachIndex&&this.updateCurrentSelectedCoach(),this._setCurrSelectedPlaceElementId(r);let i=setTimeout(()=>{this._scrollPlaceIntoNearestViewport(e.id),clearTimeout(i)},0)}updateCurrentSelectedCoach(){if(this.currSelectedCoachIndex==this.selectedCoachIndex)return;this.focusedCoachIndex!=-1&&(this.focusedCoachIndex=this.currSelectedCoachIndex),this.selectedCoachIndex=this.currSelectedCoachIndex;let e=this._getSeatReservationSelectedCoach(this.selectedCoachIndex);e&&this.dispatchEvent(new ne(e))}getPlaceElementId(e,t,n){return`seat-reservation__place-button-`+e+`-`+t+`-`+n}_initEmptyCoachDeckOffsets(){let e=Array(this.seatReservations.length-1).fill(0);this.seatReservations[this.seatReservations.length-1].coachItems.forEach(t=>{for(let n=0;n<this.seatReservations.length-1;n++){let r=this.seatReservations[n].coachItems[e[n]];if(t.id!=r?.id){let r={...t,places:void 0,propertyIds:void 0,graphicElements:void 0,serviceElements:void 0,travelClass:[]};this.seatReservations[n].coachItems.splice(e[n],0,r)}e[n]++}})}_initSeatReservationPlaceSelection(){this.selectedSeatReservationPlaces.seats=[],this.selectedSeatReservationPlaces.bicycles=[],this.seatReservations?.forEach((e,t)=>e.coachItems.map((n,r)=>{n.places?.filter(e=>e.state===`SELECTED`)?.forEach(n=>{let i=this.getPlaceElementId(t,r,n.number),a=A(n,i,e.deckCoachIndex,r),o=this._getSeatReservationPlaceSelection(a,t);o&&(o.placeType===`SEAT`?this.selectedSeatReservationPlaces.seats.push(o):this.selectedSeatReservationPlaces.bicycles.push(o))})}))}_resetAllPlaceSelections(e,t){for(let n of e)if(!t||t.id!==n.id){let e=this.shadowRoot?.getElementById(n.id);e&&e.setAttribute(`state`,`FREE`)}return e=t?e.filter(e=>e.id===t.id):[],e}_getSeatReservationPlaceSelection(e,t){if(t===null)return null;let n=this.seatReservations[t].coachItems[e.coachIndex],r=n.places?.find(t=>t.number===e.number);return r?j(r,n,e.id,e.deckIndex,e.coachIndex):null}_getSeatReservationSelectedCoach(e){if(!this.seatReservations[this.currSelectedDeckIndex].coachItems[e])return null;let t=this.seatReservations[this.currSelectedDeckIndex].coachItems[e],n=this.getAvailableFreePlacesNumFromCoach(t.places);return M(e,t,n)}_setCurrSelectedPlaceElementId(e){this.currSelectedPlaceElementId=e?this.getPlaceElementId(this.currSelectedDeckIndex,this.currSelectedCoachIndex,e.number):null}_determineBaseFontSize(){if(!f){let e=1/parseInt(window.getComputedStyle(document.body).fontSize,10);this.style?.setProperty(`--sbb-seat-reservation-one-px-rem`,`${e+`rem`}`)}}_prepareCoachItemDetailsData(){if(this.seatReservations){let e=this.seatReservations[this.seatReservations.length-1].coachItems;this.coachItemDetailsElements=[],e.forEach((e,t)=>{let n=[],r=[],i=[];this.seatReservations.map(e=>e.coachItems[t]).forEach(e=>{n.push(...e.travelClass),r.push(...e.propertyIds?e.propertyIds:[]),i.push(...e.places?e.places:[])}),this.coachItemDetailsElements.push({id:e.id,travelClass:this._prepareTravelClassNavigation(n),propertyIds:this._prepareServiceIconsNavigation(r),isDriverArea:!e.places||e.places.length===0,isLocomotive:this._isLocomotive(e),driverAreaSide:this._prepareDriverAreaSideNavigation(e),freePlaces:this.getAvailableFreePlacesNumFromCoach(i)})})}}_prepareOptimizeAreaIconDimensionByMedian(){if(this.seatReservations){let e=[];if(this.seatReservations.forEach(t=>t.coachItems.forEach(t=>t.serviceElements?.forEach(t=>e.push(t.dimension)))),e.length){e.sort((e,t)=>{if(e&&t){let n=e.w+e.h,r=t.w+t.h;return n>r?1:n<r?-1:0}return 0});let t=e[Math.floor(e.length/2)];this.globalAreaIconDim=this.getCalculatedDimension(t)}else{let e=this.seatReservations.flatMap(e=>e.coachItems.map(e=>e.dimension.h)).reduce((e,t)=>Math.max(e,t),0),t=Math.floor(e*.2);this.globalAreaIconDim=this.getCalculatedDimension({w:t,h:t})}}}_prepareTravelClassNavigation(e){return e.indexOf(`FIRST`)===-1?e.indexOf(`SECOND`)===-1?`ANY_CLASS`:`SECOND`:`FIRST`}_prepareDriverAreaSideNavigation(e){let t=e.graphicElements?.filter(e=>e.icon===`DRIVER_AREA`);if(t&&t.length>0){let e=t.find(e=>e.position.x===0)||!1,n=t.find(e=>e.position.x>0)||!1;return{left:!!e,right:!!n}}}_prepareSeatReservationStructureInformation(){this.seatReservations&&(this.seatReservationStructure={decks:[]},this.seatReservations.forEach((e,t)=>{let n={deckIndex:t,deckCoaches:[]};e?.coachItems?.forEach(e=>{let t=(e.graphicElements?.filter(e=>e.icon&&!this.notAreaElements.includes(e.icon)))?.concat(e.serviceElements||[]).concat(e.places||[])||[],r=this._isOverhangingElementsPresent(e.dimension.w,t),i=e.graphicElements?.filter(e=>!this.notAreaElements.includes(e.icon)).map(t=>this._getCalculatedDimensionPositionElement(t,e.dimension,`AREA`)),a=e.graphicElements?.filter(e=>this.notAreaElements.includes(e.icon)).map(t=>this._getCalculatedDimensionPositionElement(t,e.dimension,`OTHER`)),o=e.serviceElements?.map(t=>this._getCalculatedDimensionPositionElement(t,e.dimension,`SERVICE`)),s=this._getCalculatedMiddleBorderElement(e),c=this.getCalculatedDimension({...e.dimension}),l={width:c.w,height:c.h,otherElements:a||[],serviceElements:o||[],areaElements:i||[],borderMiddleElement:s,hasOverhangingElements:r};n.deckCoaches.push(l)}),this.seatReservationStructure.decks.push(n)}))}_getCalculatedMiddleBorderElement(e){let t=(e.dimension.h+this.coachBorderOffset*2)*this.baseGridSize,n=0,r=e.dimension.w;if(e.graphicElements){let t=this._getFirstLastDockingElements(e.graphicElements);if(t?.length==2){let i=t[0],a=t[1],o=i.position.x==0?a.dimension.w:i.dimension.w;n=i.position.x==0?i.dimension.w:a.dimension.w,r=e.dimension.w-o-n}else if(t?.length==1){let i=t[0];i.position.x===0?(n=i.dimension.w,r=e.dimension.w-i.dimension.w):i.position.x!==0&&(r=e.dimension.w-i.dimension.w)}}let i=this.coachBorderPadding*-1;return{position:{x:Math.floor(n*this.baseGridSize)-1,y:i,z:0},dimension:{w:Math.floor(r*this.baseGridSize)+2,h:t}}}_getFirstLastDockingElements(e){let t=(e.filter(e=>this.middleBorderDockingElements.includes(e.icon))||[]).sort((e,t)=>{let n=e.position.x,r=t.position.x;return n>r?1:n<r?-1:0});return t.filter((e,n)=>n==0||n==t.length-1)}_getCalculatedDimensionPositionElement(e,t,n){let r={...e.dimension},i={...e.position},a=e.rotation||0,o=this.notAreaElements.concat(this.notFixedRotatableAreaIcons).indexOf(e.icon)===-1,s=this.alignVertical&&o?a-90:a,c=null;if(n===`AREA`){let n=e.icon?.indexOf(`TABLE`)===-1,a=e.icon&&n?e.icon:null,o=this.isElementDirectlyOnBorder(e,t)&&a!==`ENTRY_EXIT`;e.position.y===0?(c=`upper-border`,i.y-=this.coachBorderOffset-this.coachBorderOffset/3):e.position.y+e.dimension.h===t.h&&(c=`lower-border`,o||(i.y+=this.coachBorderOffset-this.coachBorderOffset/3)),o&&(r.h+=this.coachBorderOffset-this.coachBorderOffset/3)}else n===`OTHER`&&(e.position.y===0&&(i.y-=this.coachBorderOffset),t.h===e.position.y+e.dimension.h&&(r.h+=this.coachBorderOffset*2));return r.w=Math.floor(r.w*this.baseGridSize),r.h=Math.floor(r.h*this.baseGridSize),i.x=Math.floor(i.x*this.baseGridSize),i.y=Math.floor(i.y*this.baseGridSize),{icon:e.icon&&e.icon.endsWith(`DRIVER_AREA`)?e.icon?.concat(`_`,this.seatReservations[this.currSelectedDeckIndex].vehicleType):e.icon,rotation:s,dimension:r,position:i,mounting:c}}_getPlaceHtmlElement(){return this.currSelectedPlaceElementId&&this.shadowRoot?.getElementById(this.currSelectedPlaceElementId)||null}_getDeckIndexByPlaceId(e){let t=this.shadowRoot?.querySelector(`#`+e)?.getAttribute(`data-deck-index`);return t&&!isNaN(+t)?+t:null}_isValidCoachIndex(e){return e>=0&&e<=this.seatReservations[this.seatReservations.length-1].coachItems.length}_getExistingCoachDeckIndex(){if(this.seatReservations[this.currSelectedDeckIndex].coachItems[this.currSelectedCoachIndex].places!==void 0)return this.currSelectedDeckIndex;let e=this.seatReservations.findIndex(e=>e.coachItems[this.currSelectedCoachIndex].places!==void 0);return this.currSelectedDeckIndex>=e?this.currSelectedDeckIndex:e}_scrollPlaceIntoNearestViewport(e){this.shadowRoot?.getElementById(e)?.scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`nearest`})}_isOverhangingElementsPresent(e,t){return t?.some(t=>t.position.x===0||t.position.x+t.dimension.w>=e)??!1}_isLocomotive(e){return e?.graphicElements?.find(e=>e.icon===`DRIVER_AREA_NO_VERTICAL_WALL`)!==void 0}_onLeaveSeatReservationComponent(){this.hasNavigation&&(this.focusedCoachIndex=-1),this.unfocusPlaceElement()}}})();var $=`:host{--sbb-seat-reservation-grid-size:16px;--sbb-seat-reservation-height:0;--sbb-seat-reservation-decks:1;height:inherit;display:block}:host ::part(coach-floor){fill:var(--sbb-background-color-2)}@media (forced-colors:active){:host ::part(coach-floor){fill:#0000}}:host(:dir(rtl)) :not(.sbb-sr-place-ctrl--type-bicycle,.sbb-sr-place-ctrl--orientation-90,.sbb-sr-place-ctrl--orientation-270,.sbb-sr-place-ctrl--state-selected) ::part(coach-floor){rotate:180deg}.sbb-sr-popover{margin-block:calc(4 * var(--sbb-seat-reservation-one-px-rem,.0625rem))}:host([align-vertical]) .sbb-sr__component{justify-content:flex-end;gap:calc(22 * var(--sbb-seat-reservation-one-px-rem,.0625rem));height:inherit;flex-direction:row-reverse}@media (width>=37.5rem){:host([align-vertical]) .sbb-sr__component{gap:calc(54 * var(--sbb-seat-reservation-one-px-rem,.0625rem))}}:host([align-vertical]) .sbb-sr__component--has-travel-direction{padding-block-start:calc(36 * var(--sbb-seat-reservation-one-px-rem,.0625rem))}:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation,:host([align-vertical]) .sbb-sr__component ul.sbb-sr-navigation__list-coaches{flex-direction:column}:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation{padding:calc(16 * var(--sbb-seat-reservation-one-px-rem,.0625rem)) 0}:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation .sbb-sr__navigation-control-button{left:calc(1 * var(--sbb-seat-reservation-one-px-rem,.0625rem));top:0;rotate:90deg}@media (width>=64rem){:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation .sbb-sr__navigation-control-button{left:calc(-1 * var(--sbb-seat-reservation-one-px-rem,.0625rem))}}:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation ul.sbb-sr-navigation__list-coaches{max-width:initial;padding:calc(5 * var(--sbb-seat-reservation-one-px-rem,.0625rem));overflow:hidden scroll}:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation ul.sbb-sr-navigation__list-coaches li{display:flex}:host([align-vertical]) .sbb-sr__wrapper-coach-decks{flex-direction:column}:host([align-vertical]) .sbb-sr__wrapper-coach-decks .sbb-sr__wrapper-deck-labels{width:calc((var(--sbb-seat-reservation-height) + 24) * var(--sbb-seat-reservation-one-px-rem,.0625rem));height:initial;flex-direction:column-reverse}:host([align-vertical]) .sbb-sr__wrapper-coach-decks .sbb-sr__wrapper-deck-labels b{inline-size:calc(50% - 16 * var(--sbb-seat-reservation-one-px-rem,.0625rem));block-size:calc(20 * var(--sbb-seat-reservation-one-px-rem,.0625rem));margin-bottom:calc(16 * var(--sbb-seat-reservation-one-px-rem,.0625rem));rotate:initial;writing-mode:initial}:host([align-vertical]) .sbb-sr__wrapper-scrollarea{width:calc((var(--sbb-seat-reservation-height) + 24) * var(--sbb-seat-reservation-one-px-rem,.0625rem));height:100%;overflow:hidden scroll}:host([align-vertical]) .sbb-sr__wrapper-scrollarea .sbb-sr__parent{rotate:90deg}:host([align-vertical]) .sbb-sr-travel-direction-wrapper{width:calc(var(--sbb-seat-reservation-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem));margin-block-start:calc(4 * var(--sbb-seat-reservation-one-px-rem,.0625rem));position:absolute}.sbb-sr-navigation{gap:calc(3 * var(--sbb-seat-reservation-one-px-rem,.0625rem))}.sbb-sr-navigation .sbb-sr__navigation-control-button{top:calc(2 * var(--sbb-seat-reservation-one-px-rem,.0625rem));position:relative}@media (width>=64rem){.sbb-sr-navigation .sbb-sr__navigation-control-button{top:0}}.sbb-sr__component{gap:calc(64 * var(--sbb-seat-reservation-one-px-rem,.0625rem) - 16px);flex-direction:column;display:flex}.sbb-sr-travel-direction-wrapper{justify-content:center;align-items:center;column-gap:calc(4 * var(--sbb-seat-reservation-one-px-rem,.0625rem));margin-block:calc(8 * var(--sbb-seat-reservation-one-px-rem,.0625rem)) calc(4 * var(--sbb-seat-reservation-one-px-rem,.0625rem));font-size:var(--sbb-text-font-size-s);display:flex}.sbb-sr-travel-direction-wrapper .sbb-sr__travel-direction--arrow{align-items:center;display:flex}.sbb-sr-navigation-wrapper{display:flex}.sbb-sr-navigation{justify-content:center;width:100%;padding-inline:16px;display:flex}.sbb-sr-navigation__list-coaches{gap:calc(4 * var(--sbb-seat-reservation-one-px-rem,.0625rem));padding:calc(6 * var(--sbb-seat-reservation-one-px-rem,.0625rem)) calc(5 * var(--sbb-seat-reservation-one-px-rem,.0625rem)) 0;--sbb-scrollbar-color:transparent;flex-wrap:nowrap;max-width:856px;display:flex;position:relative;overflow:scroll hidden}.sbb-sr__wrapper-coach-decks{height:inherit;display:flex;overflow:hidden}.sbb-sr__wrapper-coach-decks .sbb-sr__wrapper-deck-labels{height:calc(var(--sbb-seat-reservation-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem));writing-mode:vertical-lr;justify-content:space-between;display:flex}.sbb-sr__wrapper-coach-decks .sbb-sr__wrapper-deck-labels b{height:calc(50% - 16 * var(--sbb-seat-reservation-one-px-rem,.0625rem));width:calc(20 * var(--sbb-seat-reservation-one-px-rem,.0625rem));text-align:center;line-height:calc(20 * var(--sbb-seat-reservation-one-px-rem,.0625rem));margin-block-end:16px;rotate:180deg}.sbb-sr__wrapper-scrollarea{padding-block:calc(8 * var(--sbb-seat-reservation-one-px-rem,.0625rem)) calc(16 * var(--sbb-seat-reservation-one-px-rem,.0625rem));overflow:scroll hidden}.sbb-sr__wrapper-scrollarea .sbb-sr__parent{flex-direction:column;display:flex;position:relative}.sbb-sr__list-decks{flex-direction:column;display:flex}.sbb-sr__list-decks--gap{gap:calc(48 * var(--sbb-seat-reservation-one-px-rem,.0625rem))}.sbb-sr__list-item-deck{position:relative}.sbb-sr__list-coaches{gap:calc(4 * var(--sbb-seat-reservation-one-px-rem,.0625rem));display:flex}.sbb-sr__list-decks:has(.sbb-sr-coach-has-overhanging-elements) .sbb-sr__list-coaches{gap:calc(8 * var(--sbb-seat-reservation-one-px-rem,.0625rem))}.sbb-sr__item-coach{position:relative}.sbb-sr-coach-wrapper__table{outline:0}
360
+ `,X=class extends r{static{this.elementName=`sbb-seat-reservation-scoped`}static{this.styles=[m(Y)]}render(){return d`<slot></slot>`}},Z;(function(e){e.right=`right`,e.left=`left`})(Z||={});const ee=[`sa-vo`,`sa-rs`,`sa-abteilkinderwagen`,`sa-wr`,`sa-fa`,`sa-bz`,`sa-rz`];var te=class extends Event{get detail(){return this._detail}constructor(e){super(`selectedplaces`,{bubbles:!0,composed:!0}),this._detail=e}},ne=class extends Event{get detail(){return this._detail}constructor(e){super(`selectedcoach`,{bubbles:!0,composed:!0}),this._detail=e}};let Q=(()=>{let n=r,i=[],a,c=[],l=[],u,d=[],p=[],m,v=[],y=[],b,x=[],S=[],C,w=[],T=[],E,D=[],O=[],k,N=[],F=[],I,L=[],R=[],z,B=[],V=[],H,U=[],W=[],G,K=[],q=[],J,Y=[],X=[],Q,$=[],re=[],ie,ae=[],oe=[],se;return class extends n{static{let t=typeof Symbol==`function`&&Symbol.metadata?Object.create(n[Symbol.metadata]??null):void 0;a=[g({attribute:`seat-reservations`,type:Array})],u=[g({attribute:`travel-direction`,type:String})],m=[o(),g({attribute:`has-navigation`,type:Boolean})],b=[o(),g({attribute:`align-vertical`,type:Boolean,reflect:!0,useDefault:!0})],C=[o(),g({attribute:`base-grid-size`,type:Number})],E=[o(),g({attribute:`height`,type:Number})],k=[o(),g({attribute:`max-seat-reservations`,type:Number})],I=[o(),g({attribute:`max-bicycle-reservations`,type:Number})],z=[o(),g({attribute:`prevent-place-click`,type:Boolean})],H=[o(),g({attribute:`preselect-coach-index`,type:Number})],G=[o(),g({attribute:`show-title-info`,type:Boolean})],J=[_()],Q=[_()],ie=[_()],se=[h({passive:!0})],e(this,null,a,{kind:`accessor`,name:`seatReservations`,static:!1,private:!1,access:{has:e=>`seatReservations`in e,get:e=>e.seatReservations,set:(e,t)=>{e.seatReservations=t}},metadata:t},c,l),e(this,null,u,{kind:`accessor`,name:`travelDirection`,static:!1,private:!1,access:{has:e=>`travelDirection`in e,get:e=>e.travelDirection,set:(e,t)=>{e.travelDirection=t}},metadata:t},d,p),e(this,null,m,{kind:`accessor`,name:`hasNavigation`,static:!1,private:!1,access:{has:e=>`hasNavigation`in e,get:e=>e.hasNavigation,set:(e,t)=>{e.hasNavigation=t}},metadata:t},v,y),e(this,null,b,{kind:`accessor`,name:`alignVertical`,static:!1,private:!1,access:{has:e=>`alignVertical`in e,get:e=>e.alignVertical,set:(e,t)=>{e.alignVertical=t}},metadata:t},x,S),e(this,null,C,{kind:`accessor`,name:`baseGridSize`,static:!1,private:!1,access:{has:e=>`baseGridSize`in e,get:e=>e.baseGridSize,set:(e,t)=>{e.baseGridSize=t}},metadata:t},w,T),e(this,null,E,{kind:`accessor`,name:`height`,static:!1,private:!1,access:{has:e=>`height`in e,get:e=>e.height,set:(e,t)=>{e.height=t}},metadata:t},D,O),e(this,null,k,{kind:`accessor`,name:`maxSeatReservations`,static:!1,private:!1,access:{has:e=>`maxSeatReservations`in e,get:e=>e.maxSeatReservations,set:(e,t)=>{e.maxSeatReservations=t}},metadata:t},N,F),e(this,null,I,{kind:`accessor`,name:`maxBicycleReservations`,static:!1,private:!1,access:{has:e=>`maxBicycleReservations`in e,get:e=>e.maxBicycleReservations,set:(e,t)=>{e.maxBicycleReservations=t}},metadata:t},L,R),e(this,null,z,{kind:`accessor`,name:`preventPlaceClick`,static:!1,private:!1,access:{has:e=>`preventPlaceClick`in e,get:e=>e.preventPlaceClick,set:(e,t)=>{e.preventPlaceClick=t}},metadata:t},B,V),e(this,null,H,{kind:`accessor`,name:`preselectCoachIndex`,static:!1,private:!1,access:{has:e=>`preselectCoachIndex`in e,get:e=>e.preselectCoachIndex,set:(e,t)=>{e.preselectCoachIndex=t}},metadata:t},U,W),e(this,null,G,{kind:`accessor`,name:`showTitleInfo`,static:!1,private:!1,access:{has:e=>`showTitleInfo`in e,get:e=>e.showTitleInfo,set:(e,t)=>{e.showTitleInfo=t}},metadata:t},K,q),e(this,null,J,{kind:`accessor`,name:`selectedCoachIndex`,static:!1,private:!1,access:{has:e=>`selectedCoachIndex`in e,get:e=>e.selectedCoachIndex,set:(e,t)=>{e.selectedCoachIndex=t}},metadata:t},Y,X),e(this,null,Q,{kind:`accessor`,name:`focusedCoachIndex`,static:!1,private:!1,access:{has:e=>`focusedCoachIndex`in e,get:e=>e.focusedCoachIndex,set:(e,t)=>{e.focusedCoachIndex=t}},metadata:t},$,re),e(this,null,ie,{kind:`accessor`,name:`hoveredCoachIndex`,static:!1,private:!1,access:{has:e=>`hoveredCoachIndex`in e,get:e=>e.hoveredCoachIndex,set:(e,t)=>{e.hoveredCoachIndex=t}},metadata:t},ae,oe),e(this,null,se,{kind:`method`,name:`coachAreaScrollend`,static:!1,private:!1,access:{has:e=>`coachAreaScrollend`in e,get:e=>e.coachAreaScrollend},metadata:t},null,i),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static{this.events={selectedplaces:`selectedplaces`,selectedcoach:`selectedcoach`}}#e;get seatReservations(){return this.#e}set seatReservations(e){this.#e=e}#t;get travelDirection(){return this.#t}set travelDirection(e){this.#t=e}#n;get hasNavigation(){return this.#n}set hasNavigation(e){this.#n=e}#r;get alignVertical(){return this.#r}set alignVertical(e){this.#r=e}#i;get baseGridSize(){return this.#i}set baseGridSize(e){this.#i=e}#a;get height(){return this.#a}set height(e){this.#a=e}#o;get maxSeatReservations(){return this.#o}set maxSeatReservations(e){this.#o=e}#s;get maxBicycleReservations(){return this.#s}set maxBicycleReservations(e){this.#s=e}#c;get preventPlaceClick(){return this.#c}set preventPlaceClick(e){this.#c=e}#l;get preselectCoachIndex(){return this.#l}set preselectCoachIndex(e){this.#l=e}#u;get showTitleInfo(){return this.#u}set showTitleInfo(e){this.#u=e}#d;get selectedCoachIndex(){return this.#d}set selectedCoachIndex(e){this.#d=e}#f;get focusedCoachIndex(){return this.#f}set focusedCoachIndex(e){this.#f=e}#p;get hoveredCoachIndex(){return this.#p}set hoveredCoachIndex(e){this.#p=e}constructor(){super(),this.#e=(t(this,i),t(this,c,null)),this.#t=(t(this,l),t(this,d,`NONE`)),this.#n=(t(this,p),t(this,v,!0)),this.#r=(t(this,y),t(this,x,!1)),this.#i=(t(this,S),t(this,w,16)),this.#a=(t(this,T),t(this,D,null)),this.#o=(t(this,O),t(this,N,-1)),this.#s=(t(this,F),t(this,L,-1)),this.#c=(t(this,R),t(this,B,!1)),this.#l=(t(this,V),t(this,U,-1)),this.#u=(t(this,W),t(this,K,!1)),this.#d=(t(this,q),t(this,Y,-1)),this.#f=(t(this,X),t(this,$,-1)),this.#p=(t(this,re),t(this,ae,-1)),this.coachBorderPadding=(t(this,oe),6),this.gapBetweenCoaches=4,this.coachBorderOffset=this.coachBorderPadding/this.baseGridSize,this.gapBetweenCoachDecks=48,this.gapWallCompartmentToPlace=2,this.coachNavButtonDim=0,this.globalAreaIconDim={w:2,h:2},this.globalAreaIconPadding=.8,this.coachItemDetailsElements=[],this.currScrollDirection=Z.right,this.maxCalcCoachesWidth=0,this.scrollCoachesAreaWidth=0,this.scrollNavigationAreaDim=0,this.triggerCoachPositionsCollection=[],this.navigationScrollArea=null,this.coachScrollArea=null,this.currSelectedPlace=null,this.currSelectedPlaceElementId=null,this.currSelectedCoachIndex=-1,this.currSelectedDeckIndex=0,this.preventCoachScrollByPlaceClick=!1,this.selectedSeatReservationPlaces={seats:[],bicycles:[]},this.seatReservationWithoutNavigationHasFocus=!1,this.isCoachGridFocusable=!1,this.isAutoScrolling=!1,this.isKeyboardNavigation=!1,this.hasMultipleDecks=!1,this.hasSeatReservationNativeFocus=!1,this.keyboardNavigationEvents={ArrowLeft:`ArrowLeft`,ArrowRight:`ArrowRight`,ArrowUp:`ArrowUp`,ArrowDown:`ArrowDown`,Tab:`Tab`,Enter:`Enter`},this.seatReservationStructure={decks:[]},this.notFixedRotatableAreaIcons=[`ENTRY_EXIT`],this.notAreaElements=[`DRIVER_AREA`,`DRIVER_AREA_NO_VERTICAL_WALL`,`COACH_PASSAGE`,`COACH_WALL_NO_PASSAGE`,`COMPARTMENT_PASSAGE`,`COMPARTMENT_PASSAGE_HIGH`,`COMPARTMENT_PASSAGE_MIDDLE`,`COMPARTMENT_PASSAGE_LOW`,`COMPARTMENT_WALL`,`WALL_LEFT_1`,`WALL_LEFT_2`,`WALL_LEFT_3`,`WALL_COMPARTMENTS_1`,`WALL_COMPARTMENTS_2`,`WALL_COMPARTMENTS_3`,`WALL_RIGHT_1`,`WALL_RIGHT_2`,`WALL_RIGHT_3`,`T_WALL_COMPARTMENTS_1`,`T_WALL_COMPARTMENTS_2`,`T_WALL_COMPARTMENTS_3`],this.middleBorderDockingElements=[`DRIVER_AREA`,`DRIVER_AREA_NO_VERTICAL_WALL`,`COACH_PASSAGE`,`COACH_WALL_NO_PASSAGE`],this._isRunningInitPreselectCoachIndex=!1,this._lastStartScrollPos=-1,this._prepareServiceIconsNavigation=e=>e&&e?.map(function(e){return{pId:e,svgName:P[e]?.svgName?P[e]?.svgName:``}}).filter(e=>ee.indexOf(e.svgName)!==-1).filter((e,t,n)=>n.map(e=>e.svgName).indexOf(e.svgName)===t).map(e=>e.pId).slice(0,3)||[],this.addEventListener(`blur`,()=>this._onLeaveSeatReservationComponent())}willUpdate(e){if(super.willUpdate(e),e.has(`seatReservations`)&&(this.hasMultipleDecks=this.seatReservations?.length>1,this._initPrepareSeatReservationData(),this._initSeatReservationPlaceSelection(),this.initNavigationSelectionByScrollEvent()),e.has(`baseGridSize`)&&(this.coachBorderOffset=this.coachBorderPadding/this.baseGridSize,this.style?.setProperty(`--sbb-seat-reservation-grid-size`,`${this.baseGridSize}px`),this._initPrepareSeatReservationData(),this.initNavigationSelectionByScrollEvent()),e.has(`height`)&&this.height){let e=this.seatReservations[this.currSelectedDeckIndex]||null;e?.coachItems.length&&(this.baseGridSize=this.height/e.coachItems[0].dimension.h,this.coachBorderOffset=this.coachBorderPadding/this.baseGridSize,this.style?.setProperty(`--sbb-seat-reservation-grid-size`,`${this.baseGridSize}px`),this._initPrepareSeatReservationData(),this.initNavigationSelectionByScrollEvent())}e.has(`alignVertical`)&&(this._initPrepareSeatReservationData(),this.initNavigationSelectionByScrollEvent()),e.has(`preselectCoachIndex`)&&(this._isRunningInitPreselectCoachIndex=!0,setTimeout(()=>this.scrollToSelectedNavCoach(this.preselectCoachIndex),1))}navigateByDirectionBtn(e){this.unfocusPlaceElement();let t=this.currSelectedCoachIndex;e==`DIRECTION_LEFT`&&t>0?t=this.currSelectedCoachIndex==-1?0:this.currSelectedCoachIndex-1:e==`DIRECTION_RIGHT`&&t<this.seatReservations[this.currSelectedDeckIndex]?.coachItems.length-1&&(t=this.currSelectedCoachIndex==-1?0:this.currSelectedCoachIndex+1),this.scrollToSelectedNavCoach(t)}_initPrepareSeatReservationData(){this._determineBaseFontSize(),this.hasMultipleDecks&&this._initEmptyCoachDeckOffsets(),this._prepareCoachItemDetailsData(),this._prepareSeatReservationStructureInformation(),this._prepareOptimizeAreaIconDimensionByMedian()}initNavigationSelectionByScrollEvent(){this.coachScrollArea=this.shadowRoot?.querySelector(`#sbb-sr__wrapper-scrollarea`),this.navigationScrollArea=this.shadowRoot?.querySelector(`#sbb-sr__navigation-list-coaches`);let e=this.seatReservations?this.seatReservations[this.currSelectedDeckIndex]:null;if(e&&e.coachItems.length>0){let t=e.coachItems[0].dimension.h*this.baseGridSize+this.coachBorderPadding,n=(this.seatReservations.length-1)*this.gapBetweenCoachDecks;this.style?.setProperty(`--sbb-seat-reservation-height`,`${t*this.seatReservations.length+n}`),this.style?.setProperty(`--sbb-seat-reservation-decks`,`${this.seatReservations.length}`)}if(this.navigationScrollArea){this.scrollNavigationAreaDim=this.alignVertical?this.navigationScrollArea.getBoundingClientRect().height:this.navigationScrollArea.getBoundingClientRect().width;let e=this.navigationScrollArea.querySelector(`ul > li`);if(e){let t=e?.getBoundingClientRect();this.coachNavButtonDim=this.alignVertical?t.height:t.width}}if(this.coachScrollArea&&e){let t=0;this.scrollCoachesAreaWidth=this.alignVertical?this.coachScrollArea.getBoundingClientRect().height:this.coachScrollArea.getBoundingClientRect().width,this.triggerCoachPositionsCollection=e.coachItems.map((e,n)=>{let r=this.seatReservationStructure.decks[this.currSelectedDeckIndex].deckCoaches[n],i=t;return t+=r.width+(r.hasOverhangingElements?2*this.gapBetweenCoaches:this.gapBetweenCoaches),{start:i,end:t,width:r.width}}),this.maxCalcCoachesWidth=t-this.gapBetweenCoaches}}coachAreaScrollend(){this._scrollTimeout&&clearTimeout(this._scrollTimeout),this._scrollTimeout=setTimeout(()=>this._handleCoachAreaScrollendEvent(),150)}onFocusTableCoachAndPreselectPlace(e){!this.seatReservationWithoutNavigationHasFocus&&!this.hasNavigation&&(this.seatReservationWithoutNavigationHasFocus=!0,this.currSelectedCoachIndex=e===0?this.getNextAvailableCoachIndex(-1):this.getPrevAvailableCoachIndex(e),this.preselectPlaceInCoach())}onFocusNavDirectionButton(){this.focusedCoachIndex=-1}onKeyNavigationNavCoachButton(e,t){if(e.key===this.keyboardNavigationEvents.Tab){this._handleTabKeyNavigation(e,`navigation`,t);return}s(e)&&this.keyboardSeatmapEventHandling(e)}_handleTabKeyNavigation(e,t,n){let r=e.key,i=e.shiftKey;r===this.keyboardNavigationEvents.Tab&&(t==`navigation`?(n==this.currSelectedCoachIndex?!this.currSelectedPlace||!i||this.coachItemDetailsElements[n].isDriverArea||this.focusedCoachIndex==-1?this.focusedCoachIndex=n:i&&this.currSelectedPlace&&(this.focusedCoachIndex=-1,this.focusPlaceElement(this.currSelectedPlace)):this.focusedCoachIndex=n,this._scrollToSelectedNavigationButton(n)):t==`seatmap`&&(e.preventDefault(),i?this._navigateCoachNavigationByKeyboard(`PREV_TAB`):this._navigateCoachNavigationByKeyboard(`NEXT_TAB`)))}keyboardSeatmapEventHandling(e){let t=e.key===this.keyboardNavigationEvents.Tab,n=e.shiftKey&&t;if(!this.hasNavigation&&this.currSelectedCoachIndex===0&&n||this.currSelectedCoachIndex===this.coachItemDetailsElements.length-1&&t)return;let r=e.key;if(this.preventCoachScrollByPlaceClick=!1,!this.hasSeatReservationNativeFocus&&(t||n)&&(this.hasSeatReservationNativeFocus=!0),t){this._handleTabKeyNavigation(e,`seatmap`);return}if(this.currSelectedCoachIndex!==-1&&s(e))switch(e.preventDefault(),r){case this.keyboardNavigationEvents.ArrowLeft:{let e=this.alignVertical?this.keyboardNavigationEvents.ArrowDown:r;this._navigateToPlaceByKeyboard(e)}break;case this.keyboardNavigationEvents.ArrowRight:{let e=this.alignVertical?this.keyboardNavigationEvents.ArrowUp:r;this._navigateToPlaceByKeyboard(e)}break;case this.keyboardNavigationEvents.ArrowUp:{let e=this.alignVertical?this.keyboardNavigationEvents.ArrowLeft:r;this._navigateToPlaceByKeyboard(e)}break;case this.keyboardNavigationEvents.ArrowDown:{let e=this.alignVertical?this.keyboardNavigationEvents.ArrowRight:r;this._navigateToPlaceByKeyboard(e)}}}preselectPlaceInCoach(){if(this.isAutoScrolling){if(this._isRunningInitPreselectCoachIndex){this._isRunningInitPreselectCoachIndex=!1;return}if(this.coachItemDetailsElements[this.currSelectedCoachIndex]&&this.coachItemDetailsElements[this.currSelectedCoachIndex].isDriverArea){this._setFocusToSelectedCoachGrid();return}if(this.isKeyboardNavigation&&this.isAutoScrolling){let e=this._getClosestPlaceByKeyDirection();e?(this.unfocusPlaceElement(),this.focusPlaceElement(e),this.focusedCoachIndex=-1):this._setFocusToSelectedCoachGrid()}else this.unfocusPlaceElement(),this.isCoachGridFocusable=!0,this._setFocusToSelectedCoachGrid()}}scrollToSelectedNavCoach(e){if(this._isValidCoachIndex(e)&&e!==this.currSelectedCoachIndex){this.hoveredCoachIndex=e,this.isAutoScrolling=!0,this.isCoachGridFocusable=!0,this.currSelectedCoachIndex=e,this.currSelectedDeckIndex=this._getExistingCoachDeckIndex(),this._setScrollDirectionByCoachIndex();let t=this._getCoachScrollPositionX();(this.selectedCoachIndex!==-1||this.currSelectedCoachIndex>0)&&this._isScrollableToSelectedCoach()?(this._lastStartScrollPos=this.coachScrollArea.scrollLeft,this.coachScrollArea.scrollTo({top:this.alignVertical?t:0,left:this.alignVertical?0:t,behavior:`smooth`})):this.updateCurrentSelectedCoach(),this._scrollToSelectedNavigationButton(e)}}focusPlaceElement(e){if(this.unfocusPlaceElement(),e){this.currSelectedPlace=e,this._setCurrSelectedPlaceElementId(e);let t=this._getPlaceHtmlElement();if(t){t.setAttribute(`keyfocus`,`focus`);let n=setTimeout(()=>{let t=this.getPlaceElementId(this.currSelectedDeckIndex,this.currSelectedCoachIndex,e.number);this._scrollPlaceIntoNearestViewport(t),clearTimeout(n)},0)}}}unfocusPlaceElement(){let e=this._getPlaceHtmlElement();e&&(e.setAttribute(`keyfocus`,`unfocus`),this._setCurrSelectedPlaceElementId(null),this.currSelectedPlace=null)}getCalculatedDimension(e,t,n,r){return t&&!n&&(e.h+=this.coachBorderOffset*2),r&&(e.h+=this.coachBorderOffset),{w:Math.round(this.baseGridSize*e.w),h:Math.round(this.baseGridSize*e.h)}}getCalculatedPosition(e,t,n,r){if(n&&t){let i=r?n.h:n.h+this.coachBorderOffset;e.y===0?e.y-=this.coachBorderOffset:e.y+t.h===i&&(e.y+=this.coachBorderOffset)}return{x:Math.round(this.baseGridSize*e.x),y:Math.round(this.baseGridSize*e.y),z:e.z}}isElementDirectlyOnBorder(e,t){return e.position.y===0||e.position.y+e.dimension.h===t.h}getAvailableFreePlacesNumFromCoach(e){let t={seats:0,bicycles:0};return e?.reduce((e,t)=>(t.state===`FREE`&&(t.type===`SEAT`?e.seats++:e.bicycles++),e),t)||t}hasTravelDirection(){return this.travelDirection&&this.travelDirection!==`NONE`}_handleCoachAreaScrollendEvent(){let e=this.isAutoScrolling?this.currSelectedCoachIndex:this._getCoachIndexByScrollTriggerPosition();if(this.preventCoachScrollByPlaceClick){Math.abs(this._lastStartScrollPos-this.coachScrollArea.scrollLeft)>this.baseGridSize*2&&(this.selectedCoachIndex=e),this.preventCoachScrollByPlaceClick=!1;return}this._lastStartScrollPos=this.coachScrollArea.scrollLeft,this.hoveredCoachIndex=-1,this.currSelectedCoachIndex===-1&&(this.currSelectedCoachIndex=e),this.currSelectedCoachIndex=this._isScrollableToSelectedCoach()?e:e<this.currSelectedCoachIndex?this.currSelectedCoachIndex:e,this.isAutoScrolling||this._scrollToSelectedNavigationButton(e),this.preventCoachScrollByPlaceClick=!1,this.updateCurrentSelectedCoach(),this.hasNavigation||(this.preselectPlaceInCoach(),this.isAutoScrolling=!1)}_scrollToSelectedNavigationButton(e){setTimeout(()=>{if(this.hasNavigation&&this.navigationScrollArea){let t=this.scrollNavigationAreaDim/2,n=e*this.coachNavButtonDim-t+this.coachNavButtonDim;this.navigationScrollArea.scrollTo({top:this.alignVertical?n:0,left:this.alignVertical?0:n,behavior:`smooth`})}},10)}_setScrollDirectionByCoachIndex(){this.currScrollDirection=this.currSelectedCoachIndex>this.selectedCoachIndex?Z.right:Z.left}_getCoachScrollPositionX(){let e=this.triggerCoachPositionsCollection[this.currSelectedCoachIndex];return this.isKeyboardNavigation&&this.currScrollDirection===Z.left&&e.width>this.scrollCoachesAreaWidth?e.end-this.scrollCoachesAreaWidth:e.start}_setFocusToSelectedCoachGrid(){if(this.isCoachGridFocusable&&this.hasSeatReservationNativeFocus){this.isCoachGridFocusable=!1;let e=this.shadowRoot?.querySelector(`#sbb-sr-coach-caption-`+this.currSelectedCoachIndex);e&&e.focus()}}_isScrollableToSelectedCoach(){let e=this.alignVertical?this.coachScrollArea.scrollTop:this.coachScrollArea.scrollLeft,t=this.alignVertical?this.coachScrollArea.getBoundingClientRect().height:this.coachScrollArea.getBoundingClientRect().width,n=this.maxCalcCoachesWidth-t,r=this.triggerCoachPositionsCollection[this.currSelectedCoachIndex],i=e===this.triggerCoachPositionsCollection[this.currSelectedCoachIndex].start;return(e<n||e>r.start)&&!i}_getCoachIndexByScrollTriggerPosition(){let e=(this.alignVertical?this.coachScrollArea.scrollTop:this.coachScrollArea.scrollLeft)+this.scrollCoachesAreaWidth/2;return this.triggerCoachPositionsCollection.findIndex(t=>e>=t.start&&e<=t.end)}_getFirstPlaceInSelectedCoach(){let e=null,t=this.seatReservations[this.currSelectedDeckIndex].coachItems[this.currSelectedCoachIndex],n=`cell-`+this.currSelectedDeckIndex+`-`+this.currSelectedCoachIndex+`-0-0`,r=this.shadowRoot?.querySelector(`#`+n)?.querySelector(`sbb-seat-reservation-place-control`)?.getAttribute(`text`)||null;return t&&r&&(e=t.places?.find(e=>e.number===r)||null),e}_getSwitchedCoachDeckIndexByKeyNavigation(e,t){return!this.currSelectedPlace||e===this.keyboardNavigationEvents.ArrowRight||e===this.keyboardNavigationEvents.ArrowLeft?null:e===this.keyboardNavigationEvents.ArrowDown&&this.currSelectedPlace.position.y+2===t.dimension.h&&this.seatReservations[this.currSelectedDeckIndex+1]?this.currSelectedDeckIndex+1:e===this.keyboardNavigationEvents.ArrowUp&&this.currSelectedPlace.position.y===0&&this.seatReservations[this.currSelectedDeckIndex-1]?this.currSelectedDeckIndex-1:null}_getClosestPlaceByKeyDirection(e){let t=this.seatReservations[this.currSelectedDeckIndex].coachItems[this.currSelectedCoachIndex],n=null,r=t.places,i=null;if(r){if(!this.currSelectedPlaceElementId)return this._getFirstPlaceInSelectedCoach();if(this.currSelectedPlace){let a={...this.currSelectedPlace.position};e&&(i=this._getSwitchedCoachDeckIndexByKeyNavigation(e,t),i!==null&&(r=this.seatReservations[i].coachItems[this.currSelectedCoachIndex].places||[],a.y=i<this.currSelectedDeckIndex?t.dimension.h:-1));for(let t of r)e?t.number!==this.currSelectedPlace?.number&&(e===this.keyboardNavigationEvents.ArrowRight&&(t.position.y===a.y||t.position.y===a.y-1)&&t.position.x>a.x&&(!n||t.position.x<n.position.x)||e===this.keyboardNavigationEvents.ArrowDown&&(t.position.x===a.x||t.position.x===a.x+1)&&t.position.y>a.y&&(!n||t.position.y<n.position.y)||e===this.keyboardNavigationEvents.ArrowLeft&&(t.position.y===a.y||t.position.y===a.y+1)&&t.position.x<a.x&&(!n||t.position.x>n.position.x)||e===this.keyboardNavigationEvents.ArrowUp&&(t.position.x===a.x||t.position.x===a.x-1)&&t.position.y<a.y&&(!n||t.position.y>n.position.y))&&(n=t):(this.currScrollDirection===Z.right&&t.position.y===a.y&&(!n||t.position.x<n.position.x)||this.currScrollDirection===Z.left&&t.position.y===a.y&&(!n||t.position.x>n.position.x))&&(n=t);i!==null&&n&&(this.currSelectedDeckIndex=i)}}return n}_navigateCoachNavigationByKeyboard(e){let t=this.focusedCoachIndex===-1?this.currSelectedCoachIndex===-1?0:this.currSelectedCoachIndex:this.focusedCoachIndex,n=e===`NEXT_TAB`?this.getNextAvailableCoachIndex(t):this.getPrevAvailableCoachIndex(t);if(this.hasNavigation){let r=this._getPlaceHtmlElement(),i=r?r.getAttribute(`keyfocus`)===`focus`:!1;if(e===`PREV_TAB`&&this.selectedCoachIndex===t){if(i||this.currSelectedPlace!==null){this.focusedCoachIndex=t,this.unfocusPlaceElement();return}t===0?this._refocusCurrentFocusedNavCoach(t):this.focusedCoachIndex=n}else n===this.currSelectedCoachIndex?e===`NEXT_TAB`&&n===this.coachItemDetailsElements.length-1?this._refocusCurrentFocusedNavCoach(t):(this.focusedCoachIndex=-1,this.selectedCoachIndex=n,i?this.focusPlaceElement(this.currSelectedPlace):(this.isCoachGridFocusable=!0,this._setFocusToSelectedCoachGrid())):this.focusedCoachIndex=n;this._scrollToSelectedNavigationButton(n)}else this.scrollToSelectedNavCoach(n)}_refocusCurrentFocusedNavCoach(e){this.focusedCoachIndex=-1,setTimeout(()=>this.focusedCoachIndex=e,0)}_navigateToPlaceByKeyboard(e){if(this.isKeyboardNavigation=!0,this.focusedCoachIndex!==-1&&(this.focusedCoachIndex=-1),!this.preventPlaceClick){let t=this._getClosestPlaceByKeyDirection(e);if(t)this.focusPlaceElement(t);else if(e===this.keyboardNavigationEvents.ArrowRight||e===this.keyboardNavigationEvents.ArrowLeft||this.alignVertical&&(e===this.keyboardNavigationEvents.ArrowUp||e===this.keyboardNavigationEvents.ArrowDown)){let t=e===this.keyboardNavigationEvents.ArrowRight?this.getNextAvailableCoachIndex():this.getPrevAvailableCoachIndex();this.scrollToSelectedNavCoach(t)}}}getNextAvailableCoachIndex(e){let t=e??this.currSelectedCoachIndex;return t<this.seatReservations[this.currSelectedDeckIndex].coachItems.length-1?t+1:t}getPrevAvailableCoachIndex(e){let t=e??this.currSelectedCoachIndex;return t>0?t-1:t}updateSelectedSeatReservationPlaces(e){let t=e.placeType===`SEAT`?`seats`:`bicycles`,n=e.placeType===`SEAT`?this.maxSeatReservations:this.maxBicycleReservations,r=this.selectedSeatReservationPlaces[t];this.selectedSeatReservationPlaces[t]=this._updateSelectedSeatReservationPlaces(r,n,e);let i=this.selectedSeatReservationPlaces;this.dispatchEvent(new te(i))}_updateSelectedSeatReservationPlaces(e,t,n){if(n.state===`SELECTED`){let t=this._getDeckIndexByPlaceId(n.id),r=this._getSeatReservationPlaceSelection(n,t);r&&e.push(r)}else e=e.filter(e=>e.id!==n.id);if(t>-1&&e.length>t){let r=t>0?n:void 0;e=this._resetAllPlaceSelections(e,r)}return e}updateCurrentSelectedPlaceInCoach(e){let t=this._getDeckIndexByPlaceId(e.id),n=e.coachIndex;if(t===null)return;let r=this.seatReservations[t].coachItems[n].places?.find(t=>t.number==e.number);if(!r)return;this.currSelectedDeckIndex=t,this.currSelectedCoachIndex=n,this.currSelectedPlace=r,this.currSelectedCoachIndex!==this.selectedCoachIndex&&this.updateCurrentSelectedCoach(),this._setCurrSelectedPlaceElementId(r);let i=setTimeout(()=>{this._scrollPlaceIntoNearestViewport(e.id),clearTimeout(i)},0)}updateCurrentSelectedCoach(){if(this.currSelectedCoachIndex==this.selectedCoachIndex)return;this.focusedCoachIndex!=-1&&(this.focusedCoachIndex=this.currSelectedCoachIndex),this.selectedCoachIndex=this.currSelectedCoachIndex;let e=this._getSeatReservationSelectedCoach(this.selectedCoachIndex);e&&this.dispatchEvent(new ne(e))}getPlaceElementId(e,t,n){return`seat-reservation__place-button-`+e+`-`+t+`-`+n}_initEmptyCoachDeckOffsets(){let e=Array(this.seatReservations.length-1).fill(0);this.seatReservations[this.seatReservations.length-1].coachItems.forEach(t=>{for(let n=0;n<this.seatReservations.length-1;n++){let r=this.seatReservations[n].coachItems[e[n]];if(t.id!=r?.id){let r={...t,places:void 0,propertyIds:void 0,graphicElements:void 0,serviceElements:void 0,travelClass:[]};this.seatReservations[n].coachItems.splice(e[n],0,r)}e[n]++}})}_initSeatReservationPlaceSelection(){this.selectedSeatReservationPlaces.seats=[],this.selectedSeatReservationPlaces.bicycles=[],this.seatReservations?.forEach((e,t)=>e.coachItems.map((n,r)=>{n.places?.filter(e=>e.state===`SELECTED`)?.forEach(n=>{let i=this.getPlaceElementId(t,r,n.number),a=A(n,i,e.deckCoachIndex,r),o=this._getSeatReservationPlaceSelection(a,t);o&&(o.placeType===`SEAT`?this.selectedSeatReservationPlaces.seats.push(o):this.selectedSeatReservationPlaces.bicycles.push(o))})}))}_resetAllPlaceSelections(e,t){for(let n of e)if(!t||t.id!==n.id){let e=this.shadowRoot?.getElementById(n.id);e&&e.setAttribute(`state`,`FREE`)}return e=t?e.filter(e=>e.id===t.id):[],e}_getSeatReservationPlaceSelection(e,t){if(t===null)return null;let n=this.seatReservations[t].coachItems[e.coachIndex],r=n.places?.find(t=>t.number===e.number);return r?j(r,n,e.id,e.deckIndex,e.coachIndex):null}_getSeatReservationSelectedCoach(e){if(!this.seatReservations[this.currSelectedDeckIndex].coachItems[e])return null;let t=this.seatReservations[this.currSelectedDeckIndex].coachItems[e],n=this.getAvailableFreePlacesNumFromCoach(t.places);return M(e,t,n)}_setCurrSelectedPlaceElementId(e){this.currSelectedPlaceElementId=e?this.getPlaceElementId(this.currSelectedDeckIndex,this.currSelectedCoachIndex,e.number):null}_determineBaseFontSize(){if(!f){let e=1/parseInt(window.getComputedStyle(document.body).fontSize,10);this.style?.setProperty(`--sbb-seat-reservation-one-px-rem`,`${e+`rem`}`)}}_prepareCoachItemDetailsData(){if(this.seatReservations){let e=this.seatReservations[this.seatReservations.length-1].coachItems;this.coachItemDetailsElements=[],e.forEach((e,t)=>{let n=[],r=[],i=[];this.seatReservations.map(e=>e.coachItems[t]).forEach(e=>{n.push(...e.travelClass),r.push(...e.propertyIds?e.propertyIds:[]),i.push(...e.places?e.places:[])}),this.coachItemDetailsElements.push({id:e.id,travelClass:this._prepareTravelClassNavigation(n),propertyIds:this._prepareServiceIconsNavigation(r),isDriverArea:!e.places||e.places.length===0,isLocomotive:this._isLocomotive(e),driverAreaSide:this._prepareDriverAreaSideNavigation(e),freePlaces:this.getAvailableFreePlacesNumFromCoach(i)})})}}_prepareOptimizeAreaIconDimensionByMedian(){if(this.seatReservations){let e=[];if(this.seatReservations.forEach(t=>t.coachItems.forEach(t=>t.serviceElements?.forEach(t=>e.push(t.dimension)))),e.length){e.sort((e,t)=>{if(e&&t){let n=e.w+e.h,r=t.w+t.h;return n>r?1:n<r?-1:0}return 0});let t=e[Math.floor(e.length/2)];this.globalAreaIconDim=this.getCalculatedDimension(t)}else{let e=this.seatReservations.flatMap(e=>e.coachItems.map(e=>e.dimension.h)).reduce((e,t)=>Math.max(e,t),0),t=Math.floor(e*.2);this.globalAreaIconDim=this.getCalculatedDimension({w:t,h:t})}}}_prepareTravelClassNavigation(e){return e.indexOf(`FIRST`)===-1?e.indexOf(`SECOND`)===-1?`ANY_CLASS`:`SECOND`:`FIRST`}_prepareDriverAreaSideNavigation(e){let t=e.graphicElements?.filter(e=>e.icon===`DRIVER_AREA`);if(t&&t.length>0){let e=t.find(e=>e.position.x===0)||!1,n=t.find(e=>e.position.x>0)||!1;return{left:!!e,right:!!n}}}_prepareSeatReservationStructureInformation(){this.seatReservations&&(this.seatReservationStructure={decks:[]},this.seatReservations.forEach((e,t)=>{let n={deckIndex:t,deckCoaches:[]};e?.coachItems?.forEach(e=>{let t=(e.graphicElements?.filter(e=>e.icon&&!this.notAreaElements.includes(e.icon)))?.concat(e.serviceElements||[]).concat(e.places||[])||[],r=this._isOverhangingElementsPresent(e.dimension.w,t),i=e.graphicElements?.filter(e=>!this.notAreaElements.includes(e.icon)).map(t=>this._getCalculatedDimensionPositionElement(t,e.dimension,`AREA`)),a=e.graphicElements?.filter(e=>this.notAreaElements.includes(e.icon)).map(t=>this._getCalculatedDimensionPositionElement(t,e.dimension,`OTHER`)),o=e.serviceElements?.map(t=>this._getCalculatedDimensionPositionElement(t,e.dimension,`SERVICE`)),s=this._getCalculatedMiddleBorderElement(e),c=this.getCalculatedDimension({...e.dimension}),l={width:c.w,height:c.h,otherElements:a||[],serviceElements:o||[],areaElements:i||[],borderMiddleElement:s,hasOverhangingElements:r};n.deckCoaches.push(l)}),this.seatReservationStructure.decks.push(n)}))}_getCalculatedMiddleBorderElement(e){let t=(e.dimension.h+this.coachBorderOffset*2)*this.baseGridSize,n=0,r=e.dimension.w;if(e.graphicElements){let t=this._getFirstLastDockingElements(e.graphicElements);if(t?.length==2){let i=t[0],a=t[1],o=i.position.x==0?a.dimension.w:i.dimension.w;n=i.position.x==0?i.dimension.w:a.dimension.w,r=e.dimension.w-o-n}else if(t?.length==1){let i=t[0];i.position.x===0?(n=i.dimension.w,r=e.dimension.w-i.dimension.w):i.position.x!==0&&(r=e.dimension.w-i.dimension.w)}}let i=this.coachBorderPadding*-1;return{position:{x:Math.floor(n*this.baseGridSize)-1,y:i,z:0},dimension:{w:Math.floor(r*this.baseGridSize)+2,h:t}}}_getFirstLastDockingElements(e){let t=(e.filter(e=>this.middleBorderDockingElements.includes(e.icon))||[]).sort((e,t)=>{let n=e.position.x,r=t.position.x;return n>r?1:n<r?-1:0});return t.filter((e,n)=>n==0||n==t.length-1)}_getCalculatedDimensionPositionElement(e,t,n){let r={...e.dimension},i={...e.position},a=e.rotation||0,o=this.notAreaElements.concat(this.notFixedRotatableAreaIcons).indexOf(e.icon)===-1,s=this.alignVertical&&o?a-90:a,c=null;if(n===`AREA`){let n=e.icon?.indexOf(`TABLE`)===-1,a=e.icon&&n?e.icon:null,o=this.isElementDirectlyOnBorder(e,t)&&a!==`ENTRY_EXIT`;this._isElementAtTopBorder(e)?(c=`upper-border`,i.y-=this.coachBorderOffset-this.coachBorderOffset/3):this._isElementAtBottomBorder(e,t)&&(c=`lower-border`,o||(i.y+=this.coachBorderOffset-this.coachBorderOffset/3)),o&&(r.h+=this.coachBorderOffset-this.coachBorderOffset/3)}else if(n===`OTHER`){if(!(e.icon?.startsWith(`WALL`)||e.icon?.startsWith(`T_WALL`)))this._isElementAtTopBorder(e)&&(i.y-=this.coachBorderOffset),this._isElementAtBottomBorder(e,t)&&(r.h+=this.coachBorderOffset*2);else{let n=this.gapWallCompartmentToPlace/this.baseGridSize;this._isElementAtTopBorder(e)&&(i.y-=this.coachBorderOffset,r.h+=this.coachBorderOffset+n),this._isElementAtBottomBorder(e,t)&&(i.y-=n,r.h+=this.coachBorderOffset+n);let a=1/this.baseGridSize;e.icon?.indexOf(`RIGHT`)===-1?e.icon?.indexOf(`LEFT`)!==-1&&(i.x+=e.rotation===0?a:-a):i.x-=e.rotation===0?a:-a}}return r.w=Math.floor(r.w*this.baseGridSize),r.h=Math.floor(r.h*this.baseGridSize),i.x=Math.floor(i.x*this.baseGridSize),i.y=Math.floor(i.y*this.baseGridSize),{icon:e.icon&&e.icon.endsWith(`DRIVER_AREA`)?e.icon?.concat(`_`,this.seatReservations[this.currSelectedDeckIndex].vehicleType):e.icon,rotation:s,dimension:r,position:i,mounting:c}}_isElementAtTopBorder(e){return e.position.y===0}_isElementAtBottomBorder(e,t){return t.h===e.position.y+e.dimension.h}_getPlaceHtmlElement(){return this.currSelectedPlaceElementId&&this.shadowRoot?.getElementById(this.currSelectedPlaceElementId)||null}_getDeckIndexByPlaceId(e){let t=this.shadowRoot?.querySelector(`#`+e)?.getAttribute(`data-deck-index`);return t&&!isNaN(+t)?+t:null}_isValidCoachIndex(e){return e>=0&&e<=this.seatReservations[this.seatReservations.length-1].coachItems.length}_getExistingCoachDeckIndex(){if(this.seatReservations[this.currSelectedDeckIndex].coachItems[this.currSelectedCoachIndex].places!==void 0)return this.currSelectedDeckIndex;let e=this.seatReservations.findIndex(e=>e.coachItems[this.currSelectedCoachIndex].places!==void 0);return this.currSelectedDeckIndex>=e?this.currSelectedDeckIndex:e}_scrollPlaceIntoNearestViewport(e){this.shadowRoot?.getElementById(e)?.scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`nearest`})}_isOverhangingElementsPresent(e,t){return t?.some(t=>t.position.x===0||t.position.x+t.dimension.w>=e)??!1}_isLocomotive(e){return e?.graphicElements?.find(e=>e.icon===`DRIVER_AREA_NO_VERTICAL_WALL`)!==void 0}_onLeaveSeatReservationComponent(){this.hasNavigation&&(this.focusedCoachIndex=-1),this.unfocusPlaceElement()}}})();var $=`:host{--sbb-seat-reservation-grid-size:16px;--sbb-seat-reservation-height:0;--sbb-seat-reservation-decks:1;height:inherit;display:block}:host ::part(coach-floor){fill:var(--sbb-background-color-2)}@media (forced-colors:active){:host ::part(coach-floor){fill:#0000}}:host(:dir(rtl)) :not(.sbb-sr-place-ctrl--type-bicycle,.sbb-sr-place-ctrl--orientation-90,.sbb-sr-place-ctrl--orientation-270,.sbb-sr-place-ctrl--state-selected) ::part(coach-floor){rotate:180deg}.sbb-sr-popover{margin-block:calc(4 * var(--sbb-seat-reservation-one-px-rem,.0625rem))}:host([align-vertical]) .sbb-sr__component{justify-content:flex-end;gap:calc(22 * var(--sbb-seat-reservation-one-px-rem,.0625rem));height:inherit;flex-direction:row-reverse}@media (width>=37.5rem){:host([align-vertical]) .sbb-sr__component{gap:calc(54 * var(--sbb-seat-reservation-one-px-rem,.0625rem))}}:host([align-vertical]) .sbb-sr__component--has-travel-direction{padding-block-start:calc(36 * var(--sbb-seat-reservation-one-px-rem,.0625rem))}:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation,:host([align-vertical]) .sbb-sr__component ul.sbb-sr-navigation__list-coaches{flex-direction:column}:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation{padding:calc(16 * var(--sbb-seat-reservation-one-px-rem,.0625rem)) 0}:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation .sbb-sr__navigation-control-button{left:calc(1 * var(--sbb-seat-reservation-one-px-rem,.0625rem));top:0;rotate:90deg}@media (width>=64rem){:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation .sbb-sr__navigation-control-button{left:calc(-1 * var(--sbb-seat-reservation-one-px-rem,.0625rem))}}:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation ul.sbb-sr-navigation__list-coaches{max-width:initial;padding:calc(5 * var(--sbb-seat-reservation-one-px-rem,.0625rem));overflow:hidden scroll}:host([align-vertical]) .sbb-sr__component nav.sbb-sr-navigation ul.sbb-sr-navigation__list-coaches li{display:flex}:host([align-vertical]) .sbb-sr__wrapper-coach-decks{flex-direction:column}:host([align-vertical]) .sbb-sr__wrapper-coach-decks .sbb-sr__wrapper-deck-labels{width:calc((var(--sbb-seat-reservation-height) + 24) * var(--sbb-seat-reservation-one-px-rem,.0625rem));height:initial;flex-direction:column-reverse}:host([align-vertical]) .sbb-sr__wrapper-coach-decks .sbb-sr__wrapper-deck-labels b{inline-size:calc(50% - 16 * var(--sbb-seat-reservation-one-px-rem,.0625rem));block-size:calc(20 * var(--sbb-seat-reservation-one-px-rem,.0625rem));margin-bottom:calc(16 * var(--sbb-seat-reservation-one-px-rem,.0625rem));rotate:initial;writing-mode:initial}:host([align-vertical]) .sbb-sr__wrapper-scrollarea{width:calc((var(--sbb-seat-reservation-height) + 24) * var(--sbb-seat-reservation-one-px-rem,.0625rem));height:100%;overflow:hidden scroll}:host([align-vertical]) .sbb-sr__wrapper-scrollarea .sbb-sr__parent{rotate:90deg}:host([align-vertical]) .sbb-sr-travel-direction-wrapper{width:calc(var(--sbb-seat-reservation-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem));margin-block-start:calc(4 * var(--sbb-seat-reservation-one-px-rem,.0625rem));position:absolute}.sbb-sr-navigation{gap:calc(3 * var(--sbb-seat-reservation-one-px-rem,.0625rem))}.sbb-sr-navigation .sbb-sr__navigation-control-button{top:calc(2 * var(--sbb-seat-reservation-one-px-rem,.0625rem));position:relative}@media (width>=64rem){.sbb-sr-navigation .sbb-sr__navigation-control-button{top:0}}.sbb-sr__component{gap:calc(64 * var(--sbb-seat-reservation-one-px-rem,.0625rem) - 16px);flex-direction:column;display:flex}.sbb-sr-travel-direction-wrapper{justify-content:center;align-items:center;column-gap:calc(4 * var(--sbb-seat-reservation-one-px-rem,.0625rem));margin-block:calc(8 * var(--sbb-seat-reservation-one-px-rem,.0625rem)) calc(4 * var(--sbb-seat-reservation-one-px-rem,.0625rem));font-size:var(--sbb-text-font-size-s);display:flex}.sbb-sr-travel-direction-wrapper .sbb-sr__travel-direction--arrow{align-items:center;display:flex}.sbb-sr-navigation-wrapper{display:flex}.sbb-sr-navigation{justify-content:center;width:100%;padding-inline:16px;display:flex}.sbb-sr-navigation__list-coaches{gap:calc(4 * var(--sbb-seat-reservation-one-px-rem,.0625rem));padding:calc(6 * var(--sbb-seat-reservation-one-px-rem,.0625rem)) calc(5 * var(--sbb-seat-reservation-one-px-rem,.0625rem)) 0;--sbb-scrollbar-color:transparent;flex-wrap:nowrap;max-width:856px;display:flex;position:relative;overflow:scroll hidden}.sbb-sr__wrapper-coach-decks{height:inherit;display:flex;overflow:hidden}.sbb-sr__wrapper-coach-decks .sbb-sr__wrapper-deck-labels{height:calc(var(--sbb-seat-reservation-height) * var(--sbb-seat-reservation-one-px-rem,.0625rem));writing-mode:vertical-lr;justify-content:space-between;display:flex}.sbb-sr__wrapper-coach-decks .sbb-sr__wrapper-deck-labels b{height:calc(50% - 16 * var(--sbb-seat-reservation-one-px-rem,.0625rem));width:calc(20 * var(--sbb-seat-reservation-one-px-rem,.0625rem));text-align:center;line-height:calc(20 * var(--sbb-seat-reservation-one-px-rem,.0625rem));margin-block-end:16px;rotate:180deg}.sbb-sr__wrapper-scrollarea{padding-block:calc(8 * var(--sbb-seat-reservation-one-px-rem,.0625rem)) calc(16 * var(--sbb-seat-reservation-one-px-rem,.0625rem));overflow:scroll hidden}.sbb-sr__wrapper-scrollarea .sbb-sr__parent{flex-direction:column;display:flex;position:relative}.sbb-sr__list-decks{flex-direction:column;display:flex}.sbb-sr__list-decks--gap{gap:calc(48 * var(--sbb-seat-reservation-one-px-rem,.0625rem))}.sbb-sr__list-item-deck{position:relative}.sbb-sr__list-coaches{gap:calc(4 * var(--sbb-seat-reservation-one-px-rem,.0625rem));display:flex}.sbb-sr__list-decks:has(.sbb-sr-coach-has-overhanging-elements) .sbb-sr__list-coaches{gap:calc(8 * var(--sbb-seat-reservation-one-px-rem,.0625rem))}.sbb-sr__item-coach{position:relative}.sbb-sr-coach-wrapper__table{outline:0}
316
361
  `,re=class extends Q{constructor(){super(...arguments),this._language=new i(this)}static{this.elementName=`sbb-seat-reservation`}static{this.elementDependencies=[x,S,R,B,J,G,X]}static{this.styles=[c,u,l,m($)]}willUpdate(e){super.willUpdate(e),e.has(`hasNavigation`)&&(this.hasNavigation?this.shadowRoot?.querySelectorAll(`table`).forEach(e=>e.removeAttribute(`tabindex`)):this.shadowRoot?.querySelectorAll(`table`).forEach(e=>e.setAttribute(`tabindex`,`0`)))}firstUpdated(e){super.firstUpdated(e),this.updateComplete.then(()=>{this.initNavigationSelectionByScrollEvent()})}render(){return this._initVehicleSeatReservationConstruction(),this._coachesHtmlTemplate||null}_initVehicleSeatReservationConstruction(){this._coachesHtmlTemplate=d`
317
362
  ${this._renderTravelDirection()}
318
363
  <div