@sbb-esta/lyne-elements-experimental-dev 4.7.0-dev.1773149682 → 4.7.0-dev.1773159924

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