@sbb-esta/lyne-elements-experimental 3.4.0 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/custom-elements.json +105 -173
  2. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts.map +1 -1
  3. package/development/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +8 -4
  4. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +18 -0
  5. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
  6. package/development/seat-reservation/seat-reservation/seat-reservation-base-element.js +57 -25
  7. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts +0 -1
  8. package/development/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
  9. package/development/seat-reservation/seat-reservation/seat-reservation.component.js +46 -50
  10. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +5 -5
  11. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +1 -10
  12. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -1
  13. package/development/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +4 -83
  14. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
  15. package/development/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +16 -17
  16. package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -1
  17. package/development/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +11 -14
  18. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +0 -8
  19. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
  20. package/development/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +30 -100
  21. package/development/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +2 -4
  22. package/package.json +2 -2
  23. package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.d.ts.map +1 -1
  24. package/pearl-chain-vertical-item/pearl-chain-vertical-item.component.js +30 -26
  25. package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts +18 -0
  26. package/seat-reservation/seat-reservation/seat-reservation-base-element.d.ts.map +1 -1
  27. package/seat-reservation/seat-reservation/seat-reservation-base-element.js +70 -46
  28. package/seat-reservation/seat-reservation/seat-reservation.component.d.ts +0 -1
  29. package/seat-reservation/seat-reservation/seat-reservation.component.d.ts.map +1 -1
  30. package/seat-reservation/seat-reservation/seat-reservation.component.js +134 -135
  31. package/seat-reservation/seat-reservation-graphic/seat-reservation-assets.js +6 -6
  32. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts +1 -10
  33. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.d.ts.map +1 -1
  34. package/seat-reservation/seat-reservation-graphic/seat-reservation-graphic.component.js +47 -90
  35. package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.d.ts.map +1 -1
  36. package/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.js +75 -76
  37. package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.d.ts.map +1 -1
  38. package/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.js +32 -35
  39. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts +0 -8
  40. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.d.ts.map +1 -1
  41. package/seat-reservation/seat-reservation-place-control/seat-reservation-place-control.component.js +92 -129
  42. package/seat-reservation/seat-reservation-scoped/seat-reservation-scoped.component.js +2 -2
