@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,35 +1,36 @@
1
- var X = (t) => {
1
+ var j = (t) => {
2
2
  throw TypeError(t);
3
3
  };
4
- var q = (t, l, n) => l.has(t) || X("Cannot " + n);
5
- var E = (t, l, n) => (q(t, l, "read from private field"), n ? n.call(t) : l.get(t)), P = (t, l, n) => l.has(t) ? X("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(t) : l.set(t, n), m = (t, l, n, p) => (q(t, l, "write to private field"), p ? p.call(t, n) : l.set(t, n), n);
6
- import { __runInitializers as v, __esDecorate as w } from "tslib";
7
- import { defaultDateAdapter as K } from "@sbb-esta/lyne-elements/core/datetime.js";
8
- import { forceType as pe } from "@sbb-esta/lyne-elements/core/decorators.js";
9
- import { boxSizingStyles as he } from "@sbb-esta/lyne-elements/core/styles.js";
10
- import { css as de, LitElement as ue, html as f, nothing as Q } from "lit";
11
- import { customElement as _e, property as I } from "lit/decorators.js";
12
- import { styleMap as U } from "lit/directives/style-map.js";
13
- import { removeTimezoneFromISOTimeString as o } from "../core/datetime.js";
14
- import { isRideLeg as ge } from "../core/timetable.js";
15
- import { d as z, a as x } from "../differenceInMinutes-COvvdYsJ.js";
16
- import { t as S } from "../toDate-Bw2KTWeq.js";
17
- function ve(t, l) {
18
- return +S(t) > +S(l);
4
+ var M = (t, i, o) => i.has(t) || j("Cannot " + o);
5
+ var N = (t, i, o) => (M(t, i, "read from private field"), o ? o.call(t) : i.get(t)), I = (t, i, o) => i.has(t) ? j("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(t) : i.set(t, o), v = (t, i, o, _) => (M(t, i, "write to private field"), _ ? _.call(t, o) : i.set(t, o), o);
6
+ import { __runInitializers as m, __esDecorate as P } from "tslib";
7
+ import { SbbElement as oe } from "@sbb-esta/lyne-elements/core/base-elements.js";
8
+ import { defaultDateAdapter as Y } from "@sbb-esta/lyne-elements/core/datetime.js";
9
+ import { forceType as ne } from "@sbb-esta/lyne-elements/core/decorators.js";
10
+ import { boxSizingStyles as be } from "@sbb-esta/lyne-elements/core/styles.js";
11
+ import { css as ce, html as f, nothing as F } from "lit";
12
+ import { property as E } from "lit/decorators.js";
13
+ import { styleMap as X } from "lit/directives/style-map.js";
14
+ import { removeTimezoneFromISOTimeString as n } from "../core/datetime.js";
15
+ import { isRideLeg as pe } from "../core/timetable.js";
16
+ import { d as w, a as z } from "../differenceInMinutes-COvvdYsJ.js";
17
+ import { t as x } from "../toDate-Bw2KTWeq.js";
18
+ function he(t, i) {
19
+ return +x(t) > +x(i);
19
20
  }
20
- function Z(t, l) {
21
- return +S(t) < +S(l);
21
+ function q(t, i) {
22
+ return +x(t) < +x(i);
22
23
  }
23
- const me = de`:host{--sbb-pearl-chain-height: var(--sbb-border-width-2x);--sbb-pearl-chain-spacing-small: .125rem;--sbb-pearl-chain-color: var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-color-disruption: var(--sbb-pearl-chain-bullet-color-disruption);--sbb-pearl-chain-color-past: var(--sbb-pearl-chain-bullet-color-past);--sbb-pearl-chain-leg-width: 100%;display:block;--sbb-pearl-chain-position-color: var(--sbb-color-primary);--sbb-pearl-chain-bullet-size-start-end: .625rem;--sbb-pearl-chain-bullet-size-stop: .5rem;--sbb-pearl-chain-bullet-color: var(--sbb-background-color-3-inverted);--sbb-pearl-chain-bullet-color-past: var(--sbb-color-metal);--sbb-pearl-chain-bullet-color-past: light-dark(var(--sbb-color-metal), var(--sbb-color-granite));--sbb-pearl-chain-bullet-color-irrelevant: var(--sbb-color-metal);--sbb-pearl-chain-bullet-color-irrelevant: light-dark( var(--sbb-color-metal), var(--sbb-color-granite) );--sbb-pearl-chain-bullet-color-disruption: var(--sbb-color-error);--sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-2x);--sbb-pearl-chain-bullet-animation-duration: 1.92s;--sbb-pearl-chain-bullet-animation-easing: ease-out;--sbb-pearl-chain-bullet-crossed-width: .88375rem;--sbb-pearl-chain-bullet-crossed-height: .21875rem;--sbb-pearl-chain-bullet-crossed-border-width: .09375rem}.sbb-pearl-chain{position:relative;display:flex;justify-content:space-between;flex-wrap:nowrap;color:var(--sbb-pearl-chain-color);width:100%;padding-block:calc((var(--sbb-pearl-chain-bullet-size-start-end) - var(--sbb-pearl-chain-height)) / 2);padding-inline-end:var(--sbb-pearl-chain-bullet-size-start-end)}.sbb-pearl-chain__bullet{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain__bullet{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__bullet{content:"";position:absolute;background-color:currentcolor;inset-block-start:0;z-index:3}.sbb-pearl-chain__bullet:first-of-type{inset-inline-start:0}.sbb-pearl-chain__bullet:last-of-type{inset-inline-end:0}.sbb-pearl-chain__leg{flex-shrink:0;flex-grow:0;position:relative;height:var(--sbb-pearl-chain-height);border-inline-end:var(--sbb-pearl-chain-spacing-small) solid Canvas;background-color:currentcolor;width:var(--sbb-pearl-chain-leg-width);display:flex;align-items:center}@media(forced-colors:active){.sbb-pearl-chain__leg{background-color:CanvasText}.sbb-pearl-chain--past .sbb-pearl-chain__leg{background-color:GrayText}}.sbb-pearl-chain__leg:last-of-type{border:none}.sbb-pearl-chain__stop{position:relative;z-index:2;background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__stop{min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain__bullet--future{background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain__bullet--future{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{color:var(--sbb-pearl-chain-color-past);--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{--sbb-pearl-chain-bullet-color: GrayText !important}}@media(forced-colors:active){.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{background-color:GrayText!important}}.sbb-pearl-chain__bullet--progress{background:var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain__bullet--progress{--sbb-pearl-chain-bullet-color: GrayText !important}}.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{color:var(--sbb-pearl-chain-color-disruption);--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media(forced-colors:active){.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{--sbb-pearl-chain-bullet-color: Highlight}}@media(forced-colors:active){.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{color:Highlight;background:Highlight}}.sbb-pearl-chain__leg--disruption .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media(forced-colors:active){.sbb-pearl-chain__leg--disruption .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: Highlight}}.sbb-pearl-chain__leg--past .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain__leg--past .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: GrayText !important}}.sbb-pearl-chain__leg--disruption:after{background-color:unset;background-image:linear-gradient(to right,currentcolor 0%,currentcolor 50%,Canvas 50%);background-repeat:repeat-x;background-size:calc(2 * var(--sbb-pearl-chain-spacing-small)) var(--sbb-pearl-chain-height);inset-inline-end:var(--sbb-pearl-chain-height)}@media(forced-colors:active){.sbb-pearl-chain__leg--disruption:after{background:unset;border-block-start:.0625rem dashed Highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain__leg--skipped{color:var(--sbb-pearl-chain-color-disruption)}.sbb-pearl-chain__leg--skipped:after{background-color:unset;background-image:linear-gradient(to right,currentcolor 0%,currentcolor 50%,Canvas 50%);background-repeat:repeat-x;background-size:calc(2 * var(--sbb-pearl-chain-spacing-small)) var(--sbb-pearl-chain-height);inset-inline-end:var(--sbb-pearl-chain-height)}@media(forced-colors:active){.sbb-pearl-chain__leg--skipped:after{background:unset;border-block-start:.0625rem dashed Highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain__stop--departure-skipped{min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain__stop--departure-skipped:before{content:"";position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%) rotate(45deg);border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width)}@media(forced-colors:active){.sbb-pearl-chain__stop--departure-skipped:before{background:Highlight}}.sbb-pearl-chain--arrival-skipped,.sbb-pearl-chain--departure-skipped{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain--arrival-skipped:before,.sbb-pearl-chain--departure-skipped:before{content:"";position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%) rotate(45deg);border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width)}@media(forced-colors:active){.sbb-pearl-chain--arrival-skipped:before,.sbb-pearl-chain--departure-skipped:before{background:Highlight}}.sbb-pearl-chain__leg:after{content:"";position:absolute;inset-block:0;inset-inline-start:0;background-color:currentcolor;border-radius:var(--sbb-pearl-chain-height);z-index:1}@media(forced-colors:active){.sbb-pearl-chain__leg:after{background-color:CanvasText}.sbb-pearl-chain--past .sbb-pearl-chain__leg:after{background-color:GrayText}}.sbb-pearl-chain__leg:last-of-type:after{inset-inline-end:calc(-1 * var(--sbb-pearl-chain-height))}.sbb-pearl-chain__leg--progress:after{background-color:var(--sbb-pearl-chain-color-past);width:var(--sbb-pearl-chain-leg-status)}.sbb-pearl-chain__position{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain__position{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__position{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-position-color)}@media(forced-colors:active){.sbb-pearl-chain__position{--sbb-pearl-chain-position-color: Highlight}}@keyframes pearl-chain-bullet-position-pulse{0%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}25%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}50%{box-shadow:0 0 0 .1875rem color-mix(in srgb,var(--sbb-pearl-chain-position-color) 20%,transparent)}to{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}}.sbb-pearl-chain__position{animation:pearl-chain-bullet-position-pulse var(--sbb-pearl-chain-bullet-animation-duration) var(--sbb-pearl-chain-bullet-animation-easing) infinite;position:absolute;inset-block-start:-200%;z-index:4;inset-inline-start:var(--sbb-pearl-chain-status-position)}.sbb-pearl-chain__position--no-animation{animation:unset}.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}`;
24
- let Pe = (() => {
25
- var _, g, h;
26
- let t = [_e("sbb-pearl-chain")], l, n = [], p, H = ue, O = [], J, R = [], L = [], W, G = [], V = [], B;
27
- return h = class extends H {
24
+ const de = ce`:host{--sbb-pearl-chain-height: var(--sbb-border-width-2x);--sbb-pearl-chain-spacing-small: .125rem;--sbb-pearl-chain-color: var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-color-disruption: var(--sbb-pearl-chain-bullet-color-disruption);--sbb-pearl-chain-color-past: var(--sbb-pearl-chain-bullet-color-past);--sbb-pearl-chain-leg-width: 100%;display:block;--sbb-pearl-chain-position-color: var(--sbb-color-primary);--sbb-pearl-chain-bullet-size-start-end: .625rem;--sbb-pearl-chain-bullet-size-stop: .5rem;--sbb-pearl-chain-bullet-color: var(--sbb-background-color-3-inverted);--sbb-pearl-chain-bullet-color-past: var(--sbb-color-metal);--sbb-pearl-chain-bullet-color-past: light-dark(var(--sbb-color-metal), var(--sbb-color-granite));--sbb-pearl-chain-bullet-color-irrelevant: var(--sbb-color-metal);--sbb-pearl-chain-bullet-color-irrelevant: light-dark( var(--sbb-color-metal), var(--sbb-color-granite) );--sbb-pearl-chain-bullet-color-disruption: var(--sbb-color-error);--sbb-pearl-chain-bullet-border-width: var(--sbb-border-width-2x);--sbb-pearl-chain-bullet-animation-duration: 1.92s;--sbb-pearl-chain-bullet-animation-easing: ease-out;--sbb-pearl-chain-bullet-crossed-width: .88375rem;--sbb-pearl-chain-bullet-crossed-height: .21875rem;--sbb-pearl-chain-bullet-crossed-border-width: .09375rem}.sbb-pearl-chain{position:relative;display:flex;justify-content:space-between;flex-wrap:nowrap;color:var(--sbb-pearl-chain-color);width:100%;padding-block:calc((var(--sbb-pearl-chain-bullet-size-start-end) - var(--sbb-pearl-chain-height)) / 2);padding-inline-end:var(--sbb-pearl-chain-bullet-size-start-end)}.sbb-pearl-chain__bullet{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain__bullet{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__bullet{content:"";position:absolute;background-color:currentcolor;inset-block-start:0;z-index:3}.sbb-pearl-chain__bullet:first-of-type{inset-inline-start:0}.sbb-pearl-chain__bullet:last-of-type{inset-inline-end:0}.sbb-pearl-chain__leg{flex-shrink:0;flex-grow:0;position:relative;height:var(--sbb-pearl-chain-height);border-inline-end:var(--sbb-pearl-chain-spacing-small) solid Canvas;background-color:currentcolor;width:var(--sbb-pearl-chain-leg-width);display:flex;align-items:center}@media(forced-colors:active){.sbb-pearl-chain__leg{background-color:CanvasText}.sbb-pearl-chain--past .sbb-pearl-chain__leg{background-color:GrayText}}.sbb-pearl-chain__leg:last-of-type{border:none}.sbb-pearl-chain__stop{position:relative;z-index:2;background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__stop{min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain__bullet--future{background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain__bullet--future{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{color:var(--sbb-pearl-chain-color-past);--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{--sbb-pearl-chain-bullet-color: GrayText !important}}@media(forced-colors:active){.sbb-pearl-chain__leg--past,.sbb-pearl-chain--past,.sbb-pearl-chain__leg--past:after,.sbb-pearl-chain__leg--progress:after,.sbb-pearl-chain__leg--progress .sbb-pearl-chain__stop,.sbb-pearl-chain--progress,.sbb-pearl-chain__bullet--past{background-color:GrayText!important}}.sbb-pearl-chain__bullet--progress{background:var(--sbb-pearl-chain-bullet-color);--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain__bullet--progress{--sbb-pearl-chain-bullet-color: GrayText !important}}.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{color:var(--sbb-pearl-chain-color-disruption);--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media(forced-colors:active){.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{--sbb-pearl-chain-bullet-color: Highlight}}@media(forced-colors:active){.sbb-pearl-chain__bullet--departure-disruption,.sbb-pearl-chain--arrival-disruption,.sbb-pearl-chain--departure-disruption,.sbb-pearl-chain__leg--disruption{color:Highlight;background:Highlight}}.sbb-pearl-chain__leg--disruption .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-disruption)}@media(forced-colors:active){.sbb-pearl-chain__leg--disruption .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: Highlight}}.sbb-pearl-chain__leg--past .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-bullet-color-past)}@media(forced-colors:active){.sbb-pearl-chain__leg--past .sbb-pearl-chain__stop{--sbb-pearl-chain-bullet-color: GrayText !important}}.sbb-pearl-chain__leg--disruption:after{background-color:unset;background-image:linear-gradient(to right,currentcolor 0%,currentcolor 50%,Canvas 50%);background-repeat:repeat-x;background-size:calc(2 * var(--sbb-pearl-chain-spacing-small)) var(--sbb-pearl-chain-height);inset-inline-end:var(--sbb-pearl-chain-height)}@media(forced-colors:active){.sbb-pearl-chain__leg--disruption:after{background:unset;border-block-start:.0625rem dashed Highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain__leg--skipped{color:var(--sbb-pearl-chain-color-disruption)}.sbb-pearl-chain__leg--skipped:after{background-color:unset;background-image:linear-gradient(to right,currentcolor 0%,currentcolor 50%,Canvas 50%);background-repeat:repeat-x;background-size:calc(2 * var(--sbb-pearl-chain-spacing-small)) var(--sbb-pearl-chain-height);inset-inline-end:var(--sbb-pearl-chain-height)}@media(forced-colors:active){.sbb-pearl-chain__leg--skipped:after{background:unset;border-block-start:.0625rem dashed Highlight;transform:translateY(.0625rem)}}.sbb-pearl-chain__stop--departure-skipped{min-height:var(--sbb-pearl-chain-bullet-size-stop);min-width:var(--sbb-pearl-chain-bullet-size-stop);height:var(--sbb-pearl-chain-bullet-size-stop);width:var(--sbb-pearl-chain-bullet-size-stop);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain__stop--departure-skipped:before{content:"";position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%) rotate(45deg);border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width)}@media(forced-colors:active){.sbb-pearl-chain__stop--departure-skipped:before{background:Highlight}}.sbb-pearl-chain--arrival-skipped,.sbb-pearl-chain--departure-skipped{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);border:var(--sbb-pearl-chain-bullet-border-width) solid currentcolor;background:Canvas}.sbb-pearl-chain--arrival-skipped:before,.sbb-pearl-chain--departure-skipped:before{content:"";position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%) rotate(45deg);border-block-start:var(--sbb-pearl-chain-bullet-crossed-border-width) solid canvas;background:var(--sbb-pearl-chain-bullet-color-disruption);height:var(--sbb-pearl-chain-bullet-crossed-height);width:var(--sbb-pearl-chain-bullet-crossed-width)}@media(forced-colors:active){.sbb-pearl-chain--arrival-skipped:before,.sbb-pearl-chain--departure-skipped:before{background:Highlight}}.sbb-pearl-chain__leg:after{content:"";position:absolute;inset-block:0;inset-inline-start:0;background-color:currentcolor;border-radius:var(--sbb-pearl-chain-height);z-index:1}@media(forced-colors:active){.sbb-pearl-chain__leg:after{background-color:CanvasText}.sbb-pearl-chain--past .sbb-pearl-chain__leg:after{background-color:GrayText}}.sbb-pearl-chain__leg:last-of-type:after{inset-inline-end:calc(-1 * var(--sbb-pearl-chain-height))}.sbb-pearl-chain__leg--progress:after{background-color:var(--sbb-pearl-chain-color-past);width:var(--sbb-pearl-chain-leg-status)}.sbb-pearl-chain__position{min-height:var(--sbb-pearl-chain-bullet-size-start-end);min-width:var(--sbb-pearl-chain-bullet-size-start-end);height:var(--sbb-pearl-chain-bullet-size-start-end);width:var(--sbb-pearl-chain-bullet-size-start-end);background:var(--sbb-pearl-chain-bullet-color);color:var(--sbb-pearl-chain-bullet-color);border-color:var(--sbb-pearl-chain-bullet-color);border-radius:100%}@media(forced-colors:active){.sbb-pearl-chain__position{--sbb-pearl-chain-bullet-color: CanvasText}}.sbb-pearl-chain__position{--sbb-pearl-chain-bullet-color: var(--sbb-pearl-chain-position-color)}@media(forced-colors:active){.sbb-pearl-chain__position{--sbb-pearl-chain-position-color: Highlight}}@keyframes pearl-chain-bullet-position-pulse{0%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}25%{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}50%{box-shadow:0 0 0 .1875rem color-mix(in srgb,var(--sbb-pearl-chain-position-color) 20%,transparent)}to{box-shadow:0 0 0 0 var(--sbb-pearl-chain-position-color)}}.sbb-pearl-chain__position{animation:pearl-chain-bullet-position-pulse var(--sbb-pearl-chain-bullet-animation-duration) var(--sbb-pearl-chain-bullet-animation-easing) infinite;position:absolute;inset-block-start:-200%;z-index:4;inset-inline-start:var(--sbb-pearl-chain-status-position)}.sbb-pearl-chain__position--no-animation{animation:unset}.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}`;
25
+ let Ce = (() => {
26
+ var u, g, b;
27
+ let t = oe, i = [], o, _ = [], H = [], O, J = [], R = [], W;
28
+ return b = class extends t {
28
29
  constructor() {
29
30
  super(...arguments);
30
- P(this, _);
31
- P(this, g);
32
- m(this, _, (v(this, O), v(this, R, []))), m(this, g, (v(this, L), v(this, G, !1))), this._now = (v(this, V), null);
31
+ I(this, u);
32
+ I(this, g);
33
+ v(this, u, (m(this, i), m(this, _, []))), v(this, g, (m(this, H), m(this, J, !1))), this._now = (m(this, R), null);
33
34
  }
34
35
  /**
35
36
  * Define the legs of the pearl-chain.
@@ -40,82 +41,82 @@ let Pe = (() => {
40
41
  * arrival at 17:00. So the change should have a duration of 33.33%.
41
42
  */
42
43
  get legs() {
43
- return E(this, _);
44
+ return N(this, u);
44
45
  }
45
46
  set legs(a) {
46
- m(this, _, a);
47
+ v(this, u, a);
47
48
  }
48
49
  /**
49
50
  * Per default, the current location has a pulsating animation. You can
50
51
  * disable the animation with this property.
51
52
  */
52
53
  get disableAnimation() {
53
- return E(this, g);
54
+ return N(this, g);
54
55
  }
55
56
  set disableAnimation(a) {
56
- m(this, g, a);
57
+ v(this, g, a);
57
58
  }
58
59
  /**
59
60
  * A configured date which acts as the current date instead of the real current date.
60
61
  * Only recommended for testing purposes.
61
62
  */
62
63
  set now(a) {
63
- this._now = K.getValidDateOrNull(K.deserialize(a));
64
+ this._now = Y.getValidDateOrNull(Y.deserialize(a));
64
65
  }
65
66
  get now() {
66
67
  return this._now;
67
68
  }
68
69
  _getAllDuration(a) {
69
70
  return a?.reduce((e, r) => {
70
- const i = o(r.arrival?.time), s = o(r.departure?.time);
71
- return i && s ? e + z(o(r.arrival.time), o(r.departure.time)) : e;
71
+ const l = n(r.arrival?.time), s = n(r.departure?.time);
72
+ return l && s ? e + w(n(r.arrival.time), n(r.departure.time)) : e;
72
73
  }, 0);
73
74
  }
74
75
  _isAllCancelled(a) {
75
76
  return a?.every((e) => e?.serviceJourney?.serviceAlteration?.cancelled);
76
77
  }
77
78
  _getRelativeDuration(a, e) {
78
- const r = o(e.arrival?.time), i = o(e.departure?.time);
79
- if (r && i) {
80
- const s = z(o(e.arrival.time), o(e.departure.time)), b = this._getAllDuration(a);
81
- return b === 0 ? 100 : s / b * 100;
79
+ const r = n(e.arrival?.time), l = n(e.departure?.time);
80
+ if (r && l) {
81
+ const s = w(n(e.arrival.time), n(e.departure.time)), c = this._getAllDuration(a);
82
+ return c === 0 ? 100 : s / c * 100;
82
83
  }
83
84
  return 0;
84
85
  }
85
86
  _getProgress(a, e, r) {
86
87
  if (!e?.time || !r?.time)
87
88
  return 0;
88
- const i = x(e.time, e.delay ?? 0), s = x(r.time, r.delay ?? 0), b = z(s, i), D = z(a, i);
89
- return b && D / b * 100;
89
+ const l = z(e.time, e.delay ?? 0), s = z(r.time, r.delay ?? 0), c = w(s, l), S = w(a, l);
90
+ return c && S / c * 100;
90
91
  }
91
92
  _getStatus(a, e, r) {
92
- const i = e && e.time && x(e.time, e.delay ?? 0), s = r && r.time && x(r.time, r.delay ?? 0);
93
- return i && Z(i, a) && s && ve(s, a) ? "progress" : s && Z(s, a) ? "past" : "future";
93
+ const l = e && e.time && z(e.time, e.delay ?? 0), s = r && r.time && z(r.time, r.delay ?? 0);
94
+ return l && q(l, a) && s && he(s, a) ? "progress" : s && q(s, a) ? "past" : "future";
94
95
  }
95
96
  _renderPosition(a, e, r) {
96
- const i = this._getProgress(a, e, r);
97
- if (i < 0 && i > 100)
97
+ const l = this._getProgress(a, e, r);
98
+ if (l < 0 && l > 100)
98
99
  return;
99
100
  const s = () => ({
100
- "--sbb-pearl-chain-status-position": `${i}%`,
101
- ...i >= 50 ? { transform: "translateX(-100%)" } : {}
102
- }), b = this.disableAnimation ? "sbb-pearl-chain__position--no-animation" : "";
101
+ "--sbb-pearl-chain-status-position": `${l}%`,
102
+ ...l >= 50 ? { transform: "translateX(-100%)" } : {}
103
+ }), c = this.disableAnimation ? "sbb-pearl-chain__position--no-animation" : "";
103
104
  return f`<span
104
- style=${U(s())}
105
- class="sbb-pearl-chain__position ${b}"
105
+ style=${X(s())}
106
+ class="sbb-pearl-chain__position ${c}"
106
107
  ></span>`;
107
108
  }
108
109
  render() {
109
- const a = this.now ?? /* @__PURE__ */ new Date(), e = this.legs?.filter((c) => ge(c)), r = e?.length && o(e[0]?.departure?.time), i = r && {
110
+ const a = this.now ?? /* @__PURE__ */ new Date(), e = this.legs?.filter((p) => pe(p)), r = e?.length && n(e[0]?.departure?.time), l = r && {
110
111
  time: r,
111
112
  delay: e[0].departure.delay ?? 0
112
- }, s = e?.length && o(e[e.length - 1].arrival?.time), b = s && {
113
+ }, s = e?.length && n(e[e.length - 1].arrival?.time), c = s && {
113
114
  time: s,
114
115
  delay: e[e.length - 1]?.arrival.delay ?? 0
115
- }, D = e && e[0]?.serviceJourney?.stopPoints && e[0]?.serviceJourney?.stopPoints[0].stopStatus === "NOT_SERVICED" ? "sbb-pearl-chain--departure-skipped" : "", ee = (() => {
116
- const c = e && e[e.length - 1], d = c && c.serviceJourney?.stopPoints;
117
- return d && d[d.length - 1].stopStatus === "NOT_SERVICED" ? "sbb-pearl-chain--arrival-skipped" : "";
118
- })(), j = e && e[0]?.serviceJourney?.serviceAlteration?.cancelled ? "sbb-pearl-chain--departure-disruption" : "", M = e && e[e.length - 1]?.serviceJourney?.serviceAlteration?.cancelled ? "sbb-pearl-chain--arrival-disruption" : "", A = i && b && this._getStatus(a, i, b), ae = e && A && !j ? "sbb-pearl-chain__bullet--" + A : "", re = e && A && !M ? "sbb-pearl-chain__bullet--" + this._getStatus(a, void 0, b) : "";
116
+ }, S = e && e[0]?.serviceJourney?.stopPoints && e[0]?.serviceJourney?.stopPoints[0].stopStatus === "NOT_SERVICED" ? "sbb-pearl-chain--departure-skipped" : "", K = (() => {
117
+ const p = e && e[e.length - 1], h = p && p.serviceJourney?.stopPoints;
118
+ return h && h[h.length - 1].stopStatus === "NOT_SERVICED" ? "sbb-pearl-chain--arrival-skipped" : "";
119
+ })(), G = e && e[0]?.serviceJourney?.serviceAlteration?.cancelled ? "sbb-pearl-chain--departure-disruption" : "", L = e && e[e.length - 1]?.serviceJourney?.serviceAlteration?.cancelled ? "sbb-pearl-chain--arrival-disruption" : "", A = l && c && this._getStatus(a, l, c), Q = e && A && !G ? "sbb-pearl-chain__bullet--" + A : "", U = e && A && !L ? "sbb-pearl-chain__bullet--" + this._getStatus(a, void 0, c) : "";
119
120
  return this._isAllCancelled(e) ? f`
120
121
  <div class="sbb-pearl-chain">
121
122
  <span class="sbb-pearl-chain__bullet sbb-pearl-chain--departure-disruption"></span>
@@ -125,40 +126,40 @@ let Pe = (() => {
125
126
  ` : f`
126
127
  <div class="sbb-pearl-chain">
127
128
  <span
128
- class="sbb-pearl-chain__bullet ${ae} ${D} ${j}"
129
+ class="sbb-pearl-chain__bullet ${Q} ${S} ${G}"
129
130
  ></span>
130
- ${e?.map((c, d) => {
131
- const { stopPoints: u, serviceAlteration: Y } = c?.serviceJourney || {}, te = this._getRelativeDuration(e, c), le = o(c.departure?.time), ie = o(c.arrival?.time), se = u && u[u.length - 1]?.stopStatus === "NOT_SERVICED", ne = u && u[u.length - 1]?.stopStatus === "PLANNED", F = u && u[0]?.stopStatus === "NOT_SERVICED", T = d > 0 && e[d - 1].serviceJourney.stopPoints, oe = T && T[T.length - 1]?.stopStatus === "NOT_SERVICED", k = se || F && ne ? "sbb-pearl-chain__leg--skipped" : "", be = F || oe ? "sbb-pearl-chain__stop--departure-skipped" : "", y = Y?.cancelled || Y?.partiallyCancelled ? "sbb-pearl-chain__leg--disruption" : "", C = { time: le, delay: c.departure?.delay ?? 0 }, $ = { time: ie, delay: c.arrival?.delay ?? 0 }, N = this._getStatus(a, C, $), ce = !y && !k && "sbb-pearl-chain__leg--" + N;
131
+ ${e?.map((p, h) => {
132
+ const { stopPoints: d, serviceAlteration: V } = p?.serviceJourney || {}, Z = this._getRelativeDuration(e, p), ee = n(p.departure?.time), ae = n(p.arrival?.time), re = d && d[d.length - 1]?.stopStatus === "NOT_SERVICED", te = d && d[d.length - 1]?.stopStatus === "PLANNED", B = d && d[0]?.stopStatus === "NOT_SERVICED", D = h > 0 && e[h - 1].serviceJourney.stopPoints, ie = D && D[D.length - 1]?.stopStatus === "NOT_SERVICED", k = re || B && te ? "sbb-pearl-chain__leg--skipped" : "", le = B || ie ? "sbb-pearl-chain__stop--departure-skipped" : "", y = V?.cancelled || V?.partiallyCancelled ? "sbb-pearl-chain__leg--disruption" : "", T = { time: ee, delay: p.departure?.delay ?? 0 }, C = { time: ae, delay: p.arrival?.delay ?? 0 }, $ = this._getStatus(a, T, C), se = !y && !k && "sbb-pearl-chain__leg--" + $;
132
133
  return f` <div
133
- class="sbb-pearl-chain__leg ${ce || ""} ${y} ${k}"
134
- style=${U({
135
- "--sbb-pearl-chain-leg-width": `${te}%`,
136
- ...N === "progress" && !y && !k ? {
137
- "--sbb-pearl-chain-leg-status": `${this._getProgress(a, C, $)}%`
134
+ class="sbb-pearl-chain__leg ${se || ""} ${y} ${k}"
135
+ style=${X({
136
+ "--sbb-pearl-chain-leg-width": `${Z}%`,
137
+ ...$ === "progress" && !y && !k ? {
138
+ "--sbb-pearl-chain-leg-status": `${this._getProgress(a, T, C)}%`
138
139
  } : {}
139
140
  })}
140
141
  >
141
- ${d > 0 && d < e.length ? f`<span class="sbb-pearl-chain__stop ${be}"></span>` : Q}
142
- ${N === "progress" && !y && !k ? this._renderPosition(a, C, $) : Q}
142
+ ${h > 0 && h < e.length ? f`<span class="sbb-pearl-chain__stop ${le}"></span>` : F}
143
+ ${$ === "progress" && !y && !k ? this._renderPosition(a, T, C) : F}
143
144
  </div>`;
144
145
  })}
145
146
  <span
146
- class="sbb-pearl-chain__bullet ${re} ${ee} ${M}"
147
+ class="sbb-pearl-chain__bullet ${U} ${K} ${L}"
147
148
  ></span>
148
149
  </div>
149
150
  `;
150
151
  }
151
- }, _ = new WeakMap(), g = new WeakMap(), p = h, (() => {
152
- const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(H[Symbol.metadata] ?? null) : void 0;
153
- J = [I({ type: Array })], W = [pe(), I({ attribute: "disable-animation", type: Boolean })], B = [I()], w(h, null, J, { kind: "accessor", name: "legs", static: !1, private: !1, access: { has: (e) => "legs" in e, get: (e) => e.legs, set: (e, r) => {
152
+ }, u = new WeakMap(), g = new WeakMap(), (() => {
153
+ const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(t[Symbol.metadata] ?? null) : void 0;
154
+ o = [E({ type: Array })], O = [ne(), E({ attribute: "disable-animation", type: Boolean })], W = [E()], P(b, null, o, { kind: "accessor", name: "legs", static: !1, private: !1, access: { has: (e) => "legs" in e, get: (e) => e.legs, set: (e, r) => {
154
155
  e.legs = r;
155
- } }, metadata: a }, R, L), w(h, null, W, { kind: "accessor", name: "disableAnimation", static: !1, private: !1, access: { has: (e) => "disableAnimation" in e, get: (e) => e.disableAnimation, set: (e, r) => {
156
+ } }, metadata: a }, _, H), P(b, null, O, { kind: "accessor", name: "disableAnimation", static: !1, private: !1, access: { has: (e) => "disableAnimation" in e, get: (e) => e.disableAnimation, set: (e, r) => {
156
157
  e.disableAnimation = r;
157
- } }, metadata: a }, G, V), w(h, null, B, { kind: "setter", name: "now", static: !1, private: !1, access: { has: (e) => "now" in e, set: (e, r) => {
158
+ } }, metadata: a }, J, R), P(b, null, W, { kind: "setter", name: "now", static: !1, private: !1, access: { has: (e) => "now" in e, set: (e, r) => {
158
159
  e.now = r;
159
- } }, metadata: a }, null, O), w(null, l = { value: p }, t, { kind: "class", name: p.name, metadata: a }, null, n), p = l.value, a && Object.defineProperty(p, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
160
- })(), h.styles = [he, me], v(p, n), p;
160
+ } }, metadata: a }, null, i), a && Object.defineProperty(b, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
161
+ })(), b.elementName = "sbb-pearl-chain", b.styles = [be, de], b;
161
162
  })();
162
163
  export {
163
- Pe as SbbPearlChainElement
164
+ Ce as SbbPearlChainElement
164
165
  };
@@ -1,35 +1,36 @@
1
- var Q = (a) => {
1
+ var M = (a) => {
2
2
  throw TypeError(a);
3
3
  };
4
- var U = (a, s, o) => s.has(a) || Q("Cannot " + o);
5
- var h = (a, s, o) => (U(a, s, "read from private field"), o ? o.call(a) : s.get(a)), p = (a, s, o) => s.has(a) ? Q("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(a) : s.set(a, o), n = (a, s, o, m) => (U(a, s, "write to private field"), m ? m.call(a, o) : s.set(a, o), o);
6
- import { __runInitializers as r, __esDecorate as c } from "tslib";
7
- import { SbbLanguageController as ae } from "@sbb-esta/lyne-elements/core/controllers.js";
8
- import { defaultDateAdapter as X } from "@sbb-esta/lyne-elements/core/datetime.js";
9
- import { forceType as x } from "@sbb-esta/lyne-elements/core/decorators.js";
10
- import { i18nDeparture as ie, i18nTransferProcedures as re, i18nArrival as se } from "@sbb-esta/lyne-elements/core/i18n.js";
11
- import { boxSizingStyles as le } from "@sbb-esta/lyne-elements/core/styles.js";
12
- import { css as ne, LitElement as oe, nothing as w, html as k } from "lit";
13
- import { customElement as me, property as b } from "lit/decorators.js";
14
- import { removeTimezoneFromISOTimeString as Y } from "../core/datetime.js";
15
- import { getDepartureArrivalTimeAttribute as ce, isRideLeg as he } from "../core/timetable.js";
4
+ var Q = (a, s, o) => s.has(a) || M("Cannot " + o);
5
+ var m = (a, s, o) => (Q(a, s, "read from private field"), o ? o.call(a) : s.get(a)), c = (a, s, o) => s.has(a) ? M("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(a) : s.set(a, o), l = (a, s, o, x) => (Q(a, s, "write to private field"), x ? x.call(a, o) : s.set(a, o), o);
6
+ import { __runInitializers as n, __esDecorate as h } from "tslib";
7
+ import { SbbElement as P } from "@sbb-esta/lyne-elements/core/base-elements.js";
8
+ import { SbbLanguageController as C } from "@sbb-esta/lyne-elements/core/controllers.js";
9
+ import { defaultDateAdapter as U } from "@sbb-esta/lyne-elements/core/datetime.js";
10
+ import { forceType as y } from "@sbb-esta/lyne-elements/core/decorators.js";
11
+ import { i18nDeparture as ee, i18nTransferProcedures as te, i18nArrival as ae } from "@sbb-esta/lyne-elements/core/i18n.js";
12
+ import { boxSizingStyles as ie } from "@sbb-esta/lyne-elements/core/styles.js";
13
+ import { css as re, nothing as w, html as k } from "lit";
14
+ import { property as p } from "lit/decorators.js";
15
+ import { removeTimezoneFromISOTimeString as X } from "../core/datetime.js";
16
+ import { getDepartureArrivalTimeAttribute as se, isRideLeg as le } from "../core/timetable.js";
16
17
  import "../pearl-chain.js";
17
- import { f as Z } from "../format-CmKROkbc.js";
18
- const pe = ne`:host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-width:37.5rem){:host{--sbb-pearl-chain-time-height: 1.5625rem}}@media(min-width:64rem){:host{--sbb-pearl-chain-time-height: 1.75rem}}.sbb-pearl-chain__time{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;height:var(--sbb-pearl-chain-time-height)}.sbb-pearl-chain__time-walktime,.sbb-pearl-chain__time-transfer{--sbb-text-font-size: var(--sbb-text-font-size-xxs);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:inline-flex;align-items:center}.sbb-pearl-chain__time-walktime--walk-small-left{transform:translate(-.4375rem);margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem)}.sbb-pearl-chain__time-walktime--walk-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-left{transform:translate(-.375rem);margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime-prime-symbol{float:right}.sbb-pearl-chain__time-transfer{gap:var(--sbb-spacing-fixed-1x)}.sbb-pearl-chain__time-transfer--sa-ci-departure{margin-inline-end:var(--sbb-spacing-fixed-2x)}.sbb-pearl-chain__time-transfer--sa-ci-arrival{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-chain{flex:1 1 auto;align-self:center;margin-inline:var(--sbb-spacing-fixed-3x)}.sbb-pearl-chain__time-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;color:var(--sbb-color-2)}.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}`;
19
- let Ae = (() => {
20
- var d, _, g, u, f, v, y, l;
21
- let a = [me("sbb-pearl-chain-time")], s, o = [], m, T = oe, z = [], W, A = [], $ = [], F, I = [], S = [], D, N = [], E = [], H, L = [], O = [], j, P = [], B = [], C, R = [], V = [], q, G = [], J = [], K;
22
- return l = class extends T {
18
+ import { f as Y } from "../format-CmKROkbc.js";
19
+ const ne = re`:host{display:block;--sbb-pearl-chain-time-height: auto}@media(min-width:37.5rem){:host{--sbb-pearl-chain-time-height: 1.5625rem}}@media(min-width:64rem){:host{--sbb-pearl-chain-time-height: 1.75rem}}.sbb-pearl-chain__time{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;height:var(--sbb-pearl-chain-time-height)}.sbb-pearl-chain__time-walktime,.sbb-pearl-chain__time-transfer{--sbb-text-font-size: var(--sbb-text-font-size-xxs);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:inline-flex;align-items:center}.sbb-pearl-chain__time-walktime--walk-small-left{transform:translate(-.4375rem);margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem)}.sbb-pearl-chain__time-walktime--walk-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-left{transform:translate(-.375rem);margin-inline-end:calc(var(--sbb-spacing-fixed-2x) - .4375rem)}.sbb-pearl-chain__time-walktime--wheelchair-small-right{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-walktime-prime-symbol{float:right}.sbb-pearl-chain__time-transfer{gap:var(--sbb-spacing-fixed-1x)}.sbb-pearl-chain__time-transfer--sa-ci-departure{margin-inline-end:var(--sbb-spacing-fixed-2x)}.sbb-pearl-chain__time-transfer--sa-ci-arrival{margin-inline-start:calc(var(--sbb-spacing-fixed-2x) - .25rem)}.sbb-pearl-chain__time-chain{flex:1 1 auto;align-self:center;margin-inline:var(--sbb-spacing-fixed-3x)}.sbb-pearl-chain__time-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;color:var(--sbb-color-2)}.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}`;
20
+ let we = (() => {
21
+ var b, d, g, _, u, f, v, r;
22
+ let a = P, s = [], o, x = [], z = [], T, W = [], A = [], $, F = [], I = [], N, D = [], H = [], O, j = [], L = [], B, S = [], R = [], V, q = [], G = [], J;
23
+ return r = class extends a {
23
24
  constructor() {
24
25
  super(...arguments);
25
- p(this, d);
26
- p(this, _);
27
- p(this, g);
28
- p(this, u);
29
- p(this, f);
30
- p(this, v);
31
- p(this, y);
32
- n(this, d, (r(this, z), r(this, A, []))), n(this, _, (r(this, $), r(this, I, ""))), n(this, g, (r(this, S), r(this, N, ""))), n(this, u, (r(this, E), r(this, L, NaN))), n(this, f, (r(this, O), r(this, P, NaN))), n(this, v, (r(this, B), r(this, R, !1))), n(this, y, (r(this, V), r(this, G, !1))), this._now = (r(this, J), null), this._language = new ae(this);
26
+ c(this, b);
27
+ c(this, d);
28
+ c(this, g);
29
+ c(this, _);
30
+ c(this, u);
31
+ c(this, f);
32
+ c(this, v);
33
+ l(this, b, (n(this, s), n(this, x, []))), l(this, d, (n(this, z), n(this, W, ""))), l(this, g, (n(this, A), n(this, F, ""))), l(this, _, (n(this, I), n(this, D, NaN))), l(this, u, (n(this, H), n(this, j, NaN))), l(this, f, (n(this, L), n(this, S, !1))), l(this, v, (n(this, R), n(this, q, !1))), this._now = (n(this, G), null), this._language = new C(this);
33
34
  }
34
35
  /**
35
36
  * define the legs of the pearl-chain.
@@ -40,79 +41,79 @@ let Ae = (() => {
40
41
  * arrival at 17:00. So the change should have a duration of 33.33%.
41
42
  */
42
43
  get legs() {
43
- return h(this, d);
44
+ return m(this, b);
44
45
  }
45
46
  set legs(t) {
46
- n(this, d, t);
47
+ l(this, b, t);
47
48
  }
48
49
  /** Prop to render the departure time - will be formatted as "H:mm" */
49
50
  get departureTime() {
50
- return h(this, _);
51
+ return m(this, d);
51
52
  }
52
53
  set departureTime(t) {
53
- n(this, _, t);
54
+ l(this, d, t);
54
55
  }
55
56
  /** Prop to render the arrival time - will be formatted as "H:mm" */
56
57
  get arrivalTime() {
57
- return h(this, g);
58
+ return m(this, g);
58
59
  }
59
60
  set arrivalTime(t) {
60
- n(this, g, t);
61
+ l(this, g, t);
61
62
  }
62
63
  /** Optional prop to render the walk time (in minutes) before departure */
63
64
  get departureWalk() {
64
- return h(this, u);
65
+ return m(this, _);
65
66
  }
66
67
  set departureWalk(t) {
67
- n(this, u, t);
68
+ l(this, _, t);
68
69
  }
69
70
  /** Optional prop to render the walk time (in minutes) after arrival */
70
71
  get arrivalWalk() {
71
- return h(this, f);
72
+ return m(this, u);
72
73
  }
73
74
  set arrivalWalk(t) {
74
- n(this, f, t);
75
+ l(this, u, t);
75
76
  }
76
77
  /**
77
78
  * Per default, the current location has a pulsating animation. You can
78
79
  * disable the animation with this property.
79
80
  */
80
81
  get disableAnimation() {
81
- return h(this, v);
82
+ return m(this, f);
82
83
  }
83
84
  set disableAnimation(t) {
84
- n(this, v, t);
85
+ l(this, f, t);
85
86
  }
86
87
  /** Optional prop to render wheelchair-small instead of walk-small */
87
88
  get a11yFootpath() {
88
- return h(this, y);
89
+ return m(this, v);
89
90
  }
90
91
  set a11yFootpath(t) {
91
- n(this, y, t);
92
+ l(this, v, t);
92
93
  }
93
94
  /**
94
95
  * A configured date which acts as the current date instead of the real current date.
95
96
  * Only recommended for testing purposes.
96
97
  */
97
98
  set now(t) {
98
- this._now = X.getValidDateOrNull(X.deserialize(t));
99
+ this._now = U.getValidDateOrNull(U.deserialize(t));
99
100
  }
100
101
  get now() {
101
102
  return this._now ?? /* @__PURE__ */ new Date();
102
103
  }
103
104
  render() {
104
- const t = this.departureTime ? Y(this.departureTime) : void 0, e = this.arrivalTime ? Y(this.arrivalTime) : void 0, { renderDepartureTimeAttribute: i, renderArrivalTimeAttribute: ee } = ce(this.legs, this.departureWalk || 0, this.arrivalWalk || 0, this._language.current, this.a11yFootpath), M = this.legs?.filter((te) => he(te));
105
+ const t = this.departureTime ? X(this.departureTime) : void 0, e = this.arrivalTime ? X(this.arrivalTime) : void 0, { renderDepartureTimeAttribute: i, renderArrivalTimeAttribute: Z } = se(this.legs, this.departureWalk || 0, this.arrivalWalk || 0, this._language.current, this.a11yFootpath), K = this.legs?.filter((E) => le(E));
105
106
  return k`
106
107
  <div class="sbb-pearl-chain__time">
107
108
  ${i()}
108
109
  ${t ? k`<time class="sbb-pearl-chain__time-time" datetime=${this.departureTime}>
109
110
  <span class="sbb-screen-reader-only"
110
- >${ie[this._language.current]}:&nbsp;</span
111
+ >${ee[this._language.current]}:&nbsp;</span
111
112
  >
112
- ${Z(t, "HH:mm")}
113
+ ${Y(t, "HH:mm")}
113
114
  </time>` : w}
114
- ${M?.length > 1 ? k`<span class="sbb-screen-reader-only" role="paragraph">
115
- ${M?.length - 1} ${re[this._language.current]}
115
+ ${K?.length > 1 ? k`<span class="sbb-screen-reader-only" role="paragraph">
116
+ ${K?.length - 1} ${te[this._language.current]}
116
117
  </span>` : w}
117
118
  <sbb-pearl-chain
118
119
  class="sbb-pearl-chain__time-chain"
@@ -122,35 +123,35 @@ let Ae = (() => {
122
123
  ></sbb-pearl-chain>
123
124
  ${e ? k`<time class="sbb-pearl-chain__time-time" datetime=${this.arrivalTime}>
124
125
  <span class="sbb-screen-reader-only"
125
- >${se[this._language.current]}:&nbsp;</span
126
+ >${ae[this._language.current]}:&nbsp;</span
126
127
  >
127
- ${Z(e, "HH:mm")}
128
+ ${Y(e, "HH:mm")}
128
129
  </time>` : w}
129
- ${ee()}
130
+ ${Z()}
130
131
  </div>
131
132
  `;
132
133
  }
133
- }, d = new WeakMap(), _ = new WeakMap(), g = new WeakMap(), u = new WeakMap(), f = new WeakMap(), v = new WeakMap(), y = new WeakMap(), m = l, (() => {
134
- const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(T[Symbol.metadata] ?? null) : void 0;
135
- W = [b({ type: Array })], F = [x(), b({ attribute: "departure-time" })], D = [x(), b({ attribute: "arrival-time" })], H = [x(), b({ attribute: "departure-walk", type: Number })], j = [x(), b({ attribute: "arrival-walk", type: Number })], C = [x(), b({ attribute: "disable-animation", type: Boolean })], q = [x(), b({ attribute: "a11y-footpath", type: Boolean })], K = [b()], c(l, null, W, { kind: "accessor", name: "legs", static: !1, private: !1, access: { has: (e) => "legs" in e, get: (e) => e.legs, set: (e, i) => {
134
+ }, b = new WeakMap(), d = new WeakMap(), g = new WeakMap(), _ = new WeakMap(), u = new WeakMap(), f = new WeakMap(), v = new WeakMap(), (() => {
135
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(a[Symbol.metadata] ?? null) : void 0;
136
+ o = [p({ type: Array })], T = [y(), p({ attribute: "departure-time" })], $ = [y(), p({ attribute: "arrival-time" })], N = [y(), p({ attribute: "departure-walk", type: Number })], O = [y(), p({ attribute: "arrival-walk", type: Number })], B = [y(), p({ attribute: "disable-animation", type: Boolean })], V = [y(), p({ attribute: "a11y-footpath", type: Boolean })], J = [p()], h(r, null, o, { kind: "accessor", name: "legs", static: !1, private: !1, access: { has: (e) => "legs" in e, get: (e) => e.legs, set: (e, i) => {
136
137
  e.legs = i;
137
- } }, metadata: t }, A, $), c(l, null, F, { kind: "accessor", name: "departureTime", static: !1, private: !1, access: { has: (e) => "departureTime" in e, get: (e) => e.departureTime, set: (e, i) => {
138
+ } }, metadata: t }, x, z), h(r, null, T, { kind: "accessor", name: "departureTime", static: !1, private: !1, access: { has: (e) => "departureTime" in e, get: (e) => e.departureTime, set: (e, i) => {
138
139
  e.departureTime = i;
139
- } }, metadata: t }, I, S), c(l, null, D, { kind: "accessor", name: "arrivalTime", static: !1, private: !1, access: { has: (e) => "arrivalTime" in e, get: (e) => e.arrivalTime, set: (e, i) => {
140
+ } }, metadata: t }, W, A), h(r, null, $, { kind: "accessor", name: "arrivalTime", static: !1, private: !1, access: { has: (e) => "arrivalTime" in e, get: (e) => e.arrivalTime, set: (e, i) => {
140
141
  e.arrivalTime = i;
141
- } }, metadata: t }, N, E), c(l, null, H, { kind: "accessor", name: "departureWalk", static: !1, private: !1, access: { has: (e) => "departureWalk" in e, get: (e) => e.departureWalk, set: (e, i) => {
142
+ } }, metadata: t }, F, I), h(r, null, N, { kind: "accessor", name: "departureWalk", static: !1, private: !1, access: { has: (e) => "departureWalk" in e, get: (e) => e.departureWalk, set: (e, i) => {
142
143
  e.departureWalk = i;
143
- } }, metadata: t }, L, O), c(l, null, j, { kind: "accessor", name: "arrivalWalk", static: !1, private: !1, access: { has: (e) => "arrivalWalk" in e, get: (e) => e.arrivalWalk, set: (e, i) => {
144
+ } }, metadata: t }, D, H), h(r, null, O, { kind: "accessor", name: "arrivalWalk", static: !1, private: !1, access: { has: (e) => "arrivalWalk" in e, get: (e) => e.arrivalWalk, set: (e, i) => {
144
145
  e.arrivalWalk = i;
145
- } }, metadata: t }, P, B), c(l, null, C, { kind: "accessor", name: "disableAnimation", static: !1, private: !1, access: { has: (e) => "disableAnimation" in e, get: (e) => e.disableAnimation, set: (e, i) => {
146
+ } }, metadata: t }, j, L), h(r, null, B, { kind: "accessor", name: "disableAnimation", static: !1, private: !1, access: { has: (e) => "disableAnimation" in e, get: (e) => e.disableAnimation, set: (e, i) => {
146
147
  e.disableAnimation = i;
147
- } }, metadata: t }, R, V), c(l, null, q, { kind: "accessor", name: "a11yFootpath", static: !1, private: !1, access: { has: (e) => "a11yFootpath" in e, get: (e) => e.a11yFootpath, set: (e, i) => {
148
+ } }, metadata: t }, S, R), h(r, null, V, { kind: "accessor", name: "a11yFootpath", static: !1, private: !1, access: { has: (e) => "a11yFootpath" in e, get: (e) => e.a11yFootpath, set: (e, i) => {
148
149
  e.a11yFootpath = i;
149
- } }, metadata: t }, G, J), c(l, null, K, { kind: "setter", name: "now", static: !1, private: !1, access: { has: (e) => "now" in e, set: (e, i) => {
150
+ } }, metadata: t }, q, G), h(r, null, J, { kind: "setter", name: "now", static: !1, private: !1, access: { has: (e) => "now" in e, set: (e, i) => {
150
151
  e.now = i;
151
- } }, metadata: t }, null, z), c(null, s = { value: m }, a, { kind: "class", name: m.name, metadata: t }, null, o), m = s.value, t && Object.defineProperty(m, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
152
- })(), l.styles = [le, pe], r(m, o), m;
152
+ } }, metadata: t }, null, s), t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
153
+ })(), r.elementName = "sbb-pearl-chain-time", r.styles = [ie, ne], r;
153
154
  })();
154
155
  export {
155
- Ae as SbbPearlChainTimeElement
156
+ we as SbbPearlChainTimeElement
156
157
  };
@@ -1,4 +1,5 @@
1
- import { SbbPearlChainTimeElement as r } from "./pearl-chain-time/pearl-chain-time.component.js";
1
+ import { SbbPearlChainTimeElement as e } from "./pearl-chain-time/pearl-chain-time.component.js";
2
+ e.define();
2
3
  export {
3
- r as SbbPearlChainTimeElement
4
+ e as SbbPearlChainTimeElement
4
5
  };
@@ -0,0 +1,4 @@
1
+ import { SbbPearlChainTimeElement as r } from "./pearl-chain-time/pearl-chain-time.component.js";
2
+ export {
3
+ r as SbbPearlChainTimeElement
4
+ };
@@ -1,24 +1,17 @@
1
- import { __esDecorate as c, __runInitializers as n } from "tslib";
2
- import { boxSizingStyles as o } from "@sbb-esta/lyne-elements/core/styles.js";
3
- import { css as m, LitElement as b, html as d } from "lit";
4
- import { customElement as u } from "lit/decorators.js";
5
- const p = m`:host{--sbb-pearl-chain-vertical-width: 100%;display:block}.sbb-pearl-chain-vertical{display:table;width:var(--sbb-pearl-chain-vertical-width)}`;
6
- let f = (() => {
7
- var e;
8
- let r = [u("sbb-pearl-chain-vertical")], l, s = [], t, i = b;
9
- return e = class extends i {
10
- render() {
11
- return d`
1
+ import { SbbElement as i } from "@sbb-esta/lyne-elements/core/base-elements.js";
2
+ import { boxSizingStyles as r } from "@sbb-esta/lyne-elements/core/styles.js";
3
+ import { css as a, html as l } from "lit";
4
+ const c = a`:host{--sbb-pearl-chain-vertical-width: 100%;display:block}.sbb-pearl-chain-vertical{display:table;width:var(--sbb-pearl-chain-vertical-width)}`, s = class s extends i {
5
+ render() {
6
+ return l`
12
7
  <div class="sbb-pearl-chain-vertical">
13
8
  <slot></slot>
14
9
  </div>
15
10
  `;
16
- }
17
- }, t = e, (() => {
18
- const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
19
- c(null, l = { value: t }, r, { kind: "class", name: t.name, metadata: a }, null, s), t = l.value, a && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
20
- })(), e.styles = [o, p], n(t, s), t;
21
- })();
11
+ }
12
+ };
13
+ s.elementName = "sbb-pearl-chain-vertical", s.styles = [r, c];
14
+ let t = s;
22
15
  export {
23
- f as SbbPearlChainVerticalElement
16
+ t as SbbPearlChainVerticalElement
24
17
  };