From f33d921f68417e7052071887d8679ba5ba5e6d86 Mon Sep 17 00:00:00 2001 From: Abel van Beek Date: Fri, 22 Nov 2024 13:41:31 +0100 Subject: [PATCH] feat: Removed legacy theme structure --- next.config.js | 2 +- package.json | 2 +- .../widget/C4Jw9gtgzkA/2.27.0/planner-web.css | 2 +- .../widget/C4Jw9gtgzkA/2.27.0/planner-web.mjs | 477 +++++++++--------- .../C4Jw9gtgzkA/2.27.0/planner-web.umd.js | 29 +- src/components/icon/mono-icon.tsx | 6 +- src/modules/theme/index.ts | 36 +- yarn.lock | 7 + 8 files changed, 275 insertions(+), 286 deletions(-) diff --git a/next.config.js b/next.config.js index 3ca0e245..5f0b5d80 100644 --- a/next.config.js +++ b/next.config.js @@ -25,7 +25,7 @@ const nextConfig = { webpack(config) { config.resolve.alias = { ...config.resolve.alias, - '@atb/theme/theme.css': `@atb-as/theme/lib/generated/themes-fs/${orgId}-theme/theme.css`, + '@atb/theme/theme.css': `@atb-as/theme/lib/generated/themes/${orgId}-theme/theme.css`, '@atb/theme/typography.css': '@atb-as/theme/lib/generated/typography.css', '@atb/theme/typography.module.css': '@atb-as/theme/lib/generated/typography.module.css', diff --git a/package.json b/package.json index ffab74d4..e257dc29 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "dependencies": { "@apollo/client": "^3.11.2", "@atb-as/config-specs": "^3.27.0", - "@atb-as/theme": "^11.1.1", + "@atb-as/theme": "./../../design-system/packages/theme", "@github/combobox-nav": "^3.0.1", "@internationalized/date": "^3.5.5", "@isaacs/ttlcache": "^1.4.1", diff --git a/public/widget/C4Jw9gtgzkA/2.27.0/planner-web.css b/public/widget/C4Jw9gtgzkA/2.27.0/planner-web.css index 5f2749a2..2de9090d 100644 --- a/public/widget/C4Jw9gtgzkA/2.27.0/planner-web.css +++ b/public/widget/C4Jw9gtgzkA/2.27.0/planner-web.css @@ -1 +1 @@ -@import"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap";.theme-module__light{--border-primary: #F1F2F2;--border-secondary: #000000;--border-focus: #E85912;--border-radius-circle: 1.25rem;--border-radius-regular: .5rem;--border-radius-small: .25rem;--border-width-slim: .0625rem;--border-width-medium: .125rem;--spacings-xLarge: 1.5rem;--spacings-large: 1.25rem;--spacings-medium: .75rem;--spacings-small: .5rem;--spacings-xSmall: .25rem;--icon-size-large: 1.75rem;--icon-size-normal: 1.25rem;--icon-size-small: 1rem;--icon-size-xSmall: .75rem;--text-colors-primary: #000000;--text-colors-secondary: #555E65;--text-colors-disabled: #A9AEB1;--static-background-background_0-background: #FFFFFF;--static-background-background_0-text: #000000;--static-background-background_1-background: #F1F2F2;--static-background-background_1-text: #000000;--static-background-background_2-background: #E3E5E6;--static-background-background_2-text: #000000;--static-background-background_3-background: #D5D7D9;--static-background-background_3-text: #000000;--static-background-background_accent_0-background: #D24600;--static-background-background_accent_0-text: #FFFFFF;--static-background-background_accent_1-background: #953200;--static-background-background_accent_1-text: #FFFFFF;--static-background-background_accent_2-background: #F4B392;--static-background-background_accent_2-text: #000000;--static-background-background_accent_3-background: #E85912;--static-background-background_accent_3-text: #000000;--static-background-background_accent_4-background: #FFE924;--static-background-background_accent_4-text: #000000;--static-background-background_accent_5-background: #D24600;--static-background-background_accent_5-text: #FFFFFF;--static-zone_selection-from-background: #B2FF90;--static-zone_selection-from-text: #000000;--static-zone_selection-to-background: #D7FDFF;--static-zone_selection-to-text: #000000;--interactive-interactive_0-default-background: #4F1E06;--interactive-interactive_0-default-text: #FFFFFF;--interactive-interactive_0-hover-background: #742700;--interactive-interactive_0-hover-text: #FFFFFF;--interactive-interactive_0-active-background: #F4B392;--interactive-interactive_0-active-text: #000000;--interactive-interactive_0-disabled-background: #F8CCB5;--interactive-interactive_0-disabled-text: #000000;--interactive-interactive_0-outline-background: #4F1E06;--interactive-interactive_0-outline-text: #FFFFFF;--interactive-interactive_0-destructive-background: #B71416;--interactive-interactive_0-destructive-text: #FFFFFF;--interactive-interactive_1-default-background: #953200;--interactive-interactive_1-default-text: #FFFFFF;--interactive-interactive_1-hover-background: #BF4000;--interactive-interactive_1-hover-text: #FFFFFF;--interactive-interactive_1-active-background: #742700;--interactive-interactive_1-active-text: #FFFFFF;--interactive-interactive_1-disabled-background: #C7CACC;--interactive-interactive_1-disabled-text: #000000;--interactive-interactive_1-outline-background: #4F1E06;--interactive-interactive_1-outline-text: #FFFFFF;--interactive-interactive_1-destructive-background: #B71416;--interactive-interactive_1-destructive-text: #FFFFFF;--interactive-interactive_2-default-background: #FFFFFF;--interactive-interactive_2-default-text: #000000;--interactive-interactive_2-hover-background: #F09060;--interactive-interactive_2-hover-text: #000000;--interactive-interactive_2-active-background: #F4B392;--interactive-interactive_2-active-text: #000000;--interactive-interactive_2-disabled-background: #E3E5E6;--interactive-interactive_2-disabled-text: #000000;--interactive-interactive_2-outline-background: #BF4000;--interactive-interactive_2-outline-text: #FFFFFF;--interactive-interactive_2-destructive-background: #B71416;--interactive-interactive_2-destructive-text: #FFFFFF;--interactive-interactive_3-default-background: #BF4000;--interactive-interactive_3-default-text: #FFFFFF;--interactive-interactive_3-hover-background: #F09060;--interactive-interactive_3-hover-text: #000000;--interactive-interactive_3-active-background: #F4B392;--interactive-interactive_3-active-text: #000000;--interactive-interactive_3-disabled-background: #E3E5E6;--interactive-interactive_3-disabled-text: #000000;--interactive-interactive_3-outline-background: #953200;--interactive-interactive_3-outline-text: #FFFFFF;--interactive-interactive_3-destructive-background: #B71416;--interactive-interactive_3-destructive-text: #FFFFFF;--interactive-interactive_destructive-default-background: #B71416;--interactive-interactive_destructive-default-text: #FFFFFF;--interactive-interactive_destructive-hover-background: #8F1011;--interactive-interactive_destructive-hover-text: #FFFFFF;--interactive-interactive_destructive-active-background: #8F1011;--interactive-interactive_destructive-active-text: #FFFFFF;--interactive-interactive_destructive-disabled-background: #EEB7B7;--interactive-interactive_destructive-disabled-text: #000000;--interactive-interactive_destructive-outline-background: #000D51;--interactive-interactive_destructive-outline-text: #FFFFFF;--interactive-interactive_destructive-destructive-background: #B71416;--interactive-interactive_destructive-destructive-text: #FFFFFF;--transport-transport_region-primary-background: #507341;--transport-transport_region-primary-text: #FFFFFF;--transport-transport_region-secondary-background: #3E5932;--transport-transport_region-secondary-text: #FFFFFF;--transport-transport_city-primary-background: #334DCE;--transport-transport_city-primary-text: #FFFFFF;--transport-transport_city-secondary-background: #0020C2;--transport-transport_city-secondary-text: #FFFFFF;--transport-transport_airport_express-primary-background: #D44546;--transport-transport_airport_express-primary-text: #000000;--transport-transport_airport_express-secondary-background: #C91618;--transport-transport_airport_express-secondary-text: #FFFFFF;--transport-transport_boat-primary-background: #4C9599;--transport-transport_boat-primary-text: #FFFFFF;--transport-transport_boat-secondary-background: #397073;--transport-transport_boat-secondary-text: #FFFFFF;--transport-transport_train-primary-background: #BD3685;--transport-transport_train-primary-text: #FFFFFF;--transport-transport_train-secondary-background: #8E2864;--transport-transport_train-secondary-text: #FFFFFF;--transport-transport_airport-primary-background: #D24600;--transport-transport_airport-primary-text: #FFFFFF;--transport-transport_airport-secondary-background: #BF4000;--transport-transport_airport-secondary-text: #FFFFFF;--transport-transport_plane-primary-background: #2B343A;--transport-transport_plane-primary-text: #FFFFFF;--transport-transport_plane-secondary-background: #1A2024;--transport-transport_plane-secondary-text: #FFFFFF;--transport-transport_flexible-primary-background: #D24600;--transport-transport_flexible-primary-text: #FFFFFF;--transport-transport_flexible-secondary-background: #BF4000;--transport-transport_flexible-secondary-text: #FFFFFF;--transport-transport_bike-primary-background: #8F1011;--transport-transport_bike-primary-text: #FFFFFF;--transport-transport_bike-secondary-background: #6F0C0D;--transport-transport_bike-secondary-text: #FFFFFF;--transport-transport_scooter-primary-background: #6B9956;--transport-transport_scooter-primary-text: #000000;--transport-transport_scooter-secondary-background: #507341;--transport-transport_scooter-secondary-text: #FFFFFF;--transport-transport_car-primary-background: #8E2864;--transport-transport_car-primary-text: #FFFFFF;--transport-transport_car-secondary-background: #6A1E4B;--transport-transport_car-secondary-text: #FFFFFF;--transport-transport_other-primary-background: #37424A;--transport-transport_other-primary-text: #FFFFFF;--transport-transport_other-secondary-background: #2B343A;--transport-transport_other-secondary-text: #FFFFFF;--status-valid-primary-background: #86BF6C;--status-valid-primary-text: #000000;--status-valid-secondary-background: #F7FFF4;--status-valid-secondary-text: #000000;--status-info-primary-background: #546AD6;--status-info-primary-text: #FFFFFF;--status-info-secondary-background: #E6E9F9;--status-info-secondary-text: #000000;--status-warning-primary-background: #E6D220;--status-warning-primary-text: #000000;--status-warning-secondary-background: #FFFDE9;--status-warning-secondary-text: #000000;--status-error-primary-background: #D44546;--status-error-primary-text: #000000;--status-error-secondary-background: #FAE8E8;--status-error-secondary-text: #000000}.theme-module__dark{--border-primary: #242B30;--border-secondary: #FFFFFF;--border-focus: #66C7CC;--border-radius-circle: 1.25rem;--border-radius-regular: .5rem;--border-radius-small: .25rem;--border-width-slim: .0625rem;--border-width-medium: .125rem;--spacings-xLarge: 1.5rem;--spacings-large: 1.25rem;--spacings-medium: .75rem;--spacings-small: .5rem;--spacings-xSmall: .25rem;--icon-size-large: 1.75rem;--icon-size-normal: 1.25rem;--icon-size-small: 1rem;--icon-size-xSmall: .75rem;--text-colors-primary: #FFFFFF;--text-colors-secondary: #E3E5E6;--text-colors-disabled: #A9AEB1;--static-background-background_0-background: #1A2024;--static-background-background_0-text: #FFFFFF;--static-background-background_1-background: #242B30;--static-background-background_1-text: #FFFFFF;--static-background-background_2-background: #37424A;--static-background-background_2-text: #FFFFFF;--static-background-background_3-background: #555E65;--static-background-background_3-text: #FFFFFF;--static-background-background_accent_0-background: #000000;--static-background-background_accent_0-text: #FFFFFF;--static-background-background_accent_1-background: #953200;--static-background-background_accent_1-text: #FFFFFF;--static-background-background_accent_2-background: #F4B392;--static-background-background_accent_2-text: #000000;--static-background-background_accent_3-background: #E85912;--static-background-background_accent_3-text: #000000;--static-background-background_accent_4-background: #FFE924;--static-background-background_accent_4-text: #000000;--static-background-background_accent_5-background: #D24600;--static-background-background_accent_5-text: #FFFFFF;--static-zone_selection-from-background: #B2FF90;--static-zone_selection-from-text: #000000;--static-zone_selection-to-background: #D7FDFF;--static-zone_selection-to-text: #000000;--interactive-interactive_0-default-background: #D24600;--interactive-interactive_0-default-text: #FFFFFF;--interactive-interactive_0-hover-background: #B71416;--interactive-interactive_0-hover-text: #FFFFFF;--interactive-interactive_0-active-background: #6F0C0D;--interactive-interactive_0-active-text: #FFFFFF;--interactive-interactive_0-disabled-background: #F4B392;--interactive-interactive_0-disabled-text: #000000;--interactive-interactive_0-outline-background: #BF4000;--interactive-interactive_0-outline-text: #FFFFFF;--interactive-interactive_0-destructive-background: #DB6364;--interactive-interactive_0-destructive-text: #000000;--interactive-interactive_1-default-background: #401805;--interactive-interactive_1-default-text: #FFFFFF;--interactive-interactive_1-hover-background: #6F777D;--interactive-interactive_1-hover-text: #FFFFFF;--interactive-interactive_1-active-background: #1A2024;--interactive-interactive_1-active-text: #FFFFFF;--interactive-interactive_1-disabled-background: #C7CACC;--interactive-interactive_1-disabled-text: #000000;--interactive-interactive_1-outline-background: #4F1E06;--interactive-interactive_1-outline-text: #FFFFFF;--interactive-interactive_1-destructive-background: #DB6364;--interactive-interactive_1-destructive-text: #000000;--interactive-interactive_2-default-background: #1A2024;--interactive-interactive_2-default-text: #FFFFFF;--interactive-interactive_2-hover-background: #301204;--interactive-interactive_2-hover-text: #FFFFFF;--interactive-interactive_2-active-background: #742700;--interactive-interactive_2-active-text: #FFFFFF;--interactive-interactive_2-disabled-background: #101315;--interactive-interactive_2-disabled-text: #FFFFFF;--interactive-interactive_2-outline-background: #BF4000;--interactive-interactive_2-outline-text: #FFFFFF;--interactive-interactive_2-destructive-background: #DB6364;--interactive-interactive_2-destructive-text: #000000;--interactive-interactive_3-default-background: #BF4000;--interactive-interactive_3-default-text: #FFFFFF;--interactive-interactive_3-hover-background: #742700;--interactive-interactive_3-hover-text: #FFFFFF;--interactive-interactive_3-active-background: #4F1E06;--interactive-interactive_3-active-text: #FFFFFF;--interactive-interactive_3-disabled-background: #37424A;--interactive-interactive_3-disabled-text: #FFFFFF;--interactive-interactive_3-outline-background: #953200;--interactive-interactive_3-outline-text: #FFFFFF;--interactive-interactive_3-destructive-background: #B71416;--interactive-interactive_3-destructive-text: #FFFFFF;--interactive-interactive_destructive-default-background: #8F1011;--interactive-interactive_destructive-default-text: #FFFFFF;--interactive-interactive_destructive-hover-background: #B71416;--interactive-interactive_destructive-hover-text: #FFFFFF;--interactive-interactive_destructive-active-background: #B71416;--interactive-interactive_destructive-active-text: #FFFFFF;--interactive-interactive_destructive-disabled-background: #EEB7B7;--interactive-interactive_destructive-disabled-text: #000000;--interactive-interactive_destructive-outline-background: #54090A;--interactive-interactive_destructive-outline-text: #FFFFFF;--interactive-interactive_destructive-destructive-background: #DB6364;--interactive-interactive_destructive-destructive-text: #000000;--transport-transport_region-primary-background: #507341;--transport-transport_region-primary-text: #FFFFFF;--transport-transport_region-secondary-background: #3E5932;--transport-transport_region-secondary-text: #FFFFFF;--transport-transport_city-primary-background: #334DCE;--transport-transport_city-primary-text: #FFFFFF;--transport-transport_city-secondary-background: #0020C2;--transport-transport_city-secondary-text: #FFFFFF;--transport-transport_airport_express-primary-background: #D44546;--transport-transport_airport_express-primary-text: #000000;--transport-transport_airport_express-secondary-background: #C91618;--transport-transport_airport_express-secondary-text: #FFFFFF;--transport-transport_boat-primary-background: #4C9599;--transport-transport_boat-primary-text: #FFFFFF;--transport-transport_boat-secondary-background: #397073;--transport-transport_boat-secondary-text: #FFFFFF;--transport-transport_train-primary-background: #BD3685;--transport-transport_train-primary-text: #FFFFFF;--transport-transport_train-secondary-background: #8E2864;--transport-transport_train-secondary-text: #FFFFFF;--transport-transport_airport-primary-background: #D24600;--transport-transport_airport-primary-text: #FFFFFF;--transport-transport_airport-secondary-background: #BF4000;--transport-transport_airport-secondary-text: #FFFFFF;--transport-transport_plane-primary-background: #2B343A;--transport-transport_plane-primary-text: #FFFFFF;--transport-transport_plane-secondary-background: #1A2024;--transport-transport_plane-secondary-text: #FFFFFF;--transport-transport_flexible-primary-background: #D24600;--transport-transport_flexible-primary-text: #FFFFFF;--transport-transport_flexible-secondary-background: #BF4000;--transport-transport_flexible-secondary-text: #FFFFFF;--transport-transport_bike-primary-background: #8F1011;--transport-transport_bike-primary-text: #FFFFFF;--transport-transport_bike-secondary-background: #6F0C0D;--transport-transport_bike-secondary-text: #FFFFFF;--transport-transport_scooter-primary-background: #6B9956;--transport-transport_scooter-primary-text: #000000;--transport-transport_scooter-secondary-background: #507341;--transport-transport_scooter-secondary-text: #FFFFFF;--transport-transport_car-primary-background: #8E2864;--transport-transport_car-primary-text: #FFFFFF;--transport-transport_car-secondary-background: #6A1E4B;--transport-transport_car-secondary-text: #FFFFFF;--transport-transport_other-primary-background: #C7CACC;--transport-transport_other-primary-text: #000000;--transport-transport_other-secondary-background: #8D9398;--transport-transport_other-secondary-text: #000000;--status-valid-primary-background: #86BF6C;--status-valid-primary-text: #000000;--status-valid-secondary-background: #3E5932;--status-valid-secondary-text: #FFFFFF;--status-info-primary-background: #8A98E3;--status-info-primary-text: #000000;--status-info-secondary-background: #000D51;--status-info-secondary-text: #FFFFFF;--status-warning-primary-background: #E6D220;--status-warning-primary-text: #000000;--status-warning-secondary-background: #59520D;--status-warning-secondary-text: #FFFFFF;--status-error-primary-background: #D44546;--status-error-primary-text: #000000;--status-error-secondary-background: #54090A;--status-error-secondary-text: #FFFFFF}@media (prefers-color-scheme: dark){.theme-module__light:not(.theme-module__override-light){--border-primary: #242B30;--border-secondary: #FFFFFF;--border-focus: #66C7CC;--border-radius-circle: 1.25rem;--border-radius-regular: .5rem;--border-radius-small: .25rem;--border-width-slim: .0625rem;--border-width-medium: .125rem;--spacings-xLarge: 1.5rem;--spacings-large: 1.25rem;--spacings-medium: .75rem;--spacings-small: .5rem;--spacings-xSmall: .25rem;--icon-size-large: 1.75rem;--icon-size-normal: 1.25rem;--icon-size-small: 1rem;--icon-size-xSmall: .75rem;--text-colors-primary: #FFFFFF;--text-colors-secondary: #E3E5E6;--text-colors-disabled: #A9AEB1;--static-background-background_0-background: #1A2024;--static-background-background_0-text: #FFFFFF;--static-background-background_1-background: #242B30;--static-background-background_1-text: #FFFFFF;--static-background-background_2-background: #37424A;--static-background-background_2-text: #FFFFFF;--static-background-background_3-background: #555E65;--static-background-background_3-text: #FFFFFF;--static-background-background_accent_0-background: #000000;--static-background-background_accent_0-text: #FFFFFF;--static-background-background_accent_1-background: #953200;--static-background-background_accent_1-text: #FFFFFF;--static-background-background_accent_2-background: #F4B392;--static-background-background_accent_2-text: #000000;--static-background-background_accent_3-background: #E85912;--static-background-background_accent_3-text: #000000;--static-background-background_accent_4-background: #FFE924;--static-background-background_accent_4-text: #000000;--static-background-background_accent_5-background: #D24600;--static-background-background_accent_5-text: #FFFFFF;--static-zone_selection-from-background: #B2FF90;--static-zone_selection-from-text: #000000;--static-zone_selection-to-background: #D7FDFF;--static-zone_selection-to-text: #000000;--interactive-interactive_0-default-background: #D24600;--interactive-interactive_0-default-text: #FFFFFF;--interactive-interactive_0-hover-background: #B71416;--interactive-interactive_0-hover-text: #FFFFFF;--interactive-interactive_0-active-background: #6F0C0D;--interactive-interactive_0-active-text: #FFFFFF;--interactive-interactive_0-disabled-background: #F4B392;--interactive-interactive_0-disabled-text: #000000;--interactive-interactive_0-outline-background: #BF4000;--interactive-interactive_0-outline-text: #FFFFFF;--interactive-interactive_0-destructive-background: #DB6364;--interactive-interactive_0-destructive-text: #000000;--interactive-interactive_1-default-background: #401805;--interactive-interactive_1-default-text: #FFFFFF;--interactive-interactive_1-hover-background: #6F777D;--interactive-interactive_1-hover-text: #FFFFFF;--interactive-interactive_1-active-background: #1A2024;--interactive-interactive_1-active-text: #FFFFFF;--interactive-interactive_1-disabled-background: #C7CACC;--interactive-interactive_1-disabled-text: #000000;--interactive-interactive_1-outline-background: #4F1E06;--interactive-interactive_1-outline-text: #FFFFFF;--interactive-interactive_1-destructive-background: #DB6364;--interactive-interactive_1-destructive-text: #000000;--interactive-interactive_2-default-background: #1A2024;--interactive-interactive_2-default-text: #FFFFFF;--interactive-interactive_2-hover-background: #301204;--interactive-interactive_2-hover-text: #FFFFFF;--interactive-interactive_2-active-background: #742700;--interactive-interactive_2-active-text: #FFFFFF;--interactive-interactive_2-disabled-background: #101315;--interactive-interactive_2-disabled-text: #FFFFFF;--interactive-interactive_2-outline-background: #BF4000;--interactive-interactive_2-outline-text: #FFFFFF;--interactive-interactive_2-destructive-background: #DB6364;--interactive-interactive_2-destructive-text: #000000;--interactive-interactive_3-default-background: #BF4000;--interactive-interactive_3-default-text: #FFFFFF;--interactive-interactive_3-hover-background: #742700;--interactive-interactive_3-hover-text: #FFFFFF;--interactive-interactive_3-active-background: #4F1E06;--interactive-interactive_3-active-text: #FFFFFF;--interactive-interactive_3-disabled-background: #37424A;--interactive-interactive_3-disabled-text: #FFFFFF;--interactive-interactive_3-outline-background: #953200;--interactive-interactive_3-outline-text: #FFFFFF;--interactive-interactive_3-destructive-background: #B71416;--interactive-interactive_3-destructive-text: #FFFFFF;--interactive-interactive_destructive-default-background: #8F1011;--interactive-interactive_destructive-default-text: #FFFFFF;--interactive-interactive_destructive-hover-background: #B71416;--interactive-interactive_destructive-hover-text: #FFFFFF;--interactive-interactive_destructive-active-background: #B71416;--interactive-interactive_destructive-active-text: #FFFFFF;--interactive-interactive_destructive-disabled-background: #EEB7B7;--interactive-interactive_destructive-disabled-text: #000000;--interactive-interactive_destructive-outline-background: #54090A;--interactive-interactive_destructive-outline-text: #FFFFFF;--interactive-interactive_destructive-destructive-background: #DB6364;--interactive-interactive_destructive-destructive-text: #000000;--transport-transport_region-primary-background: #507341;--transport-transport_region-primary-text: #FFFFFF;--transport-transport_region-secondary-background: #3E5932;--transport-transport_region-secondary-text: #FFFFFF;--transport-transport_city-primary-background: #334DCE;--transport-transport_city-primary-text: #FFFFFF;--transport-transport_city-secondary-background: #0020C2;--transport-transport_city-secondary-text: #FFFFFF;--transport-transport_airport_express-primary-background: #D44546;--transport-transport_airport_express-primary-text: #000000;--transport-transport_airport_express-secondary-background: #C91618;--transport-transport_airport_express-secondary-text: #FFFFFF;--transport-transport_boat-primary-background: #4C9599;--transport-transport_boat-primary-text: #FFFFFF;--transport-transport_boat-secondary-background: #397073;--transport-transport_boat-secondary-text: #FFFFFF;--transport-transport_train-primary-background: #BD3685;--transport-transport_train-primary-text: #FFFFFF;--transport-transport_train-secondary-background: #8E2864;--transport-transport_train-secondary-text: #FFFFFF;--transport-transport_airport-primary-background: #D24600;--transport-transport_airport-primary-text: #FFFFFF;--transport-transport_airport-secondary-background: #BF4000;--transport-transport_airport-secondary-text: #FFFFFF;--transport-transport_plane-primary-background: #2B343A;--transport-transport_plane-primary-text: #FFFFFF;--transport-transport_plane-secondary-background: #1A2024;--transport-transport_plane-secondary-text: #FFFFFF;--transport-transport_flexible-primary-background: #D24600;--transport-transport_flexible-primary-text: #FFFFFF;--transport-transport_flexible-secondary-background: #BF4000;--transport-transport_flexible-secondary-text: #FFFFFF;--transport-transport_bike-primary-background: #8F1011;--transport-transport_bike-primary-text: #FFFFFF;--transport-transport_bike-secondary-background: #6F0C0D;--transport-transport_bike-secondary-text: #FFFFFF;--transport-transport_scooter-primary-background: #6B9956;--transport-transport_scooter-primary-text: #000000;--transport-transport_scooter-secondary-background: #507341;--transport-transport_scooter-secondary-text: #FFFFFF;--transport-transport_car-primary-background: #8E2864;--transport-transport_car-primary-text: #FFFFFF;--transport-transport_car-secondary-background: #6A1E4B;--transport-transport_car-secondary-text: #FFFFFF;--transport-transport_other-primary-background: #C7CACC;--transport-transport_other-primary-text: #000000;--transport-transport_other-secondary-background: #8D9398;--transport-transport_other-secondary-text: #000000;--status-valid-primary-background: #86BF6C;--status-valid-primary-text: #000000;--status-valid-secondary-background: #3E5932;--status-valid-secondary-text: #FFFFFF;--status-info-primary-background: #8A98E3;--status-info-primary-text: #000000;--status-info-secondary-background: #000D51;--status-info-secondary-text: #FFFFFF;--status-warning-primary-background: #E6D220;--status-warning-primary-text: #000000;--status-warning-secondary-background: #59520D;--status-warning-secondary-text: #FFFFFF;--status-error-primary-background: #D44546;--status-error-primary-text: #000000;--status-error-secondary-background: #54090A;--status-error-secondary-text: #FFFFFF}}.theme-module__static-background-background_0{background-color:var(--static-background-background_0-background);color:var(--static-background-background_0-text)}.theme-module__static-background-background_1{background-color:var(--static-background-background_1-background);color:var(--static-background-background_1-text)}.theme-module__static-background-background_2{background-color:var(--static-background-background_2-background);color:var(--static-background-background_2-text)}.theme-module__static-background-background_3{background-color:var(--static-background-background_3-background);color:var(--static-background-background_3-text)}.theme-module__static-background-background_accent_0{background-color:var(--static-background-background_accent_0-background);color:var(--static-background-background_accent_0-text)}.theme-module__static-background-background_accent_1{background-color:var(--static-background-background_accent_1-background);color:var(--static-background-background_accent_1-text)}.theme-module__static-background-background_accent_2{background-color:var(--static-background-background_accent_2-background);color:var(--static-background-background_accent_2-text)}.theme-module__static-background-background_accent_3{background-color:var(--static-background-background_accent_3-background);color:var(--static-background-background_accent_3-text)}.theme-module__static-background-background_accent_4{background-color:var(--static-background-background_accent_4-background);color:var(--static-background-background_accent_4-text)}.theme-module__static-background-background_accent_5{background-color:var(--static-background-background_accent_5-background);color:var(--static-background-background_accent_5-text)}.theme-module__static-zone_selection-from{background-color:var(--static-zone_selection-from-background);color:var(--static-zone_selection-from-text)}.theme-module__static-zone_selection-to{background-color:var(--static-zone_selection-to-background);color:var(--static-zone_selection-to-text)}.theme-module__transport-transport_region-primary{background-color:var(--transport-transport_region-primary-background);color:var(--transport-transport_region-primary-text)}.theme-module__transport-transport_region-secondary{background-color:var(--transport-transport_region-secondary-background);color:var(--transport-transport_region-secondary-text)}.theme-module__transport-transport_city-primary{background-color:var(--transport-transport_city-primary-background);color:var(--transport-transport_city-primary-text)}.theme-module__transport-transport_city-secondary{background-color:var(--transport-transport_city-secondary-background);color:var(--transport-transport_city-secondary-text)}.theme-module__transport-transport_airport_express-primary{background-color:var(--transport-transport_airport_express-primary-background);color:var(--transport-transport_airport_express-primary-text)}.theme-module__transport-transport_airport_express-secondary{background-color:var(--transport-transport_airport_express-secondary-background);color:var(--transport-transport_airport_express-secondary-text)}.theme-module__transport-transport_boat-primary{background-color:var(--transport-transport_boat-primary-background);color:var(--transport-transport_boat-primary-text)}.theme-module__transport-transport_boat-secondary{background-color:var(--transport-transport_boat-secondary-background);color:var(--transport-transport_boat-secondary-text)}.theme-module__transport-transport_train-primary{background-color:var(--transport-transport_train-primary-background);color:var(--transport-transport_train-primary-text)}.theme-module__transport-transport_train-secondary{background-color:var(--transport-transport_train-secondary-background);color:var(--transport-transport_train-secondary-text)}.theme-module__transport-transport_airport-primary{background-color:var(--transport-transport_airport-primary-background);color:var(--transport-transport_airport-primary-text)}.theme-module__transport-transport_airport-secondary{background-color:var(--transport-transport_airport-secondary-background);color:var(--transport-transport_airport-secondary-text)}.theme-module__transport-transport_plane-primary{background-color:var(--transport-transport_plane-primary-background);color:var(--transport-transport_plane-primary-text)}.theme-module__transport-transport_plane-secondary{background-color:var(--transport-transport_plane-secondary-background);color:var(--transport-transport_plane-secondary-text)}.theme-module__transport-transport_flexible-primary{background-color:var(--transport-transport_flexible-primary-background);color:var(--transport-transport_flexible-primary-text)}.theme-module__transport-transport_flexible-secondary{background-color:var(--transport-transport_flexible-secondary-background);color:var(--transport-transport_flexible-secondary-text)}.theme-module__transport-transport_bike-primary{background-color:var(--transport-transport_bike-primary-background);color:var(--transport-transport_bike-primary-text)}.theme-module__transport-transport_bike-secondary{background-color:var(--transport-transport_bike-secondary-background);color:var(--transport-transport_bike-secondary-text)}.theme-module__transport-transport_scooter-primary{background-color:var(--transport-transport_scooter-primary-background);color:var(--transport-transport_scooter-primary-text)}.theme-module__transport-transport_scooter-secondary{background-color:var(--transport-transport_scooter-secondary-background);color:var(--transport-transport_scooter-secondary-text)}.theme-module__transport-transport_car-primary{background-color:var(--transport-transport_car-primary-background);color:var(--transport-transport_car-primary-text)}.theme-module__transport-transport_car-secondary{background-color:var(--transport-transport_car-secondary-background);color:var(--transport-transport_car-secondary-text)}.theme-module__transport-transport_other-primary{background-color:var(--transport-transport_other-primary-background);color:var(--transport-transport_other-primary-text)}.theme-module__transport-transport_other-secondary{background-color:var(--transport-transport_other-secondary-background);color:var(--transport-transport_other-secondary-text)}.theme-module__interactive-interactive_0{background-color:var(--interactive-interactive_0-default-background);color:var(--interactive-interactive_0-default-text)}.theme-module__interactive-interactive_0:hover{background-color:var(--interactive-interactive_0-hover-background);color:var(--interactive-interactive_0-hover-text)}.theme-module__interactive-interactive_0:active{background-color:var(--interactive-interactive_0-active-background);color:var(--interactive-interactive_0-active-text)}.theme-module__interactive-interactive_0:disabled{background-color:var(--interactive-interactive_0-disabled-background);color:var(--interactive-interactive_0-disabled-text)}.theme-module__interactive-interactive_1{background-color:var(--interactive-interactive_1-default-background);color:var(--interactive-interactive_1-default-text)}.theme-module__interactive-interactive_1:hover{background-color:var(--interactive-interactive_1-hover-background);color:var(--interactive-interactive_1-hover-text)}.theme-module__interactive-interactive_1:active{background-color:var(--interactive-interactive_1-active-background);color:var(--interactive-interactive_1-active-text)}.theme-module__interactive-interactive_1:disabled{background-color:var(--interactive-interactive_1-disabled-background);color:var(--interactive-interactive_1-disabled-text)}.theme-module__interactive-interactive_2{background-color:var(--interactive-interactive_2-default-background);color:var(--interactive-interactive_2-default-text)}.theme-module__interactive-interactive_2:hover{background-color:var(--interactive-interactive_2-hover-background);color:var(--interactive-interactive_2-hover-text)}.theme-module__interactive-interactive_2:active{background-color:var(--interactive-interactive_2-active-background);color:var(--interactive-interactive_2-active-text)}.theme-module__interactive-interactive_2:disabled{background-color:var(--interactive-interactive_2-disabled-background);color:var(--interactive-interactive_2-disabled-text)}.theme-module__interactive-interactive_3{background-color:var(--interactive-interactive_3-default-background);color:var(--interactive-interactive_3-default-text)}.theme-module__interactive-interactive_3:hover{background-color:var(--interactive-interactive_3-hover-background);color:var(--interactive-interactive_3-hover-text)}.theme-module__interactive-interactive_3:active{background-color:var(--interactive-interactive_3-active-background);color:var(--interactive-interactive_3-active-text)}.theme-module__interactive-interactive_3:disabled{background-color:var(--interactive-interactive_3-disabled-background);color:var(--interactive-interactive_3-disabled-text)}.theme-module__interactive-interactive_destructive{background-color:var(--interactive-interactive_destructive-default-background);color:var(--interactive-interactive_destructive-default-text)}.theme-module__interactive-interactive_destructive:hover{background-color:var(--interactive-interactive_destructive-hover-background);color:var(--interactive-interactive_destructive-hover-text)}.theme-module__interactive-interactive_destructive:active{background-color:var(--interactive-interactive_destructive-active-background);color:var(--interactive-interactive_destructive-active-text)}.theme-module__interactive-interactive_destructive:disabled{background-color:var(--interactive-interactive_destructive-disabled-background);color:var(--interactive-interactive_destructive-disabled-text)}.theme-module__status-valid-primary{background-color:var(--status-valid-primary-background);color:var(--status-valid-primary-text)}.theme-module__status-valid-secondary{background-color:var(--status-valid-secondary-background);color:var(--status-valid-secondary-text)}.theme-module__status-info-primary{background-color:var(--status-info-primary-background);color:var(--status-info-primary-text)}.theme-module__status-info-secondary{background-color:var(--status-info-secondary-background);color:var(--status-info-secondary-text)}.theme-module__status-warning-primary{background-color:var(--status-warning-primary-background);color:var(--status-warning-primary-text)}.theme-module__status-warning-secondary{background-color:var(--status-warning-secondary-background);color:var(--status-warning-secondary-text)}.theme-module__status-error-primary{background-color:var(--status-error-primary-background);color:var(--status-error-primary-text)}.theme-module__status-error-secondary{background-color:var(--status-error-secondary-background);color:var(--status-error-secondary-text)}.assistant-module__wrapper{background-color:var(--static-background-background_accent_0-background)}.assistant-module__container{background-color:var(--static-background-background_accent_0-background);height:100%;position:relative;display:grid;grid-template-areas:"main" "alternatives"}.assistant-module__main{grid-area:main;display:grid;grid-template-columns:1fr 1fr;grid-gap:var(--spacings-xLarge);width:100%;max-width:var(--maxPageWidth);padding:var(--spacings-xLarge);margin:0 auto}.assistant-module__input{display:flex;flex-direction:column}.assistant-module__input>:last-child{margin-top:.375rem}.assistant-module__button{text-align:center}.assistant-module__heading{color:var(--static-background-background_accent_0-text);margin-bottom:var(--spacings-medium)}.assistant-module__alternativesWrapper{grid-area:alternatives;width:100%;background-color:var(--static-background-background_accent_1-background)}.assistant-module__alternatives{gap:var(--spacings-medium);padding:var(--spacings-xLarge);width:100%;max-width:var(--maxPageWidth);margin:0 auto;padding-bottom:5.75rem;display:flex;flex-direction:column;gap:var(--spacings-large)}.assistant-module__buttons{grid-area:alternatives;align-self:end;display:flex;justify-content:flex-end;gap:var(--spacings-medium);width:100%;max-width:var(--maxPageWidth);margin:0 auto;padding:0 var(--spacings-xLarge) var(--spacings-xLarge) var(--spacings-xLarge);z-index:10;position:absolute;left:0;right:0}.assistant-module__searchInputButton{height:var(--height);border:none;background:none;padding:var(--spacings-small);border-bottom-right-radius:.75rem;border-top-right-radius:.75rem;cursor:pointer;display:flex;align-items:center}@media (max-width: 650px){.assistant-module__container{grid-template-areas:"main" "buttons" "alternatives"}.assistant-module__main{display:flex;flex-direction:column;padding-bottom:var(--spacings-xLarge)!important}.assistant-module__buttons{grid-area:buttons;display:grid;grid-template-columns:1fr 1fr;position:relative}.assistant-module__alternatives{padding-bottom:var(--spacings-xLarge)}}.assistant-module__contentContainer{margin:0 auto;max-width:var(--maxPageWidth);padding:var(--spacings-xLarge);display:flex;flex-direction:column;gap:var(--spacings-medium)}.assistant-module__tripResults{display:flex;flex-direction:column;gap:var(--spacings-large)}.assistant-module__nonTransitResult{display:flex;flex-wrap:wrap;gap:var(--spacings-medium)}.assistant-module__spanColumns{grid-column:1 / -1}:root{--baseTypo-body__primary-fontSize: 1rem;--baseTypo-body__primary-lineHeight: 1.25rem;--baseTypo-body__primary-letterSpacing: .03125rem;--baseTypo-body__primary--bold-fontSize: 1rem;--baseTypo-body__primary--bold-lineHeight: 1.25rem;--baseTypo-body__primary--bold-letterSpacing: .03125rem;--baseTypo-body__primary--bold-fontWeight: 500;--baseTypo-body__primary--strike-fontSize: 1rem;--baseTypo-body__primary--strike-lineHeight: 1.25rem;--baseTypo-body__primary--strike-letterSpacing: .03125rem;--baseTypo-body__primary--strike-textDecorationLine: line-through;--baseTypo-body__primary--underline-fontSize: 1rem;--baseTypo-body__primary--underline-lineHeight: 1.25rem;--baseTypo-body__primary--underline-letterSpacing: .03125rem;--baseTypo-body__primary--underline-textDecorationLine: underline;--baseTypo-body__primary--big-fontSize: 1.5rem;--baseTypo-body__primary--big-lineHeight: 1.75rem;--baseTypo-body__primary--big-letterSpacing: .015625rem;--baseTypo-body__primary--big--bold-fontSize: 1.5rem;--baseTypo-body__primary--big--bold-lineHeight: 1.75rem;--baseTypo-body__primary--big--bold-letterSpacing: .015625rem;--baseTypo-body__primary--big--bold-fontWeight: bold;--baseTypo-body__primary--jumbo-fontSize: 2.25rem;--baseTypo-body__primary--jumbo-lineHeight: 2.5rem;--baseTypo-body__primary--jumbo-letterSpacing: .015625rem;--baseTypo-body__primary--jumbo--bold-fontSize: 2.25rem;--baseTypo-body__primary--jumbo--bold-lineHeight: 2.5rem;--baseTypo-body__primary--jumbo--bold-letterSpacing: .015625rem;--baseTypo-body__primary--jumbo--bold-fontWeight: bold;--baseTypo-body__secondary-fontSize: .875rem;--baseTypo-body__secondary-lineHeight: 1.25rem;--baseTypo-body__secondary-letterSpacing: .015625rem;--baseTypo-body__secondary--bold-fontSize: .875rem;--baseTypo-body__secondary--bold-lineHeight: 1.25rem;--baseTypo-body__secondary--bold-letterSpacing: .015625rem;--baseTypo-body__secondary--bold-fontWeight: 500;--baseTypo-body__tertiary-fontSize: .75rem;--baseTypo-body__tertiary-lineHeight: 1rem;--baseTypo-body__tertiary-letterSpacing: .025rem;--baseTypo-body__tertiary--bold-fontSize: .75rem;--baseTypo-body__tertiary--bold-lineHeight: 1rem;--baseTypo-body__tertiary--bold-letterSpacing: .025rem;--baseTypo-body__tertiary--bold-fontWeight: 500;--baseTypo-body__tertiary--strike-fontSize: .75rem;--baseTypo-body__tertiary--strike-lineHeight: 1rem;--baseTypo-body__tertiary--strike-letterSpacing: .025rem;--baseTypo-body__tertiary--strike-textDecorationLine: line-through;--baseTypo-body__tertiary--uppercase-fontSize: 1rem;--baseTypo-body__tertiary--uppercase-lineHeight: 1.25rem;--baseTypo-body__tertiary--uppercase-letterSpacing: .03125rem;--baseTypo-body__tertiary--uppercase-textTransform: uppercase;--baseTypo-heading__title-fontSize: 1rem;--baseTypo-heading__title-lineHeight: 1.25rem;--baseTypo-heading__title-letterSpacing: .03125rem;--baseTypo-heading__title-fontWeight: bold;--baseTypo-heading__component-fontSize: 1rem;--baseTypo-heading__component-lineHeight: 1.25rem;--baseTypo-heading__component-letterSpacing: .03125rem;--baseTypo-heading__component-fontWeight: 500;--baseTypo-heading__paragraph-fontSize: 1rem;--baseTypo-heading__paragraph-lineHeight: 1.25rem;--baseTypo-heading__paragraph-letterSpacing: .03125rem;--baseTypo-heading__paragraph-fontWeight: 500;--baseTypo-heading--medium-fontSize: 1.25rem;--baseTypo-heading--medium-lineHeight: 1.5rem;--baseTypo-heading--medium-letterSpacing: .03125rem;--baseTypo-heading--medium-fontWeight: bold;--baseTypo-heading--big-fontSize: 1.5rem;--baseTypo-heading--big-lineHeight: 1.75rem;--baseTypo-heading--big-letterSpacing: -.019375rem;--baseTypo-heading--big-fontWeight: bold;--baseTypo-heading--jumbo-fontSize: 2rem;--baseTypo-heading--jumbo-lineHeight: 2.375rem;--baseTypo-heading--jumbo-letterSpacing: -.019375rem;--baseTypo-heading--jumbo-fontWeight: bold;--baseTypo-label__uppercase-fontSize: .625rem;--baseTypo-label__uppercase-lineHeight: 1rem;--baseTypo-label__uppercase-textTransform: uppercase;--font-main: "Roboto", sans-serif}html{font-family:var(--font-main);font-size:100%}.typography-module__typo-body__primary{font-size:var(--baseTypo-body__primary-fontSize, 1rem);line-height:var(--baseTypo-body__primary-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__primary-letterSpacing, .03125rem)}.typography-module__typo-body__primary--bold{font-size:var(--baseTypo-body__primary--bold-fontSize, 1rem);line-height:var(--baseTypo-body__primary--bold-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__primary--bold-letterSpacing, .03125rem);font-weight:var(--baseTypo-body__primary--bold-fontWeight, 500)}.typography-module__typo-body__primary--strike{font-size:var(--baseTypo-body__primary--strike-fontSize, 1rem);line-height:var(--baseTypo-body__primary--strike-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__primary--strike-letterSpacing, .03125rem);text-decoration:var(--baseTypo-body__primary--strike-textDecorationLine, line-through)}.typography-module__typo-body__primary--underline{font-size:var(--baseTypo-body__primary--underline-fontSize, 1rem);line-height:var(--baseTypo-body__primary--underline-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__primary--underline-letterSpacing, .03125rem);text-decoration:var(--baseTypo-body__primary--underline-textDecorationLine, underline)}.typography-module__typo-body__primary--big{font-size:var(--baseTypo-body__primary--big-fontSize, 1.5rem);line-height:var(--baseTypo-body__primary--big-lineHeight, 1.75rem);letter-spacing:var(--baseTypo-body__primary--big-letterSpacing, .015625rem)}.typography-module__typo-body__primary--big--bold{font-size:var(--baseTypo-body__primary--big--bold-fontSize, 1.5rem);line-height:var(--baseTypo-body__primary--big--bold-lineHeight, 1.75rem);letter-spacing:var(--baseTypo-body__primary--big--bold-letterSpacing, .015625rem);font-weight:var(--baseTypo-body__primary--big--bold-fontWeight, bold)}.typography-module__typo-body__primary--jumbo{font-size:var(--baseTypo-body__primary--jumbo-fontSize, 2.25rem);line-height:var(--baseTypo-body__primary--jumbo-lineHeight, 2.5rem);letter-spacing:var(--baseTypo-body__primary--jumbo-letterSpacing, .015625rem)}.typography-module__typo-body__primary--jumbo--bold{font-size:var(--baseTypo-body__primary--jumbo--bold-fontSize, 2.25rem);line-height:var(--baseTypo-body__primary--jumbo--bold-lineHeight, 2.5rem);letter-spacing:var(--baseTypo-body__primary--jumbo--bold-letterSpacing, .015625rem);font-weight:var(--baseTypo-body__primary--jumbo--bold-fontWeight, bold)}.typography-module__typo-body__secondary{font-size:var(--baseTypo-body__secondary-fontSize, .875rem);line-height:var(--baseTypo-body__secondary-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__secondary-letterSpacing, .015625rem)}.typography-module__typo-body__secondary--bold{font-size:var(--baseTypo-body__secondary--bold-fontSize, .875rem);line-height:var(--baseTypo-body__secondary--bold-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__secondary--bold-letterSpacing, .015625rem);font-weight:var(--baseTypo-body__secondary--bold-fontWeight, 500)}.typography-module__typo-body__tertiary{font-size:var(--baseTypo-body__tertiary-fontSize, .75rem);line-height:var(--baseTypo-body__tertiary-lineHeight, 1rem);letter-spacing:var(--baseTypo-body__tertiary-letterSpacing, .025rem)}.typography-module__typo-body__tertiary--bold{font-size:var(--baseTypo-body__tertiary--bold-fontSize, .75rem);line-height:var(--baseTypo-body__tertiary--bold-lineHeight, 1rem);letter-spacing:var(--baseTypo-body__tertiary--bold-letterSpacing, .025rem);font-weight:var(--baseTypo-body__tertiary--bold-fontWeight, 500)}.typography-module__typo-body__tertiary--strike{font-size:var(--baseTypo-body__tertiary--strike-fontSize, .75rem);line-height:var(--baseTypo-body__tertiary--strike-lineHeight, 1rem);letter-spacing:var(--baseTypo-body__tertiary--strike-letterSpacing, .025rem);text-decoration:var(--baseTypo-body__tertiary--strike-textDecorationLine, line-through)}.typography-module__typo-body__tertiary--uppercase{font-size:var(--baseTypo-body__tertiary--uppercase-fontSize, 1rem);line-height:var(--baseTypo-body__tertiary--uppercase-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__tertiary--uppercase-letterSpacing, .03125rem);text-transform:var(--baseTypo-body__tertiary--uppercase-textTransform, uppercase)}.typography-module__typo-heading__title{font-size:var(--baseTypo-heading__title-fontSize, 1rem);line-height:var(--baseTypo-heading__title-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-heading__title-letterSpacing, .03125rem);font-weight:var(--baseTypo-heading__title-fontWeight, bold)}.typography-module__typo-heading__component{font-size:var(--baseTypo-heading__component-fontSize, 1rem);line-height:var(--baseTypo-heading__component-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-heading__component-letterSpacing, .03125rem);font-weight:var(--baseTypo-heading__component-fontWeight, 500)}.typography-module__typo-heading__paragraph{font-size:var(--baseTypo-heading__paragraph-fontSize, 1rem);line-height:var(--baseTypo-heading__paragraph-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-heading__paragraph-letterSpacing, .03125rem);font-weight:var(--baseTypo-heading__paragraph-fontWeight, 500)}.typography-module__typo-heading--medium{font-size:var(--baseTypo-heading--medium-fontSize, 1.25rem);line-height:var(--baseTypo-heading--medium-lineHeight, 1.5rem);letter-spacing:var(--baseTypo-heading--medium-letterSpacing, .03125rem);font-weight:var(--baseTypo-heading--medium-fontWeight, bold)}.typography-module__typo-heading--big{font-size:var(--baseTypo-heading--big-fontSize, 1.5rem);line-height:var(--baseTypo-heading--big-lineHeight, 1.75rem);letter-spacing:var(--baseTypo-heading--big-letterSpacing, -.019375rem);font-weight:var(--baseTypo-heading--big-fontWeight, bold)}.typography-module__typo-heading--jumbo{font-size:var(--baseTypo-heading--jumbo-fontSize, 2rem);line-height:var(--baseTypo-heading--jumbo-lineHeight, 2.375rem);letter-spacing:var(--baseTypo-heading--jumbo-letterSpacing, -.019375rem);font-weight:var(--baseTypo-heading--jumbo-fontWeight, bold)}.typography-module__typo-label__uppercase{font-size:var(--baseTypo-label__uppercase-fontSize, .625rem);line-height:var(--baseTypo-label__uppercase-lineHeight, 1rem);text-transform:var(--baseTypo-label__uppercase-textTransform, uppercase)}.search-module__container{--height: 2.75rem;min-width:20rem;max-width:30rem;display:flex;position:relative;border-radius:.75rem;background-color:var(--static-background-background_0-background)}.search-module__container:focus-within{outline:0;box-shadow:inset 0 0 0 var(--border-width-medium) var(--interactive-interactive_2-outline-background)}.search-module__label{height:var(--height);min-width:3rem;display:flex;align-items:center;padding:var(--spacings-small);border-bottom-left-radius:.75rem;border-top-left-radius:.75rem}.search-module__inputContainer{flex-grow:1}.search-module__input{height:var(--height);padding:var(--spacings-small);border:none;background:none;width:100%;border-radius:0;color:var(--static-background-background_0-text);outline:0}.search-module__input::placeholder{color:var(--text-colors-secondary);opacity:1}.search-module__menu{width:100%;background-color:var(--static-background-background_0-background);border-radius:.75rem;position:absolute;top:calc(100% + var(--spacings-xSmall));overflow:hidden;max-height:20rem;overflow-y:auto;z-index:100}.search-module__item{padding:var(--spacings-small);height:var(--height);display:flex;align-items:center}.search-module__item:not(:last-child){border-bottom:1px solid var(--border-primary)}.search-module__itemHighlighted{background-color:var(--interactive-interactive_2-active-background);font-weight:700}.search-module__itemIcon{display:flex;align-items:center;padding:var(--spacings-small);padding-right:var(--spacings-xLarge)}.search-module__itemNameBold{font-weight:700}.search-module__itemLocality{color:var(--text-colors-secondary);margin-left:var(--spacings-large)}@media (max-width: 650px){.search-module__container{max-width:100%}}.departures-module__container{background-color:var(--static-background-background_accent_0-background);height:100%;position:relative;display:grid;grid-template-areas:"main"}.departures-module__main{grid-area:main;display:grid;grid-template-columns:1fr 1fr;grid-gap:var(--spacings-xLarge);width:100%;max-width:var(--maxPageWidth);padding:var(--spacings-xLarge);padding-bottom:5.75rem;margin:0 auto}.departures-module__button{text-align:center}.departures-module__heading{color:var(--static-background-background_accent_0-text);margin-bottom:var(--spacings-medium)}.departures-module__geolocationButton{height:var(--height);border:none;background:none;padding:var(--spacings-small);border-bottom-right-radius:.75rem;border-top-right-radius:.75rem;cursor:pointer;display:flex;align-items:center}.departures-module__spanColumns{grid-column:1 / -1}.departures-module__buttons{align-self:end;display:flex;justify-content:flex-end;gap:var(--spacings-medium);width:100%;max-width:var(--maxPageWidth);margin:0 auto;padding:0 var(--spacings-xLarge) var(--spacings-xLarge) var(--spacings-xLarge);z-index:10;position:absolute;left:0;right:0}@media (max-width: 600px){.departures-module__container{grid-template-areas:"main" "buttons"}.departures-module__main{display:flex;flex-direction:column;padding-bottom:var(--spacings-xLarge)!important}.departures-module__buttons{grid-area:buttons;position:relative}}.departures-module__contentContainer{margin:0 auto;max-width:var(--maxPageWidth);padding:var(--spacings-xLarge)}.selector-module__departureDateSelector{display:flex;flex-direction:column}.selector-module__options{--container-height: 2.75rem;--option-height: 2.25rem;--container-border-radius: .75rem;--option-border-radius: var(--border-radius-regular);--number-of-options: 3;display:grid;grid-template-columns:repeat(var(--number-of-options),minmax(0,1fr));padding:var(--spacings-xSmall);background:var(--static-background-background_0-background);width:fit-content;border-radius:var(--container-border-radius);height:var(--container-height);align-items:center}.selector-module__options:focus-within{border-radius:var(--border-radius-regular);outline:0;box-shadow:inset 0 0 0 var(--border-width-medium) var(--interactive-interactive_2-outline-background)}.selector-module__option__text{z-index:2;line-height:1}.selector-module__option__label{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:var(--spacings-small) var(--spacings-medium);border-radius:var(--option-border-radius);height:var(--option-height)}.selector-module__option__input{clip:rect(0 0 0 0);clip-path:inset(100%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;display:block}.selector-module__option__input:checked+.selector-module__option__label{color:var(--interactive-interactive_0-default-text)}.selector-module__option{position:relative}.selector-module__option__selected{background:var(--interactive-interactive_0-default-background);width:95%;height:95%;position:absolute;border-radius:var(--border-radius-regular);top:2.5%;left:2.5%}.selector-module__dateAndTimeSelectorsWrapper{overflow:hidden}.selector-module__dateAndTimeSelectors{display:flex;gap:var(--spacings-medium);overflow:hidden;margin-top:.375rem}.selector-module__dateSelector,.selector-module__timeSelector{--height: 2.75rem;border-radius:var(--border-radius-regular);overflow:hidden;background-color:var(--static-background-background_0-background);display:flex;justify-content:space-between}.selector-module__dateSelector label,.selector-module__timeSelector label,.selector-module__timeSelectorLabel{padding:var(--spacings-medium);padding-right:0;height:var(--height);min-width:3rem}.selector-module__dateSelector input[type=date],.selector-module__timeSelector input[type=time]{height:var(--height);padding:var(--spacings-medium);border:none;background-color:transparent;color:var(--static-background-background_0-text);flex:1;border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.selector-module__calendarSelectorGroup{display:flex}.selector-module__timeSelectorInput{height:var(--height);padding:var(--spacings-medium);color:var(--static-background-background_0-text);border-top-right-radius:.75rem;border-bottom-right-radius:.75rem;display:flex}.selector-module__timeSelectorSegment:focus{background:var(--static-background-background_2-background)}.selector-module__calendarButton{background:var(--static-background-background_0-background);border:none;border-top-right-radius:.75rem;border-bottom-right-radius:.75rem;padding:var(--spacings-xSmall) var(--spacings-medium);cursor:pointer;margin:2px 0}.selector-module__dateSelector input[type=date]:focus,.selector-module__timeSelector input[type=time]:focus{outline:0}.selector-module__dateSelector:focus-within,.selector-module__timeSelector:focus-within{box-shadow:inset 0 0 0 var(--border-width-medium) var(--interactive-interactive_2-outline-background)}.selector-module__calendarDialog{padding:var(--spacings-xSmall);background:var(--static-background-background_0-background);box-shadow:.2rem .2rem .3rem #00000026}.selector-module__calendarDialog__header{display:flex;gap:var(--spacings-medium);justify-content:center;align-items:center;padding:var(--spacings-small)}.selector-module__calendarDialog__headerButtons{background:none;border:none;padding:var(--spacings-xSmall) var(--spacings-medium);cursor:pointer}.selector-module__calendarGrid{width:100%}.selector-module__calendarGrid__cell{padding:var(--spacings-xSmall) var(--spacings-medium);cursor:pointer;text-align:center}.selector-module__calendarGrid__cell[data-disabled]{opacity:.3;cursor:default}.selector-module__calendarGrid__cell[data-selected]{background-color:var(--interactive-interactive_2-active-background);color:var(--interactive-interactive_2-active-text);font-weight:700;border-radius:var(--border-radius-small)}.dark .selector-module__dateSelector input[type=date]::-webkit-calendar-picker-indicator,.dark .selector-module__timeSelector input[type=time]::-webkit-calendar-picker-indicator{filter:invert(1)}@media (max-width: 650px){.selector-module__dateAndTimeSelectors{flex-direction:column;gap:.375rem}.selector-module__options{width:100%}}:root{--ws-icon-size-xLarge: 2.5rem;--ws-colors-header-border-bottom: #ffffff}@media (max-width: 400px){:root{--ws-icon-size-xLarge: 1.75rem}}.widget-module__hidden{display:none}.widget-module__wrapper{background-color:var(--static-background-background_accent_0-background);box-sizing:border-box}.widget-module__wrapper *{box-sizing:border-box}.widget-module__nav{margin:0}.widget-module__tabs{list-style-type:none;display:flex;list-style-position:inside;padding:0;margin:0;gap:var(--spacings-xLarge);color:var(--static-background-background_accent_0-text);border-bottom:1px solid var(--static-background-background_accent_0-text)}.widget-module__tabs a{text-decoration:none;display:block;padding-bottom:var(--spacings-medium);color:var(--static-background-background_accent_0-text);box-sizing:border-box}.widget-module__tabSelected{text-decoration:none;border-bottom:3px solid var(--static-background-background_accent_0-text);font-weight:var(--baseTypo-body__primary--bold-fontWeight, 500)}.widget-module__tabs a:hover{color:var(--static-background-background_accent_1-text)}.widget-module__tabs a:active{color:var(--static-background-background_accent_0-text)}.widget-module__main{padding-left:0;padding-right:0;padding-bottom:2.75rem}.widget-module__heading{margin-bottom:.375rem;font-size:var(--baseTypo-body__primary--bold-fontSize, 1rem);line-height:var(--baseTypo-body__primary--bold-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__primary--bold-letterSpacing, .03125rem);font-weight:var(--baseTypo-body__primary--bold-fontWeight, 500)}.widget-module__inputBoxes{display:flex;flex-direction:column;gap:.375rem;border:0;padding:0;margin:0}.widget-module__search_label{font-size:var(--baseTypo-body__secondary-fontSize, .875rem);line-height:var(--baseTypo-body__secondary-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__secondary-letterSpacing, .015625rem)}.widget-module__search_input::placeholder{color:var(--text-colors-secondary);opacity:1}.widget-module__search_inputLast{border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.widget-module__selector_options__small{grid-template-columns:repeat(2,minmax(0,1fr))}.widget-module__selector_option__label{position:relative;height:95%;width:95%;top:2.5%;left:2.5%}.widget-module__selector_option__input:checked+.widget-module__selector_option__label{color:var(--interactive-interactive_0-default-text);background:var(--interactive-interactive_0-default-background);border-radius:var(--border-radius-regular)}.widget-module__selector_dateAndTimeSelectorsWrapper__hidden{display:none}.widget-module__buttonGroup{display:flex;justify-content:end}.widget-module__button,.widget-module__buttonLightOutline{cursor:pointer;text-align:left;border:0;text-decoration:none;align-items:center;font-size:var(--baseTypo-body__primary-fontSize, 1rem);line-height:var(--baseTypo-body__primary-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__primary-letterSpacing, .03125rem);display:flex;flex-wrap:nowrap;gap:var(--spacings-small);background:transparent;color:currentColor;transition:all .1s ease-in;padding:var(--spacings-medium);border-radius:var(--border-radius-regular)}.widget-module__button span,.widget-module__buttonLightOutline span{display:block;flex:1}.widget-module__button,.widget-module__button:visited{background-color:var(--interactive-interactive_0-default-background);color:var(--interactive-interactive_0-default-text);box-shadow:inset 0 0 0 var(--border-width-slim) var(--interactive-interactive_0-default-text)}.widget-module__button:hover{background-color:var(--interactive-interactive_0-hover-background);color:var(--interactive-interactive_0-hover-text)}.widget-module__button:active{background-color:var(--interactive-interactive_0-active-background);color:var(--interactive-interactive_0-active-text)}.widget-module__button:disabled,.widget-module__button.widget-module__button--disabled{background-color:var(--interactive-interactive_0-disabled-background);color:var(--interactive-interactive_0-disabled-text)}.widget-module__button:focus{outline:0;box-shadow:inset 0 0 0 var(--border-width-medium) var(--interactive-interactive_0-outline-background)}.widget-module__buttonLightOutline,.widget-module__buttonLightOutline:visited{background-color:var(--interactive-interactive_0-default-background);color:var(--interactive-interactive_0-default-text);box-shadow:inset 0 0 0 var(--border-width-slim) var(--interactive-interactive_0-default-text)}.widget-module__buttonLightOutline:hover{background-color:var(--interactive-interactive_0-hover-background);color:var(--interactive-interactive_0-hover-text)}.widget-module__buttonLightOutline:active{background-color:var(--interactive-interactive_1-hover-background);color:var(--interactive-interactive_1-active-text)}.widget-module__buttonLightOutline:disabled,.widget-module__buttonLightOutline.widget-module__button--disabled{background-color:var(--interactive-interactive_0-disabled-background);color:var(--interactive-interactive_0-disabled-text)}.widget-module__buttonLightOutline:focus{outline:0;box-shadow:inset 0 0 0 var(--border-width-medium) var(--interactive-interactive_0-active-background)}.widget-module__listItem{padding:var(--spacings-small);display:flex;align-items:center;gap:var(--spacings-small)}.widget-module__listItem:not(:last-child){border-bottom:1px solid var(--border-primary)}.widget-module__listItem[aria-selected=true],.widget-module__listItem:hover{background-color:var(--interactive-interactive_2-active-background);font-weight:700}.widget-module__itemIcon{padding:var(--spacings-small)}.widget-module__itemIcon img{display:block;height:1.25rem}.widget-module__itemLocality{margin-left:var(--spacings-small)}.widget-module__popupContainer{left:0;list-style-position:inside;padding:0;margin:0}.widget-module__messageBox{background:var(--static-status-error-background);color:var(--static-status-error-text);display:flex;padding:var(--spacings-medium);border-radius:var(--border-radius-regular)}.widget-module__messageBox[hidden]{display:none}.widget-module__inheritFont,.widget-module__inheritFont *{font-family:inherit!important}.widget-module__singleColumnLayout .widget-module__main{grid-template-columns:1fr}.widget-module__singleColumnLayout .widget-module__search_container{max-width:unset}.widget-module__singleColumnLayout .widget-module__selector_options{width:100%} +@import"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap";.assistant-module__wrapper{background-color:token("color.background.accent.0.background")}.assistant-module__container{background-color:token("color.background.accent.0.background");height:100%;position:relative;display:grid;grid-template-areas:"main" "alternatives"}.assistant-module__main{grid-area:main;display:grid;grid-template-columns:1fr 1fr;grid-gap:token("spacing.xLarge");width:100%;max-width:var(--maxPageWidth);padding:token("spacing.xLarge");margin:0 auto}.assistant-module__input{display:flex;flex-direction:column}.assistant-module__input>:last-child{margin-top:.375rem}.assistant-module__button{text-align:center}.assistant-module__heading{color:token("color.background.accent.0.foreground.primary");margin-bottom:token("spacing.medium")}.assistant-module__alternativesWrapper{grid-area:alternatives;width:100%;background-color:token("color.background.accent.1.background")}.assistant-module__alternatives{gap:token("spacing.medium");padding:token("spacing.xLarge");width:100%;max-width:var(--maxPageWidth);margin:0 auto;padding-bottom:5.75rem;display:flex;flex-direction:column;gap:token("spacing.large")}.assistant-module__buttons{grid-area:alternatives;align-self:end;display:flex;justify-content:flex-end;gap:token("spacing.medium");width:100%;max-width:var(--maxPageWidth);margin:0 auto;padding:0 token("spacing.xLarge") token("spacing.xLarge") token("spacing.xLarge");z-index:10;position:absolute;left:0;right:0}.assistant-module__searchInputButton{height:var(--height);border:none;background:none;padding:token("spacing.small");border-bottom-right-radius:.75rem;border-top-right-radius:.75rem;cursor:pointer;display:flex;align-items:center}@media (max-width: 650px){.assistant-module__container{grid-template-areas:"main" "buttons" "alternatives"}.assistant-module__main{display:flex;flex-direction:column;padding-bottom:token("spacing.xLarge")!important}.assistant-module__buttons{grid-area:buttons;display:grid;grid-template-columns:1fr 1fr;position:relative}.assistant-module__alternatives{padding-bottom:token("spacing.xLarge")}}.assistant-module__contentContainer{margin:0 auto;max-width:var(--maxPageWidth);padding:token("spacing.xLarge");display:flex;flex-direction:column;gap:token("spacing.medium")}.assistant-module__tripResults{display:flex;flex-direction:column;gap:token("spacing.large")}.assistant-module__nonTransitResult{display:flex;flex-wrap:wrap;gap:token("spacing.medium")}.assistant-module__spanColumns{grid-column:1 / -1}:root{--baseTypo-body__primary-fontSize: 1rem;--baseTypo-body__primary-lineHeight: 1.25rem;--baseTypo-body__primary-letterSpacing: .03125rem;--baseTypo-body__primary--bold-fontSize: 1rem;--baseTypo-body__primary--bold-lineHeight: 1.25rem;--baseTypo-body__primary--bold-letterSpacing: .03125rem;--baseTypo-body__primary--bold-fontWeight: 500;--baseTypo-body__primary--strike-fontSize: 1rem;--baseTypo-body__primary--strike-lineHeight: 1.25rem;--baseTypo-body__primary--strike-letterSpacing: .03125rem;--baseTypo-body__primary--strike-textDecorationLine: line-through;--baseTypo-body__primary--underline-fontSize: 1rem;--baseTypo-body__primary--underline-lineHeight: 1.25rem;--baseTypo-body__primary--underline-letterSpacing: .03125rem;--baseTypo-body__primary--underline-textDecorationLine: underline;--baseTypo-body__primary--big-fontSize: 1.5rem;--baseTypo-body__primary--big-lineHeight: 1.75rem;--baseTypo-body__primary--big-letterSpacing: .015625rem;--baseTypo-body__primary--big--bold-fontSize: 1.5rem;--baseTypo-body__primary--big--bold-lineHeight: 1.75rem;--baseTypo-body__primary--big--bold-letterSpacing: .015625rem;--baseTypo-body__primary--big--bold-fontWeight: bold;--baseTypo-body__primary--jumbo-fontSize: 2.25rem;--baseTypo-body__primary--jumbo-lineHeight: 2.5rem;--baseTypo-body__primary--jumbo-letterSpacing: .015625rem;--baseTypo-body__primary--jumbo--bold-fontSize: 2.25rem;--baseTypo-body__primary--jumbo--bold-lineHeight: 2.5rem;--baseTypo-body__primary--jumbo--bold-letterSpacing: .015625rem;--baseTypo-body__primary--jumbo--bold-fontWeight: bold;--baseTypo-body__secondary-fontSize: .875rem;--baseTypo-body__secondary-lineHeight: 1.25rem;--baseTypo-body__secondary-letterSpacing: .015625rem;--baseTypo-body__secondary--bold-fontSize: .875rem;--baseTypo-body__secondary--bold-lineHeight: 1.25rem;--baseTypo-body__secondary--bold-letterSpacing: .015625rem;--baseTypo-body__secondary--bold-fontWeight: 500;--baseTypo-body__tertiary-fontSize: .75rem;--baseTypo-body__tertiary-lineHeight: 1rem;--baseTypo-body__tertiary-letterSpacing: .025rem;--baseTypo-body__tertiary--bold-fontSize: .75rem;--baseTypo-body__tertiary--bold-lineHeight: 1rem;--baseTypo-body__tertiary--bold-letterSpacing: .025rem;--baseTypo-body__tertiary--bold-fontWeight: 500;--baseTypo-body__tertiary--strike-fontSize: .75rem;--baseTypo-body__tertiary--strike-lineHeight: 1rem;--baseTypo-body__tertiary--strike-letterSpacing: .025rem;--baseTypo-body__tertiary--strike-textDecorationLine: line-through;--baseTypo-body__tertiary--uppercase-fontSize: 1rem;--baseTypo-body__tertiary--uppercase-lineHeight: 1.25rem;--baseTypo-body__tertiary--uppercase-letterSpacing: .03125rem;--baseTypo-body__tertiary--uppercase-textTransform: uppercase;--baseTypo-heading__title-fontSize: 1rem;--baseTypo-heading__title-lineHeight: 1.25rem;--baseTypo-heading__title-letterSpacing: .03125rem;--baseTypo-heading__title-fontWeight: bold;--baseTypo-heading__component-fontSize: 1rem;--baseTypo-heading__component-lineHeight: 1.25rem;--baseTypo-heading__component-letterSpacing: .03125rem;--baseTypo-heading__component-fontWeight: 500;--baseTypo-heading__paragraph-fontSize: 1rem;--baseTypo-heading__paragraph-lineHeight: 1.25rem;--baseTypo-heading__paragraph-letterSpacing: .03125rem;--baseTypo-heading__paragraph-fontWeight: 500;--baseTypo-heading--medium-fontSize: 1.25rem;--baseTypo-heading--medium-lineHeight: 1.5rem;--baseTypo-heading--medium-letterSpacing: .03125rem;--baseTypo-heading--medium-fontWeight: bold;--baseTypo-heading--big-fontSize: 1.5rem;--baseTypo-heading--big-lineHeight: 1.75rem;--baseTypo-heading--big-letterSpacing: -.019375rem;--baseTypo-heading--big-fontWeight: bold;--baseTypo-heading--jumbo-fontSize: 2rem;--baseTypo-heading--jumbo-lineHeight: 2.375rem;--baseTypo-heading--jumbo-letterSpacing: -.019375rem;--baseTypo-heading--jumbo-fontWeight: bold;--baseTypo-label__uppercase-fontSize: .625rem;--baseTypo-label__uppercase-lineHeight: 1rem;--baseTypo-label__uppercase-textTransform: uppercase;--font-main: "Roboto", sans-serif}html{font-family:var(--font-main);font-size:100%}.typography-module__typo-body__primary{font-size:var(--baseTypo-body__primary-fontSize, 1rem);line-height:var(--baseTypo-body__primary-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__primary-letterSpacing, .03125rem)}.typography-module__typo-body__primary--bold{font-size:var(--baseTypo-body__primary--bold-fontSize, 1rem);line-height:var(--baseTypo-body__primary--bold-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__primary--bold-letterSpacing, .03125rem);font-weight:var(--baseTypo-body__primary--bold-fontWeight, 500)}.typography-module__typo-body__primary--strike{font-size:var(--baseTypo-body__primary--strike-fontSize, 1rem);line-height:var(--baseTypo-body__primary--strike-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__primary--strike-letterSpacing, .03125rem);-webkit-text-decoration:var(--baseTypo-body__primary--strike-textDecorationLine, line-through);text-decoration:var(--baseTypo-body__primary--strike-textDecorationLine, line-through)}.typography-module__typo-body__primary--underline{font-size:var(--baseTypo-body__primary--underline-fontSize, 1rem);line-height:var(--baseTypo-body__primary--underline-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__primary--underline-letterSpacing, .03125rem);-webkit-text-decoration:var(--baseTypo-body__primary--underline-textDecorationLine, underline);text-decoration:var(--baseTypo-body__primary--underline-textDecorationLine, underline)}.typography-module__typo-body__primary--big{font-size:var(--baseTypo-body__primary--big-fontSize, 1.5rem);line-height:var(--baseTypo-body__primary--big-lineHeight, 1.75rem);letter-spacing:var(--baseTypo-body__primary--big-letterSpacing, .015625rem)}.typography-module__typo-body__primary--big--bold{font-size:var(--baseTypo-body__primary--big--bold-fontSize, 1.5rem);line-height:var(--baseTypo-body__primary--big--bold-lineHeight, 1.75rem);letter-spacing:var(--baseTypo-body__primary--big--bold-letterSpacing, .015625rem);font-weight:var(--baseTypo-body__primary--big--bold-fontWeight, bold)}.typography-module__typo-body__primary--jumbo{font-size:var(--baseTypo-body__primary--jumbo-fontSize, 2.25rem);line-height:var(--baseTypo-body__primary--jumbo-lineHeight, 2.5rem);letter-spacing:var(--baseTypo-body__primary--jumbo-letterSpacing, .015625rem)}.typography-module__typo-body__primary--jumbo--bold{font-size:var(--baseTypo-body__primary--jumbo--bold-fontSize, 2.25rem);line-height:var(--baseTypo-body__primary--jumbo--bold-lineHeight, 2.5rem);letter-spacing:var(--baseTypo-body__primary--jumbo--bold-letterSpacing, .015625rem);font-weight:var(--baseTypo-body__primary--jumbo--bold-fontWeight, bold)}.typography-module__typo-body__secondary{font-size:var(--baseTypo-body__secondary-fontSize, .875rem);line-height:var(--baseTypo-body__secondary-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__secondary-letterSpacing, .015625rem)}.typography-module__typo-body__secondary--bold{font-size:var(--baseTypo-body__secondary--bold-fontSize, .875rem);line-height:var(--baseTypo-body__secondary--bold-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__secondary--bold-letterSpacing, .015625rem);font-weight:var(--baseTypo-body__secondary--bold-fontWeight, 500)}.typography-module__typo-body__tertiary{font-size:var(--baseTypo-body__tertiary-fontSize, .75rem);line-height:var(--baseTypo-body__tertiary-lineHeight, 1rem);letter-spacing:var(--baseTypo-body__tertiary-letterSpacing, .025rem)}.typography-module__typo-body__tertiary--bold{font-size:var(--baseTypo-body__tertiary--bold-fontSize, .75rem);line-height:var(--baseTypo-body__tertiary--bold-lineHeight, 1rem);letter-spacing:var(--baseTypo-body__tertiary--bold-letterSpacing, .025rem);font-weight:var(--baseTypo-body__tertiary--bold-fontWeight, 500)}.typography-module__typo-body__tertiary--strike{font-size:var(--baseTypo-body__tertiary--strike-fontSize, .75rem);line-height:var(--baseTypo-body__tertiary--strike-lineHeight, 1rem);letter-spacing:var(--baseTypo-body__tertiary--strike-letterSpacing, .025rem);-webkit-text-decoration:var(--baseTypo-body__tertiary--strike-textDecorationLine, line-through);text-decoration:var(--baseTypo-body__tertiary--strike-textDecorationLine, line-through)}.typography-module__typo-body__tertiary--uppercase{font-size:var(--baseTypo-body__tertiary--uppercase-fontSize, 1rem);line-height:var(--baseTypo-body__tertiary--uppercase-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__tertiary--uppercase-letterSpacing, .03125rem);text-transform:var(--baseTypo-body__tertiary--uppercase-textTransform, uppercase)}.typography-module__typo-heading__title{font-size:var(--baseTypo-heading__title-fontSize, 1rem);line-height:var(--baseTypo-heading__title-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-heading__title-letterSpacing, .03125rem);font-weight:var(--baseTypo-heading__title-fontWeight, bold)}.typography-module__typo-heading__component{font-size:var(--baseTypo-heading__component-fontSize, 1rem);line-height:var(--baseTypo-heading__component-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-heading__component-letterSpacing, .03125rem);font-weight:var(--baseTypo-heading__component-fontWeight, 500)}.typography-module__typo-heading__paragraph{font-size:var(--baseTypo-heading__paragraph-fontSize, 1rem);line-height:var(--baseTypo-heading__paragraph-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-heading__paragraph-letterSpacing, .03125rem);font-weight:var(--baseTypo-heading__paragraph-fontWeight, 500)}.typography-module__typo-heading--medium{font-size:var(--baseTypo-heading--medium-fontSize, 1.25rem);line-height:var(--baseTypo-heading--medium-lineHeight, 1.5rem);letter-spacing:var(--baseTypo-heading--medium-letterSpacing, .03125rem);font-weight:var(--baseTypo-heading--medium-fontWeight, bold)}.typography-module__typo-heading--big{font-size:var(--baseTypo-heading--big-fontSize, 1.5rem);line-height:var(--baseTypo-heading--big-lineHeight, 1.75rem);letter-spacing:var(--baseTypo-heading--big-letterSpacing, -.019375rem);font-weight:var(--baseTypo-heading--big-fontWeight, bold)}.typography-module__typo-heading--jumbo{font-size:var(--baseTypo-heading--jumbo-fontSize, 2rem);line-height:var(--baseTypo-heading--jumbo-lineHeight, 2.375rem);letter-spacing:var(--baseTypo-heading--jumbo-letterSpacing, -.019375rem);font-weight:var(--baseTypo-heading--jumbo-fontWeight, bold)}.typography-module__typo-label__uppercase{font-size:var(--baseTypo-label__uppercase-fontSize, .625rem);line-height:var(--baseTypo-label__uppercase-lineHeight, 1rem);text-transform:var(--baseTypo-label__uppercase-textTransform, uppercase)}.search-module__container{--height: 2.75rem;min-width:20rem;max-width:30rem;display:flex;position:relative;border-radius:.75rem;background-color:token("color.background.neutral.0.background")}.search-module__container:focus-within{outline:0;box-shadow:inset 0 0 0 token("border.width.medium") token("color.interactive.2.outline.background")}.search-module__label{height:var(--height);min-width:3rem;display:flex;align-items:center;padding:token("spacing.small");border-bottom-left-radius:.75rem;border-top-left-radius:.75rem}.search-module__inputContainer{flex-grow:1}.search-module__input{height:var(--height);padding:token("spacing.small");border:none;background:none;width:100%;border-radius:0;color:token("color.background.neutral.0.foreground.primary");outline:0}.search-module__input::-moz-placeholder{color:token("color.foreground.dynamic.secondary");opacity:1}.search-module__input::placeholder{color:token("color.foreground.dynamic.secondary");opacity:1}.search-module__menu{width:100%;background-color:token("color.background.neutral.0.background");border-radius:.75rem;position:absolute;top:calc(100% + token("spacing.xSmall"));overflow:hidden;max-height:20rem;overflow-y:auto;z-index:100}.search-module__item{padding:token("spacing.small");height:var(--height);display:flex;align-items:center}.search-module__item:not(:last-child){border-bottom:1px solid token("color.border.primary.background")}.search-module__itemHighlighted{background-color:token("color.interactive.2.active.background");font-weight:700}.search-module__itemIcon{display:flex;align-items:center;padding:token("spacing.small");padding-right:token("spacing.xLarge")}.search-module__itemNameBold{font-weight:700}.search-module__itemLocality{color:token("color.foreground.dynamic.secondary");margin-left:token("spacing.large")}@media (max-width: 650px){.search-module__container{max-width:100%}}.departures-module__container{background-color:token("color.background.accent.0.background");height:100%;position:relative;display:grid;grid-template-areas:"main"}.departures-module__main{grid-area:main;display:grid;grid-template-columns:1fr 1fr;grid-gap:token("spacing.xLarge");width:100%;max-width:var(--maxPageWidth);padding:token("spacing.xLarge");padding-bottom:5.75rem;margin:0 auto}.departures-module__button{text-align:center}.departures-module__heading{color:token("color.background.accent.0.foreground.primary");margin-bottom:token("spacing.medium")}.departures-module__geolocationButton{height:var(--height);border:none;background:none;padding:token("spacing.small");border-bottom-right-radius:.75rem;border-top-right-radius:.75rem;cursor:pointer;display:flex;align-items:center}.departures-module__spanColumns{grid-column:1 / -1}.departures-module__buttons{align-self:end;display:flex;justify-content:flex-end;gap:token("spacing.medium");width:100%;max-width:var(--maxPageWidth);margin:0 auto;padding:0 token("spacing.xLarge") token("spacing.xLarge") token("spacing.xLarge");z-index:10;position:absolute;left:0;right:0}@media (max-width: 600px){.departures-module__container{grid-template-areas:"main" "buttons"}.departures-module__main{display:flex;flex-direction:column;padding-bottom:token("spacing.xLarge")!important}.departures-module__buttons{grid-area:buttons;position:relative}}.departures-module__contentContainer{margin:0 auto;max-width:var(--maxPageWidth);padding:token("spacing.xLarge")}.selector-module__departureDateSelector{display:flex;flex-direction:column}.selector-module__options{--container-height: 2.75rem;--option-height: 2.25rem;--container-border-radius: .75rem;--option-border-radius: token("border.radius.regular");--number-of-options: 3;display:grid;grid-template-columns:repeat(var(--number-of-options),minmax(0,1fr));padding:token("spacing.xSmall");background:token("color.background.neutral.0.background");width:-moz-fit-content;width:fit-content;border-radius:var(--container-border-radius);height:var(--container-height);align-items:center}.selector-module__options:focus-within{border-radius:token("border.radius.regular");outline:0;box-shadow:inset 0 0 0 token("border.width.medium") token("color.interactive.2.outline.background")}.selector-module__option__text{z-index:2;line-height:1}.selector-module__option__label{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:token("spacing.small") token("spacing.medium");border-radius:var(--option-border-radius);height:var(--option-height)}.selector-module__option__input{clip:rect(0 0 0 0);clip-path:inset(100%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;display:block}.selector-module__option__input:checked+.selector-module__option__label{color:token("color.interactive.0.default.foreground.primary")}.selector-module__option{position:relative}.selector-module__option__selected{background:token("color.interactive.0.default.background");width:95%;height:95%;position:absolute;border-radius:token("border.radius.regular");top:2.5%;left:2.5%}.selector-module__dateAndTimeSelectorsWrapper{overflow:hidden}.selector-module__dateAndTimeSelectors{display:flex;gap:token("spacing.medium");overflow:hidden;margin-top:.375rem}.selector-module__dateSelector,.selector-module__timeSelector{--height: 2.75rem;border-radius:token("border.radius.regular");overflow:hidden;background-color:token("color.background.neutral.0.background");display:flex;justify-content:space-between}.selector-module__dateSelector label,.selector-module__timeSelector label,.selector-module__timeSelectorLabel{padding:token("spacing.medium");padding-right:0;height:var(--height);min-width:3rem}.selector-module__dateSelector input[type=date],.selector-module__timeSelector input[type=time]{height:var(--height);padding:token("spacing.medium");border:none;background-color:transparent;color:token("color.background.neutral.0.foreground.primary");flex:1;border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.selector-module__calendarSelectorGroup{display:flex}.selector-module__timeSelectorInput{height:var(--height);padding:token("spacing.medium");color:token("color.background.neutral.0.foreground.primary");border-top-right-radius:.75rem;border-bottom-right-radius:.75rem;display:flex}.selector-module__timeSelectorSegment:focus{background:token("color.background.neutral.2.background")}.selector-module__calendarButton{background:token("color.background.neutral.0.background");border:none;border-top-right-radius:.75rem;border-bottom-right-radius:.75rem;padding:token("spacing.xSmall") token("spacing.medium");cursor:pointer;margin:2px 0}.selector-module__dateSelector input[type=date]:focus,.selector-module__timeSelector input[type=time]:focus{outline:0}.selector-module__dateSelector:focus-within,.selector-module__timeSelector:focus-within{box-shadow:inset 0 0 0 token("border.width.medium") token("color.interactive.2.outline.background")}.selector-module__calendarDialog{padding:token("spacing.xSmall");background:token("color.background.neutral.0.background");box-shadow:.2rem .2rem .3rem #00000026}.selector-module__calendarDialog__header{display:flex;gap:token("spacing.medium");justify-content:center;align-items:center;padding:token("spacing.small")}.selector-module__calendarDialog__headerButtons{background:none;border:none;padding:token("spacing.xSmall") token("spacing.medium");cursor:pointer}.selector-module__calendarGrid{width:100%}.selector-module__calendarGrid__cell{padding:token("spacing.xSmall") token("spacing.medium");cursor:pointer;text-align:center}.selector-module__calendarGrid__cell[data-disabled]{opacity:.3;cursor:default}.selector-module__calendarGrid__cell[data-selected]{background-color:token("color.interactive.2.active.background");color:token("color.interactive.2.active.foreground.primary");font-weight:700;border-radius:token("border.radius.small")}.dark .selector-module__dateSelector input[type=date]::-webkit-calendar-picker-indicator,.dark .selector-module__timeSelector input[type=time]::-webkit-calendar-picker-indicator{filter:invert(1)}@media (max-width: 650px){.selector-module__dateAndTimeSelectors{flex-direction:column;gap:.375rem}.selector-module__options{width:100%}}:root{--ws-icon-size-xLarge: 2.5rem;--ws-colors-header-border-bottom: #ffffff}@media (max-width: 400px){:root{--ws-icon-size-xLarge: 1.75rem}}.widget-module__hidden{display:none}.widget-module__wrapper{background-color:var(--color-background-accent-0-background);box-sizing:border-box}.widget-module__wrapper *{box-sizing:border-box}.widget-module__nav{margin:0}.widget-module__tabs{list-style-type:none;display:flex;list-style-position:inside;padding:0;margin:0;gap:var(--spacing-x-large);color:var(--color-background-accent-0-foreground-primary);border-bottom:1px solid var(--color-background-accent-0-foreground-primary)}.widget-module__tabs a{text-decoration:none;display:block;padding-bottom:var(--spacing-medium);color:var(--color-background-accent-0-foreground-primary);box-sizing:border-box}.widget-module__tabSelected{text-decoration:none;border-bottom:3px solid var(--color-background-accent-0-foreground-primary);font-weight:var(--baseTypo-body__primary--bold-fontWeight, 500)}.widget-module__tabs a:hover{color:var(--color-background-accent-1-foreground-primary)}.widget-module__tabs a:active{color:var(--color-background-accent-0-foreground-primary)}.widget-module__main{padding-left:0;padding-right:0;padding-bottom:2.75rem}.widget-module__heading{margin-bottom:.375rem;font-size:var(--baseTypo-body__primary--bold-fontSize, 1rem);line-height:var(--baseTypo-body__primary--bold-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__primary--bold-letterSpacing, .03125rem);font-weight:var(--baseTypo-body__primary--bold-fontWeight, 500)}.widget-module__inputBoxes{display:flex;flex-direction:column;gap:.375rem;border:0;padding:0;margin:0}.widget-module__search_label{font-size:var(--baseTypo-body__secondary-fontSize, .875rem);line-height:var(--baseTypo-body__secondary-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__secondary-letterSpacing, .015625rem)}.widget-module__search_input::-moz-placeholder{color:var(--color-foreground-dynamic-secondary);opacity:1}.widget-module__search_input::placeholder{color:var(--color-foreground-dynamic-secondary);opacity:1}.widget-module__search_inputLast{border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.widget-module__selector_options__small{grid-template-columns:repeat(2,minmax(0,1fr))}.widget-module__selector_option__label{position:relative;height:95%;width:95%;top:2.5%;left:2.5%}.widget-module__selector_option__input:checked+.widget-module__selector_option__label{color:var(--color-interactive-0-default-foreground-primary);background:var(--color-interactive-0-default-background);border-radius:var(--border-radius-regular)}.widget-module__selector_dateAndTimeSelectorsWrapper__hidden{display:none}.widget-module__buttonGroup{display:flex;justify-content:end}.widget-module__button,.widget-module__buttonLightOutline{cursor:pointer;text-align:left;border:0;text-decoration:none;align-items:center;font-size:var(--baseTypo-body__primary-fontSize, 1rem);line-height:var(--baseTypo-body__primary-lineHeight, 1.25rem);letter-spacing:var(--baseTypo-body__primary-letterSpacing, .03125rem);display:flex;flex-wrap:nowrap;gap:var(--spacing-small);background:transparent;color:currentColor;transition:all .1s ease-in;padding:var(--spacing-medium);border-radius:var(--border-radius-regular)}.widget-module__button span,.widget-module__buttonLightOutline span{display:block;flex:1 1}.widget-module__button,.widget-module__button:visited{background-color:var(--color-interactive-0-default-background);color:var(--color-interactive-0-default-foreground-primary);box-shadow:inset 0 0 0 var(--border-width-slim) var(--color-interactive-0-default-foreground-primary)}.widget-module__button:hover{background-color:var(--color-interactive-0-hover-background);color:var(--color-interactive-0-hover-foreground-primary)}.widget-module__button:active{background-color:var(--color-interactive-0-active-background);color:var(--color-interactive-0-active-foreground-primary)}.widget-module__button:disabled,.widget-module__button.widget-module__button--disabled{background-color:var(--color-interactive-0-disabled-background);color:var(--color-interactive-0-disabled-foreground-primary)}.widget-module__button:focus{outline:0;box-shadow:inset 0 0 0 var(--border-width-medium) var(--color-interactive-0-outline-background)}.widget-module__buttonLightOutline,.widget-module__buttonLightOutline:visited{background-color:var(--color-interactive-0-default-background);color:var(--color-interactive-0-default-foreground-primary);box-shadow:inset 0 0 0 var(--border-width-slim) var(--color-interactive-0-default-foreground-primary)}.widget-module__buttonLightOutline:hover{background-color:var(--color-interactive-0-hover-background);color:var(--color-interactive-0-hover-foreground-primary)}.widget-module__buttonLightOutline:active{background-color:var(--color-interactive-1-hover-background);color:var(--color-interactive-1-active-foreground-primary)}.widget-module__buttonLightOutline:disabled,.widget-module__buttonLightOutline.widget-module__button--disabled{background-color:var(--color-interactive-0-disabled-background);color:var(--color-interactive-0-disabled-foreground-primary)}.widget-module__buttonLightOutline:focus{outline:0;box-shadow:inset 0 0 0 var(--border-width-medium) var(--color-interactive-0-active-background)}.widget-module__listItem{padding:var(--spacing-small);display:flex;align-items:center;gap:var(--spacing-small)}.widget-module__listItem:not(:last-child){border-bottom:1px solid var(--color-border-primary-background)}.widget-module__listItem[aria-selected=true],.widget-module__listItem:hover{background-color:var(--color-interactive-2-active-background);font-weight:700}.widget-module__itemIcon{padding:var(--spacing-small)}.widget-module__itemIcon img{display:block;height:1.25rem}.widget-module__itemLocality{margin-left:var(--spacing-small)}.widget-module__popupContainer{left:0;list-style-position:inside;padding:0;margin:0}.widget-module__messageBox{background:var(--color-status-error-primary-background);color:var(--color-status-error-primary-foreground-primary);display:flex;padding:var(--spacing-medium);border-radius:var(--border-radius-regular)}.widget-module__messageBox[hidden]{display:none}.widget-module__inheritFont,.widget-module__inheritFont *{font-family:inherit!important}.widget-module__singleColumnLayout .widget-module__main{grid-template-columns:1fr}.widget-module__singleColumnLayout .widget-module__search_container{max-width:none;max-width:initial}.widget-module__singleColumnLayout .widget-module__selector_options{width:100%} diff --git a/public/widget/C4Jw9gtgzkA/2.27.0/planner-web.mjs b/public/widget/C4Jw9gtgzkA/2.27.0/planner-web.mjs index 97877fdc..6645fb1a 100644 --- a/public/widget/C4Jw9gtgzkA/2.27.0/planner-web.mjs +++ b/public/widget/C4Jw9gtgzkA/2.27.0/planner-web.mjs @@ -1,6 +1,6 @@ class H { - constructor(e, n, { tabInsertsSuggestions: i, firstOptionSelectionMode: r, scrollIntoViewOptions: s } = {}) { - this.input = e, this.list = n, this.tabInsertsSuggestions = i ?? !0, this.firstOptionSelectionMode = r ?? "none", this.scrollIntoViewOptions = s ?? { block: "nearest", inline: "nearest" }, this.isComposing = !1, n.id || (n.id = `combobox-${Math.random().toString().slice(2, 6)}`), this.ctrlBindings = !!navigator.userAgent.match(/Macintosh/), this.keyboardEventHandler = (c) => W(c, this), this.compositionEventHandler = (c) => N(c, this), this.inputHandler = this.clearSelection.bind(this), e.setAttribute("role", "combobox"), e.setAttribute("aria-controls", n.id), e.setAttribute("aria-expanded", "false"), e.setAttribute("aria-autocomplete", "list"), e.setAttribute("aria-haspopup", "listbox"); + constructor(e, o, { tabInsertsSuggestions: i, firstOptionSelectionMode: s, scrollIntoViewOptions: a } = {}) { + this.input = e, this.list = o, this.tabInsertsSuggestions = i ?? !0, this.firstOptionSelectionMode = s ?? "none", this.scrollIntoViewOptions = a ?? { block: "nearest", inline: "nearest" }, this.isComposing = !1, o.id || (o.id = `combobox-${Math.random().toString().slice(2, 6)}`), this.ctrlBindings = !!navigator.userAgent.match(/Macintosh/), this.keyboardEventHandler = (c) => x(c, this), this.compositionEventHandler = (c) => W(c, this), this.inputHandler = this.clearSelection.bind(this), e.setAttribute("role", "combobox"), e.setAttribute("aria-controls", o.id), e.setAttribute("aria-expanded", "false"), e.setAttribute("aria-autocomplete", "list"), e.setAttribute("aria-haspopup", "listbox"); } destroy() { this.clearSelection(), this.stop(), this.input.removeAttribute("role"), this.input.removeAttribute("aria-controls"), this.input.removeAttribute("aria-expanded"), this.input.removeAttribute("aria-autocomplete"), this.input.removeAttribute("aria-haspopup"); @@ -16,20 +16,20 @@ class H { this.firstOptionSelectionMode === "active" ? (e = Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(T)[0]) === null || e === void 0 || e.setAttribute("data-combobox-option-default", "true") : this.firstOptionSelectionMode === "selected" && this.navigate(1); } navigate(e = 1) { - const n = Array.from(this.list.querySelectorAll('[aria-selected="true"]')).filter(T)[0], i = Array.from(this.list.querySelectorAll('[role="option"]')).filter(T), r = i.indexOf(n); - if (r === i.length - 1 && e === 1 || r === 0 && e === -1) { + const o = Array.from(this.list.querySelectorAll('[aria-selected="true"]')).filter(T)[0], i = Array.from(this.list.querySelectorAll('[role="option"]')).filter(T), s = i.indexOf(o); + if (s === i.length - 1 && e === 1 || s === 0 && e === -1) { this.clearSelection(), this.input.focus(); return; } - let s = e === 1 ? 0 : i.length - 1; - if (n && r >= 0) { - const m = r + e; - m >= 0 && m < i.length && (s = m); + let a = e === 1 ? 0 : i.length - 1; + if (o && s >= 0) { + const m = s + e; + m >= 0 && m < i.length && (a = m); } - const c = i[s]; + const c = i[a]; if (c) for (const m of i) - m.removeAttribute("data-combobox-option-default"), c === m ? (this.input.setAttribute("aria-activedescendant", c.id), c.setAttribute("aria-selected", "true"), x(c), c.scrollIntoView(this.scrollIntoViewOptions)) : m.removeAttribute("aria-selected"); + m.removeAttribute("data-combobox-option-default"), c === m ? (this.input.setAttribute("aria-activedescendant", c.id), c.setAttribute("aria-selected", "true"), N(c), c.scrollIntoView(this.scrollIntoViewOptions)) : m.removeAttribute("aria-selected"); } clearSelection() { this.input.removeAttribute("aria-activedescendant"); @@ -40,7 +40,7 @@ class H { this.clearSelection(), this.indicateDefaultOption(); } } -function W(t, e) { +function x(t, e) { if (!(t.shiftKey || t.metaKey || t.altKey) && !(!e.ctrlBindings && t.ctrlKey) && !e.isComposing) switch (t.key) { case "Enter": @@ -77,77 +77,74 @@ function C(t) { e && e.getAttribute("aria-disabled") !== "true" && M(e, { event: t }); } function I(t, e) { - const n = e.querySelector('[aria-selected="true"], [data-combobox-option-default="true"]'); - return n ? (n.getAttribute("aria-disabled") === "true" || M(n), !0) : !1; + const o = e.querySelector('[aria-selected="true"], [data-combobox-option-default="true"]'); + return o ? (o.getAttribute("aria-disabled") === "true" || M(o), !0) : !1; } function M(t, e) { t.dispatchEvent(new CustomEvent("combobox-commit", { bubbles: !0, detail: e })); } -function x(t) { +function N(t) { t.dispatchEvent(new Event("combobox-select", { bubbles: !0 })); } function T(t) { return !t.hidden && !(t instanceof HTMLInputElement && t.type === "hidden") && (t.offsetWidth > 0 || t.offsetHeight > 0); } -function N(t, e) { +function W(t, e) { e.isComposing = t.type === "compositionstart", document.getElementById(e.input.getAttribute("aria-controls") || "") && e.clearSelection(); } -const R = "theme-module__light", G = '"../page-modules/assistant/assistant.module.css"', K = '"../page-modules/departures/departures.module.css"', U = '"../components/search/search.module.css"', V = '"../modules/search-time/selector/selector.module.css"', Q = '"../components/button/button.module.css"', J = "widget-module__hidden", Y = "widget-module__lightWrapper theme-module__light", z = "widget-module__wrapper theme-module__override-light", X = "widget-module__form assistant-module__container", Z = "widget-module__nav", ee = "widget-module__tabs", te = "widget-module__tabSelected", oe = "widget-module__main assistant-module__main", ne = "widget-module__heading assistant-module__heading", ie = "widget-module__inputBoxes", re = "widget-module__search_container search-module__container", se = "widget-module__search_inputContainer search-module__inputContainer", ae = "widget-module__search_label search-module__label typography-module__typo-body__secondary", le = "widget-module__search_input search-module__input", ce = "widget-module__search_inputLast", ue = "widget-module__button_geolocation departures-module__geolocationButton", de = "widget-module__selector_group selector-module__departureDateSelector", pe = "widget-module__selector_options selector-module__options", me = "widget-module__selector_options__small selector-module__options", he = "widget-module__selector_option selector-module__option", _e = "widget-module__selector_option__text selector-module__option__text", ge = "widget-module__selector_option__label selector-module__option__label", fe = "widget-module__selector_option__input selector-module__option__input", be = "widget-module__selector_dateAndTimeSelectorsWrapper selector-module__dateAndTimeSelectorsWrapper", ve = "widget-module__selector_dateAndTimeSelectorsWrapper__hidden", we = "widget-module__selector_dateAndTimeSelectors selector-module__dateAndTimeSelectors", ye = "widget-module__selector_dateSelector selector-module__dateSelector", $e = "widget-module__selector_timeSelector selector-module__timeSelector", Se = "widget-module__buttonGroup", Ee = "widget-module__button", Te = "widget-module__buttonLightOutline", Le = "widget-module__listItem", Ae = "widget-module__itemIcon", ke = "widget-module__itemLocality search-module__itemLocality typography-module__typo-body__secondary", Ce = "widget-module__popupContainer search-module__menu", Ie = "widget-module__messageBox", De = "widget-module__inheritFont", Me = "widget-module__singleColumnLayout", o = { - "override-light": "theme-module__override-light", - light: R, - assistant: G, - departures: K, - search: U, - selector: V, - buttonComponent: Q, - hidden: J, - lightWrapper: Y, - wrapper: z, - form: X, - nav: Z, - tabs: ee, - tabSelected: te, - main: oe, - heading: ne, - inputBoxes: ie, - search_container: re, - search_inputContainer: se, - search_label: ae, - search_input: le, - search_inputLast: ce, - button_geolocation: ue, - selector_group: de, - selector_options: pe, - selector_options__small: me, - selector_option: he, - selector_option__text: _e, - selector_option__label: ge, - selector_option__input: fe, - selector_dateAndTimeSelectorsWrapper: be, - selector_dateAndTimeSelectorsWrapper__hidden: ve, - selector_dateAndTimeSelectors: we, - selector_dateSelector: ye, - selector_timeSelector: $e, - buttonGroup: Se, - button: Ee, - buttonLightOutline: Te, +const R = '"../page-modules/assistant/assistant.module.css"', G = '"../page-modules/departures/departures.module.css"', K = '"../components/search/search.module.css"', U = '"../modules/search-time/selector/selector.module.css"', V = '"../components/button/button.module.css"', Q = "widget-module__hidden", J = "widget-module__wrapper", Y = "widget-module__form assistant-module__container", z = "widget-module__nav", X = "widget-module__tabs", Z = "widget-module__tabSelected", ee = "widget-module__main assistant-module__main", te = "widget-module__heading assistant-module__heading", oe = "widget-module__inputBoxes", ne = "widget-module__search_container search-module__container", ie = "widget-module__search_inputContainer search-module__inputContainer", se = "widget-module__search_label search-module__label typography-module__typo-body__secondary", ae = "widget-module__search_input search-module__input", re = "widget-module__search_inputLast", le = "widget-module__button_geolocation departures-module__geolocationButton", ce = "widget-module__selector_group selector-module__departureDateSelector", ue = "widget-module__selector_options selector-module__options", de = "widget-module__selector_options__small selector-module__options", pe = "widget-module__selector_option selector-module__option", me = "widget-module__selector_option__text selector-module__option__text", he = "widget-module__selector_option__label selector-module__option__label", _e = "widget-module__selector_option__input selector-module__option__input", ge = "widget-module__selector_dateAndTimeSelectorsWrapper selector-module__dateAndTimeSelectorsWrapper", fe = "widget-module__selector_dateAndTimeSelectorsWrapper__hidden", be = "widget-module__selector_dateAndTimeSelectors selector-module__dateAndTimeSelectors", ve = "widget-module__selector_dateSelector selector-module__dateSelector", we = "widget-module__selector_timeSelector selector-module__timeSelector", ye = "widget-module__buttonGroup", $e = "widget-module__button", Se = "widget-module__buttonLightOutline", Ee = "widget-module__listItem", Te = "widget-module__itemIcon", Le = "widget-module__itemLocality search-module__itemLocality typography-module__typo-body__secondary", Ae = "widget-module__popupContainer search-module__menu", ke = "widget-module__messageBox", Ce = "widget-module__inheritFont", Ie = "widget-module__singleColumnLayout", n = { + assistant: R, + departures: G, + search: K, + selector: U, + buttonComponent: V, + hidden: Q, + wrapper: J, + form: Y, + nav: z, + tabs: X, + tabSelected: Z, + main: ee, + heading: te, + inputBoxes: oe, + search_container: ne, + search_inputContainer: ie, + search_label: se, + search_input: ae, + search_inputLast: re, + button_geolocation: le, + selector_group: ce, + selector_options: ue, + selector_options__small: de, + selector_option: pe, + selector_option__text: me, + selector_option__label: he, + selector_option__input: _e, + selector_dateAndTimeSelectorsWrapper: ge, + selector_dateAndTimeSelectorsWrapper__hidden: fe, + selector_dateAndTimeSelectors: be, + selector_dateSelector: ve, + selector_timeSelector: we, + buttonGroup: ye, + button: $e, + buttonLightOutline: Se, "button--disabled": "widget-module__button--disabled", - listItem: Le, - itemIcon: Ae, - itemLocality: ke, - popupContainer: Ce, - messageBox: Ie, - inheritFont: De, - singleColumnLayout: Me + listItem: Ee, + itemIcon: Te, + itemLocality: Le, + popupContainer: Ae, + messageBox: ke, + inheritFont: Ce, + singleColumnLayout: Ie }; -function Oe(t) { - return Object.entries(t).reduce(function(e, n) { - return n[1] ? e + " " + n[0] : e; +function De(t) { + return Object.entries(t).reduce(function(e, o) { + return o[1] ? e + " " + o[0] : e; }, ""); } var O = { MODULE_VERSION: "2.27.0", COMPRESSED_ORG: "C4Jw9gtgzkA", ORG_ID: "troms" }; -const Be = 300, y = String.raw, L = O.MODULE_VERSION, A = O.COMPRESSED_ORG; -function je(t) { +const Me = 300, y = String.raw, L = O.MODULE_VERSION, A = O.COMPRESSED_ORG; +function Oe(t) { if (!(t != null && t.startsWith("http"))) throw new Error("Missing urlBase in correct schema."); return t.endsWith("/") || (t += "/"), { @@ -157,32 +154,32 @@ function je(t) { URL_CSS: `${t}widget/${A}/${L}/planner-web.css` }; } -function ot({ +function et({ urlBase: t, language: e = "en", - outputOverrideOptions: n = {} + outputOverrideOptions: o = {} }) { - const i = et(e), r = je(t), s = { + const i = Xe(e), s = Oe(t), a = { inheritFont: !1, singleColumnLayout: !1, - ...n + ...o }; return { - output: He(r, i, s), - init: Fe, - urls: r + output: Pe(s, i, a), + init: Be, + urls: s }; } -function Fe() { - var e, n; - We(), D("pw-assistant"), D("pw-departures"); +function Be() { + var e, o; + qe(), D("pw-assistant"), D("pw-departures"); let t = { from: void 0, to: void 0 }; document.addEventListener("search-selected", function(i) { - const r = i; - t[r.detail.key] = r.detail.item; + const s = i; + t[s.detail.key] = s.detail.item; }), document.addEventListener("reset-search", function() { t = { from: void 0, @@ -193,49 +190,49 @@ function Fe() { i.value = ""; }); }), document.querySelectorAll("[name$=searchTimeSelector]").forEach(function(i) { - i.addEventListener("change", function(r) { - const c = r.currentTarget.value === "now"; + i.addEventListener("change", function(s) { + const c = s.currentTarget.value === "now"; document.querySelectorAll(".js-search-date-details").forEach((m) => { m.hidden = c; }); }); }), (e = document.querySelector("#pw-form-departures")) == null || e.addEventListener("submit", (i) => { i.preventDefault(); - const r = i.currentTarget; - qe(r, t.from); - }), (n = document.querySelector("#pw-form-assistant")) == null || n.addEventListener("submit", (i) => { + const s = i.currentTarget; + Fe(s, t.from); + }), (o = document.querySelector("#pw-form-assistant")) == null || o.addEventListener("submit", (i) => { i.preventDefault(); - const r = i.currentTarget; - Pe(r, t.from, t.to); + const s = i.currentTarget; + je(s, t.from, t.to); }); } function D(t) { const e = document.querySelector( `#${t}-searchTimeSelector-date` - ), n = document.querySelector( + ), o = document.querySelector( `#${t}-searchTimeSelector-time` ); try { - if (e && (e.valueAsDate = /* @__PURE__ */ new Date()), n) { - const i = /* @__PURE__ */ new Date(), r = String(i.getHours()).padStart(2, "0"), s = String(i.getMinutes()).padStart(2, "0"); - n.value = `${r}:${s}`; + if (e && (e.valueAsDate = /* @__PURE__ */ new Date()), o) { + const i = /* @__PURE__ */ new Date(), s = String(i.getHours()).padStart(2, "0"), a = String(i.getMinutes()).padStart(2, "0"); + o.value = `${s}:${a}`; } } catch { } } function B(t, e) { - const n = t.get(`${e}-searchTimeSelector`); - if (n === "now") + const o = t.get(`${e}-searchTimeSelector`); + if (o === "now") return { mode: "now" }; { - const i = t.get("dateinput"), r = t.get("timeinput"); - if (i && r) { - const s = /* @__PURE__ */ new Date(`${i}T${r}`); + const i = t.get("dateinput"), s = t.get("timeinput"); + if (i && s) { + const a = /* @__PURE__ */ new Date(`${i}T${s}`); return { - mode: n == "arriveBy" ? "arriveBy" : "departBy", - dateTime: s.getTime() + mode: o == "arriveBy" ? "arriveBy" : "departBy", + dateTime: a.getTime() }; } return { @@ -243,13 +240,13 @@ function B(t, e) { }; } } -function Pe(t, e, n) { - const i = t.action, r = B(new FormData(t), "pw-assistant"), s = Ve({ from: e, to: n }, r), c = new URLSearchParams(s); +function je(t, e, o) { + const i = t.action, s = B(new FormData(t), "pw-assistant"), a = Ke({ from: e, to: o }, s), c = new URLSearchParams(a); window.location.href = `${i}?${c.toString()}`; } -function qe(t, e) { - const n = t.action, i = B(new FormData(t), "pw-departures"), r = Qe(i, e), s = new URLSearchParams(r); - (e == null ? void 0 : e.layer) === "venue" ? window.location.href = `${n}/${e.id}?${s.toString()}` : window.location.href = `${n}?${s.toString()}`; +function Fe(t, e) { + const o = t.action, i = B(new FormData(t), "pw-departures"), s = Ue(i, e), a = new URLSearchParams(s); + (e == null ? void 0 : e.layer) === "venue" ? window.location.href = `${o}/${e.id}?${a.toString()}` : window.location.href = `${o}?${a.toString()}`; } class E extends HTMLElement { constructor() { @@ -257,10 +254,10 @@ class E extends HTMLElement { } connectedCallback() { const e = this; - e.hidden = !0, e.classList.add(o.messageBox), document.addEventListener("pw-errorMessage", function(n) { - const i = n; + e.hidden = !0, e.classList.add(n.messageBox), document.addEventListener("pw-errorMessage", function(o) { + const i = o; e.textContent = i.detail.message, e.hidden = !1; - }), document.addEventListener("pw-errorMessage-clear", function(n) { + }), document.addEventListener("pw-errorMessage-clear", function(o) { e.hidden = !0; }), e.addEventListener("click", function() { E.clearMessageBox(); @@ -274,19 +271,19 @@ class E extends HTMLElement { ); } } -function He({ URL_BASE: t }, e, n) { - function i(a) { - const u = s(a), h = v("span", [a.name]), d = v("span", [a.locality ?? ""], o.itemLocality), l = v("li", [u, h, d], o.listItem); - return l.role = "option", l.setAttribute("data-feature-id", a.id), l; +function Pe({ URL_BASE: t }, e, o) { + function i(r) { + const u = a(r), h = v("span", [r.name]), d = v("span", [r.locality ?? ""], n.itemLocality), l = v("li", [u, h, d], n.listItem); + return l.role = "option", l.setAttribute("data-feature-id", r.id), l; } - function r(a) { - const u = v("span", [a]); - return v("li", [u], o.listItem); + function s(r) { + const u = v("span", [r]); + return v("li", [u], n.listItem); } - function s(a) { - const u = Re(a.category), h = v("img"); + function a(r) { + const u = Ne(r.category), h = v("img"); h.src = `${t}assets/mono/light/${u.icon}.svg`, h.alt = u.alt, h.role = "img"; - const d = v("div", [h], o.itemIcon); + const d = v("div", [h], n.itemIcon); return d.ariaHidden = "true", d; } class c extends HTMLElement { @@ -299,7 +296,7 @@ function He({ URL_BASE: t }, e, n) { var d; E.clearMessageBox(); try { - const l = await ze(t, e), g = (d = u.parentElement) == null ? void 0 : d.querySelector("input"); + const l = await Je(t, e), g = (d = u.parentElement) == null ? void 0 : d.querySelector("input"); g && (g.value = l ? `${l.name}, ${l.locality}` : g.value), document.dispatchEvent( new CustomEvent("search-selected", { bubbles: !0, @@ -336,9 +333,9 @@ function He({ URL_BASE: t }, e, n) { this.dataList[h.id] = h; } connectedCallback() { - const u = this, h = Ne( + const u = this, h = xe( this.getAttribute("data-debounce-ms"), - Be + Me ), d = this.querySelector("input"), l = this.querySelector( "#" + this.getAttribute("for") ); @@ -351,16 +348,16 @@ function He({ URL_BASE: t }, e, n) { } function k() { u.setItems([]), l.innerHTML = ""; - const p = r(e.noResults); + const p = s(e.noResults); l.appendChild(p), w(!0); } - const q = xe(async (p) => { + const q = He(async (p) => { try { if (!p.value) { l.innerHTML = ""; return; } - const f = await Je(t, p.value); + const f = await Ve(t, p.value); if (f.length === 0) return k(); u.setItems(f), l.innerHTML = ""; @@ -399,63 +396,63 @@ function He({ URL_BASE: t }, e, n) { } customElements.define("pw-autocomplete", m); const $ = y` -
+
- `, _ = (a, u = !0) => y` -
- ${e.searchTime.title} + `, _ = (r, u = !0) => y` +
+ ${e.searchTime.title}
-
`, F = y`
-
-
- ${e.assistant.title} -
+
+
+ ${e.assistant.title} +
-
+
@@ -595,31 +592,31 @@ function He({ URL_BASE: t }, e, n) { `, P = y`
-
-
- ${e.departure.title} -
+
+
+ ${e.departure.title} +
- `,h=(a,u=!0)=>y` + `,h=(r,u=!0)=>y`
${e.searchTime.title}
@@ -17,13 +17,13 @@
- `}function Y(){var t;(t=document.querySelector(".js-tablist"))==null||t.addEventListener("click",function(e){var m,T;e.preventDefault();const n=(m=e.target)==null?void 0:m.closest("a");if(!n)return;const i=n.getAttribute("data-mode");if(!i)return;const r=document.querySelector("#pw-"+i);if(!r)return;E.clearMessageBox(),document.querySelectorAll(".js-tabpanel").forEach(h=>{h.classList.add(o.hidden)}),document.querySelectorAll(".js-tablist a").forEach(h=>{h.classList.remove(o.tabSelected)}),r.classList.remove(o.hidden),n.classList.add(o.tabSelected);const s=document.querySelectorAll(`input[type="radio"][name="pw-${i}-searchTimeSelector"]`),c=(T=Array.from(s).find(h=>h.checked))==null?void 0:T.value;document.querySelectorAll(".js-search-date-details").forEach(h=>{h.hidden=c==="now"}),document.dispatchEvent(new CustomEvent("reset-search",{bubbles:!0}))})}function z(t,e){let n=null;return function(...i){clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function b(t,e=[],n=""){const i=document.createElement(t);if(Array.isArray(e))for(let r of e){let s=typeof r=="string"?document.createTextNode(r):r;i.appendChild(s)}return i.className=n,i}function X(t,e){const n=parseInt(t,10);return Number.isNaN(n)?e:n}function P(t,e){return t===e?!0:!t||!t.parentElement?!1:P(t.parentElement,e)}function Z(t){switch(ee(t)[0]){case"bus":return{icon:"transportation-entur/Bus",alt:"bus"};case"tram":return{icon:"transportation-entur/Tram",alt:"tram"};case"rail":return{icon:"transportation-entur/Train",alt:"rail"};case"airport":return{icon:"transportation-entur/Plane",alt:"air"};case"boat":return{icon:"transportation-entur/Ferry",alt:"water"};case"unknown":default:return{icon:"map/Pin",alt:"unknown"}}}function ee(t){return t.map(te).filter((e,n,i)=>i.indexOf(e)===n)}function te(t){switch(t){case"onstreetBus":case"busStation":case"coachStation":return"bus";case"onstreetTram":case"tramStation":return"tram";case"railStation":case"metroStation":return"rail";case"airport":return"airport";case"harbourPort":case"ferryPort":case"ferryStop":return"boat";default:return"unknown"}}function oe(t,e){if(!t)return{};const n=e?{toId:e.id,toLon:e.geometry.coordinates[0].toString(),toLat:e.geometry.coordinates[1].toString(),toLayer:e.layer}:void 0;return{fromId:t.id,fromLon:t.geometry.coordinates[0].toString(),fromLat:t.geometry.coordinates[1].toString(),fromLayer:t.layer,...n}}function ne(t,e){const n=e.mode!=="now"?{searchMode:e.mode,searchTime:e.dateTime.toString()}:{searchMode:e.mode},i=oe(t.from,t.to);return{...n,...i}}function ie(t,e){const n=t.mode!=="now"?{searchMode:t.mode,searchTime:t.dateTime.toString()}:{searchMode:t.mode};return!e||e.layer=="venue"?{...n}:{...n,lon:e.geometry.coordinates[0].toString(),lat:e.geometry.coordinates[1].toString()}}async function re(t,e){const n=`${t}api/departures/autocomplete?q=${e}`,i=await fetch(n);if(!i.ok)throw new Error(`Error fetching autocomplete data from ${n}`);return await i.json()}async function F(t,e){const i=await(await fetch(`${t}api/departures/reverse?lat=${e.latitude}&lon=${e.longitude}`)).json();if(i)return i}async function se(t,e){return new Promise(function(n,i){navigator.geolocation.getCurrentPosition(async r=>{const s=await F(t,r.coords);n(s)},r=>{i(new Error(ae(r.code,e)))},{enableHighAccuracy:!0,timeout:1e4})})}function ae(t,e){switch(t){case GeolocationPositionError.PERMISSION_DENIED:return e.geoTexts.denied;case GeolocationPositionError.TIMEOUT:return e.geoTexts.timeout;case GeolocationPositionError.POSITION_UNAVAILABLE:default:return e.geoTexts.unavailable}}const le={nb:{noResults:"Ingen resultater",geoButton:"Finn min posisjon",geoTexts:{denied:"Du må endre stedsinnstillinger i nettleseren din for å bruke din posisjon i reisesøket.",unavailable:"Posisjonen din er ikke tilgjengelig.",timeout:"Det tok for lang tid å hente posisjonen din. Prøv på nytt."},searchButton:"Finn avganger",placeholder:"adresse, kai eller holdeplass",assistant:{link:"Planlegg reisen",title:"Hvor vil du reise?",from:"Fra",to:"Til"},departure:{link:"Avganger",title:"Hvor vil du reise fra?",from:"Fra"},searchTime:{title:"Når vil du reise?",now:"Nå",arrive:"Ankomst",depart:"Avreise",date:"Dato",time:"Tid"}},nn:{noResults:"Ingen resultat",geoButton:"Finn min posisjon",geoTexts:{denied:"Du må endre posisjonsinnstillingane i nettlesaren din for å bruke din posisjon i reisesøket.",unavailable:"Posisjonen din er ikkje tilgjengeleg.",timeout:"Det tok for lang tid å hente posisjonen din. Prøv på nytt."},searchButton:"Finn avgangar",placeholder:"adresse, kai eller haldeplass",assistant:{link:"Planlegg reisa",title:"Kor vil du reise?",from:"Frå",to:"Til"},departure:{link:"Avgangar",title:"Kor vil du reise frå?",from:"Frå"},searchTime:{title:"Når vil du reise?",now:"No",arrive:"Ankomst",depart:"Avreise",date:"Dato",time:"Tid"}},en:{noResults:"No results",geoButton:"Find my position",geoTexts:{denied:"You must change location settings in your browser to use your position in the travel search.",unavailable:"Your position is not available.",timeout:"It took too long to retrieve your position. Try again."},searchButton:"Find departures",placeholder:"address, quay, or stop",assistant:{link:"Plan your journey",title:"Where do you want to travel?",from:"From",to:"To"},departure:{link:"Departures",title:"Where do you want to travel from?",from:"From"},searchTime:{title:"When do you want to travel?",now:"Now",arrive:"Arrival",depart:"Departure",date:"Date",time:"Time"}}};function ce(t){return le[t]}f.createWidget=K,f.reverse=F,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})}); + `}function Y(){var t;(t=document.querySelector(".js-tablist"))==null||t.addEventListener("click",function(e){var m,T;e.preventDefault();const n=(m=e.target)==null?void 0:m.closest("a");if(!n)return;const i=n.getAttribute("data-mode");if(!i)return;const s=document.querySelector("#pw-"+i);if(!s)return;E.clearMessageBox(),document.querySelectorAll(".js-tabpanel").forEach(h=>{h.classList.add(o.hidden)}),document.querySelectorAll(".js-tablist a").forEach(h=>{h.classList.remove(o.tabSelected)}),s.classList.remove(o.hidden),n.classList.add(o.tabSelected);const a=document.querySelectorAll(`input[type="radio"][name="pw-${i}-searchTimeSelector"]`),c=(T=Array.from(a).find(h=>h.checked))==null?void 0:T.value;document.querySelectorAll(".js-search-date-details").forEach(h=>{h.hidden=c==="now"}),document.dispatchEvent(new CustomEvent("reset-search",{bubbles:!0}))})}function z(t,e){let n=null;return function(...i){clearTimeout(n),n=setTimeout(()=>{t(...i)},e)}}function b(t,e=[],n=""){const i=document.createElement(t);if(Array.isArray(e))for(let s of e){let a=typeof s=="string"?document.createTextNode(s):s;i.appendChild(a)}return i.className=n,i}function X(t,e){const n=parseInt(t,10);return Number.isNaN(n)?e:n}function P(t,e){return t===e?!0:!t||!t.parentElement?!1:P(t.parentElement,e)}function Z(t){switch(ee(t)[0]){case"bus":return{icon:"transportation-entur/Bus",alt:"bus"};case"tram":return{icon:"transportation-entur/Tram",alt:"tram"};case"rail":return{icon:"transportation-entur/Train",alt:"rail"};case"airport":return{icon:"transportation-entur/Plane",alt:"air"};case"boat":return{icon:"transportation-entur/Ferry",alt:"water"};case"unknown":default:return{icon:"map/Pin",alt:"unknown"}}}function ee(t){return t.map(te).filter((e,n,i)=>i.indexOf(e)===n)}function te(t){switch(t){case"onstreetBus":case"busStation":case"coachStation":return"bus";case"onstreetTram":case"tramStation":return"tram";case"railStation":case"metroStation":return"rail";case"airport":return"airport";case"harbourPort":case"ferryPort":case"ferryStop":return"boat";default:return"unknown"}}function oe(t,e){if(!t)return{};const n=e?{toId:e.id,toLon:e.geometry.coordinates[0].toString(),toLat:e.geometry.coordinates[1].toString(),toLayer:e.layer}:void 0;return{fromId:t.id,fromLon:t.geometry.coordinates[0].toString(),fromLat:t.geometry.coordinates[1].toString(),fromLayer:t.layer,...n}}function ne(t,e){const n=e.mode!=="now"?{searchMode:e.mode,searchTime:e.dateTime.toString()}:{searchMode:e.mode},i=oe(t.from,t.to);return{...n,...i}}function ie(t,e){const n=t.mode!=="now"?{searchMode:t.mode,searchTime:t.dateTime.toString()}:{searchMode:t.mode};return!e||e.layer=="venue"?{...n}:{...n,lon:e.geometry.coordinates[0].toString(),lat:e.geometry.coordinates[1].toString()}}async function se(t,e){const n=`${t}api/departures/autocomplete?q=${e}`,i=await fetch(n);if(!i.ok)throw new Error(`Error fetching autocomplete data from ${n}`);return await i.json()}async function F(t,e){const i=await(await fetch(`${t}api/departures/reverse?lat=${e.latitude}&lon=${e.longitude}`)).json();if(i)return i}async function ae(t,e){return new Promise(function(n,i){navigator.geolocation.getCurrentPosition(async s=>{const a=await F(t,s.coords);n(a)},s=>{i(new Error(re(s.code,e)))},{enableHighAccuracy:!0,timeout:1e4})})}function re(t,e){switch(t){case GeolocationPositionError.PERMISSION_DENIED:return e.geoTexts.denied;case GeolocationPositionError.TIMEOUT:return e.geoTexts.timeout;case GeolocationPositionError.POSITION_UNAVAILABLE:default:return e.geoTexts.unavailable}}const le={nb:{noResults:"Ingen resultater",geoButton:"Finn min posisjon",geoTexts:{denied:"Du må endre stedsinnstillinger i nettleseren din for å bruke din posisjon i reisesøket.",unavailable:"Posisjonen din er ikke tilgjengelig.",timeout:"Det tok for lang tid å hente posisjonen din. Prøv på nytt."},searchButton:"Finn avganger",placeholder:"adresse, kai eller holdeplass",assistant:{link:"Planlegg reisen",title:"Hvor vil du reise?",from:"Fra",to:"Til"},departure:{link:"Avganger",title:"Hvor vil du reise fra?",from:"Fra"},searchTime:{title:"Når vil du reise?",now:"Nå",arrive:"Ankomst",depart:"Avreise",date:"Dato",time:"Tid"}},nn:{noResults:"Ingen resultat",geoButton:"Finn min posisjon",geoTexts:{denied:"Du må endre posisjonsinnstillingane i nettlesaren din for å bruke din posisjon i reisesøket.",unavailable:"Posisjonen din er ikkje tilgjengeleg.",timeout:"Det tok for lang tid å hente posisjonen din. Prøv på nytt."},searchButton:"Finn avgangar",placeholder:"adresse, kai eller haldeplass",assistant:{link:"Planlegg reisa",title:"Kor vil du reise?",from:"Frå",to:"Til"},departure:{link:"Avgangar",title:"Kor vil du reise frå?",from:"Frå"},searchTime:{title:"Når vil du reise?",now:"No",arrive:"Ankomst",depart:"Avreise",date:"Dato",time:"Tid"}},en:{noResults:"No results",geoButton:"Find my position",geoTexts:{denied:"You must change location settings in your browser to use your position in the travel search.",unavailable:"Your position is not available.",timeout:"It took too long to retrieve your position. Try again."},searchButton:"Find departures",placeholder:"address, quay, or stop",assistant:{link:"Plan your journey",title:"Where do you want to travel?",from:"From",to:"To"},departure:{link:"Departures",title:"Where do you want to travel from?",from:"From"},searchTime:{title:"When do you want to travel?",now:"Now",arrive:"Arrival",depart:"Departure",date:"Date",time:"Time"}}};function ce(t){return le[t]}g.createWidget=K,g.reverse=F,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})}); diff --git a/src/components/icon/mono-icon.tsx b/src/components/icon/mono-icon.tsx index 68a74469..a1eb0c15 100644 --- a/src/components/icon/mono-icon.tsx +++ b/src/components/icon/mono-icon.tsx @@ -1,6 +1,6 @@ import { MonoIcons, icons } from './generated-icons'; import { SizeProps, useSize } from './utils'; -import { InteractiveColor, InteractiveState, TextColorName, useDarkMode } from '@atb/modules/theme'; +import { InteractiveColor, InteractiveState, TextColorType, useDarkMode } from '@atb/modules/theme'; import { colorToOverrideMode } from '@atb/utils/color'; export type { SizeProps }; @@ -58,13 +58,13 @@ export function MonoIcon({ export default MonoIcon; -function insertMode(relative: string, mode: TextColorName) { +function insertMode(relative: string, mode: TextColorType) { return relative.replace('mono/', `mono/${mode}/`); } function colorToMode( color: MonoIconProps['overrideMode'], -): TextColorName | undefined { +): TextColorType | undefined { if (color == 'none') return undefined; return color == 'dark' ? 'dark' : 'light'; } diff --git a/src/modules/theme/index.ts b/src/modules/theme/index.ts index 9269f843..6bf68553 100644 --- a/src/modules/theme/index.ts +++ b/src/modules/theme/index.ts @@ -1,34 +1,18 @@ -import { ContrastColorFs, createThemesFor, ThemeFs, ThemeVariant, InteractiveColor as _InteractiveColor, TransportColor as _TransportColor, StatusColor as _StatusColor } from '@atb-as/theme'; +import { createThemesFor, ThemeVariant } from '@atb-as/theme'; import { useDarkmodeCookie } from '@atb/modules/cookies'; import { currentOrg, WEBSHOP_ORGS } from '@atb/modules/org-data'; import { useEffect } from 'react'; -export type Theme = ThemeFs -export type ContrastColor = ContrastColorFs +export type { + InteractiveColor, + InteractiveState, + StatusColorName, + TransportColors, + ContrastColor, + TextColorType, +} from '@atb-as/theme' -export type TextColorName = keyof Theme['color']['foreground'] - -export type InteractiveColor = _InteractiveColor -export type InteractiveColorName = keyof Theme['color']['interactive'] -export type InteractiveColors = Theme['color']['interactive'] -export type InteractiveState = keyof InteractiveColor - -export type TransportColor = _TransportColor -export type TransportColorName = keyof Theme['color']['transport'] -export type TransportColors = Theme['color']['transport'] -export type TransportColorState = keyof Theme['color']['transport']['city'] - -export type BackgroundColors = Theme['color']['background'] -export type BackgroundColorName = keyof Theme['color']['background'] -export type BackgroundColorState = keyof Theme['color']['background'][T] - -export type StatusColor = _StatusColor -export type StatusColorName = keyof Theme['color']['status'] -export type StatusColors = Theme['color']['status'] - -export const theme = createThemesFor(getThemeVariant(currentOrg), { - useFigmaStructure: true -}); +export const theme = createThemesFor(getThemeVariant(currentOrg)); function getThemeVariant(orgId: WEBSHOP_ORGS): ThemeVariant { switch (orgId) { diff --git a/yarn.lock b/yarn.lock index 78ee190c..4db6e776 100644 --- a/yarn.lock +++ b/yarn.lock @@ -103,6 +103,13 @@ normalize-path "^3.0.0" stream-editor "^1.11.0" +"@atb-as/theme@./../../design-system/packages/theme": + version "11.1.2" + dependencies: + "@tfk-samf/figma-to-dtcg" "0.4.0" + hex-to-rgba "^2.0.1" + ts-deepmerge "^4.0.0" + "@atb-as/theme@^11.1.1": version "11.1.1" resolved "https://registry.yarnpkg.com/@atb-as/theme/-/theme-11.1.1.tgz#5fabede8c0fcb47af8d0f19ab99af1f96c27a910"