@@ -1,112 +1,69 @@
1
- var F = (s) => {
2
- throw TypeError(s);
1
+ var E = (t) => {
2
+ throw TypeError(t);
3
3
  };
4
- var G = (s, i, r) => i.has(s) || F("Cannot " + r);
5
- var l = (s, i, r) => (G(s, i, "read from private field"), r ? r.call(s) : i.get(s)), b = (s, i, r) => i.has(s) ? F("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, r), o = (s, i, r, c) => (G(s, i, "write to private field"), c ? c.call(s, r) : i.set(s, r), r);
6
- import { __runInitializers as h, __esDecorate as g } from "tslib";
7
- import { SbbLanguageController as q } from "@sbb-esta/lyne-elements/core/controllers.js";
8
- import { forceType as f } from "@sbb-esta/lyne-elements/core/decorators.js";
9
- import { css as H, LitElement as J, html as x } from "lit";
10
- import { customElement as K, property as w } from "lit/decorators.js";
11
- import { classMap as Q } from "lit/directives/class-map.js";
12
- import { mapIconToSvg as V, getI18nSeatReservation as W } from "../common.js";
4
+ var z = (t, r, s) => r.has(t) || E("Cannot " + s);
5
+ var m = (t, r, s) => (z(t, r, "read from private field"), s ? s.call(t) : r.get(t)), v = (t, r, s) => r.has(t) ? E("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(t) : r.set(t, s), b = (t, r, s, i) => (z(t, r, "write to private field"), i ? i.call(t, s) : r.set(t, s), s);
6
+ import { __runInitializers as h, __esDecorate as p } from "tslib";
7
+ import { SbbLanguageController as $ } from "@sbb-esta/lyne-elements/core/controllers.js";
8
+ import { forceType as I } from "@sbb-esta/lyne-elements/core/decorators.js";
9
+ import { css as j, LitElement as k, html as u } from "lit";
10
+ import { customElement as D, property as N } from "lit/decorators.js";
11
+ import { classMap as O } from "lit/directives/class-map.js";
12
+ import { mapIconToSvg as C, getI18nSeatReservation as L } from "../common.js";
13
13
  import "@sbb-esta/lyne-elements/icon.js";
14
- const X = H`*,:before,:after{box-sizing:border-box}:host{--sbb-seat-reservation-graphic-width: 16;--sbb-seat-reservation-graphic-height: 16;--sbb-seat-reservation-graphic-rotation: 0;--sbb-seat-reservation-graphic-inverse-rotation: 0;--sbb-seat-reservation-graphic-position: initial;--sbb-seat-reservation-graphic-left: 0;--sbb-seat-reservation-graphic-top: 0;--sbb-icon-svg-width: calc( var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem) );--sbb-icon-svg-height: calc( var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem) );display:flex;justify-content:center;align-items:center;width:calc(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem));height:calc(var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem));position:var(--sbb-seat-reservation-graphic-position);inset-inline-start:calc(var(--sbb-seat-reservation-graphic-left) * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-block-start:calc(var(--sbb-seat-reservation-graphic-top) * var(--sbb-seat-reservation-one-px-rem, .0625rem))}:host(.sbb-seat-reservation-graphic--cursor-pointer){cursor:pointer}.sbb-sr-icon,.sbb-sr-graphic{width:inherit;height:inherit;transform-origin:center;rotate:calc(var(--sbb-seat-reservation-graphic-rotation) * 1deg)}.sbb-sr-icon{color:var(--sbb-color-granite)}.sbb-sr-graphic svg{width:100%;height:100%}.sbb-sr-graphic svg .fix-rotation-inverse{transform-origin:center;rotate:calc(var(--sbb-seat-reservation-graphic-inverse-rotation) * 1deg)}@media (forced-colors: active){.sbb-sr-graphic svg:not(.color-immutable) [fill]:not([fill=none]){fill:currentcolor}.sbb-sr-graphic .no-bg{fill:transparent}}`;
15
- let ht = (() => {
16
- var v, m, p, d, u, _, a;
17
- let s = [K("sbb-seat-reservation-graphic")], i, r = [], c, z = J, R, S = [], I = [], N, $ = [], k = [], E, j = [], D = [], O, C = [], L = [], T, A = [], M = [], P, U = [], B = [];
18
- return a = class extends z {
14
+ const R = j`*,:before,:after{box-sizing:border-box}:host{--sbb-seat-reservation-graphic-width: 16;--sbb-seat-reservation-graphic-height: 16;--sbb-seat-reservation-graphic-rotation: 0;--sbb-seat-reservation-graphic-inverse-rotation: 0;--sbb-seat-reservation-graphic-position: initial;--sbb-seat-reservation-graphic-left: 0;--sbb-seat-reservation-graphic-top: 0;--sbb-icon-svg-width: calc( var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem) );--sbb-icon-svg-height: calc( var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem) );display:flex;justify-content:center;align-items:center;width:calc(var(--sbb-seat-reservation-graphic-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem));height:calc(var(--sbb-seat-reservation-graphic-height) * var(--sbb-seat-reservation-one-px-rem, .0625rem));position:var(--sbb-seat-reservation-graphic-position);inset-inline-start:calc(var(--sbb-seat-reservation-graphic-left) * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-block-start:calc(var(--sbb-seat-reservation-graphic-top) * var(--sbb-seat-reservation-one-px-rem, .0625rem))}:host(.sbb-seat-reservation-graphic--cursor-pointer){cursor:pointer}.sbb-sr-icon,.sbb-sr-graphic{width:inherit;height:inherit;transform-origin:center;rotate:calc(var(--sbb-seat-reservation-graphic-rotation) * 1deg)}.sbb-sr-icon{color:var(--sbb-color-granite)}.sbb-sr-graphic svg{width:100%;height:100%}.sbb-sr-graphic svg .fix-rotation-inverse{transform-origin:center;rotate:calc(var(--sbb-seat-reservation-graphic-inverse-rotation) * 1deg)}@media (forced-colors: active){.sbb-sr-graphic svg:not(.color-immutable) [fill]:not([fill=none]){fill:currentcolor}.sbb-sr-graphic .no-bg{fill:transparent}}`;
15
+ let K = (() => {
16
+ var o, c, n;
17
+ let t = [D("sbb-seat-reservation-graphic")], r, s = [], i, f = k, d, _ = [], x = [], S, y = [], w = [];
18
+ return n = class extends f {
19
19
  constructor() {
20
20
  super(...arguments);
21
- b(this, v);
22
- b(this, m);
23
- b(this, p);
24
- b(this, d);
25
- b(this, u);
26
- b(this, _);
27
- o(this, v, h(this, S, "")), o(this, m, (h(this, I), h(this, $, !1))), o(this, p, (h(this, k), h(this, j, 0))), o(this, d, (h(this, D), h(this, C, 0))), o(this, u, (h(this, L), h(this, A, null))), o(this, _, (h(this, M), h(this, U, null))), this._language = (h(this, B), new q(this));
21
+ v(this, o);
22
+ v(this, c);
23
+ b(this, o, h(this, _, "")), b(this, c, (h(this, x), h(this, y, !1))), this._language = (h(this, w), new $(this));
28
24
  }
29
25
  /** Name of the SVG graphic to be displayed. */
30
26
  get name() {
31
- return l(this, v);
27
+ return m(this, o);
32
28
  }
33
- set name(t) {
34
- o(this, v, t);
29
+ set name(e) {
30
+ b(this, o, e);
35
31
  }
36
32
  /** if true, scale the graphic content of the given element non-uniformly if necessary */
37
33
  get stretch() {
38
- return l(this, m);
34
+ return m(this, c);
39
35
  }
40
- set stretch(t) {
41
- o(this, m, t);
42
- }
43
- /** handles the rotation of the SVG graphic */
44
- get rotation() {
45
- return l(this, p);
46
- }
47
- set rotation(t) {
48
- o(this, p, t);
49
- }
50
- /** Inverse rotation for part of an SVG that can be rotated opposite to the normal rotation */
51
- get inverseRotation() {
52
- return l(this, d);
53
- }
54
- set inverseRotation(t) {
55
- o(this, d, t);
56
- }
57
- /** width of the svg in pixels (without unit) */
58
- get width() {
59
- return l(this, u);
60
- }
61
- set width(t) {
62
- o(this, u, t);
63
- }
64
- /** height of the svg in pixels (without unit) */
65
- get height() {
66
- return l(this, _);
67
- }
68
- set height(t) {
69
- o(this, _, t);
70
- }
71
- willUpdate(t) {
72
- super.willUpdate(t), t.has("width") && this.width && this.style?.setProperty("--sbb-seat-reservation-graphic-width", `${this.width}`), t.has("height") && this.height && this.style?.setProperty("--sbb-seat-reservation-graphic-height", `${this.height}`), t.has("rotation") && this.style?.setProperty("--sbb-seat-reservation-graphic-rotation", `${this.rotation}`), t.has("inverseRotation") && this.style?.setProperty("--sbb-seat-reservation-graphic-inverse-rotation", `${this.inverseRotation}`);
36
+ set stretch(e) {
37
+ b(this, c, e);
73
38
  }
74
39
  render() {
75
- const t = V[this.name];
76
- return !t?.svg && !t?.svgName ? null : x`<span
77
- class="${Q({
78
- "sbb-sr-icon": !!t.svgName,
79
- "sbb-sr-graphic": !!t.svg
40
+ const e = C[this.name];
41
+ return !e?.svg && !e?.svgName ? null : u`<span
42
+ class="${O({
43
+ "sbb-sr-icon": !!e.svgName,
44
+ "sbb-sr-graphic": !!e.svg
80
45
  })}"
81
46
  >
82
- ${t.svgName ? x` <sbb-icon
83
- name="${t.svgName || ""}"
47
+ ${e.svgName ? u` <sbb-icon
48
+ name="${e.svgName || ""}"
84
49
  aria-hidden="false"
85
- aria-label="${W(t.svgName, this._language.current)}"
86
- ></sbb-icon>` : x`${this._getSvgElement(t.svg)}`}
50
+ aria-label="${L(e.svgName, this._language.current)}"
51
+ ></sbb-icon>` : u`${this._getSvgElement(e.svg)}`}
87
52
  </span>`;
88
53
  }
89
- _getSvgElement(t) {
90
- const e = new DOMParser(), n = t || "<svg></svg>", y = e.parseFromString(n, "image/svg+xml").firstElementChild;
91
- return this.stretch && y?.nodeName.toLowerCase() === "svg" && y.setAttribute("preserveAspectRatio", "none"), y;
92
- }
93
- }, v = new WeakMap(), m = new WeakMap(), p = new WeakMap(), d = new WeakMap(), u = new WeakMap(), _ = new WeakMap(), c = a, (() => {
94
- const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(z[Symbol.metadata] ?? null) : void 0;
95
- R = [f(), w({ attribute: "name" })], N = [f(), w({ attribute: "stretch", type: Boolean })], E = [f(), w({ attribute: "rotation", type: Number })], O = [f(), w({ attribute: "inverse-roration", type: Number })], T = [f(), w({ attribute: "width", type: Number })], P = [f(), w({ attribute: "height", type: Number })], g(a, null, R, { kind: "accessor", name: "name", static: !1, private: !1, access: { has: (e) => "name" in e, get: (e) => e.name, set: (e, n) => {
96
- e.name = n;
97
- } }, metadata: t }, S, I), g(a, null, N, { kind: "accessor", name: "stretch", static: !1, private: !1, access: { has: (e) => "stretch" in e, get: (e) => e.stretch, set: (e, n) => {
98
- e.stretch = n;
99
- } }, metadata: t }, $, k), g(a, null, E, { kind: "accessor", name: "rotation", static: !1, private: !1, access: { has: (e) => "rotation" in e, get: (e) => e.rotation, set: (e, n) => {
100
- e.rotation = n;
101
- } }, metadata: t }, j, D), g(a, null, O, { kind: "accessor", name: "inverseRotation", static: !1, private: !1, access: { has: (e) => "inverseRotation" in e, get: (e) => e.inverseRotation, set: (e, n) => {
102
- e.inverseRotation = n;
103
- } }, metadata: t }, C, L), g(a, null, T, { kind: "accessor", name: "width", static: !1, private: !1, access: { has: (e) => "width" in e, get: (e) => e.width, set: (e, n) => {
104
- e.width = n;
105
- } }, metadata: t }, A, M), g(a, null, P, { kind: "accessor", name: "height", static: !1, private: !1, access: { has: (e) => "height" in e, get: (e) => e.height, set: (e, n) => {
106
- e.height = n;
107
- } }, metadata: t }, U, B), g(null, i = { value: c }, s, { kind: "class", name: c.name, metadata: t }, null, r), c = i.value, t && Object.defineProperty(c, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
108
- })(), a.styles = X, h(c, r), c;
54
+ _getSvgElement(e) {
55
+ const a = new DOMParser(), l = e || "<svg></svg>", g = a.parseFromString(l, "image/svg+xml").firstElementChild;
56
+ return this.stretch && g?.nodeName.toLowerCase() === "svg" && g.setAttribute("preserveAspectRatio", "none"), g;
57
+ }
58
+ }, o = new WeakMap(), c = new WeakMap(), i = n, (() => {
59
+ const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
60
+ d = [I(), N({ attribute: "name" })], S = [I(), N({ attribute: "stretch", type: Boolean })], p(n, null, d, { kind: "accessor", name: "name", static: !1, private: !1, access: { has: (a) => "name" in a, get: (a) => a.name, set: (a, l) => {
61
+ a.name = l;
62
+ } }, metadata: e }, _, x), p(n, null, S, { kind: "accessor", name: "stretch", static: !1, private: !1, access: { has: (a) => "stretch" in a, get: (a) => a.stretch, set: (a, l) => {
63
+ a.stretch = l;
64
+ } }, metadata: e }, y, w), p(null, r = { value: i }, t, { kind: "class", name: i.name, metadata: e }, null, s), i = r.value, e && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
65
+ })(), n.styles = R, h(i, s), i;
109
66
  })();
110
67
  export {
111
- ht as SbbSeatReservationGraphicElement
68
+ K as SbbSeatReservationGraphicElement
112
69
  };
@@ -1 +1 @@
1
- {"version":3,"file":"seat-reservation-navigation-coach.component.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAW,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAC7F,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAKvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAI9E,OAAO,+CAA+C,CAAC;AACvD,OAAO,4CAA4C,CAAC;AAIpD,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C;;GAEG;AACH,qBAEM,wCAAyC,SAAQ,UAAU;IAC/D,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;;MAGlB;IAEX,sEAAsE;IACtE,SAEgB,OAAO,EAAE,MAAM,CAAM;IAErC,2FAA2F;IAC3F,SACgB,WAAW,EAAE,MAAM,EAAE,CAAM;IAG3C,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAG1C,SAEgB,OAAO,EAAE,OAAO,CAAS;IAEzC,SAEgB,KAAK,EAAE,MAAM,CAAK;IAElC,2GAA2G;IAC3G,SACgB,gBAAgB,EAAE,uBAAuB,CAA6B;IAEtF,gCAAgC;IAChC,SACgB,WAAW,EAAE,gBAAgB,EAAE,CAAiB;IAEhE,+CAA+C;IAC/C,SAEgB,UAAU,EAAE,OAAO,CAAS;IAE5C,kDAAkD;IAClD,SAEgB,KAAK,EAAE,OAAO,CAAS;IAEvC,iDAAiD;IACjD,SAEgB,IAAI,EAAE,OAAO,CAAS;IAEtC,mCAAmC;IACnC,SAEgB,OAAO,EAAE,OAAO,CAAS;IAEzC,6DAA6D;IAC7D,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C,OAAO,CAAC,SAAS,CAAmC;cAEjC,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAwB5E;;;;;;OAMG;cACgB,MAAM,IAAI,cAAc;IAyB3C,OAAO,CAAC,oBAAoB;IAwB5B,OAAO,CAAC,kBAAkB;IA4B1B,OAAO,CAAC,kCAAkC;IAmC1C,OAAO,CAAC,gCAAgC;IAYxC;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,2BAA2B;CASpC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uCAAuC,EAAE,wCAAwC,CAAC;KACnF;CACF"}
1
+ {"version":3,"file":"seat-reservation-navigation-coach.component.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation-navigation-coach/seat-reservation-navigation-coach.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAW,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAC7F,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAKvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAI9E,OAAO,+CAA+C,CAAC;AACvD,OAAO,4CAA4C,CAAC;AAIpD,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C;;GAEG;AACH,qBAEM,wCAAyC,SAAQ,UAAU;IAC/D,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;;MAGlB;IAEX,sEAAsE;IACtE,SAEgB,OAAO,EAAE,MAAM,CAAM;IAErC,2FAA2F;IAC3F,SACgB,WAAW,EAAE,MAAM,EAAE,CAAM;IAG3C,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAG1C,SAEgB,OAAO,EAAE,OAAO,CAAS;IAEzC,SAEgB,KAAK,EAAE,MAAM,CAAK;IAElC,2GAA2G;IAC3G,SACgB,gBAAgB,EAAE,uBAAuB,CAA6B;IAEtF,gCAAgC;IAChC,SACgB,WAAW,EAAE,gBAAgB,EAAE,CAAiB;IAEhE,+CAA+C;IAC/C,SAEgB,UAAU,EAAE,OAAO,CAAS;IAE5C,kDAAkD;IAClD,SAEgB,KAAK,EAAE,OAAO,CAAS;IAEvC,iDAAiD;IACjD,SAEgB,IAAI,EAAE,OAAO,CAAS;IAEtC,mCAAmC;IACnC,SAEgB,OAAO,EAAE,OAAO,CAAS;IAEzC,6DAA6D;IAC7D,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C,OAAO,CAAC,SAAS,CAAmC;cAEjC,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAwB5E;;;;;;OAMG;cACgB,MAAM,IAAI,cAAc;IAwB3C,OAAO,CAAC,oBAAoB;IAwB5B,OAAO,CAAC,kBAAkB;IA4B1B,OAAO,CAAC,kCAAkC;IAmC1C,OAAO,CAAC,gCAAgC;IAYxC;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,2BAA2B;CASpC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uCAAuC,EAAE,wCAAwC,CAAC;KACnF;CACF"}
@@ -12,10 +12,10 @@ import { classMap as ge } from "lit/directives/class-map.js";
12
12
  import { getI18nSeatReservation as u } from "../common/translations.js";
13
13
  import "@sbb-esta/lyne-elements/screen-reader-only.js";
14
14
  import "../seat-reservation-navigation-services.js";
15
- const Ie = fe`*,:before,:after{box-sizing:border-box}:host{--sbb-seat-reservation-navigation-travelclass-spacing: 10;--sbb-seat-reservation-navigation-btn-outline-color: var(--sbb-color-granite);--sbb-seat-reservation-navigation-btn-outline-width: 1;--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-white);--sbb-seat-reservation-navigation-btn-outline-color-selected: var(--sbb-color-black);--sbb-seat-reservation-navigation-btn-outline-width-hover: 2;--sbb-seat-reservation-navigation-btn-background-color-hover: var(--sbb-color-cloud)}:host(.sbb-sr__navigation-coach--hover-scroll){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-cloud)}.sbb-sr-navigation__item-coach{display:flex;flex-direction:column;gap:var(--sbb-spacing-fixed-2x);width:calc(80 * var(--sbb-seat-reservation-one-px-rem, .0625rem));list-style-type:none}.sbb-sr-navigation__item-coach.first-coach .sbb-sr-navigation--first-class,.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation--first-class{width:calc(100% - 1.125rem)}.sbb-sr-navigation__item-coach.first-coach .sbb-sr-navigation__ctrl-button:not(.sbb-seat-reservation-navigation-driver-area){border-start-start-radius:var(--sbb-border-radius-8x);border-end-start-radius:var(--sbb-border-radius-8x)}.sbb-sr-navigation__item-coach.first-coach .sbb-sr-navigation--first-class{margin-inline-start:calc(var(--sbb-seat-reservation-navigation-travelclass-spacing) * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation__ctrl-button:not(.sbb-sr-navigation-driver-area){border-start-end-radius:var(--sbb-border-radius-8x);border-end-end-radius:var(--sbb-border-radius-8x)}.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation__additional-information{padding-inline-end:calc(var(--sbb-seat-reservation-navigation-travelclass-spacing) * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation--first-class{margin-inline-end:calc(var(--sbb-seat-reservation-navigation-travelclass-spacing) * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr-navigation__item-coach.vertical-coach{flex-direction:row}.sbb-sr-navigation__ctrl-button{-webkit-appearance:none;-moz-appearance:none;box-sizing:border-box;margin:0;outline:none;border:none;border-radius:0;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;display:flex;flex-direction:column;justify-content:center;height:calc(36 * var(--sbb-seat-reservation-one-px-rem, .0625rem));position:relative;outline:calc(var(--sbb-seat-reservation-navigation-btn-outline-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem)) solid var(--sbb-seat-reservation-navigation-btn-outline-color);border-radius:var(--sbb-border-radius-2x);background-color:var(--sbb-seat-reservation-navigation-btn-background-color);cursor:pointer}.sbb-sr-navigation__ctrl-button.sbb-sr-navigation-driver-area{border-radius:var(--sbb-border-radius-8x);cursor:initial}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button,.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled,.sbb-sr-navigation-driver-area),.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area){--sbb-seat-reservation-navigation-btn-outline-width: var( --sbb-seat-reservation-navigation-btn-outline-width-hover );--sbb-seat-reservation-navigation-btn-outline-color: var(--sbb-color-black)}.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-silver)}.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled) .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-metal)}.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled) .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-anthracite)}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button{--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-milk)}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-black)}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-black)}.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-cloud)}.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area) .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-smoke)}.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area) .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-iron)}.sbb-sr-navigation__ctrl-button:is([disabled],:disabled){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-white);--sbb-seat-reservation-navigation-btn-outline-color: var(--sbb-color-platinum);cursor:unset;pointer-events:unset}.sbb-sr-navigation__ctrl-button:is([disabled],:disabled) .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-graphite)}.sbb-sr-navigation__ctrl-button:is([disabled],:disabled) .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-graphite)}.sbb-sr-navigation__additional-information{display:flex;justify-content:space-between;align-items:center;flex:1;column-gap:calc(8 * var(--sbb-seat-reservation-one-px-rem, .0625rem));padding-inline:calc(16 * var(--sbb-seat-reservation-one-px-rem, .0625rem));font-family:var(--sbb-typo-font-family);font-weight:700;color:var(--sbb-color-granite)}@media (forced-colors: active){.sbb-sr-navigation__additional-information{color:var(--sbb-color-milk)}}.sbb-sr-navigation__item-coach-number{color:var(--sbb-color-granite)}@media (forced-colors: active){.sbb-sr-navigation__item-coach-number{color:var(--sbb-color-granite)}}@media (forced-colors: active) and (forced-colors: active){.sbb-sr-navigation__item-coach-number{color:inherit}}.sbb-sr-navigation__item-coach-number .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-charcoal)}.sbb-sr-navigation--first-class{width:calc(100% - 8 * var(--sbb-seat-reservation-one-px-rem, .0625rem));position:absolute;inset-block-start:calc(3 * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-inline-start:calc(4 * var(--sbb-seat-reservation-one-px-rem, .0625rem));border:calc(1 * var(--sbb-seat-reservation-one-px-rem, .0625rem)) solid transparent;border-radius:var(--sbb-border-radius-1x);margin:auto;background-color:var(--sbb-color-lemon)}.sbb-sr-navigation__item-coach-travelclass{display:flex;align-items:center;justify-content:center;min-height:calc(20 * var(--sbb-seat-reservation-one-px-rem, .0625rem));min-width:calc(20 * var(--sbb-seat-reservation-one-px-rem, .0625rem));border-radius:var(--sbb-border-radius-1x);text-align:center;background-color:var(--sbb-color-granite);color:var(--sbb-color-white)}.sbb-sr-navigation__item-coach.vertical-coach .sbb-sr-navigation__ctrl-button{flex-direction:row-reverse;height:calc(80 * var(--sbb-seat-reservation-one-px-rem, .0625rem));min-width:calc(36 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr-navigation__item-coach.vertical-coach .sbb-sr-navigation__additional-information{flex-direction:column-reverse;padding-block:calc(16 * var(--sbb-seat-reservation-one-px-rem, .0625rem));padding-inline-start:unset;padding-inline-end:unset}.sbb-sr-navigation__item-coach.vertical-coach .sbb-sr-navigation--first-class{height:calc(100% - 8 * var(--sbb-seat-reservation-one-px-rem, .0625rem));width:initial;inset-inline-end:calc(3 * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-block-start:calc(4 * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-inline-start:initial}.sbb-sr-navigation__item-coach.vertical-coach.first-coach .sbb-sr-navigation--first-class,.sbb-sr-navigation__item-coach.vertical-coach.last-coach .sbb-sr-navigation--first-class{height:calc(100% - 18 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr-navigation__item-coach.vertical-coach.first-coach:not(.last-coach) .sbb-sr-navigation__ctrl-button:not(.sbb-sr-navigation-driver-area){border-start-end-radius:var(--sbb-border-radius-8x);border-end-start-radius:var(--sbb-border-radius-2x)}.sbb-sr-navigation__item-coach.vertical-coach.first-coach:not(.last-coach) .sbb-sr-navigation--first-class{margin-block-start:calc(var(--sbb-seat-reservation-navigation-travelclass-spacing) * var(--sbb-seat-reservation-one-px-rem, .0625rem));margin-inline-start:initial}.sbb-sr-navigation__item-coach.vertical-coach.last-coach:not(.first-coach) .sbb-sr-navigation__ctrl-button:not(.sbb-sr-navigation-driver-area){border-start-end-radius:var(--sbb-border-radius-2x);border-end-start-radius:var(--sbb-border-radius-8x)}.sbb-sr-navigation__item-coach.vertical-coach.last-coach:not(.first-coach) .sbb-sr-navigation--first-class{margin-block-end:calc(var(--sbb-seat-reservation-navigation-travelclass-spacing) * var(--sbb-seat-reservation-one-px-rem, .0625rem));margin-inline-end:initial}.sbb-sr-navigation__item-coach.vertical-coach .sbb-sr-navigation-driver-area{height:calc(80 * var(--sbb-seat-reservation-one-px-rem, .0625rem));min-width:calc(36 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}`, Ce = 3;
16
- let Re = (() => {
15
+ const Ie = fe`*,:before,:after{box-sizing:border-box}:host{--sbb-seat-reservation-navigation-travelclass-spacing: 10;--sbb-seat-reservation-navigation-btn-outline-color: var(--sbb-color-granite);--sbb-seat-reservation-navigation-btn-outline-width: 1;--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-white);--sbb-seat-reservation-navigation-btn-outline-color-selected: var(--sbb-color-black);--sbb-seat-reservation-navigation-btn-outline-width-hover: 2;--sbb-seat-reservation-navigation-btn-background-color-hover: var(--sbb-color-cloud)}:host(.sbb-sr__navigation-coach--hover-scroll){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-cloud)}.sbb-sr-navigation__item-coach{display:flex;flex-direction:column;gap:calc(8 * var(--sbb-seat-reservation-one-px-rem, .0625rem));width:calc(80 * var(--sbb-seat-reservation-one-px-rem, .0625rem));list-style-type:none}.sbb-sr-navigation__item-coach.first-coach .sbb-sr-navigation--first-class,.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation--first-class{width:calc(100% - 18 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr-navigation__item-coach.first-coach .sbb-sr-navigation__ctrl-button:not(.sbb-seat-reservation-navigation-driver-area){border-start-start-radius:var(--sbb-border-radius-8x);border-end-start-radius:var(--sbb-border-radius-8x)}.sbb-sr-navigation__item-coach.first-coach .sbb-sr-navigation--first-class{margin-inline-start:calc(var(--sbb-seat-reservation-navigation-travelclass-spacing) * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation__ctrl-button:not(.sbb-sr-navigation-driver-area){border-start-end-radius:var(--sbb-border-radius-8x);border-end-end-radius:var(--sbb-border-radius-8x)}.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation__additional-information{padding-inline-end:calc(var(--sbb-seat-reservation-navigation-travelclass-spacing) * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation--first-class{margin-inline-end:calc(var(--sbb-seat-reservation-navigation-travelclass-spacing) * var(--sbb-seat-reservation-one-px-rem, .0625rem))}.sbb-sr-navigation__ctrl-button{-webkit-appearance:none;-moz-appearance:none;box-sizing:border-box;margin:0;outline:none;border:none;border-radius:0;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;display:flex;flex-direction:column;justify-content:center;height:calc(36 * var(--sbb-seat-reservation-one-px-rem, .0625rem));position:relative;outline:calc(var(--sbb-seat-reservation-navigation-btn-outline-width) * var(--sbb-seat-reservation-one-px-rem, .0625rem)) solid var(--sbb-seat-reservation-navigation-btn-outline-color);border-radius:var(--sbb-border-radius-2x);background-color:var(--sbb-seat-reservation-navigation-btn-background-color);cursor:pointer}.sbb-sr-navigation__ctrl-button.sbb-sr-navigation-driver-area{border-radius:var(--sbb-border-radius-8x);cursor:initial}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button,.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled,.sbb-sr-navigation-driver-area),.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area){--sbb-seat-reservation-navigation-btn-outline-width: var( --sbb-seat-reservation-navigation-btn-outline-width-hover );--sbb-seat-reservation-navigation-btn-outline-color: var(--sbb-color-black)}.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-silver)}.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled) .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-metal)}.sbb-sr-navigation__ctrl-button:focus-visible:not([disabled],:disabled) .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-anthracite)}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button{--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-milk)}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-black)}.sbb-sr-navigation__item-coach--selected .sbb-sr-navigation__ctrl-button .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-black)}.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-cloud)}.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area) .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-smoke)}.sbb-sr-navigation__ctrl-button:hover:not([disabled],:disabled,.sbb-sr-navigation-driver-area) .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-iron)}.sbb-sr-navigation__ctrl-button:is([disabled],:disabled){--sbb-seat-reservation-navigation-btn-background-color: var(--sbb-color-white);--sbb-seat-reservation-navigation-btn-outline-color: var(--sbb-color-platinum);cursor:unset;pointer-events:unset}.sbb-sr-navigation__ctrl-button:is([disabled],:disabled) .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-graphite)}.sbb-sr-navigation__ctrl-button:is([disabled],:disabled) .sbb-sr-navigation__item-coach-number{color:var(--sbb-color-graphite)}.sbb-sr-navigation__additional-information{display:flex;justify-content:space-between;align-items:center;flex:1;column-gap:calc(8 * var(--sbb-seat-reservation-one-px-rem, .0625rem));padding-inline:calc(16 * var(--sbb-seat-reservation-one-px-rem, .0625rem));font-family:var(--sbb-typo-font-family);font-weight:700;color:var(--sbb-color-granite)}@media (forced-colors: active){.sbb-sr-navigation__additional-information{color:var(--sbb-color-milk)}}.sbb-sr-navigation__item-coach-number{color:var(--sbb-color-granite)}@media (forced-colors: active){.sbb-sr-navigation__item-coach-number{color:var(--sbb-color-granite)}}@media (forced-colors: active) and (forced-colors: active){.sbb-sr-navigation__item-coach-number{color:inherit}}.sbb-sr-navigation__item-coach-number .sbb-sr-navigation__item-coach-travelclass{background-color:var(--sbb-color-charcoal)}.sbb-sr-navigation--first-class{width:calc(100% - 8 * var(--sbb-seat-reservation-one-px-rem, .0625rem));position:absolute;inset-block-start:calc(3 * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-inline-start:calc(4 * var(--sbb-seat-reservation-one-px-rem, .0625rem));border:calc(1 * var(--sbb-seat-reservation-one-px-rem, .0625rem)) solid transparent;border-radius:var(--sbb-border-radius-1x);margin:auto;background-color:var(--sbb-color-lemon)}.sbb-sr-navigation__item-coach-travelclass{display:flex;align-items:center;justify-content:center;min-height:calc(20 * var(--sbb-seat-reservation-one-px-rem, .0625rem));min-width:calc(20 * var(--sbb-seat-reservation-one-px-rem, .0625rem));border-radius:var(--sbb-border-radius-1x);text-align:center;background-color:var(--sbb-color-granite);color:var(--sbb-color-white)}:host([vertical]) .sbb-sr-navigation__item-coach{flex-direction:row}:host([vertical]) .sbb-sr-navigation__item-coach .sbb-sr-navigation__ctrl-button{flex-direction:row-reverse;height:calc(80 * var(--sbb-seat-reservation-one-px-rem, .0625rem));min-width:calc(36 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}:host([vertical]) .sbb-sr-navigation__item-coach .sbb-sr-navigation__additional-information{flex-direction:column-reverse;padding-block:calc(16 * var(--sbb-seat-reservation-one-px-rem, .0625rem));padding-inline-start:unset;padding-inline-end:unset}:host([vertical]) .sbb-sr-navigation__item-coach .sbb-sr-navigation--first-class{height:calc(100% - 8 * var(--sbb-seat-reservation-one-px-rem, .0625rem));width:initial;inset-inline-end:calc(3 * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-block-start:calc(4 * var(--sbb-seat-reservation-one-px-rem, .0625rem));inset-inline-start:initial}:host([vertical]) .sbb-sr-navigation__item-coach.first-coach .sbb-sr-navigation--first-class,:host([vertical]) .sbb-sr-navigation__item-coach.last-coach .sbb-sr-navigation--first-class{height:calc(100% - 18 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}:host([vertical]) .sbb-sr-navigation__item-coach.first-coach:not(.last-coach) .sbb-sr-navigation__ctrl-button:not(.sbb-sr-navigation-driver-area){border-start-end-radius:var(--sbb-border-radius-8x);border-end-start-radius:var(--sbb-border-radius-2x)}:host([vertical]) .sbb-sr-navigation__item-coach.first-coach:not(.last-coach) .sbb-sr-navigation--first-class{margin-block-start:calc(var(--sbb-seat-reservation-navigation-travelclass-spacing) * var(--sbb-seat-reservation-one-px-rem, .0625rem));margin-inline-start:initial}:host([vertical]) .sbb-sr-navigation__item-coach.last-coach:not(.first-coach) .sbb-sr-navigation__ctrl-button:not(.sbb-sr-navigation-driver-area){border-start-end-radius:var(--sbb-border-radius-2x);border-end-start-radius:var(--sbb-border-radius-8x)}:host([vertical]) .sbb-sr-navigation__item-coach.last-coach:not(.first-coach) .sbb-sr-navigation--first-class{margin-block-end:calc(var(--sbb-seat-reservation-navigation-travelclass-spacing) * var(--sbb-seat-reservation-one-px-rem, .0625rem));margin-inline-end:initial}:host([vertical]) .sbb-sr-navigation__item-coach .sbb-sr-navigation-driver-area{height:calc(80 * var(--sbb-seat-reservation-one-px-rem, .0625rem));min-width:calc(36 * var(--sbb-seat-reservation-one-px-rem, .0625rem))}`, Ce = 3;
16
+ let De = (() => {
17
17
  var m, p, f, y, x, I, C, k, A, S, B, E, i;
18
- let o = [xe("sbb-seat-reservation-navigation-coach")], n, c = [], h, z = ye, T, N = [], $ = [], O, P = [], R = [], D, L = [], V = [], j, H = [], U = [], F, G = [], K = [], M, q = [], Y = [], X, J = [], Q = [], W, Z = [], ee = [], ae, te = [], se = [], re, ie = [], oe = [], ne, ce = [], le = [], be, ve = [], de = [];
18
+ let o = [xe("sbb-seat-reservation-navigation-coach")], n, c = [], h, z = ye, T, N = [], $ = [], O, P = [], D = [], R, L = [], V = [], j, H = [], U = [], F, G = [], K = [], M, q = [], Y = [], X, J = [], Q = [], W, Z = [], ee = [], te, ae = [], se = [], re, ie = [], oe = [], ne, ce = [], le = [], be, ve = [], de = [];
19
19
  return i = class extends z {
20
20
  constructor() {
21
21
  super(...arguments);
@@ -31,97 +31,97 @@ let Re = (() => {
31
31
  b(this, S);
32
32
  b(this, B);
33
33
  b(this, E);
34
- s(this, m, r(this, N, "")), s(this, p, (r(this, $), r(this, P, []))), s(this, f, (r(this, R), r(this, L, !1))), s(this, y, (r(this, V), r(this, H, !1))), s(this, x, (r(this, U), r(this, G, 0))), s(this, I, (r(this, K), r(this, q, { seats: 0, bicycles: 0 }))), s(this, C, (r(this, Y), r(this, J, ["ANY_CLASS"]))), s(this, k, (r(this, Q), r(this, Z, !1))), s(this, A, (r(this, ee), r(this, te, !1))), s(this, S, (r(this, se), r(this, ie, !1))), s(this, B, (r(this, oe), r(this, ce, !1))), s(this, E, (r(this, le), r(this, ve, !1))), this._language = (r(this, de), new pe(this));
34
+ s(this, m, r(this, N, "")), s(this, p, (r(this, $), r(this, P, []))), s(this, f, (r(this, D), r(this, L, !1))), s(this, y, (r(this, V), r(this, H, !1))), s(this, x, (r(this, U), r(this, G, 0))), s(this, I, (r(this, K), r(this, q, { seats: 0, bicycles: 0 }))), s(this, C, (r(this, Y), r(this, J, ["ANY_CLASS"]))), s(this, k, (r(this, Q), r(this, Z, !1))), s(this, A, (r(this, ee), r(this, ae, !1))), s(this, S, (r(this, se), r(this, ie, !1))), s(this, B, (r(this, oe), r(this, ce, !1))), s(this, E, (r(this, le), r(this, ve, !1))), this._language = (r(this, de), new pe(this));
35
35
  }
36
36
  /** Coach ID, which is used to identify the coach in the navigation */
37
37
  get coachId() {
38
38
  return l(this, m);
39
39
  }
40
- set coachId(a) {
41
- s(this, m, a);
40
+ set coachId(t) {
41
+ s(this, m, t);
42
42
  }
43
43
  /** Coach service property ids, which are used to display the services in the navigation */
44
44
  get propertyIds() {
45
45
  return l(this, p);
46
46
  }
47
- set propertyIds(a) {
48
- s(this, p, a);
47
+ set propertyIds(t) {
48
+ s(this, p, t);
49
49
  }
50
50
  /* pre-selected Coach index property */
51
51
  get selected() {
52
52
  return l(this, f);
53
53
  }
54
- set selected(a) {
55
- s(this, f, a);
54
+ set selected(t) {
55
+ s(this, f, t);
56
56
  }
57
57
  /* focus Coach index property */
58
58
  get focused() {
59
59
  return l(this, y);
60
60
  }
61
- set focused(a) {
62
- s(this, y, a);
61
+ set focused(t) {
62
+ s(this, y, t);
63
63
  }
64
64
  get index() {
65
65
  return l(this, x);
66
66
  }
67
- set index(a) {
68
- s(this, x, a);
67
+ set index(t) {
68
+ s(this, x, t);
69
69
  }
70
70
  /** Representation of places available for selecting, counting seat places and bicycle places separetely */
71
71
  get freePlacesByType() {
72
72
  return l(this, I);
73
73
  }
74
- set freePlacesByType(a) {
75
- s(this, I, a);
74
+ set freePlacesByType(t) {
75
+ s(this, I, t);
76
76
  }
77
77
  /** Travel class of the coach */
78
78
  get travelClass() {
79
79
  return l(this, C);
80
80
  }
81
- set travelClass(a) {
82
- s(this, C, a);
81
+ set travelClass(t) {
82
+ s(this, C, t);
83
83
  }
84
84
  /** If the coach is a driver/restricted area */
85
85
  get driverArea() {
86
86
  return l(this, k);
87
87
  }
88
- set driverArea(a) {
89
- s(this, k, a);
88
+ set driverArea(t) {
89
+ s(this, k, t);
90
90
  }
91
91
  /** If the coach is the first in the navigation */
92
92
  get first() {
93
93
  return l(this, A);
94
94
  }
95
- set first(a) {
96
- s(this, A, a);
95
+ set first(t) {
96
+ s(this, A, t);
97
97
  }
98
98
  /** If the coach is the last in the navigation */
99
99
  get last() {
100
100
  return l(this, S);
101
101
  }
102
- set last(a) {
103
- s(this, S, a);
102
+ set last(t) {
103
+ s(this, S, t);
104
104
  }
105
105
  /** Disable the coach navigation */
106
106
  get disable() {
107
107
  return l(this, B);
108
108
  }
109
- set disable(a) {
110
- s(this, B, a);
109
+ set disable(t) {
110
+ s(this, B, t);
111
111
  }
112
112
  /** If the coach navigation should be displayed vertically */
113
113
  get vertical() {
114
114
  return l(this, E);
115
115
  }
116
- set vertical(a) {
117
- s(this, E, a);
116
+ set vertical(t) {
117
+ s(this, E, t);
118
118
  }
119
- willUpdate(a) {
120
- if (super.willUpdate(a), a.has("selected")) {
119
+ willUpdate(t) {
120
+ if (super.willUpdate(t), t.has("selected")) {
121
121
  const e = this.shadowRoot?.querySelector(".sbb-sr-navigation__ctrl-button");
122
122
  this.selected && e && (e.focus(), this.dispatchEvent(new Event("focuscoach", { bubbles: !0, composed: !0 })));
123
123
  }
124
- if (a.has("focused") && this.focused) {
124
+ if (t.has("focused") && this.focused) {
125
125
  const e = this.shadowRoot?.querySelector(".sbb-sr-navigation__ctrl-button");
126
126
  e && e.focus();
127
127
  }
@@ -134,13 +134,12 @@ let Re = (() => {
134
134
  * @protected
135
135
  */
136
136
  render() {
137
- return this.propertyIds = this.propertyIds.filter((a) => a !== "ANY_SEAT").slice(0, Ce), g`
137
+ return this.propertyIds = this.propertyIds.filter((t) => t !== "ANY_SEAT").slice(0, Ce), g`
138
138
  <div
139
139
  class="${ge({
140
140
  "sbb-sr-navigation__item-coach": !0,
141
141
  "last-coach": this.last,
142
142
  "first-coach": this.first,
143
- "vertical-coach": this.vertical,
144
143
  "sbb-sr-navigation__item-coach--selected": this.selected
145
144
  })}"
146
145
  >
@@ -153,7 +152,7 @@ let Re = (() => {
153
152
  `;
154
153
  }
155
154
  _getNavigationButton() {
156
- const a = this._getCoachServiceClassNumber(), e = this._getTitleDescriptionNavCoachButton(a), t = this._getAriaDescriptionCoachServices();
155
+ const t = this._getCoachServiceClassNumber(), e = this._getTitleDescriptionNavCoachButton(t), a = this._getAriaDescriptionCoachServices();
157
156
  return g` <button
158
157
  type="button"
159
158
  ?disabled="${this.disable}"
@@ -165,93 +164,93 @@ let Re = (() => {
165
164
  aria-describedby="nav-coach-service-descriptions-${this.index}"
166
165
  @click=${() => this._selectNavCoach(this.index)}
167
166
  >
168
- ${this._getBtnInformation(a)}
167
+ ${this._getBtnInformation(t)}
169
168
  </button>
170
169
  <sbb-screen-reader-only id="nav-coach-service-descriptions-${this.index}"
171
- >${t}</sbb-screen-reader-only
170
+ >${a}</sbb-screen-reader-only
172
171
  >`;
173
172
  }
174
- _getBtnInformation(a) {
173
+ _getBtnInformation(t) {
175
174
  return this.driverArea ? null : g`
176
- ${a === 1 ? g`<span class="sbb-sr-navigation--first-class"></span>` : w}
175
+ ${t === 1 ? g`<span class="sbb-sr-navigation--first-class"></span>` : w}
177
176
  ${this.travelClass?.length > 0 || this.coachId ? g`<div class="sbb-sr-navigation__additional-information">
178
177
  ${this.coachId ? g`<div class="sbb-sr-navigation__item-coach-number" aria-hidden="true">
179
178
  ${this.coachId}
180
179
  </div>` : w}
181
180
  <div
182
- ${a ?? w}
181
+ ${t ?? w}
183
182
  class="sbb-sr-navigation__item-coach-travelclass"
184
183
  aria-hidden="true"
185
184
  >
186
- ${a}
185
+ ${t}
187
186
  </div>
188
187
  </div>` : w}
189
188
  `;
190
189
  }
191
- _getTitleDescriptionNavCoachButton(a) {
190
+ _getTitleDescriptionNavCoachButton(t) {
192
191
  if (this.driverArea)
193
192
  return u("NAVIGATE_COACH_BLOCKED", this._language.current, [
194
193
  this.coachId
195
194
  ]);
196
195
  let e = u("NAVIGATE_TO_COACH", this._language.current, [this.coachId]);
197
- if (a) {
198
- const ue = u(a === 1 ? "SERVICE_CLASS_FIRST" : "SERVICE_CLASS_SECOND", this._language.current), me = u("NAVIGATE_TO_COACH_SERVICE_CLASS_SUB", this._language.current, [ue]);
196
+ if (t) {
197
+ const ue = u(t === 1 ? "SERVICE_CLASS_FIRST" : "SERVICE_CLASS_SECOND", this._language.current), me = u("NAVIGATE_TO_COACH_SERVICE_CLASS_SUB", this._language.current, [ue]);
199
198
  e = e.concat(me);
200
199
  }
201
- const t = u("COACH_AVAILABLE_NUMBER_OF_PLACES", this._language.current, [this.freePlacesByType.seats, this.freePlacesByType.bicycles]);
202
- return e = e.concat(". ").concat(t), e;
200
+ const a = u("COACH_AVAILABLE_NUMBER_OF_PLACES", this._language.current, [this.freePlacesByType.seats, this.freePlacesByType.bicycles]);
201
+ return e = e.concat(". ").concat(a), e;
203
202
  }
204
203
  _getAriaDescriptionCoachServices() {
205
- let a = null;
206
- return this.propertyIds.length && (a = u("COACH_AVAILABLE_SERVICES", this._language.current) + ": ", a += this.propertyIds.map((e) => u(e, this._language.current)).join()), a;
204
+ let t = null;
205
+ return this.propertyIds.length && (t = u("COACH_AVAILABLE_SERVICES", this._language.current) + ": ", t += this.propertyIds.map((e) => u(e, this._language.current)).join()), t;
207
206
  }
208
207
  /**
209
208
  * emits the index of the coach array for the main navigation.
210
209
  * @param coachIndex
211
210
  * @private
212
211
  */
213
- _selectNavCoach(a) {
212
+ _selectNavCoach(t) {
214
213
  this.driverArea || this.dispatchEvent(new CustomEvent("selectcoach", {
215
214
  bubbles: !0,
216
215
  composed: !0,
217
- detail: a
216
+ detail: t
218
217
  }));
219
218
  }
220
219
  _getCoachServiceClassNumber() {
221
220
  return this.travelClass?.includes("FIRST") ? 1 : this.travelClass?.includes("SECOND") ? 2 : null;
222
221
  }
223
222
  }, m = new WeakMap(), p = new WeakMap(), f = new WeakMap(), y = new WeakMap(), x = new WeakMap(), I = new WeakMap(), C = new WeakMap(), k = new WeakMap(), A = new WeakMap(), S = new WeakMap(), B = new WeakMap(), E = new WeakMap(), h = i, (() => {
224
- const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(z[Symbol.metadata] ?? null) : void 0;
225
- T = [_(), d({ attribute: "coach-id" })], O = [d({ attribute: "property-ids", type: Array })], D = [_(), d({ type: Boolean })], j = [_(), d({ type: Boolean })], F = [_(), d({ type: Number })], M = [d({ attribute: "free-places-by-type", type: Object })], X = [d({ attribute: "travel-class", type: Array })], W = [_(), d({ attribute: "driver-area", type: Boolean })], ae = [_(), d({ type: Boolean })], re = [_(), d({ type: Boolean })], ne = [_(), d({ attribute: "disable", type: Boolean })], be = [_(), d({ type: Boolean })], v(i, null, T, { kind: "accessor", name: "coachId", static: !1, private: !1, access: { has: (e) => "coachId" in e, get: (e) => e.coachId, set: (e, t) => {
226
- e.coachId = t;
227
- } }, metadata: a }, N, $), v(i, null, O, { kind: "accessor", name: "propertyIds", static: !1, private: !1, access: { has: (e) => "propertyIds" in e, get: (e) => e.propertyIds, set: (e, t) => {
228
- e.propertyIds = t;
229
- } }, metadata: a }, P, R), v(i, null, D, { kind: "accessor", name: "selected", static: !1, private: !1, access: { has: (e) => "selected" in e, get: (e) => e.selected, set: (e, t) => {
230
- e.selected = t;
231
- } }, metadata: a }, L, V), v(i, null, j, { kind: "accessor", name: "focused", static: !1, private: !1, access: { has: (e) => "focused" in e, get: (e) => e.focused, set: (e, t) => {
232
- e.focused = t;
233
- } }, metadata: a }, H, U), v(i, null, F, { kind: "accessor", name: "index", static: !1, private: !1, access: { has: (e) => "index" in e, get: (e) => e.index, set: (e, t) => {
234
- e.index = t;
235
- } }, metadata: a }, G, K), v(i, null, M, { kind: "accessor", name: "freePlacesByType", static: !1, private: !1, access: { has: (e) => "freePlacesByType" in e, get: (e) => e.freePlacesByType, set: (e, t) => {
236
- e.freePlacesByType = t;
237
- } }, metadata: a }, q, Y), v(i, null, X, { kind: "accessor", name: "travelClass", static: !1, private: !1, access: { has: (e) => "travelClass" in e, get: (e) => e.travelClass, set: (e, t) => {
238
- e.travelClass = t;
239
- } }, metadata: a }, J, Q), v(i, null, W, { kind: "accessor", name: "driverArea", static: !1, private: !1, access: { has: (e) => "driverArea" in e, get: (e) => e.driverArea, set: (e, t) => {
240
- e.driverArea = t;
241
- } }, metadata: a }, Z, ee), v(i, null, ae, { kind: "accessor", name: "first", static: !1, private: !1, access: { has: (e) => "first" in e, get: (e) => e.first, set: (e, t) => {
242
- e.first = t;
243
- } }, metadata: a }, te, se), v(i, null, re, { kind: "accessor", name: "last", static: !1, private: !1, access: { has: (e) => "last" in e, get: (e) => e.last, set: (e, t) => {
244
- e.last = t;
245
- } }, metadata: a }, ie, oe), v(i, null, ne, { kind: "accessor", name: "disable", static: !1, private: !1, access: { has: (e) => "disable" in e, get: (e) => e.disable, set: (e, t) => {
246
- e.disable = t;
247
- } }, metadata: a }, ce, le), v(i, null, be, { kind: "accessor", name: "vertical", static: !1, private: !1, access: { has: (e) => "vertical" in e, get: (e) => e.vertical, set: (e, t) => {
248
- e.vertical = t;
249
- } }, metadata: a }, ve, de), v(null, n = { value: h }, o, { kind: "class", name: h.name, metadata: a }, null, c), h = n.value, a && Object.defineProperty(h, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
223
+ const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(z[Symbol.metadata] ?? null) : void 0;
224
+ T = [_(), d({ attribute: "coach-id" })], O = [d({ attribute: "property-ids", type: Array })], R = [_(), d({ type: Boolean })], j = [_(), d({ type: Boolean })], F = [_(), d({ type: Number })], M = [d({ attribute: "free-places-by-type", type: Object })], X = [d({ attribute: "travel-class", type: Array })], W = [_(), d({ attribute: "driver-area", type: Boolean })], te = [_(), d({ type: Boolean })], re = [_(), d({ type: Boolean })], ne = [_(), d({ attribute: "disable", type: Boolean })], be = [_(), d({ type: Boolean, reflect: !0, useDefault: !0 })], v(i, null, T, { kind: "accessor", name: "coachId", static: !1, private: !1, access: { has: (e) => "coachId" in e, get: (e) => e.coachId, set: (e, a) => {
225
+ e.coachId = a;
226
+ } }, metadata: t }, N, $), v(i, null, O, { kind: "accessor", name: "propertyIds", static: !1, private: !1, access: { has: (e) => "propertyIds" in e, get: (e) => e.propertyIds, set: (e, a) => {
227
+ e.propertyIds = a;
228
+ } }, metadata: t }, P, D), v(i, null, R, { kind: "accessor", name: "selected", static: !1, private: !1, access: { has: (e) => "selected" in e, get: (e) => e.selected, set: (e, a) => {
229
+ e.selected = a;
230
+ } }, metadata: t }, L, V), v(i, null, j, { kind: "accessor", name: "focused", static: !1, private: !1, access: { has: (e) => "focused" in e, get: (e) => e.focused, set: (e, a) => {
231
+ e.focused = a;
232
+ } }, metadata: t }, H, U), v(i, null, F, { kind: "accessor", name: "index", static: !1, private: !1, access: { has: (e) => "index" in e, get: (e) => e.index, set: (e, a) => {
233
+ e.index = a;
234
+ } }, metadata: t }, G, K), v(i, null, M, { kind: "accessor", name: "freePlacesByType", static: !1, private: !1, access: { has: (e) => "freePlacesByType" in e, get: (e) => e.freePlacesByType, set: (e, a) => {
235
+ e.freePlacesByType = a;
236
+ } }, metadata: t }, q, Y), v(i, null, X, { kind: "accessor", name: "travelClass", static: !1, private: !1, access: { has: (e) => "travelClass" in e, get: (e) => e.travelClass, set: (e, a) => {
237
+ e.travelClass = a;
238
+ } }, metadata: t }, J, Q), v(i, null, W, { kind: "accessor", name: "driverArea", static: !1, private: !1, access: { has: (e) => "driverArea" in e, get: (e) => e.driverArea, set: (e, a) => {
239
+ e.driverArea = a;
240
+ } }, metadata: t }, Z, ee), v(i, null, te, { kind: "accessor", name: "first", static: !1, private: !1, access: { has: (e) => "first" in e, get: (e) => e.first, set: (e, a) => {
241
+ e.first = a;
242
+ } }, metadata: t }, ae, se), v(i, null, re, { kind: "accessor", name: "last", static: !1, private: !1, access: { has: (e) => "last" in e, get: (e) => e.last, set: (e, a) => {
243
+ e.last = a;
244
+ } }, metadata: t }, ie, oe), v(i, null, ne, { kind: "accessor", name: "disable", static: !1, private: !1, access: { has: (e) => "disable" in e, get: (e) => e.disable, set: (e, a) => {
245
+ e.disable = a;
246
+ } }, metadata: t }, ce, le), v(i, null, be, { kind: "accessor", name: "vertical", static: !1, private: !1, access: { has: (e) => "vertical" in e, get: (e) => e.vertical, set: (e, a) => {
247
+ e.vertical = a;
248
+ } }, metadata: t }, ve, de), v(null, n = { value: h }, o, { kind: "class", name: h.name, metadata: t }, null, c), h = n.value, t && Object.defineProperty(h, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
250
249
  })(), i.styles = Ie, i.events = {
251
250
  selectcoach: "selectcoach",
252
251
  focuscoach: "focuscoach"
253
252
  }, r(h, c), h;
254
253
  })();
255
254
  export {
256
- Re as SbbSeatReservationNavigationCoachElement
255
+ De as SbbSeatReservationNavigationCoachElement
257
256
  };
@@ -1 +1 @@
1
- {"version":3,"file":"seat-reservation-navigation-services.component.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAW,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACxE,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAMvC,OAAO,+CAA+C,CAAC;AACvD,OAAO,gCAAgC,CAAC;AAIxC;;;GAGG;AACH,qBAEM,2CAA4C,SAAQ,UAAU;IAClE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,2FAA2F;IAC3F,SACgB,WAAW,EAAE,MAAM,EAAE,CAAM;IAE3C,0DAA0D;IAC1D,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C,OAAO,CAAC,SAAS,CAAmC;cAEjC,MAAM,IAAI,cAAc;IA4B3C,OAAO,CAAC,2BAA2B;CAcpC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,0CAA0C,EAAE,2CAA2C,CAAC;KACzF;CACF"}
1
+ {"version":3,"file":"seat-reservation-navigation-services.component.d.ts","sourceRoot":"","sources":["../../../../src/elements-experimental/seat-reservation/seat-reservation-navigation-services/seat-reservation-navigation-services.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAW,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACxE,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAMvC,OAAO,+CAA+C,CAAC;AACvD,OAAO,gCAAgC,CAAC;AAIxC;;;GAGG;AACH,qBAEM,2CAA4C,SAAQ,UAAU;IAClE,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD,2FAA2F;IAC3F,SACgB,WAAW,EAAE,MAAM,EAAE,CAAM;IAE3C,0DAA0D;IAC1D,SAEgB,QAAQ,EAAE,OAAO,CAAS;IAE1C,OAAO,CAAC,SAAS,CAAmC;cAEjC,MAAM,IAAI,cAAc;IAyB3C,OAAO,CAAC,2BAA2B;CAcpC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,0CAA0C,EAAE,2CAA2C,CAAC;KACzF;CACF"}