From 11535e24756bcca6fbfe71d761d204f6c854cdf5 Mon Sep 17 00:00:00 2001 From: Morten Nordseth <43166974+mortennordseth@users.noreply.github.com> Date: Fri, 2 Aug 2024 08:28:46 +0200 Subject: [PATCH] chore: generate widget version 2.21.1 (#315) --- package.json | 2 +- .../widget/C4Jw9gtgzkA/2.21.1/planner-web.css | 1 + .../C4Jw9gtgzkA/2.21.1/planner-web.d.ts | 33 + .../widget/C4Jw9gtgzkA/2.21.1/planner-web.mjs | 973 ++++++++++++++++++ .../C4Jw9gtgzkA/2.21.1/planner-web.umd.js | 291 ++++++ .../widget/GYJwhgtkA/2.21.1/planner-web.css | 1 + .../widget/GYJwhgtkA/2.21.1/planner-web.d.ts | 33 + .../widget/GYJwhgtkA/2.21.1/planner-web.mjs | 973 ++++++++++++++++++ .../GYJwhgtkA/2.21.1/planner-web.umd.js | 291 ++++++ public/widget/HYMw1kA/2.21.1/planner-web.css | 1 + public/widget/HYMw1kA/2.21.1/planner-web.d.ts | 33 + public/widget/HYMw1kA/2.21.1/planner-web.mjs | 973 ++++++++++++++++++ .../widget/HYMw1kA/2.21.1/planner-web.umd.js | 291 ++++++ public/widget/IYFwRkA/2.21.1/planner-web.css | 1 + public/widget/IYFwRkA/2.21.1/planner-web.d.ts | 33 + public/widget/IYFwRkA/2.21.1/planner-web.mjs | 973 ++++++++++++++++++ .../widget/IYFwRkA/2.21.1/planner-web.umd.js | 291 ++++++ .../C4Jw9gtgzkA/manifest.json | 31 +- .../available-widgets/GYJwhgtkA/manifest.json | 51 +- .../available-widgets/HYMw1kA/manifest.json | 51 +- .../available-widgets/IYFwRkA/manifest.json | 51 +- 21 files changed, 5303 insertions(+), 75 deletions(-) create mode 100644 public/widget/C4Jw9gtgzkA/2.21.1/planner-web.css create mode 100644 public/widget/C4Jw9gtgzkA/2.21.1/planner-web.d.ts create mode 100644 public/widget/C4Jw9gtgzkA/2.21.1/planner-web.mjs create mode 100644 public/widget/C4Jw9gtgzkA/2.21.1/planner-web.umd.js create mode 100644 public/widget/GYJwhgtkA/2.21.1/planner-web.css create mode 100644 public/widget/GYJwhgtkA/2.21.1/planner-web.d.ts create mode 100644 public/widget/GYJwhgtkA/2.21.1/planner-web.mjs create mode 100644 public/widget/GYJwhgtkA/2.21.1/planner-web.umd.js create mode 100644 public/widget/HYMw1kA/2.21.1/planner-web.css create mode 100644 public/widget/HYMw1kA/2.21.1/planner-web.d.ts create mode 100644 public/widget/HYMw1kA/2.21.1/planner-web.mjs create mode 100644 public/widget/HYMw1kA/2.21.1/planner-web.umd.js create mode 100644 public/widget/IYFwRkA/2.21.1/planner-web.css create mode 100644 public/widget/IYFwRkA/2.21.1/planner-web.d.ts create mode 100644 public/widget/IYFwRkA/2.21.1/planner-web.mjs create mode 100644 public/widget/IYFwRkA/2.21.1/planner-web.umd.js diff --git a/package.json b/package.json index 47437679..3cdb1b83 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@atb-as/planner-web", - "version": "2.20.1", + "version": "2.21.1", "private": true, "license": "EUPL-1.2", "engines": { diff --git a/public/widget/C4Jw9gtgzkA/2.21.1/planner-web.css b/public/widget/C4Jw9gtgzkA/2.21.1/planner-web.css new file mode 100644 index 00000000..334b1e7c --- /dev/null +++ b/public/widget/C4Jw9gtgzkA/2.21.1/planner-web.css @@ -0,0 +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: #E7FFDD;--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: #F8CCB5;--interactive-interactive_3-default-text: #000000;--interactive-interactive_3-hover-background: #F4B392;--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: #D24600;--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_city-primary-background: #6B9956;--transport-transport_city-primary-text: #000000;--transport-transport_city-secondary-background: #507341;--transport-transport_city-secondary-text: #FFFFFF;--transport-transport_region-primary-background: #334DCE;--transport-transport_region-primary-text: #FFFFFF;--transport-transport_region-secondary-background: #334DCE;--transport-transport_region-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: #D43C95;--transport-transport_train-primary-text: #000000;--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: #6B9956;--status-valid-primary-text: #000000;--status-valid-secondary-background: #6B9956;--status-valid-secondary-text: #000000;--status-info-primary-background: #546AD6;--status-info-primary-text: #FFFFFF;--status-info-secondary-background: #546AD6;--status-info-secondary-text: #FFFFFF;--status-warning-primary-background: #E6D220;--status-warning-primary-text: #000000;--status-warning-secondary-background: #E6D220;--status-warning-secondary-text: #000000;--status-error-primary-background: #DB6364;--status-error-primary-text: #000000;--status-error-secondary-background: #DB6364;--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: #E7FFDD;--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: #301204;--interactive-interactive_3-default-text: #FFFFFF;--interactive-interactive_3-hover-background: #4F1E06;--interactive-interactive_3-hover-text: #FFFFFF;--interactive-interactive_3-active-background: #742700;--interactive-interactive_3-active-text: #FFFFFF;--interactive-interactive_3-disabled-background: #37424A;--interactive-interactive_3-disabled-text: #FFFFFF;--interactive-interactive_3-outline-background: #4F1E06;--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_city-primary-background: #6B9956;--transport-transport_city-primary-text: #000000;--transport-transport_city-secondary-background: #507341;--transport-transport_city-secondary-text: #FFFFFF;--transport-transport_region-primary-background: #334DCE;--transport-transport_region-primary-text: #FFFFFF;--transport-transport_region-secondary-background: #334DCE;--transport-transport_region-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: #D43C95;--transport-transport_train-primary-text: #000000;--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: #6B9956;--status-valid-primary-text: #000000;--status-valid-secondary-background: #6B9956;--status-valid-secondary-text: #000000;--status-info-primary-background: #546AD6;--status-info-primary-text: #FFFFFF;--status-info-secondary-background: #546AD6;--status-info-secondary-text: #FFFFFF;--status-warning-primary-background: #E6D220;--status-warning-primary-text: #000000;--status-warning-secondary-background: #E6D220;--status-warning-secondary-text: #000000;--status-error-primary-background: #DB6364;--status-error-primary-text: #000000;--status-error-secondary-background: #DB6364;--status-error-secondary-text: #000000}@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: #E7FFDD;--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: #301204;--interactive-interactive_3-default-text: #FFFFFF;--interactive-interactive_3-hover-background: #4F1E06;--interactive-interactive_3-hover-text: #FFFFFF;--interactive-interactive_3-active-background: #742700;--interactive-interactive_3-active-text: #FFFFFF;--interactive-interactive_3-disabled-background: #37424A;--interactive-interactive_3-disabled-text: #FFFFFF;--interactive-interactive_3-outline-background: #4F1E06;--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_city-primary-background: #6B9956;--transport-transport_city-primary-text: #000000;--transport-transport_city-secondary-background: #507341;--transport-transport_city-secondary-text: #FFFFFF;--transport-transport_region-primary-background: #334DCE;--transport-transport_region-primary-text: #FFFFFF;--transport-transport_region-secondary-background: #334DCE;--transport-transport_region-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: #D43C95;--transport-transport_train-primary-text: #000000;--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: #6B9956;--status-valid-primary-text: #000000;--status-valid-secondary-background: #6B9956;--status-valid-secondary-text: #000000;--status-info-primary-background: #546AD6;--status-info-primary-text: #FFFFFF;--status-info-secondary-background: #546AD6;--status-info-secondary-text: #FFFFFF;--status-warning-primary-background: #E6D220;--status-warning-primary-text: #000000;--status-warning-secondary-background: #E6D220;--status-warning-secondary-text: #000000;--status-error-primary-background: #DB6364;--status-error-primary-text: #000000;--status-error-secondary-background: #DB6364;--status-error-secondary-text: #000000}}.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_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_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_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}.selector-module__dateSelector label,.selector-module__timeSelector label{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__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)}.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%} diff --git a/public/widget/C4Jw9gtgzkA/2.21.1/planner-web.d.ts b/public/widget/C4Jw9gtgzkA/2.21.1/planner-web.d.ts new file mode 100644 index 00000000..a543ddb4 --- /dev/null +++ b/public/widget/C4Jw9gtgzkA/2.21.1/planner-web.d.ts @@ -0,0 +1,33 @@ +import { GeocoderFeature } from '@atb/page-modules/departures'; + +export declare function createWidget({ urlBase, language, outputOverrideOptions, }: WidgetOptions): PlannerWebOutput; + +declare type Languages = 'nb' | 'nn' | 'en'; + +declare type OutputOverrideOptions = { + inheritFont?: boolean; + singleColumnLayout?: boolean; +}; + +export declare type PlannerWebOutput = { + output: string; + init: () => void; + urls: SettingConstants; +}; + +export declare function reverse(urlBase: string, coords: GeolocationCoordinates): Promise; + +declare type SettingConstants = { + URL_BASE: string; + URL_JS_UMD: string; + URL_JS_ESM: string; + URL_CSS: string; +}; + +export declare type WidgetOptions = { + urlBase: string; + language?: Languages; + outputOverrideOptions?: Partial; +}; + +export { } diff --git a/public/widget/C4Jw9gtgzkA/2.21.1/planner-web.mjs b/public/widget/C4Jw9gtgzkA/2.21.1/planner-web.mjs new file mode 100644 index 00000000..1ff32e86 --- /dev/null +++ b/public/widget/C4Jw9gtgzkA/2.21.1/planner-web.mjs @@ -0,0 +1,973 @@ +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"); + } + 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"); + } + start() { + this.input.setAttribute("aria-expanded", "true"), this.input.addEventListener("compositionstart", this.compositionEventHandler), this.input.addEventListener("compositionend", this.compositionEventHandler), this.input.addEventListener("input", this.inputHandler), this.input.addEventListener("keydown", this.keyboardEventHandler), this.list.addEventListener("mousedown", C), this.resetSelection(); + } + stop() { + this.clearSelection(), this.input.setAttribute("aria-expanded", "false"), this.input.removeEventListener("compositionstart", this.compositionEventHandler), this.input.removeEventListener("compositionend", this.compositionEventHandler), this.input.removeEventListener("input", this.inputHandler), this.input.removeEventListener("keydown", this.keyboardEventHandler), this.list.removeEventListener("mousedown", C); + } + indicateDefaultOption() { + var e; + 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) { + 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); + } + const c = i[s]; + 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"); + } + clearSelection() { + this.input.removeAttribute("aria-activedescendant"); + for (const e of this.list.querySelectorAll('[aria-selected="true"], [data-combobox-option-default="true"]')) + e.removeAttribute("aria-selected"), e.removeAttribute("data-combobox-option-default"); + } + resetSelection() { + this.clearSelection(), this.indicateDefaultOption(); + } +} +function W(t, e) { + if (!(t.shiftKey || t.metaKey || t.altKey) && !(!e.ctrlBindings && t.ctrlKey) && !e.isComposing) + switch (t.key) { + case "Enter": + I(e.input, e.list) && t.preventDefault(); + break; + case "Tab": + e.tabInsertsSuggestions && I(e.input, e.list) && t.preventDefault(); + break; + case "Escape": + e.clearSelection(); + break; + case "ArrowDown": + e.navigate(1), t.preventDefault(); + break; + case "ArrowUp": + e.navigate(-1), t.preventDefault(); + break; + case "n": + e.ctrlBindings && t.ctrlKey && (e.navigate(1), t.preventDefault()); + break; + case "p": + e.ctrlBindings && t.ctrlKey && (e.navigate(-1), t.preventDefault()); + break; + default: + if (t.ctrlKey) + break; + e.resetSelection(); + } +} +function C(t) { + if (!(t.target instanceof Element)) + return; + const e = t.target.closest('[role="option"]'); + 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; +} +function M(t, e) { + t.dispatchEvent(new CustomEvent("combobox-commit", { bubbles: !0, detail: e })); +} +function x(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) { + 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, + "button--disabled": "widget-module__button--disabled", + listItem: Le, + itemIcon: Ae, + itemLocality: ke, + popupContainer: Ce, + messageBox: Ie, + inheritFont: De, + singleColumnLayout: Me +}; +function Oe(t) { + return Object.entries(t).reduce(function(e, n) { + return n[1] ? e + " " + n[0] : e; + }, ""); +} +var O = { MODULE_VERSION: "2.21.1", COMPRESSED_ORG: "C4Jw9gtgzkA", ORG_ID: "troms" }; +const Be = 300, y = String.raw, L = O.MODULE_VERSION, A = O.COMPRESSED_ORG; +function je(t) { + if (!(t != null && t.startsWith("http"))) + throw new Error("Missing urlBase in correct schema."); + return t.endsWith("/") || (t += "/"), { + URL_BASE: t, + URL_JS_UMD: `${t}widget/${A}/${L}/planner-web.umd.js`, + URL_JS_ESM: `${t}widget/${A}/${L}/planner-web.mjs`, + URL_CSS: `${t}widget/${A}/${L}/planner-web.css` + }; +} +function ot({ + urlBase: t, + language: e = "en", + outputOverrideOptions: n = {} +}) { + const i = et(e), r = je(t), s = { + inheritFont: !1, + singleColumnLayout: !1, + ...n + }; + return { + output: He(r, i, s), + init: Fe, + urls: r + }; +} +function Fe() { + var e, n; + We(), 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; + }), document.addEventListener("reset-search", function() { + t = { + from: void 0, + to: void 0 + }, document.querySelectorAll( + 'input[name="from"], input[name="to"]' + ).forEach((i) => { + i.value = ""; + }); + }), document.querySelectorAll("[name$=searchTimeSelector]").forEach(function(i) { + i.addEventListener("change", function(r) { + const c = r.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) => { + i.preventDefault(); + const r = i.currentTarget; + Pe(r, t.from, t.to); + }); +} +function D(t) { + const e = document.querySelector( + `#${t}-searchTimeSelector-date` + ), n = 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}`; + } + } catch { + } +} +function B(t, e) { + const n = t.get(`${e}-searchTimeSelector`); + if (n === "now") + return { + mode: "now" + }; + { + const i = t.get("dateinput"), r = t.get("timeinput"); + if (i && r) { + const s = /* @__PURE__ */ new Date(`${i}T${r}`); + return { + mode: n == "arriveBy" ? "arriveBy" : "departBy", + dateTime: s.getTime() + }; + } + return { + mode: "now" + }; + } +} +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); + 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()}`; +} +class E extends HTMLElement { + constructor() { + super(); + } + connectedCallback() { + const e = this; + e.hidden = !0, e.classList.add(o.messageBox), document.addEventListener("pw-errorMessage", function(n) { + const i = n; + e.textContent = i.detail.message, e.hidden = !1; + }), document.addEventListener("pw-errorMessage-clear", function(n) { + e.hidden = !0; + }), e.addEventListener("click", function() { + E.clearMessageBox(); + }); + } + static clearMessageBox() { + document.dispatchEvent( + new CustomEvent("pw-errorMessage-clear", { + bubbles: !0 + }) + ); + } +} +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 r(a) { + const u = v("span", [a]); + return v("li", [u], o.listItem); + } + function s(a) { + const u = Re(a.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); + return d.ariaHidden = "true", d; + } + class c extends HTMLElement { + constructor() { + super(); + } + connectedCallback() { + const u = this; + this.querySelector("button").addEventListener("click", async () => { + var d; + E.clearMessageBox(); + try { + const l = await ze(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, + detail: { + key: "from", + item: l + } + }) + ); + } catch (l) { + l instanceof Error && document.dispatchEvent( + new CustomEvent("pw-errorMessage", { + bubbles: !0, + detail: { + message: l.message + } + }) + ); + } + }); + } + } + customElements.define("pw-geobutton", c), customElements.define("pw-messagebox", E); + class m extends HTMLElement { + constructor() { + super(), this.dataList = {}; + } + getItem(u) { + return this.dataList[u]; + } + setItems(u) { + this.dataList = {}; + for (let h of u) + this.dataList[h.id] = h; + } + connectedCallback() { + const u = this, h = Ne( + this.getAttribute("data-debounce-ms"), + Be + ), d = this.querySelector("input"), l = this.querySelector( + "#" + this.getAttribute("for") + ); + let g = new H(d, l, { + tabInsertsSuggestions: !0, + scrollIntoViewOptions: !1 + }); + function w(p) { + p ? g.start() : (g.clearSelection(), g.stop()), l.hidden = !p; + } + function k() { + u.setItems([]), l.innerHTML = ""; + const p = r(e.noResults); + l.appendChild(p), w(!0); + } + const q = xe(async (p) => { + try { + if (!p.value) { + l.innerHTML = ""; + return; + } + const f = await Je(t, p.value); + if (f.length === 0) + return k(); + u.setItems(f), l.innerHTML = ""; + for (let b of f) { + const S = i(b); + l.appendChild(S); + } + w(!0); + } catch { + k(); + } + }, h); + d.addEventListener("keydown", (p) => { + p.key === "Escape" && w(!1); + }), d.addEventListener( + "input", + (p) => q(p.target) + ), d.addEventListener("focus", () => w(!0)), d.addEventListener("blur", () => w(!1)), document.addEventListener("click", (p) => { + j(p.target, this) || w(!1); + }), l.addEventListener("combobox-commit", function(p) { + const f = p.target.getAttribute( + "data-feature-id" + ), b = f ? u.getItem(f) : void 0; + let S = d.value; + b && (S = `${b.name}`, b.locality && (S += `, ${b.locality}`)), d.value = S, document.dispatchEvent( + new CustomEvent("search-selected", { + bubbles: !0, + detail: { + key: d.name, + item: b + } + }) + ), l.hidden = !0, g.clearSelection(), g.stop(); + }); + } + } + customElements.define("pw-autocomplete", m); + const $ = y` +
+ +
+ `, _ = (a, u = !0) => y` +
+ ${e.searchTime.title} +
+
+ + + ${u ? y` + + ` : ""} +
+ +
+
+ `, F = y` +
+
+
+ ${e.assistant.title} +
+ +
+ + + + +
+ + + +
+ +
+ +
+ + + + +
+
+
+ ${_("pw-assistant")} +
+ ${$} +
+ `, P = y` +
+
+
+ ${e.departure.title} +
+ + + + + +
+ +
+ ${_("pw-departures", !1)} +
+ ${$} +
+ `; + return y` +
+ +
${F}
+
+ ${P} +
+
+ `; +} +function We() { + var t; + (t = document.querySelector(".js-tablist")) == null || t.addEventListener("click", function(e) { + var m, $; + 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((_) => { + _.classList.add(o.hidden); + }), document.querySelectorAll(".js-tablist a").forEach((_) => { + _.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 = ($ = Array.from(s).find( + (_) => _.checked + )) == null ? void 0 : $.value; + document.querySelectorAll(".js-search-date-details").forEach((_) => { + _.hidden = c === "now"; + }), document.dispatchEvent( + new CustomEvent("reset-search", { + bubbles: !0 + }) + ); + }); +} +function xe(t, e) { + let n = null; + return function(...i) { + clearTimeout(n), n = setTimeout(() => { + t(...i); + }, e); + }; +} +function v(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 Ne(t, e) { + const n = parseInt(t, 10); + return Number.isNaN(n) ? e : n; +} +function j(t, e) { + return t === e ? !0 : !t || !t.parentElement ? !1 : j(t.parentElement, e); +} +function Re(t) { + switch (Ge(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 Ge(t) { + return t.map(Ke).filter((e, n, i) => i.indexOf(e) === n); +} +function Ke(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 Ue(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 Ve(t, e) { + const n = e.mode !== "now" ? { + searchMode: e.mode, + searchTime: e.dateTime.toString() + } : { searchMode: e.mode }, i = Ue( + t.from, + t.to + ); + return { + ...n, + ...i + }; +} +function Qe(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 Je(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 Ye(t, e) { + const i = await (await fetch( + `${t}api/departures/reverse?lat=${e.latitude}&lon=${e.longitude}` + )).json(); + if (i) + return i; +} +async function ze(t, e) { + return new Promise(function(n, i) { + navigator.geolocation.getCurrentPosition( + async (r) => { + const s = await Ye(t, r.coords); + n(s); + }, + (r) => { + i(new Error(Xe(r.code, e))); + }, + { enableHighAccuracy: !0, timeout: 1e4 } + ); + }); +} +function Xe(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 Ze = { + 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 et(t) { + return Ze[t]; +} +export { + ot as createWidget, + Ye as reverse +}; diff --git a/public/widget/C4Jw9gtgzkA/2.21.1/planner-web.umd.js b/public/widget/C4Jw9gtgzkA/2.21.1/planner-web.umd.js new file mode 100644 index 00000000..488596f1 --- /dev/null +++ b/public/widget/C4Jw9gtgzkA/2.21.1/planner-web.umd.js @@ -0,0 +1,291 @@ +(function(f,S){typeof exports=="object"&&typeof module<"u"?S(exports):typeof define=="function"&&define.amd?define(["exports"],S):(f=typeof globalThis<"u"?globalThis:f||self,S(f.PlannerWeb={}))})(this,function(f){"use strict";class S{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=>x(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")}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")}start(){this.input.setAttribute("aria-expanded","true"),this.input.addEventListener("compositionstart",this.compositionEventHandler),this.input.addEventListener("compositionend",this.compositionEventHandler),this.input.addEventListener("input",this.inputHandler),this.input.addEventListener("keydown",this.keyboardEventHandler),this.list.addEventListener("mousedown",I),this.resetSelection()}stop(){this.clearSelection(),this.input.setAttribute("aria-expanded","false"),this.input.removeEventListener("compositionstart",this.compositionEventHandler),this.input.removeEventListener("compositionend",this.compositionEventHandler),this.input.removeEventListener("input",this.inputHandler),this.input.removeEventListener("keydown",this.keyboardEventHandler),this.list.removeEventListener("mousedown",I)}indicateDefaultOption(){var e;this.firstOptionSelectionMode==="active"?(e=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(A)[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(A)[0],i=Array.from(this.list.querySelectorAll('[role="option"]')).filter(A),r=i.indexOf(n);if(r===i.length-1&&e===1||r===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&&m0||t.offsetHeight>0)}function x(t,e){e.isComposing=t.type==="compositionstart",document.getElementById(e.input.getAttribute("aria-controls")||"")&&e.clearSelection()}const o={"override-light":"theme-module__override-light",light:"theme-module__light",assistant:'"../page-modules/assistant/assistant.module.css"',departures:'"../page-modules/departures/departures.module.css"',search:'"../components/search/search.module.css"',selector:'"../modules/search-time/selector/selector.module.css"',buttonComponent:'"../components/button/button.module.css"',hidden:"widget-module__hidden",lightWrapper:"widget-module__lightWrapper theme-module__light",wrapper:"widget-module__wrapper theme-module__override-light",form:"widget-module__form assistant-module__container",nav:"widget-module__nav",tabs:"widget-module__tabs",tabSelected:"widget-module__tabSelected",main:"widget-module__main assistant-module__main",heading:"widget-module__heading assistant-module__heading",inputBoxes:"widget-module__inputBoxes",search_container:"widget-module__search_container search-module__container",search_inputContainer:"widget-module__search_inputContainer search-module__inputContainer",search_label:"widget-module__search_label search-module__label typography-module__typo-body__secondary",search_input:"widget-module__search_input search-module__input",search_inputLast:"widget-module__search_inputLast",button_geolocation:"widget-module__button_geolocation departures-module__geolocationButton",selector_group:"widget-module__selector_group selector-module__departureDateSelector",selector_options:"widget-module__selector_options selector-module__options",selector_options__small:"widget-module__selector_options__small selector-module__options",selector_option:"widget-module__selector_option selector-module__option",selector_option__text:"widget-module__selector_option__text selector-module__option__text",selector_option__label:"widget-module__selector_option__label selector-module__option__label",selector_option__input:"widget-module__selector_option__input selector-module__option__input",selector_dateAndTimeSelectorsWrapper:"widget-module__selector_dateAndTimeSelectorsWrapper selector-module__dateAndTimeSelectorsWrapper",selector_dateAndTimeSelectorsWrapper__hidden:"widget-module__selector_dateAndTimeSelectorsWrapper__hidden",selector_dateAndTimeSelectors:"widget-module__selector_dateAndTimeSelectors selector-module__dateAndTimeSelectors",selector_dateSelector:"widget-module__selector_dateSelector selector-module__dateSelector",selector_timeSelector:"widget-module__selector_timeSelector selector-module__timeSelector",buttonGroup:"widget-module__buttonGroup",button:"widget-module__button",buttonLightOutline:"widget-module__buttonLightOutline","button--disabled":"widget-module__button--disabled",listItem:"widget-module__listItem",itemIcon:"widget-module__itemIcon",itemLocality:"widget-module__itemLocality search-module__itemLocality typography-module__typo-body__secondary",popupContainer:"widget-module__popupContainer search-module__menu",messageBox:"widget-module__messageBox",inheritFont:"widget-module__inheritFont",singleColumnLayout:"widget-module__singleColumnLayout"};function N(t){return Object.entries(t).reduce(function(e,n){return n[1]?e+" "+n[0]:e},"")}var O={MODULE_VERSION:"2.21.1",COMPRESSED_ORG:"C4Jw9gtgzkA",ORG_ID:"troms"};const R=300,y=String.raw,k=O.MODULE_VERSION,C=O.COMPRESSED_ORG;function G(t){if(!(t!=null&&t.startsWith("http")))throw new Error("Missing urlBase in correct schema.");return t.endsWith("/")||(t+="/"),{URL_BASE:t,URL_JS_UMD:`${t}widget/${C}/${k}/planner-web.umd.js`,URL_JS_ESM:`${t}widget/${C}/${k}/planner-web.mjs`,URL_CSS:`${t}widget/${C}/${k}/planner-web.css`}}function K({urlBase:t,language:e="en",outputOverrideOptions:n={}}){const i=ce(e),r=G(t),s={inheritFont:!1,singleColumnLayout:!1,...n};return{output:J(r,i,s),init:U,urls:r}}function U(){var e,n;Y(),B("pw-assistant"),B("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}),document.addEventListener("reset-search",function(){t={from:void 0,to:void 0},document.querySelectorAll('input[name="from"], input[name="to"]').forEach(i=>{i.value=""})}),document.querySelectorAll("[name$=searchTimeSelector]").forEach(function(i){i.addEventListener("change",function(r){const c=r.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;Q(r,t.from)}),(n=document.querySelector("#pw-form-assistant"))==null||n.addEventListener("submit",i=>{i.preventDefault();const r=i.currentTarget;V(r,t.from,t.to)})}function B(t){const e=document.querySelector(`#${t}-searchTimeSelector-date`),n=document.querySelector(`#${t}-searchTimeSelector-time`);try{if(e&&(e.valueAsDate=new Date),n){const i=new Date,r=String(i.getHours()).padStart(2,"0"),s=String(i.getMinutes()).padStart(2,"0");n.value=`${r}:${s}`}}catch{}}function j(t,e){const n=t.get(`${e}-searchTimeSelector`);if(n==="now")return{mode:"now"};{const i=t.get("dateinput"),r=t.get("timeinput");if(i&&r){const s=new Date(`${i}T${r}`);return{mode:n=="arriveBy"?"arriveBy":"departBy",dateTime:s.getTime()}}return{mode:"now"}}}function V(t,e,n){const i=t.action,r=j(new FormData(t),"pw-assistant"),s=ne({from:e,to:n},r),c=new URLSearchParams(s);window.location.href=`${i}?${c.toString()}`}function Q(t,e){const n=t.action,i=j(new FormData(t),"pw-departures"),r=ie(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()}`}class E extends HTMLElement{constructor(){super()}connectedCallback(){const e=this;e.hidden=!0,e.classList.add(o.messageBox),document.addEventListener("pw-errorMessage",function(n){const i=n;e.textContent=i.detail.message,e.hidden=!1}),document.addEventListener("pw-errorMessage-clear",function(n){e.hidden=!0}),e.addEventListener("click",function(){E.clearMessageBox()})}static clearMessageBox(){document.dispatchEvent(new CustomEvent("pw-errorMessage-clear",{bubbles:!0}))}}function J({URL_BASE:t},e,n){function i(a){const u=s(a),_=b("span",[a.name]),d=b("span",[a.locality??""],o.itemLocality),l=b("li",[u,_,d],o.listItem);return l.role="option",l.setAttribute("data-feature-id",a.id),l}function r(a){const u=b("span",[a]);return b("li",[u],o.listItem)}function s(a){const u=Z(a.category),_=b("img");_.src=`${t}assets/mono/light/${u.icon}.svg`,_.alt=u.alt,_.role="img";const d=b("div",[_],o.itemIcon);return d.ariaHidden="true",d}class c extends HTMLElement{constructor(){super()}connectedCallback(){const u=this;this.querySelector("button").addEventListener("click",async()=>{var d;E.clearMessageBox();try{const l=await se(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,detail:{key:"from",item:l}}))}catch(l){l instanceof Error&&document.dispatchEvent(new CustomEvent("pw-errorMessage",{bubbles:!0,detail:{message:l.message}}))}})}}customElements.define("pw-geobutton",c),customElements.define("pw-messagebox",E);class m extends HTMLElement{constructor(){super(),this.dataList={}}getItem(u){return this.dataList[u]}setItems(u){this.dataList={};for(let _ of u)this.dataList[_.id]=_}connectedCallback(){const u=this,_=X(this.getAttribute("data-debounce-ms"),R),d=this.querySelector("input"),l=this.querySelector("#"+this.getAttribute("for"));let g=new S(d,l,{tabInsertsSuggestions:!0,scrollIntoViewOptions:!1});function $(p){p?g.start():(g.clearSelection(),g.stop()),l.hidden=!p}function q(){u.setItems([]),l.innerHTML="";const p=r(e.noResults);l.appendChild(p),$(!0)}const pe=z(async p=>{try{if(!p.value){l.innerHTML="";return}const v=await re(t,p.value);if(v.length===0)return q();u.setItems(v),l.innerHTML="";for(let w of v){const L=i(w);l.appendChild(L)}$(!0)}catch{q()}},_);d.addEventListener("keydown",p=>{p.key==="Escape"&&$(!1)}),d.addEventListener("input",p=>pe(p.target)),d.addEventListener("focus",()=>$(!0)),d.addEventListener("blur",()=>$(!1)),document.addEventListener("click",p=>{P(p.target,this)||$(!1)}),l.addEventListener("combobox-commit",function(p){const v=p.target.getAttribute("data-feature-id"),w=v?u.getItem(v):void 0;let L=d.value;w&&(L=`${w.name}`,w.locality&&(L+=`, ${w.locality}`)),d.value=L,document.dispatchEvent(new CustomEvent("search-selected",{bubbles:!0,detail:{key:d.name,item:w}})),l.hidden=!0,g.clearSelection(),g.stop()})}}customElements.define("pw-autocomplete",m);const T=y` +
+ +
+ `,h=(a,u=!0)=>y` +
+ ${e.searchTime.title} +
+
+ + + ${u?y` + + `:""} +
+ +
+
+ `,ue=y` +
+
+
+ ${e.assistant.title} +
+ +
+ + + + +
+ + + +
+ +
+ +
+ + + + +
+
+
+ ${h("pw-assistant")} +
+ ${T} +
+ `,de=y` +
+
+
+ ${e.departure.title} +
+ + + + + +
+ +
+ ${h("pw-departures",!1)} +
+ ${T} +
+ `;return y` +
+ +
${ue}
+
+ ${de} +
+
+ `}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"})}); diff --git a/public/widget/GYJwhgtkA/2.21.1/planner-web.css b/public/widget/GYJwhgtkA/2.21.1/planner-web.css new file mode 100644 index 00000000..acca0d18 --- /dev/null +++ b/public/widget/GYJwhgtkA/2.21.1/planner-web.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap";.theme-module__light{--border-primary: #E6E6E6;--border-secondary: #000000;--border-focus: #005686;--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: rgba(0, 0, 0, .91);--text-colors-disabled: rgba(0, 0, 0, .2);--static-background-background_0-background: #FFFFFF;--static-background-background_0-text: #000000;--static-background-background_1-background: #F3F3F3;--static-background-background_1-text: #000000;--static-background-background_2-background: #E6E6E6;--static-background-background_2-text: #000000;--static-background-background_3-background: #D9D9D9;--static-background-background_3-text: #000000;--static-background-background_accent_0-background: #007AB5;--static-background-background_accent_0-text: #FFFFFF;--static-background-background_accent_1-background: #3395C4;--static-background-background_accent_1-text: #000000;--static-background-background_accent_2-background: #CCE5F0;--static-background-background_accent_2-text: #000000;--static-background-background_accent_3-background: #0D6569;--static-background-background_accent_3-text: #FFFFFF;--static-background-background_accent_4-background: #F0E991;--static-background-background_accent_4-text: #000000;--static-background-background_accent_5-background: #007AB5;--static-background-background_accent_5-text: #FFFFFF;--static-zone_selection-from-background: #82B962;--static-zone_selection-from-text: #000000;--static-zone_selection-to-background: #005686;--static-zone_selection-to-text: #FFFFFF;--interactive-interactive_0-default-background: #005686;--interactive-interactive_0-default-text: #FFFFFF;--interactive-interactive_0-hover-background: #014165;--interactive-interactive_0-hover-text: #FFFFFF;--interactive-interactive_0-active-background: #80ABC3;--interactive-interactive_0-active-text: #000000;--interactive-interactive_0-disabled-background: rgba(0, 86, 134, .2);--interactive-interactive_0-disabled-text: #FFFFFF;--interactive-interactive_0-outline-background: #3395C4;--interactive-interactive_0-outline-text: #000000;--interactive-interactive_0-destructive-background: #B6161C;--interactive-interactive_0-destructive-text: #FFFFFF;--interactive-interactive_1-default-background: #005686;--interactive-interactive_1-default-text: #FFFFFF;--interactive-interactive_1-hover-background: #014165;--interactive-interactive_1-hover-text: #FFFFFF;--interactive-interactive_1-active-background: #011622;--interactive-interactive_1-active-text: #FFFFFF;--interactive-interactive_1-disabled-background: rgba(0, 86, 134, .2);--interactive-interactive_1-disabled-text: #FFFFFF;--interactive-interactive_1-outline-background: #3395C4;--interactive-interactive_1-outline-text: #000000;--interactive-interactive_1-destructive-background: #B6161C;--interactive-interactive_1-destructive-text: #FFFFFF;--interactive-interactive_2-default-background: #FFFFFF;--interactive-interactive_2-default-text: #000000;--interactive-interactive_2-hover-background: #D5E3EB;--interactive-interactive_2-hover-text: #000000;--interactive-interactive_2-active-background: #AAC7D7;--interactive-interactive_2-active-text: #000000;--interactive-interactive_2-disabled-background: rgba(255, 255, 255, .2);--interactive-interactive_2-disabled-text: #000000;--interactive-interactive_2-outline-background: #3395C4;--interactive-interactive_2-outline-text: #000000;--interactive-interactive_2-destructive-background: #B6161C;--interactive-interactive_2-destructive-text: #FFFFFF;--interactive-interactive_3-default-background: #82B962;--interactive-interactive_3-default-text: #000000;--interactive-interactive_3-hover-background: #709F55;--interactive-interactive_3-hover-text: #000000;--interactive-interactive_3-active-background: #ACD097;--interactive-interactive_3-active-text: #000000;--interactive-interactive_3-disabled-background: rgba(130, 185, 98, .2);--interactive-interactive_3-disabled-text: #000000;--interactive-interactive_3-outline-background: #3395C4;--interactive-interactive_3-outline-text: #000000;--interactive-interactive_3-destructive-background: #B6161C;--interactive-interactive_3-destructive-text: #FFFFFF;--interactive-interactive_destructive-default-background: #E31B22;--interactive-interactive_destructive-default-text: #FFFFFF;--interactive-interactive_destructive-hover-background: #B6161C;--interactive-interactive_destructive-hover-text: #FFFFFF;--interactive-interactive_destructive-active-background: #F4A4A7;--interactive-interactive_destructive-active-text: #000000;--interactive-interactive_destructive-disabled-background: rgba(227, 27, 34, .2);--interactive-interactive_destructive-disabled-text: #FFFFFF;--interactive-interactive_destructive-outline-background: #3395C4;--interactive-interactive_destructive-outline-text: #000000;--interactive-interactive_destructive-destructive-background: #B6161C;--interactive-interactive_destructive-destructive-text: #FFFFFF;--transport-transport_city-primary-background: #82B962;--transport-transport_city-primary-text: #000000;--transport-transport_city-secondary-background: #709F55;--transport-transport_city-secondary-text: #000000;--transport-transport_region-primary-background: #005686;--transport-transport_region-primary-text: #FFFFFF;--transport-transport_region-secondary-background: #014165;--transport-transport_region-secondary-text: #FFFFFF;--transport-transport_airport_express-primary-background: #005686;--transport-transport_airport_express-primary-text: #FFFFFF;--transport-transport_airport_express-secondary-background: #014165;--transport-transport_airport_express-secondary-text: #FFFFFF;--transport-transport_boat-primary-background: #007AB5;--transport-transport_boat-primary-text: #FFFFFF;--transport-transport_boat-secondary-background: #016291;--transport-transport_boat-secondary-text: #FFFFFF;--transport-transport_train-primary-background: #551125;--transport-transport_train-primary-text: #FFFFFF;--transport-transport_train-secondary-background: #2B0913;--transport-transport_train-secondary-text: #FFFFFF;--transport-transport_airport-primary-background: #F15629;--transport-transport_airport-primary-text: #000000;--transport-transport_airport-secondary-background: #C94823;--transport-transport_airport-secondary-text: #FFFFFF;--transport-transport_plane-primary-background: #EE8076;--transport-transport_plane-primary-text: #000000;--transport-transport_plane-secondary-background: #CC6E66;--transport-transport_plane-secondary-text: #000000;--transport-transport_flexible-primary-background: #EE8076;--transport-transport_flexible-primary-text: #000000;--transport-transport_flexible-secondary-background: #CC6E66;--transport-transport_flexible-secondary-text: #000000;--transport-transport_bike-primary-background: #5B0C0E;--transport-transport_bike-primary-text: #FFFFFF;--transport-transport_bike-secondary-background: #2E0608;--transport-transport_bike-secondary-text: #FFFFFF;--transport-transport_scooter-primary-background: #284320;--transport-transport_scooter-primary-text: #FFFFFF;--transport-transport_scooter-secondary-background: #1B2D16;--transport-transport_scooter-secondary-text: #FFFFFF;--transport-transport_car-primary-background: #AA8892;--transport-transport_car-primary-text: #000000;--transport-transport_car-secondary-background: #956B77;--transport-transport_car-secondary-text: #000000;--transport-transport_other-primary-background: #676767;--transport-transport_other-primary-text: #FFFFFF;--transport-transport_other-secondary-background: #4D4D4D;--transport-transport_other-secondary-text: #FFFFFF;--status-valid-primary-background: #82B962;--status-valid-primary-text: #000000;--status-valid-secondary-background: #D6E8CB;--status-valid-secondary-text: #000000;--status-info-primary-background: #0A4C4F;--status-info-primary-text: #FFFFFF;--status-info-secondary-background: #CDE9E3;--status-info-secondary-text: #000000;--status-warning-primary-background: #FBDC00;--status-warning-primary-text: #000000;--status-warning-secondary-background: #FEF6BF;--status-warning-secondary-text: #000000;--status-error-primary-background: #E31B22;--status-error-primary-text: #FFFFFF;--status-error-secondary-background: #F9D2D3;--status-error-secondary-text: #000000}.theme-module__dark{--border-primary: #012C44;--border-secondary: #000000;--border-focus: #005686;--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: rgba(255, 255, 255, .77);--text-colors-disabled: rgba(255, 255, 255, .2);--static-background-background_0-background: #011622;--static-background-background_0-text: #FFFFFF;--static-background-background_1-background: #012133;--static-background-background_1-text: #FFFFFF;--static-background-background_2-background: #012C44;--static-background-background_2-text: #FFFFFF;--static-background-background_3-background: #014165;--static-background-background_3-text: #FFFFFF;--static-background-background_accent_0-background: #005686;--static-background-background_accent_0-text: #FFFFFF;--static-background-background_accent_1-background: #014165;--static-background-background_accent_1-text: #FFFFFF;--static-background-background_accent_2-background: #011622;--static-background-background_accent_2-text: #FFFFFF;--static-background-background_accent_3-background: #CDE9E3;--static-background-background_accent_3-text: #000000;--static-background-background_accent_4-background: #F0E991;--static-background-background_accent_4-text: #000000;--static-background-background_accent_5-background: #012C44;--static-background-background_accent_5-text: #FFFFFF;--static-zone_selection-from-background: #82B962;--static-zone_selection-from-text: #000000;--static-zone_selection-to-background: #005686;--static-zone_selection-to-text: #FFFFFF;--interactive-interactive_0-default-background: #007AB5;--interactive-interactive_0-default-text: #FFFFFF;--interactive-interactive_0-hover-background: #016291;--interactive-interactive_0-hover-text: #FFFFFF;--interactive-interactive_0-active-background: #99CAE2;--interactive-interactive_0-active-text: #000000;--interactive-interactive_0-disabled-background: rgba(0, 122, 181, .2);--interactive-interactive_0-disabled-text: #FFFFFF;--interactive-interactive_0-outline-background: #F0E991;--interactive-interactive_0-outline-text: #000000;--interactive-interactive_0-destructive-background: #EE777B;--interactive-interactive_0-destructive-text: #000000;--interactive-interactive_1-default-background: #007AB5;--interactive-interactive_1-default-text: #FFFFFF;--interactive-interactive_1-hover-background: #016291;--interactive-interactive_1-hover-text: #FFFFFF;--interactive-interactive_1-active-background: #011925;--interactive-interactive_1-active-text: #FFFFFF;--interactive-interactive_1-disabled-background: rgba(0, 122, 181, .2);--interactive-interactive_1-disabled-text: #FFFFFF;--interactive-interactive_1-outline-background: #F0E991;--interactive-interactive_1-outline-text: #000000;--interactive-interactive_1-destructive-background: #EE777B;--interactive-interactive_1-destructive-text: #000000;--interactive-interactive_2-default-background: #011622;--interactive-interactive_2-default-text: #FFFFFF;--interactive-interactive_2-hover-background: #012C44;--interactive-interactive_2-hover-text: #FFFFFF;--interactive-interactive_2-active-background: #014165;--interactive-interactive_2-active-text: #FFFFFF;--interactive-interactive_2-disabled-background: rgba(1, 22, 34, .2);--interactive-interactive_2-disabled-text: #FFFFFF;--interactive-interactive_2-outline-background: #F0E991;--interactive-interactive_2-outline-text: #000000;--interactive-interactive_2-destructive-background: #EE777B;--interactive-interactive_2-destructive-text: #000000;--interactive-interactive_3-default-background: #284320;--interactive-interactive_3-default-text: #FFFFFF;--interactive-interactive_3-hover-background: #1B2D16;--interactive-interactive_3-hover-text: #FFFFFF;--interactive-interactive_3-active-background: #475E40;--interactive-interactive_3-active-text: #FFFFFF;--interactive-interactive_3-disabled-background: rgba(40, 67, 32, .2);--interactive-interactive_3-disabled-text: #FFFFFF;--interactive-interactive_3-outline-background: #F0E991;--interactive-interactive_3-outline-text: #000000;--interactive-interactive_3-destructive-background: #EE777B;--interactive-interactive_3-destructive-text: #000000;--interactive-interactive_destructive-default-background: #E31B22;--interactive-interactive_destructive-default-text: #FFFFFF;--interactive-interactive_destructive-hover-background: #B6161C;--interactive-interactive_destructive-hover-text: #FFFFFF;--interactive-interactive_destructive-active-background: #F4A4A7;--interactive-interactive_destructive-active-text: #000000;--interactive-interactive_destructive-disabled-background: rgba(227, 27, 34, .2);--interactive-interactive_destructive-disabled-text: #FFFFFF;--interactive-interactive_destructive-outline-background: #F0E991;--interactive-interactive_destructive-outline-text: #000000;--interactive-interactive_destructive-destructive-background: #EE777B;--interactive-interactive_destructive-destructive-text: #000000;--transport-transport_city-primary-background: #82B962;--transport-transport_city-primary-text: #000000;--transport-transport_city-secondary-background: #ACD097;--transport-transport_city-secondary-text: #000000;--transport-transport_region-primary-background: #005686;--transport-transport_region-primary-text: #FFFFFF;--transport-transport_region-secondary-background: #2B729A;--transport-transport_region-secondary-text: #FFFFFF;--transport-transport_airport_express-primary-background: #005686;--transport-transport_airport_express-primary-text: #FFFFFF;--transport-transport_airport_express-secondary-background: #2B729A;--transport-transport_airport_express-secondary-text: #FFFFFF;--transport-transport_boat-primary-background: #007AB5;--transport-transport_boat-primary-text: #FFFFFF;--transport-transport_boat-secondary-background: #3395C4;--transport-transport_boat-secondary-text: #000000;--transport-transport_train-primary-background: #551125;--transport-transport_train-primary-text: #FFFFFF;--transport-transport_train-secondary-background: #6B2F41;--transport-transport_train-secondary-text: #FFFFFF;--transport-transport_airport-primary-background: #F15629;--transport-transport_airport-primary-text: #000000;--transport-transport_airport-secondary-background: #F5805F;--transport-transport_airport-secondary-text: #000000;--transport-transport_plane-primary-background: #EE8076;--transport-transport_plane-primary-text: #000000;--transport-transport_plane-secondary-background: #F4AAA4;--transport-transport_plane-secondary-text: #000000;--transport-transport_flexible-primary-background: #EE8076;--transport-transport_flexible-primary-text: #000000;--transport-transport_flexible-secondary-background: #F4AAA4;--transport-transport_flexible-secondary-text: #000000;--transport-transport_bike-primary-background: #5B0C0E;--transport-transport_bike-primary-text: #FFFFFF;--transport-transport_bike-secondary-background: #891115;--transport-transport_bike-secondary-text: #FFFFFF;--transport-transport_scooter-primary-background: #284320;--transport-transport_scooter-primary-text: #FFFFFF;--transport-transport_scooter-secondary-background: #475E40;--transport-transport_scooter-secondary-text: #FFFFFF;--transport-transport_car-primary-background: #AA8892;--transport-transport_car-primary-text: #000000;--transport-transport_car-secondary-background: #C0A6AE;--transport-transport_car-secondary-text: #000000;--transport-transport_other-primary-background: #676767;--transport-transport_other-primary-text: #FFFFFF;--transport-transport_other-secondary-background: #808080;--transport-transport_other-secondary-text: #000000;--status-valid-primary-background: #82B962;--status-valid-primary-text: #000000;--status-valid-secondary-background: #38502B;--status-valid-secondary-text: #FFFFFF;--status-info-primary-background: #0A4C4F;--status-info-primary-text: #FFFFFF;--status-info-secondary-background: #073335;--status-info-secondary-text: #FFFFFF;--status-warning-primary-background: #FBDC00;--status-warning-primary-text: #000000;--status-warning-secondary-background: #3F3701;--status-warning-secondary-text: #FFFFFF;--status-error-primary-background: #E31B22;--status-error-primary-text: #FFFFFF;--status-error-secondary-background: #5B0C0E;--status-error-secondary-text: #FFFFFF}@media (prefers-color-scheme: dark){.theme-module__light:not(.theme-module__override-light){--border-primary: #012C44;--border-secondary: #000000;--border-focus: #005686;--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: rgba(255, 255, 255, .77);--text-colors-disabled: rgba(255, 255, 255, .2);--static-background-background_0-background: #011622;--static-background-background_0-text: #FFFFFF;--static-background-background_1-background: #012133;--static-background-background_1-text: #FFFFFF;--static-background-background_2-background: #012C44;--static-background-background_2-text: #FFFFFF;--static-background-background_3-background: #014165;--static-background-background_3-text: #FFFFFF;--static-background-background_accent_0-background: #005686;--static-background-background_accent_0-text: #FFFFFF;--static-background-background_accent_1-background: #014165;--static-background-background_accent_1-text: #FFFFFF;--static-background-background_accent_2-background: #011622;--static-background-background_accent_2-text: #FFFFFF;--static-background-background_accent_3-background: #CDE9E3;--static-background-background_accent_3-text: #000000;--static-background-background_accent_4-background: #F0E991;--static-background-background_accent_4-text: #000000;--static-background-background_accent_5-background: #012C44;--static-background-background_accent_5-text: #FFFFFF;--static-zone_selection-from-background: #82B962;--static-zone_selection-from-text: #000000;--static-zone_selection-to-background: #005686;--static-zone_selection-to-text: #FFFFFF;--interactive-interactive_0-default-background: #007AB5;--interactive-interactive_0-default-text: #FFFFFF;--interactive-interactive_0-hover-background: #016291;--interactive-interactive_0-hover-text: #FFFFFF;--interactive-interactive_0-active-background: #99CAE2;--interactive-interactive_0-active-text: #000000;--interactive-interactive_0-disabled-background: rgba(0, 122, 181, .2);--interactive-interactive_0-disabled-text: #FFFFFF;--interactive-interactive_0-outline-background: #F0E991;--interactive-interactive_0-outline-text: #000000;--interactive-interactive_0-destructive-background: #EE777B;--interactive-interactive_0-destructive-text: #000000;--interactive-interactive_1-default-background: #007AB5;--interactive-interactive_1-default-text: #FFFFFF;--interactive-interactive_1-hover-background: #016291;--interactive-interactive_1-hover-text: #FFFFFF;--interactive-interactive_1-active-background: #011925;--interactive-interactive_1-active-text: #FFFFFF;--interactive-interactive_1-disabled-background: rgba(0, 122, 181, .2);--interactive-interactive_1-disabled-text: #FFFFFF;--interactive-interactive_1-outline-background: #F0E991;--interactive-interactive_1-outline-text: #000000;--interactive-interactive_1-destructive-background: #EE777B;--interactive-interactive_1-destructive-text: #000000;--interactive-interactive_2-default-background: #011622;--interactive-interactive_2-default-text: #FFFFFF;--interactive-interactive_2-hover-background: #012C44;--interactive-interactive_2-hover-text: #FFFFFF;--interactive-interactive_2-active-background: #014165;--interactive-interactive_2-active-text: #FFFFFF;--interactive-interactive_2-disabled-background: rgba(1, 22, 34, .2);--interactive-interactive_2-disabled-text: #FFFFFF;--interactive-interactive_2-outline-background: #F0E991;--interactive-interactive_2-outline-text: #000000;--interactive-interactive_2-destructive-background: #EE777B;--interactive-interactive_2-destructive-text: #000000;--interactive-interactive_3-default-background: #284320;--interactive-interactive_3-default-text: #FFFFFF;--interactive-interactive_3-hover-background: #1B2D16;--interactive-interactive_3-hover-text: #FFFFFF;--interactive-interactive_3-active-background: #475E40;--interactive-interactive_3-active-text: #FFFFFF;--interactive-interactive_3-disabled-background: rgba(40, 67, 32, .2);--interactive-interactive_3-disabled-text: #FFFFFF;--interactive-interactive_3-outline-background: #F0E991;--interactive-interactive_3-outline-text: #000000;--interactive-interactive_3-destructive-background: #EE777B;--interactive-interactive_3-destructive-text: #000000;--interactive-interactive_destructive-default-background: #E31B22;--interactive-interactive_destructive-default-text: #FFFFFF;--interactive-interactive_destructive-hover-background: #B6161C;--interactive-interactive_destructive-hover-text: #FFFFFF;--interactive-interactive_destructive-active-background: #F4A4A7;--interactive-interactive_destructive-active-text: #000000;--interactive-interactive_destructive-disabled-background: rgba(227, 27, 34, .2);--interactive-interactive_destructive-disabled-text: #FFFFFF;--interactive-interactive_destructive-outline-background: #F0E991;--interactive-interactive_destructive-outline-text: #000000;--interactive-interactive_destructive-destructive-background: #EE777B;--interactive-interactive_destructive-destructive-text: #000000;--transport-transport_city-primary-background: #82B962;--transport-transport_city-primary-text: #000000;--transport-transport_city-secondary-background: #ACD097;--transport-transport_city-secondary-text: #000000;--transport-transport_region-primary-background: #005686;--transport-transport_region-primary-text: #FFFFFF;--transport-transport_region-secondary-background: #2B729A;--transport-transport_region-secondary-text: #FFFFFF;--transport-transport_airport_express-primary-background: #005686;--transport-transport_airport_express-primary-text: #FFFFFF;--transport-transport_airport_express-secondary-background: #2B729A;--transport-transport_airport_express-secondary-text: #FFFFFF;--transport-transport_boat-primary-background: #007AB5;--transport-transport_boat-primary-text: #FFFFFF;--transport-transport_boat-secondary-background: #3395C4;--transport-transport_boat-secondary-text: #000000;--transport-transport_train-primary-background: #551125;--transport-transport_train-primary-text: #FFFFFF;--transport-transport_train-secondary-background: #6B2F41;--transport-transport_train-secondary-text: #FFFFFF;--transport-transport_airport-primary-background: #F15629;--transport-transport_airport-primary-text: #000000;--transport-transport_airport-secondary-background: #F5805F;--transport-transport_airport-secondary-text: #000000;--transport-transport_plane-primary-background: #EE8076;--transport-transport_plane-primary-text: #000000;--transport-transport_plane-secondary-background: #F4AAA4;--transport-transport_plane-secondary-text: #000000;--transport-transport_flexible-primary-background: #EE8076;--transport-transport_flexible-primary-text: #000000;--transport-transport_flexible-secondary-background: #F4AAA4;--transport-transport_flexible-secondary-text: #000000;--transport-transport_bike-primary-background: #5B0C0E;--transport-transport_bike-primary-text: #FFFFFF;--transport-transport_bike-secondary-background: #891115;--transport-transport_bike-secondary-text: #FFFFFF;--transport-transport_scooter-primary-background: #284320;--transport-transport_scooter-primary-text: #FFFFFF;--transport-transport_scooter-secondary-background: #475E40;--transport-transport_scooter-secondary-text: #FFFFFF;--transport-transport_car-primary-background: #AA8892;--transport-transport_car-primary-text: #000000;--transport-transport_car-secondary-background: #C0A6AE;--transport-transport_car-secondary-text: #000000;--transport-transport_other-primary-background: #676767;--transport-transport_other-primary-text: #FFFFFF;--transport-transport_other-secondary-background: #808080;--transport-transport_other-secondary-text: #000000;--status-valid-primary-background: #82B962;--status-valid-primary-text: #000000;--status-valid-secondary-background: #38502B;--status-valid-secondary-text: #FFFFFF;--status-info-primary-background: #0A4C4F;--status-info-primary-text: #FFFFFF;--status-info-secondary-background: #073335;--status-info-secondary-text: #FFFFFF;--status-warning-primary-background: #FBDC00;--status-warning-primary-text: #000000;--status-warning-secondary-background: #3F3701;--status-warning-secondary-text: #FFFFFF;--status-error-primary-background: #E31B22;--status-error-primary-text: #FFFFFF;--status-error-secondary-background: #5B0C0E;--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_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_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_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}.selector-module__dateSelector label,.selector-module__timeSelector label{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__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)}.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%} diff --git a/public/widget/GYJwhgtkA/2.21.1/planner-web.d.ts b/public/widget/GYJwhgtkA/2.21.1/planner-web.d.ts new file mode 100644 index 00000000..a543ddb4 --- /dev/null +++ b/public/widget/GYJwhgtkA/2.21.1/planner-web.d.ts @@ -0,0 +1,33 @@ +import { GeocoderFeature } from '@atb/page-modules/departures'; + +export declare function createWidget({ urlBase, language, outputOverrideOptions, }: WidgetOptions): PlannerWebOutput; + +declare type Languages = 'nb' | 'nn' | 'en'; + +declare type OutputOverrideOptions = { + inheritFont?: boolean; + singleColumnLayout?: boolean; +}; + +export declare type PlannerWebOutput = { + output: string; + init: () => void; + urls: SettingConstants; +}; + +export declare function reverse(urlBase: string, coords: GeolocationCoordinates): Promise; + +declare type SettingConstants = { + URL_BASE: string; + URL_JS_UMD: string; + URL_JS_ESM: string; + URL_CSS: string; +}; + +export declare type WidgetOptions = { + urlBase: string; + language?: Languages; + outputOverrideOptions?: Partial; +}; + +export { } diff --git a/public/widget/GYJwhgtkA/2.21.1/planner-web.mjs b/public/widget/GYJwhgtkA/2.21.1/planner-web.mjs new file mode 100644 index 00000000..bc1f724a --- /dev/null +++ b/public/widget/GYJwhgtkA/2.21.1/planner-web.mjs @@ -0,0 +1,973 @@ +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"); + } + 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"); + } + start() { + this.input.setAttribute("aria-expanded", "true"), this.input.addEventListener("compositionstart", this.compositionEventHandler), this.input.addEventListener("compositionend", this.compositionEventHandler), this.input.addEventListener("input", this.inputHandler), this.input.addEventListener("keydown", this.keyboardEventHandler), this.list.addEventListener("mousedown", C), this.resetSelection(); + } + stop() { + this.clearSelection(), this.input.setAttribute("aria-expanded", "false"), this.input.removeEventListener("compositionstart", this.compositionEventHandler), this.input.removeEventListener("compositionend", this.compositionEventHandler), this.input.removeEventListener("input", this.inputHandler), this.input.removeEventListener("keydown", this.keyboardEventHandler), this.list.removeEventListener("mousedown", C); + } + indicateDefaultOption() { + var e; + 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) { + 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); + } + const c = i[s]; + 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"); + } + clearSelection() { + this.input.removeAttribute("aria-activedescendant"); + for (const e of this.list.querySelectorAll('[aria-selected="true"], [data-combobox-option-default="true"]')) + e.removeAttribute("aria-selected"), e.removeAttribute("data-combobox-option-default"); + } + resetSelection() { + this.clearSelection(), this.indicateDefaultOption(); + } +} +function W(t, e) { + if (!(t.shiftKey || t.metaKey || t.altKey) && !(!e.ctrlBindings && t.ctrlKey) && !e.isComposing) + switch (t.key) { + case "Enter": + I(e.input, e.list) && t.preventDefault(); + break; + case "Tab": + e.tabInsertsSuggestions && I(e.input, e.list) && t.preventDefault(); + break; + case "Escape": + e.clearSelection(); + break; + case "ArrowDown": + e.navigate(1), t.preventDefault(); + break; + case "ArrowUp": + e.navigate(-1), t.preventDefault(); + break; + case "n": + e.ctrlBindings && t.ctrlKey && (e.navigate(1), t.preventDefault()); + break; + case "p": + e.ctrlBindings && t.ctrlKey && (e.navigate(-1), t.preventDefault()); + break; + default: + if (t.ctrlKey) + break; + e.resetSelection(); + } +} +function C(t) { + if (!(t.target instanceof Element)) + return; + const e = t.target.closest('[role="option"]'); + 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; +} +function M(t, e) { + t.dispatchEvent(new CustomEvent("combobox-commit", { bubbles: !0, detail: e })); +} +function x(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) { + 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, + "button--disabled": "widget-module__button--disabled", + listItem: Le, + itemIcon: Ae, + itemLocality: ke, + popupContainer: Ce, + messageBox: Ie, + inheritFont: De, + singleColumnLayout: Me +}; +function Oe(t) { + return Object.entries(t).reduce(function(e, n) { + return n[1] ? e + " " + n[0] : e; + }, ""); +} +var O = { MODULE_VERSION: "2.21.1", COMPRESSED_ORG: "GYJwhgtkA", ORG_ID: "fram" }; +const Be = 300, y = String.raw, L = O.MODULE_VERSION, A = O.COMPRESSED_ORG; +function je(t) { + if (!(t != null && t.startsWith("http"))) + throw new Error("Missing urlBase in correct schema."); + return t.endsWith("/") || (t += "/"), { + URL_BASE: t, + URL_JS_UMD: `${t}widget/${A}/${L}/planner-web.umd.js`, + URL_JS_ESM: `${t}widget/${A}/${L}/planner-web.mjs`, + URL_CSS: `${t}widget/${A}/${L}/planner-web.css` + }; +} +function ot({ + urlBase: t, + language: e = "en", + outputOverrideOptions: n = {} +}) { + const i = et(e), r = je(t), s = { + inheritFont: !1, + singleColumnLayout: !1, + ...n + }; + return { + output: He(r, i, s), + init: Fe, + urls: r + }; +} +function Fe() { + var e, n; + We(), 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; + }), document.addEventListener("reset-search", function() { + t = { + from: void 0, + to: void 0 + }, document.querySelectorAll( + 'input[name="from"], input[name="to"]' + ).forEach((i) => { + i.value = ""; + }); + }), document.querySelectorAll("[name$=searchTimeSelector]").forEach(function(i) { + i.addEventListener("change", function(r) { + const c = r.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) => { + i.preventDefault(); + const r = i.currentTarget; + Pe(r, t.from, t.to); + }); +} +function D(t) { + const e = document.querySelector( + `#${t}-searchTimeSelector-date` + ), n = 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}`; + } + } catch { + } +} +function B(t, e) { + const n = t.get(`${e}-searchTimeSelector`); + if (n === "now") + return { + mode: "now" + }; + { + const i = t.get("dateinput"), r = t.get("timeinput"); + if (i && r) { + const s = /* @__PURE__ */ new Date(`${i}T${r}`); + return { + mode: n == "arriveBy" ? "arriveBy" : "departBy", + dateTime: s.getTime() + }; + } + return { + mode: "now" + }; + } +} +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); + 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()}`; +} +class E extends HTMLElement { + constructor() { + super(); + } + connectedCallback() { + const e = this; + e.hidden = !0, e.classList.add(o.messageBox), document.addEventListener("pw-errorMessage", function(n) { + const i = n; + e.textContent = i.detail.message, e.hidden = !1; + }), document.addEventListener("pw-errorMessage-clear", function(n) { + e.hidden = !0; + }), e.addEventListener("click", function() { + E.clearMessageBox(); + }); + } + static clearMessageBox() { + document.dispatchEvent( + new CustomEvent("pw-errorMessage-clear", { + bubbles: !0 + }) + ); + } +} +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 r(a) { + const u = v("span", [a]); + return v("li", [u], o.listItem); + } + function s(a) { + const u = Re(a.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); + return d.ariaHidden = "true", d; + } + class c extends HTMLElement { + constructor() { + super(); + } + connectedCallback() { + const u = this; + this.querySelector("button").addEventListener("click", async () => { + var d; + E.clearMessageBox(); + try { + const l = await ze(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, + detail: { + key: "from", + item: l + } + }) + ); + } catch (l) { + l instanceof Error && document.dispatchEvent( + new CustomEvent("pw-errorMessage", { + bubbles: !0, + detail: { + message: l.message + } + }) + ); + } + }); + } + } + customElements.define("pw-geobutton", c), customElements.define("pw-messagebox", E); + class m extends HTMLElement { + constructor() { + super(), this.dataList = {}; + } + getItem(u) { + return this.dataList[u]; + } + setItems(u) { + this.dataList = {}; + for (let h of u) + this.dataList[h.id] = h; + } + connectedCallback() { + const u = this, h = Ne( + this.getAttribute("data-debounce-ms"), + Be + ), d = this.querySelector("input"), l = this.querySelector( + "#" + this.getAttribute("for") + ); + let g = new H(d, l, { + tabInsertsSuggestions: !0, + scrollIntoViewOptions: !1 + }); + function w(p) { + p ? g.start() : (g.clearSelection(), g.stop()), l.hidden = !p; + } + function k() { + u.setItems([]), l.innerHTML = ""; + const p = r(e.noResults); + l.appendChild(p), w(!0); + } + const q = xe(async (p) => { + try { + if (!p.value) { + l.innerHTML = ""; + return; + } + const f = await Je(t, p.value); + if (f.length === 0) + return k(); + u.setItems(f), l.innerHTML = ""; + for (let b of f) { + const S = i(b); + l.appendChild(S); + } + w(!0); + } catch { + k(); + } + }, h); + d.addEventListener("keydown", (p) => { + p.key === "Escape" && w(!1); + }), d.addEventListener( + "input", + (p) => q(p.target) + ), d.addEventListener("focus", () => w(!0)), d.addEventListener("blur", () => w(!1)), document.addEventListener("click", (p) => { + j(p.target, this) || w(!1); + }), l.addEventListener("combobox-commit", function(p) { + const f = p.target.getAttribute( + "data-feature-id" + ), b = f ? u.getItem(f) : void 0; + let S = d.value; + b && (S = `${b.name}`, b.locality && (S += `, ${b.locality}`)), d.value = S, document.dispatchEvent( + new CustomEvent("search-selected", { + bubbles: !0, + detail: { + key: d.name, + item: b + } + }) + ), l.hidden = !0, g.clearSelection(), g.stop(); + }); + } + } + customElements.define("pw-autocomplete", m); + const $ = y` +
+ +
+ `, _ = (a, u = !0) => y` +
+ ${e.searchTime.title} +
+
+ + + ${u ? y` + + ` : ""} +
+ +
+
+ `, F = y` +
+
+
+ ${e.assistant.title} +
+ +
+ + + + +
+ + + +
+ +
+ +
+ + + + +
+
+
+ ${_("pw-assistant")} +
+ ${$} +
+ `, P = y` +
+
+
+ ${e.departure.title} +
+ + + + + +
+ +
+ ${_("pw-departures", !1)} +
+ ${$} +
+ `; + return y` +
+ +
${F}
+
+ ${P} +
+
+ `; +} +function We() { + var t; + (t = document.querySelector(".js-tablist")) == null || t.addEventListener("click", function(e) { + var m, $; + 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((_) => { + _.classList.add(o.hidden); + }), document.querySelectorAll(".js-tablist a").forEach((_) => { + _.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 = ($ = Array.from(s).find( + (_) => _.checked + )) == null ? void 0 : $.value; + document.querySelectorAll(".js-search-date-details").forEach((_) => { + _.hidden = c === "now"; + }), document.dispatchEvent( + new CustomEvent("reset-search", { + bubbles: !0 + }) + ); + }); +} +function xe(t, e) { + let n = null; + return function(...i) { + clearTimeout(n), n = setTimeout(() => { + t(...i); + }, e); + }; +} +function v(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 Ne(t, e) { + const n = parseInt(t, 10); + return Number.isNaN(n) ? e : n; +} +function j(t, e) { + return t === e ? !0 : !t || !t.parentElement ? !1 : j(t.parentElement, e); +} +function Re(t) { + switch (Ge(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 Ge(t) { + return t.map(Ke).filter((e, n, i) => i.indexOf(e) === n); +} +function Ke(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 Ue(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 Ve(t, e) { + const n = e.mode !== "now" ? { + searchMode: e.mode, + searchTime: e.dateTime.toString() + } : { searchMode: e.mode }, i = Ue( + t.from, + t.to + ); + return { + ...n, + ...i + }; +} +function Qe(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 Je(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 Ye(t, e) { + const i = await (await fetch( + `${t}api/departures/reverse?lat=${e.latitude}&lon=${e.longitude}` + )).json(); + if (i) + return i; +} +async function ze(t, e) { + return new Promise(function(n, i) { + navigator.geolocation.getCurrentPosition( + async (r) => { + const s = await Ye(t, r.coords); + n(s); + }, + (r) => { + i(new Error(Xe(r.code, e))); + }, + { enableHighAccuracy: !0, timeout: 1e4 } + ); + }); +} +function Xe(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 Ze = { + 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 et(t) { + return Ze[t]; +} +export { + ot as createWidget, + Ye as reverse +}; diff --git a/public/widget/GYJwhgtkA/2.21.1/planner-web.umd.js b/public/widget/GYJwhgtkA/2.21.1/planner-web.umd.js new file mode 100644 index 00000000..5eb24635 --- /dev/null +++ b/public/widget/GYJwhgtkA/2.21.1/planner-web.umd.js @@ -0,0 +1,291 @@ +(function(f,S){typeof exports=="object"&&typeof module<"u"?S(exports):typeof define=="function"&&define.amd?define(["exports"],S):(f=typeof globalThis<"u"?globalThis:f||self,S(f.PlannerWeb={}))})(this,function(f){"use strict";class S{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=>x(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")}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")}start(){this.input.setAttribute("aria-expanded","true"),this.input.addEventListener("compositionstart",this.compositionEventHandler),this.input.addEventListener("compositionend",this.compositionEventHandler),this.input.addEventListener("input",this.inputHandler),this.input.addEventListener("keydown",this.keyboardEventHandler),this.list.addEventListener("mousedown",I),this.resetSelection()}stop(){this.clearSelection(),this.input.setAttribute("aria-expanded","false"),this.input.removeEventListener("compositionstart",this.compositionEventHandler),this.input.removeEventListener("compositionend",this.compositionEventHandler),this.input.removeEventListener("input",this.inputHandler),this.input.removeEventListener("keydown",this.keyboardEventHandler),this.list.removeEventListener("mousedown",I)}indicateDefaultOption(){var e;this.firstOptionSelectionMode==="active"?(e=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(A)[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(A)[0],i=Array.from(this.list.querySelectorAll('[role="option"]')).filter(A),r=i.indexOf(n);if(r===i.length-1&&e===1||r===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&&m0||t.offsetHeight>0)}function x(t,e){e.isComposing=t.type==="compositionstart",document.getElementById(e.input.getAttribute("aria-controls")||"")&&e.clearSelection()}const o={"override-light":"theme-module__override-light",light:"theme-module__light",assistant:'"../page-modules/assistant/assistant.module.css"',departures:'"../page-modules/departures/departures.module.css"',search:'"../components/search/search.module.css"',selector:'"../modules/search-time/selector/selector.module.css"',buttonComponent:'"../components/button/button.module.css"',hidden:"widget-module__hidden",lightWrapper:"widget-module__lightWrapper theme-module__light",wrapper:"widget-module__wrapper theme-module__override-light",form:"widget-module__form assistant-module__container",nav:"widget-module__nav",tabs:"widget-module__tabs",tabSelected:"widget-module__tabSelected",main:"widget-module__main assistant-module__main",heading:"widget-module__heading assistant-module__heading",inputBoxes:"widget-module__inputBoxes",search_container:"widget-module__search_container search-module__container",search_inputContainer:"widget-module__search_inputContainer search-module__inputContainer",search_label:"widget-module__search_label search-module__label typography-module__typo-body__secondary",search_input:"widget-module__search_input search-module__input",search_inputLast:"widget-module__search_inputLast",button_geolocation:"widget-module__button_geolocation departures-module__geolocationButton",selector_group:"widget-module__selector_group selector-module__departureDateSelector",selector_options:"widget-module__selector_options selector-module__options",selector_options__small:"widget-module__selector_options__small selector-module__options",selector_option:"widget-module__selector_option selector-module__option",selector_option__text:"widget-module__selector_option__text selector-module__option__text",selector_option__label:"widget-module__selector_option__label selector-module__option__label",selector_option__input:"widget-module__selector_option__input selector-module__option__input",selector_dateAndTimeSelectorsWrapper:"widget-module__selector_dateAndTimeSelectorsWrapper selector-module__dateAndTimeSelectorsWrapper",selector_dateAndTimeSelectorsWrapper__hidden:"widget-module__selector_dateAndTimeSelectorsWrapper__hidden",selector_dateAndTimeSelectors:"widget-module__selector_dateAndTimeSelectors selector-module__dateAndTimeSelectors",selector_dateSelector:"widget-module__selector_dateSelector selector-module__dateSelector",selector_timeSelector:"widget-module__selector_timeSelector selector-module__timeSelector",buttonGroup:"widget-module__buttonGroup",button:"widget-module__button",buttonLightOutline:"widget-module__buttonLightOutline","button--disabled":"widget-module__button--disabled",listItem:"widget-module__listItem",itemIcon:"widget-module__itemIcon",itemLocality:"widget-module__itemLocality search-module__itemLocality typography-module__typo-body__secondary",popupContainer:"widget-module__popupContainer search-module__menu",messageBox:"widget-module__messageBox",inheritFont:"widget-module__inheritFont",singleColumnLayout:"widget-module__singleColumnLayout"};function N(t){return Object.entries(t).reduce(function(e,n){return n[1]?e+" "+n[0]:e},"")}var O={MODULE_VERSION:"2.21.1",COMPRESSED_ORG:"GYJwhgtkA",ORG_ID:"fram"};const G=300,y=String.raw,k=O.MODULE_VERSION,C=O.COMPRESSED_ORG;function R(t){if(!(t!=null&&t.startsWith("http")))throw new Error("Missing urlBase in correct schema.");return t.endsWith("/")||(t+="/"),{URL_BASE:t,URL_JS_UMD:`${t}widget/${C}/${k}/planner-web.umd.js`,URL_JS_ESM:`${t}widget/${C}/${k}/planner-web.mjs`,URL_CSS:`${t}widget/${C}/${k}/planner-web.css`}}function K({urlBase:t,language:e="en",outputOverrideOptions:n={}}){const i=ce(e),r=R(t),s={inheritFont:!1,singleColumnLayout:!1,...n};return{output:J(r,i,s),init:U,urls:r}}function U(){var e,n;Y(),B("pw-assistant"),B("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}),document.addEventListener("reset-search",function(){t={from:void 0,to:void 0},document.querySelectorAll('input[name="from"], input[name="to"]').forEach(i=>{i.value=""})}),document.querySelectorAll("[name$=searchTimeSelector]").forEach(function(i){i.addEventListener("change",function(r){const c=r.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;Q(r,t.from)}),(n=document.querySelector("#pw-form-assistant"))==null||n.addEventListener("submit",i=>{i.preventDefault();const r=i.currentTarget;V(r,t.from,t.to)})}function B(t){const e=document.querySelector(`#${t}-searchTimeSelector-date`),n=document.querySelector(`#${t}-searchTimeSelector-time`);try{if(e&&(e.valueAsDate=new Date),n){const i=new Date,r=String(i.getHours()).padStart(2,"0"),s=String(i.getMinutes()).padStart(2,"0");n.value=`${r}:${s}`}}catch{}}function j(t,e){const n=t.get(`${e}-searchTimeSelector`);if(n==="now")return{mode:"now"};{const i=t.get("dateinput"),r=t.get("timeinput");if(i&&r){const s=new Date(`${i}T${r}`);return{mode:n=="arriveBy"?"arriveBy":"departBy",dateTime:s.getTime()}}return{mode:"now"}}}function V(t,e,n){const i=t.action,r=j(new FormData(t),"pw-assistant"),s=ne({from:e,to:n},r),c=new URLSearchParams(s);window.location.href=`${i}?${c.toString()}`}function Q(t,e){const n=t.action,i=j(new FormData(t),"pw-departures"),r=ie(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()}`}class E extends HTMLElement{constructor(){super()}connectedCallback(){const e=this;e.hidden=!0,e.classList.add(o.messageBox),document.addEventListener("pw-errorMessage",function(n){const i=n;e.textContent=i.detail.message,e.hidden=!1}),document.addEventListener("pw-errorMessage-clear",function(n){e.hidden=!0}),e.addEventListener("click",function(){E.clearMessageBox()})}static clearMessageBox(){document.dispatchEvent(new CustomEvent("pw-errorMessage-clear",{bubbles:!0}))}}function J({URL_BASE:t},e,n){function i(a){const u=s(a),h=b("span",[a.name]),d=b("span",[a.locality??""],o.itemLocality),l=b("li",[u,h,d],o.listItem);return l.role="option",l.setAttribute("data-feature-id",a.id),l}function r(a){const u=b("span",[a]);return b("li",[u],o.listItem)}function s(a){const u=Z(a.category),h=b("img");h.src=`${t}assets/mono/light/${u.icon}.svg`,h.alt=u.alt,h.role="img";const d=b("div",[h],o.itemIcon);return d.ariaHidden="true",d}class c extends HTMLElement{constructor(){super()}connectedCallback(){const u=this;this.querySelector("button").addEventListener("click",async()=>{var d;E.clearMessageBox();try{const l=await se(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,detail:{key:"from",item:l}}))}catch(l){l instanceof Error&&document.dispatchEvent(new CustomEvent("pw-errorMessage",{bubbles:!0,detail:{message:l.message}}))}})}}customElements.define("pw-geobutton",c),customElements.define("pw-messagebox",E);class m extends HTMLElement{constructor(){super(),this.dataList={}}getItem(u){return this.dataList[u]}setItems(u){this.dataList={};for(let h of u)this.dataList[h.id]=h}connectedCallback(){const u=this,h=X(this.getAttribute("data-debounce-ms"),G),d=this.querySelector("input"),l=this.querySelector("#"+this.getAttribute("for"));let g=new S(d,l,{tabInsertsSuggestions:!0,scrollIntoViewOptions:!1});function $(p){p?g.start():(g.clearSelection(),g.stop()),l.hidden=!p}function q(){u.setItems([]),l.innerHTML="";const p=r(e.noResults);l.appendChild(p),$(!0)}const pe=z(async p=>{try{if(!p.value){l.innerHTML="";return}const v=await re(t,p.value);if(v.length===0)return q();u.setItems(v),l.innerHTML="";for(let w of v){const L=i(w);l.appendChild(L)}$(!0)}catch{q()}},h);d.addEventListener("keydown",p=>{p.key==="Escape"&&$(!1)}),d.addEventListener("input",p=>pe(p.target)),d.addEventListener("focus",()=>$(!0)),d.addEventListener("blur",()=>$(!1)),document.addEventListener("click",p=>{P(p.target,this)||$(!1)}),l.addEventListener("combobox-commit",function(p){const v=p.target.getAttribute("data-feature-id"),w=v?u.getItem(v):void 0;let L=d.value;w&&(L=`${w.name}`,w.locality&&(L+=`, ${w.locality}`)),d.value=L,document.dispatchEvent(new CustomEvent("search-selected",{bubbles:!0,detail:{key:d.name,item:w}})),l.hidden=!0,g.clearSelection(),g.stop()})}}customElements.define("pw-autocomplete",m);const T=y` +
+ +
+ `,_=(a,u=!0)=>y` +
+ ${e.searchTime.title} +
+
+ + + ${u?y` + + `:""} +
+ +
+
+ `,ue=y` +
+
+
+ ${e.assistant.title} +
+ +
+ + + + +
+ + + +
+ +
+ +
+ + + + +
+
+
+ ${_("pw-assistant")} +
+ ${T} +
+ `,de=y` +
+
+
+ ${e.departure.title} +
+ + + + + +
+ +
+ ${_("pw-departures",!1)} +
+ ${T} +
+ `;return y` +
+ +
${ue}
+
+ ${de} +
+
+ `}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(_=>{_.classList.add(o.hidden)}),document.querySelectorAll(".js-tablist a").forEach(_=>{_.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(_=>_.checked))==null?void 0:T.value;document.querySelectorAll(".js-search-date-details").forEach(_=>{_.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"})}); diff --git a/public/widget/HYMw1kA/2.21.1/planner-web.css b/public/widget/HYMw1kA/2.21.1/planner-web.css new file mode 100644 index 00000000..0e7e47e6 --- /dev/null +++ b/public/widget/HYMw1kA/2.21.1/planner-web.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap";.theme-module__light{--border-primary: #E7E8E9;--border-secondary: #003441;--border-focus: #007C92;--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: #003441;--text-colors-secondary: rgba(0, 52, 65, .7);--text-colors-disabled: rgba(0, 52, 65, .52);--static-background-background_0-background: #FFFFFF;--static-background-background_0-text: #003441;--static-background-background_1-background: #E6F2F6;--static-background-background_1-text: #003441;--static-background-background_2-background: #EAEAEA;--static-background-background_2-text: #003441;--static-background-background_3-background: #E4E4E4;--static-background-background_3-text: #003441;--static-background-background_accent_0-background: #0181A2;--static-background-background_accent_0-text: #FFFFFF;--static-background-background_accent_1-background: #046073;--static-background-background_accent_1-text: #FFFFFF;--static-background-background_accent_2-background: #C5DFE6;--static-background-background_accent_2-text: #003441;--static-background-background_accent_3-background: #0181A2;--static-background-background_accent_3-text: #FFFFFF;--static-background-background_accent_4-background: #FFFFFF;--static-background-background_accent_4-text: #003441;--static-background-background_accent_5-background: #FFFFFF;--static-background-background_accent_5-text: #003441;--static-zone_selection-from-background: #FF7E81;--static-zone_selection-from-text: #003441;--static-zone_selection-to-background: #FF282E;--static-zone_selection-to-text: #FFFFFF;--interactive-interactive_0-default-background: #046073;--interactive-interactive_0-default-text: #FFFFFF;--interactive-interactive_0-hover-background: #0181A2;--interactive-interactive_0-hover-text: #FFFFFF;--interactive-interactive_0-active-background: #99CDDA;--interactive-interactive_0-active-text: #003441;--interactive-interactive_0-disabled-background: #99A7AB;--interactive-interactive_0-disabled-text: #FFFFFF;--interactive-interactive_0-outline-background: #0181A2;--interactive-interactive_0-outline-text: #003441;--interactive-interactive_0-destructive-background: #A51140;--interactive-interactive_0-destructive-text: #FFFFFF;--interactive-interactive_1-default-background: #FFFFFF;--interactive-interactive_1-default-text: #003441;--interactive-interactive_1-hover-background: #0181A2;--interactive-interactive_1-hover-text: #FFFFFF;--interactive-interactive_1-active-background: #99CDDA;--interactive-interactive_1-active-text: #003441;--interactive-interactive_1-disabled-background: #99A7AB;--interactive-interactive_1-disabled-text: #FFFFFF;--interactive-interactive_1-outline-background: #0181A2;--interactive-interactive_1-outline-text: #FFFFFF;--interactive-interactive_1-destructive-background: #A51140;--interactive-interactive_1-destructive-text: #FFFFFF;--interactive-interactive_2-default-background: #FFFFFF;--interactive-interactive_2-default-text: #003441;--interactive-interactive_2-hover-background: #C5DFE6;--interactive-interactive_2-hover-text: #003441;--interactive-interactive_2-active-background: #99CDDA;--interactive-interactive_2-active-text: #003441;--interactive-interactive_2-disabled-background: #E6F2F6;--interactive-interactive_2-disabled-text: #003441;--interactive-interactive_2-outline-background: #046073;--interactive-interactive_2-outline-text: #FFFFFF;--interactive-interactive_2-destructive-background: #A51140;--interactive-interactive_2-destructive-text: #FFFFFF;--interactive-interactive_3-default-background: #FFFFFF;--interactive-interactive_3-default-text: #003441;--interactive-interactive_3-hover-background: #FFFFFF;--interactive-interactive_3-hover-text: #003441;--interactive-interactive_3-active-background: #FFFFFF;--interactive-interactive_3-active-text: #003441;--interactive-interactive_3-disabled-background: #FFFFFF;--interactive-interactive_3-disabled-text: #003441;--interactive-interactive_3-outline-background: #FFFFFF;--interactive-interactive_3-outline-text: #003441;--interactive-interactive_3-destructive-background: #A51140;--interactive-interactive_3-destructive-text: #FFFFFF;--interactive-interactive_destructive-default-background: #A61419;--interactive-interactive_destructive-default-text: #FFFFFF;--interactive-interactive_destructive-hover-background: #CA7275;--interactive-interactive_destructive-hover-text: #FFFFFF;--interactive-interactive_destructive-active-background: #531B22;--interactive-interactive_destructive-active-text: #FFFFFF;--interactive-interactive_destructive-disabled-background: #EDD0D1;--interactive-interactive_destructive-disabled-text: #FFFFFF;--interactive-interactive_destructive-outline-background: #021F28;--interactive-interactive_destructive-outline-text: #FFFFFF;--interactive-interactive_destructive-destructive-background: #A51140;--interactive-interactive_destructive-destructive-text: #FFFFFF;--transport-transport_city-primary-background: #014D61;--transport-transport_city-primary-text: #FFFFFF;--transport-transport_city-secondary-background: #014D61;--transport-transport_city-secondary-text: #FFFFFF;--transport-transport_region-primary-background: #6C7E2F;--transport-transport_region-primary-text: #FFFFFF;--transport-transport_region-secondary-background: #6C7E2F;--transport-transport_region-secondary-text: #FFFFFF;--transport-transport_airport_express-primary-background: #6C7E2F;--transport-transport_airport_express-primary-text: #FFFFFF;--transport-transport_airport_express-secondary-background: #6C7E2F;--transport-transport_airport_express-secondary-text: #FFFFFF;--transport-transport_boat-primary-background: #1777D7;--transport-transport_boat-primary-text: #FFFFFF;--transport-transport_boat-secondary-background: #1777D7;--transport-transport_boat-secondary-text: #FFFFFF;--transport-transport_train-primary-background: #A5608A;--transport-transport_train-primary-text: #FFFFFF;--transport-transport_train-secondary-background: #A5608A;--transport-transport_train-secondary-text: #FFFFFF;--transport-transport_airport-primary-background: #8A62C3;--transport-transport_airport-primary-text: #FFFFFF;--transport-transport_airport-secondary-background: #8A62C3;--transport-transport_airport-secondary-text: #FFFFFF;--transport-transport_plane-primary-background: #318181;--transport-transport_plane-primary-text: #FFFFFF;--transport-transport_plane-secondary-background: #318181;--transport-transport_plane-secondary-text: #FFFFFF;--transport-transport_flexible-primary-background: #717171;--transport-transport_flexible-primary-text: #FFFFFF;--transport-transport_flexible-secondary-background: #717171;--transport-transport_flexible-secondary-text: #FFFFFF;--transport-transport_bike-primary-background: #7D0D31;--transport-transport_bike-primary-text: #FFFFFF;--transport-transport_bike-secondary-background: #7D0D31;--transport-transport_bike-secondary-text: #FFFFFF;--transport-transport_scooter-primary-background: #464A00;--transport-transport_scooter-primary-text: #FFFFFF;--transport-transport_scooter-secondary-background: #464A00;--transport-transport_scooter-secondary-text: #FFFFFF;--transport-transport_car-primary-background: #6F5468;--transport-transport_car-primary-text: #FFFFFF;--transport-transport_car-secondary-background: #6F5468;--transport-transport_car-secondary-text: #FFFFFF;--transport-transport_other-primary-background: #717171;--transport-transport_other-primary-text: #FFFFFF;--transport-transport_other-secondary-background: #717171;--transport-transport_other-secondary-text: #FFFFFF;--status-valid-primary-background: #7FDABB;--status-valid-primary-text: #003441;--status-valid-secondary-background: #7FDABB;--status-valid-secondary-text: #003441;--status-info-primary-background: #99CDDA;--status-info-primary-text: #003441;--status-info-secondary-background: #99CDDA;--status-info-secondary-text: #003441;--status-warning-primary-background: #FCBA63;--status-warning-primary-text: #003441;--status-warning-secondary-background: #FCBA63;--status-warning-secondary-text: #003441;--status-error-primary-background: #A61419;--status-error-primary-text: #FFFFFF;--status-error-secondary-background: #A61419;--status-error-secondary-text: #FFFFFF}.theme-module__dark{--border-primary: #2C353B;--border-secondary: #FFFFFF;--border-focus: #71D6E0;--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: rgba(255, 255, 255, .6);--text-colors-disabled: rgba(255, 255, 255, .2);--static-background-background_0-background: #046073;--static-background-background_0-text: #FFFFFF;--static-background-background_1-background: #00303D;--static-background-background_1-text: #FFFFFF;--static-background-background_2-background: #00232C;--static-background-background_2-text: #FFFFFF;--static-background-background_3-background: #002B38;--static-background-background_3-text: #FFFFFF;--static-background-background_accent_0-background: #00232C;--static-background-background_accent_0-text: #FFFFFF;--static-background-background_accent_1-background: #000000;--static-background-background_accent_1-text: #FFFFFF;--static-background-background_accent_2-background: #000000;--static-background-background_accent_2-text: #FFFFFF;--static-background-background_accent_3-background: #00303D;--static-background-background_accent_3-text: #FFFFFF;--static-background-background_accent_4-background: #000000;--static-background-background_accent_4-text: #FFFFFF;--static-background-background_accent_5-background: #000000;--static-background-background_accent_5-text: #FFFFFF;--static-zone_selection-from-background: #FF7E81;--static-zone_selection-from-text: #003441;--static-zone_selection-to-background: #FF282E;--static-zone_selection-to-text: #FFFFFF;--interactive-interactive_0-default-background: #0181A2;--interactive-interactive_0-default-text: #FFFFFF;--interactive-interactive_0-hover-background: #02414F;--interactive-interactive_0-hover-text: #FFFFFF;--interactive-interactive_0-active-background: #99CDDA;--interactive-interactive_0-active-text: #003441;--interactive-interactive_0-disabled-background: #99A7AB;--interactive-interactive_0-disabled-text: #FFFFFF;--interactive-interactive_0-outline-background: #046073;--interactive-interactive_0-outline-text: #003441;--interactive-interactive_0-destructive-background: #D692A7;--interactive-interactive_0-destructive-text: #003441;--interactive-interactive_1-default-background: #046073;--interactive-interactive_1-default-text: #FFFFFF;--interactive-interactive_1-hover-background: #00303D;--interactive-interactive_1-hover-text: #FFFFFF;--interactive-interactive_1-active-background: #0181A2;--interactive-interactive_1-active-text: #FFFFFF;--interactive-interactive_1-disabled-background: #99A7AB;--interactive-interactive_1-disabled-text: #FFFFFF;--interactive-interactive_1-outline-background: #0181A2;--interactive-interactive_1-outline-text: #FFFFFF;--interactive-interactive_1-destructive-background: #D692A7;--interactive-interactive_1-destructive-text: #003441;--interactive-interactive_2-default-background: #046073;--interactive-interactive_2-default-text: #FFFFFF;--interactive-interactive_2-hover-background: #02414F;--interactive-interactive_2-hover-text: #FFFFFF;--interactive-interactive_2-active-background: #00303D;--interactive-interactive_2-active-text: #FFFFFF;--interactive-interactive_2-disabled-background: #00303D;--interactive-interactive_2-disabled-text: #FFFFFF;--interactive-interactive_2-outline-background: #FFFFFF;--interactive-interactive_2-outline-text: #003441;--interactive-interactive_2-destructive-background: #D692A7;--interactive-interactive_2-destructive-text: #003441;--interactive-interactive_3-default-background: #FFFFFF;--interactive-interactive_3-default-text: #003441;--interactive-interactive_3-hover-background: #FFFFFF;--interactive-interactive_3-hover-text: #003441;--interactive-interactive_3-active-background: #FFFFFF;--interactive-interactive_3-active-text: #003441;--interactive-interactive_3-disabled-background: #FFFFFF;--interactive-interactive_3-disabled-text: #003441;--interactive-interactive_3-outline-background: #FFFFFF;--interactive-interactive_3-outline-text: #003441;--interactive-interactive_3-destructive-background: #D692A7;--interactive-interactive_3-destructive-text: #003441;--interactive-interactive_destructive-default-background: #A61419;--interactive-interactive_destructive-default-text: #FFFFFF;--interactive-interactive_destructive-hover-background: #CA7275;--interactive-interactive_destructive-hover-text: #FFFFFF;--interactive-interactive_destructive-active-background: #531B22;--interactive-interactive_destructive-active-text: #FFFFFF;--interactive-interactive_destructive-disabled-background: #EDD0D1;--interactive-interactive_destructive-disabled-text: #FFFFFF;--interactive-interactive_destructive-outline-background: #FFFFFF;--interactive-interactive_destructive-outline-text: #003441;--interactive-interactive_destructive-destructive-background: #D692A7;--interactive-interactive_destructive-destructive-text: #003441;--transport-transport_city-primary-background: #80C0D1;--transport-transport_city-primary-text: #FFFFFF;--transport-transport_city-secondary-background: #80C0D1;--transport-transport_city-secondary-text: #FFFFFF;--transport-transport_region-primary-background: #98A56D;--transport-transport_region-primary-text: #FFFFFF;--transport-transport_region-secondary-background: #98A56D;--transport-transport_region-secondary-text: #FFFFFF;--transport-transport_airport_express-primary-background: #98A56D;--transport-transport_airport_express-primary-text: #FFFFFF;--transport-transport_airport_express-secondary-background: #98A56D;--transport-transport_airport_express-secondary-text: #FFFFFF;--transport-transport_boat-primary-background: #5DA0E3;--transport-transport_boat-primary-text: #FFFFFF;--transport-transport_boat-secondary-background: #5DA0E3;--transport-transport_boat-secondary-text: #FFFFFF;--transport-transport_train-primary-background: #C090AD;--transport-transport_train-primary-text: #FFFFFF;--transport-transport_train-secondary-background: #C090AD;--transport-transport_train-secondary-text: #FFFFFF;--transport-transport_airport-primary-background: #AD91D5;--transport-transport_airport-primary-text: #FFFFFF;--transport-transport_airport-secondary-background: #AD91D5;--transport-transport_airport-secondary-text: #FFFFFF;--transport-transport_plane-primary-background: #6FA7A7;--transport-transport_plane-primary-text: #FFFFFF;--transport-transport_plane-secondary-background: #6FA7A7;--transport-transport_plane-secondary-text: #FFFFFF;--transport-transport_flexible-primary-background: #6FA7A7;--transport-transport_flexible-primary-text: #FFFFFF;--transport-transport_flexible-secondary-background: #6FA7A7;--transport-transport_flexible-secondary-text: #FFFFFF;--transport-transport_bike-primary-background: #A51140;--transport-transport_bike-primary-text: #FFFFFF;--transport-transport_bike-secondary-background: #A51140;--transport-transport_bike-secondary-text: #FFFFFF;--transport-transport_scooter-primary-background: #5B6100;--transport-transport_scooter-primary-text: #FFFFFF;--transport-transport_scooter-secondary-background: #5B6100;--transport-transport_scooter-secondary-text: #FFFFFF;--transport-transport_car-primary-background: #6F5468;--transport-transport_car-primary-text: #FFFFFF;--transport-transport_car-secondary-background: #6F5468;--transport-transport_car-secondary-text: #FFFFFF;--transport-transport_other-primary-background: #9C9C9C;--transport-transport_other-primary-text: #FFFFFF;--transport-transport_other-secondary-background: #9C9C9C;--transport-transport_other-secondary-text: #FFFFFF;--status-valid-primary-background: #7FDABB;--status-valid-primary-text: #003441;--status-valid-secondary-background: #7FDABB;--status-valid-secondary-text: #003441;--status-info-primary-background: #99CDDA;--status-info-primary-text: #003441;--status-info-secondary-background: #99CDDA;--status-info-secondary-text: #003441;--status-warning-primary-background: #FCBA63;--status-warning-primary-text: #003441;--status-warning-secondary-background: #FCBA63;--status-warning-secondary-text: #003441;--status-error-primary-background: #BE161D;--status-error-primary-text: #FFFFFF;--status-error-secondary-background: #BE161D;--status-error-secondary-text: #FFFFFF}@media (prefers-color-scheme: dark){.theme-module__light:not(.theme-module__override-light){--border-primary: #2C353B;--border-secondary: #FFFFFF;--border-focus: #71D6E0;--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: rgba(255, 255, 255, .6);--text-colors-disabled: rgba(255, 255, 255, .2);--static-background-background_0-background: #046073;--static-background-background_0-text: #FFFFFF;--static-background-background_1-background: #00303D;--static-background-background_1-text: #FFFFFF;--static-background-background_2-background: #00232C;--static-background-background_2-text: #FFFFFF;--static-background-background_3-background: #002B38;--static-background-background_3-text: #FFFFFF;--static-background-background_accent_0-background: #00232C;--static-background-background_accent_0-text: #FFFFFF;--static-background-background_accent_1-background: #000000;--static-background-background_accent_1-text: #FFFFFF;--static-background-background_accent_2-background: #000000;--static-background-background_accent_2-text: #FFFFFF;--static-background-background_accent_3-background: #00303D;--static-background-background_accent_3-text: #FFFFFF;--static-background-background_accent_4-background: #000000;--static-background-background_accent_4-text: #FFFFFF;--static-background-background_accent_5-background: #000000;--static-background-background_accent_5-text: #FFFFFF;--static-zone_selection-from-background: #FF7E81;--static-zone_selection-from-text: #003441;--static-zone_selection-to-background: #FF282E;--static-zone_selection-to-text: #FFFFFF;--interactive-interactive_0-default-background: #0181A2;--interactive-interactive_0-default-text: #FFFFFF;--interactive-interactive_0-hover-background: #02414F;--interactive-interactive_0-hover-text: #FFFFFF;--interactive-interactive_0-active-background: #99CDDA;--interactive-interactive_0-active-text: #003441;--interactive-interactive_0-disabled-background: #99A7AB;--interactive-interactive_0-disabled-text: #FFFFFF;--interactive-interactive_0-outline-background: #046073;--interactive-interactive_0-outline-text: #003441;--interactive-interactive_0-destructive-background: #D692A7;--interactive-interactive_0-destructive-text: #003441;--interactive-interactive_1-default-background: #046073;--interactive-interactive_1-default-text: #FFFFFF;--interactive-interactive_1-hover-background: #00303D;--interactive-interactive_1-hover-text: #FFFFFF;--interactive-interactive_1-active-background: #0181A2;--interactive-interactive_1-active-text: #FFFFFF;--interactive-interactive_1-disabled-background: #99A7AB;--interactive-interactive_1-disabled-text: #FFFFFF;--interactive-interactive_1-outline-background: #0181A2;--interactive-interactive_1-outline-text: #FFFFFF;--interactive-interactive_1-destructive-background: #D692A7;--interactive-interactive_1-destructive-text: #003441;--interactive-interactive_2-default-background: #046073;--interactive-interactive_2-default-text: #FFFFFF;--interactive-interactive_2-hover-background: #02414F;--interactive-interactive_2-hover-text: #FFFFFF;--interactive-interactive_2-active-background: #00303D;--interactive-interactive_2-active-text: #FFFFFF;--interactive-interactive_2-disabled-background: #00303D;--interactive-interactive_2-disabled-text: #FFFFFF;--interactive-interactive_2-outline-background: #FFFFFF;--interactive-interactive_2-outline-text: #003441;--interactive-interactive_2-destructive-background: #D692A7;--interactive-interactive_2-destructive-text: #003441;--interactive-interactive_3-default-background: #FFFFFF;--interactive-interactive_3-default-text: #003441;--interactive-interactive_3-hover-background: #FFFFFF;--interactive-interactive_3-hover-text: #003441;--interactive-interactive_3-active-background: #FFFFFF;--interactive-interactive_3-active-text: #003441;--interactive-interactive_3-disabled-background: #FFFFFF;--interactive-interactive_3-disabled-text: #003441;--interactive-interactive_3-outline-background: #FFFFFF;--interactive-interactive_3-outline-text: #003441;--interactive-interactive_3-destructive-background: #D692A7;--interactive-interactive_3-destructive-text: #003441;--interactive-interactive_destructive-default-background: #A61419;--interactive-interactive_destructive-default-text: #FFFFFF;--interactive-interactive_destructive-hover-background: #CA7275;--interactive-interactive_destructive-hover-text: #FFFFFF;--interactive-interactive_destructive-active-background: #531B22;--interactive-interactive_destructive-active-text: #FFFFFF;--interactive-interactive_destructive-disabled-background: #EDD0D1;--interactive-interactive_destructive-disabled-text: #FFFFFF;--interactive-interactive_destructive-outline-background: #FFFFFF;--interactive-interactive_destructive-outline-text: #003441;--interactive-interactive_destructive-destructive-background: #D692A7;--interactive-interactive_destructive-destructive-text: #003441;--transport-transport_city-primary-background: #80C0D1;--transport-transport_city-primary-text: #FFFFFF;--transport-transport_city-secondary-background: #80C0D1;--transport-transport_city-secondary-text: #FFFFFF;--transport-transport_region-primary-background: #98A56D;--transport-transport_region-primary-text: #FFFFFF;--transport-transport_region-secondary-background: #98A56D;--transport-transport_region-secondary-text: #FFFFFF;--transport-transport_airport_express-primary-background: #98A56D;--transport-transport_airport_express-primary-text: #FFFFFF;--transport-transport_airport_express-secondary-background: #98A56D;--transport-transport_airport_express-secondary-text: #FFFFFF;--transport-transport_boat-primary-background: #5DA0E3;--transport-transport_boat-primary-text: #FFFFFF;--transport-transport_boat-secondary-background: #5DA0E3;--transport-transport_boat-secondary-text: #FFFFFF;--transport-transport_train-primary-background: #C090AD;--transport-transport_train-primary-text: #FFFFFF;--transport-transport_train-secondary-background: #C090AD;--transport-transport_train-secondary-text: #FFFFFF;--transport-transport_airport-primary-background: #AD91D5;--transport-transport_airport-primary-text: #FFFFFF;--transport-transport_airport-secondary-background: #AD91D5;--transport-transport_airport-secondary-text: #FFFFFF;--transport-transport_plane-primary-background: #6FA7A7;--transport-transport_plane-primary-text: #FFFFFF;--transport-transport_plane-secondary-background: #6FA7A7;--transport-transport_plane-secondary-text: #FFFFFF;--transport-transport_flexible-primary-background: #6FA7A7;--transport-transport_flexible-primary-text: #FFFFFF;--transport-transport_flexible-secondary-background: #6FA7A7;--transport-transport_flexible-secondary-text: #FFFFFF;--transport-transport_bike-primary-background: #A51140;--transport-transport_bike-primary-text: #FFFFFF;--transport-transport_bike-secondary-background: #A51140;--transport-transport_bike-secondary-text: #FFFFFF;--transport-transport_scooter-primary-background: #5B6100;--transport-transport_scooter-primary-text: #FFFFFF;--transport-transport_scooter-secondary-background: #5B6100;--transport-transport_scooter-secondary-text: #FFFFFF;--transport-transport_car-primary-background: #6F5468;--transport-transport_car-primary-text: #FFFFFF;--transport-transport_car-secondary-background: #6F5468;--transport-transport_car-secondary-text: #FFFFFF;--transport-transport_other-primary-background: #9C9C9C;--transport-transport_other-primary-text: #FFFFFF;--transport-transport_other-secondary-background: #9C9C9C;--transport-transport_other-secondary-text: #FFFFFF;--status-valid-primary-background: #7FDABB;--status-valid-primary-text: #003441;--status-valid-secondary-background: #7FDABB;--status-valid-secondary-text: #003441;--status-info-primary-background: #99CDDA;--status-info-primary-text: #003441;--status-info-secondary-background: #99CDDA;--status-info-secondary-text: #003441;--status-warning-primary-background: #FCBA63;--status-warning-primary-text: #003441;--status-warning-secondary-background: #FCBA63;--status-warning-secondary-text: #003441;--status-error-primary-background: #BE161D;--status-error-primary-text: #FFFFFF;--status-error-secondary-background: #BE161D;--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_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_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_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}.selector-module__dateSelector label,.selector-module__timeSelector label{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__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)}.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%} diff --git a/public/widget/HYMw1kA/2.21.1/planner-web.d.ts b/public/widget/HYMw1kA/2.21.1/planner-web.d.ts new file mode 100644 index 00000000..a543ddb4 --- /dev/null +++ b/public/widget/HYMw1kA/2.21.1/planner-web.d.ts @@ -0,0 +1,33 @@ +import { GeocoderFeature } from '@atb/page-modules/departures'; + +export declare function createWidget({ urlBase, language, outputOverrideOptions, }: WidgetOptions): PlannerWebOutput; + +declare type Languages = 'nb' | 'nn' | 'en'; + +declare type OutputOverrideOptions = { + inheritFont?: boolean; + singleColumnLayout?: boolean; +}; + +export declare type PlannerWebOutput = { + output: string; + init: () => void; + urls: SettingConstants; +}; + +export declare function reverse(urlBase: string, coords: GeolocationCoordinates): Promise; + +declare type SettingConstants = { + URL_BASE: string; + URL_JS_UMD: string; + URL_JS_ESM: string; + URL_CSS: string; +}; + +export declare type WidgetOptions = { + urlBase: string; + language?: Languages; + outputOverrideOptions?: Partial; +}; + +export { } diff --git a/public/widget/HYMw1kA/2.21.1/planner-web.mjs b/public/widget/HYMw1kA/2.21.1/planner-web.mjs new file mode 100644 index 00000000..1bb5f617 --- /dev/null +++ b/public/widget/HYMw1kA/2.21.1/planner-web.mjs @@ -0,0 +1,973 @@ +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"); + } + 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"); + } + start() { + this.input.setAttribute("aria-expanded", "true"), this.input.addEventListener("compositionstart", this.compositionEventHandler), this.input.addEventListener("compositionend", this.compositionEventHandler), this.input.addEventListener("input", this.inputHandler), this.input.addEventListener("keydown", this.keyboardEventHandler), this.list.addEventListener("mousedown", C), this.resetSelection(); + } + stop() { + this.clearSelection(), this.input.setAttribute("aria-expanded", "false"), this.input.removeEventListener("compositionstart", this.compositionEventHandler), this.input.removeEventListener("compositionend", this.compositionEventHandler), this.input.removeEventListener("input", this.inputHandler), this.input.removeEventListener("keydown", this.keyboardEventHandler), this.list.removeEventListener("mousedown", C); + } + indicateDefaultOption() { + var e; + 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) { + 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); + } + const c = i[s]; + 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"); + } + clearSelection() { + this.input.removeAttribute("aria-activedescendant"); + for (const e of this.list.querySelectorAll('[aria-selected="true"], [data-combobox-option-default="true"]')) + e.removeAttribute("aria-selected"), e.removeAttribute("data-combobox-option-default"); + } + resetSelection() { + this.clearSelection(), this.indicateDefaultOption(); + } +} +function W(t, e) { + if (!(t.shiftKey || t.metaKey || t.altKey) && !(!e.ctrlBindings && t.ctrlKey) && !e.isComposing) + switch (t.key) { + case "Enter": + I(e.input, e.list) && t.preventDefault(); + break; + case "Tab": + e.tabInsertsSuggestions && I(e.input, e.list) && t.preventDefault(); + break; + case "Escape": + e.clearSelection(); + break; + case "ArrowDown": + e.navigate(1), t.preventDefault(); + break; + case "ArrowUp": + e.navigate(-1), t.preventDefault(); + break; + case "n": + e.ctrlBindings && t.ctrlKey && (e.navigate(1), t.preventDefault()); + break; + case "p": + e.ctrlBindings && t.ctrlKey && (e.navigate(-1), t.preventDefault()); + break; + default: + if (t.ctrlKey) + break; + e.resetSelection(); + } +} +function C(t) { + if (!(t.target instanceof Element)) + return; + const e = t.target.closest('[role="option"]'); + 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; +} +function M(t, e) { + t.dispatchEvent(new CustomEvent("combobox-commit", { bubbles: !0, detail: e })); +} +function x(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) { + 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"', Y = "widget-module__hidden", J = "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: Y, + lightWrapper: J, + 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, + "button--disabled": "widget-module__button--disabled", + listItem: Le, + itemIcon: Ae, + itemLocality: ke, + popupContainer: Ce, + messageBox: Ie, + inheritFont: De, + singleColumnLayout: Me +}; +function Oe(t) { + return Object.entries(t).reduce(function(e, n) { + return n[1] ? e + " " + n[0] : e; + }, ""); +} +var O = { MODULE_VERSION: "2.21.1", COMPRESSED_ORG: "HYMw1kA", ORG_ID: "nfk" }; +const Be = 300, y = String.raw, L = O.MODULE_VERSION, A = O.COMPRESSED_ORG; +function je(t) { + if (!(t != null && t.startsWith("http"))) + throw new Error("Missing urlBase in correct schema."); + return t.endsWith("/") || (t += "/"), { + URL_BASE: t, + URL_JS_UMD: `${t}widget/${A}/${L}/planner-web.umd.js`, + URL_JS_ESM: `${t}widget/${A}/${L}/planner-web.mjs`, + URL_CSS: `${t}widget/${A}/${L}/planner-web.css` + }; +} +function ot({ + urlBase: t, + language: e = "en", + outputOverrideOptions: n = {} +}) { + const i = et(e), r = je(t), s = { + inheritFont: !1, + singleColumnLayout: !1, + ...n + }; + return { + output: He(r, i, s), + init: Fe, + urls: r + }; +} +function Fe() { + var e, n; + We(), 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; + }), document.addEventListener("reset-search", function() { + t = { + from: void 0, + to: void 0 + }, document.querySelectorAll( + 'input[name="from"], input[name="to"]' + ).forEach((i) => { + i.value = ""; + }); + }), document.querySelectorAll("[name$=searchTimeSelector]").forEach(function(i) { + i.addEventListener("change", function(r) { + const c = r.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) => { + i.preventDefault(); + const r = i.currentTarget; + Pe(r, t.from, t.to); + }); +} +function D(t) { + const e = document.querySelector( + `#${t}-searchTimeSelector-date` + ), n = 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}`; + } + } catch { + } +} +function B(t, e) { + const n = t.get(`${e}-searchTimeSelector`); + if (n === "now") + return { + mode: "now" + }; + { + const i = t.get("dateinput"), r = t.get("timeinput"); + if (i && r) { + const s = /* @__PURE__ */ new Date(`${i}T${r}`); + return { + mode: n == "arriveBy" ? "arriveBy" : "departBy", + dateTime: s.getTime() + }; + } + return { + mode: "now" + }; + } +} +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); + 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()}`; +} +class E extends HTMLElement { + constructor() { + super(); + } + connectedCallback() { + const e = this; + e.hidden = !0, e.classList.add(o.messageBox), document.addEventListener("pw-errorMessage", function(n) { + const i = n; + e.textContent = i.detail.message, e.hidden = !1; + }), document.addEventListener("pw-errorMessage-clear", function(n) { + e.hidden = !0; + }), e.addEventListener("click", function() { + E.clearMessageBox(); + }); + } + static clearMessageBox() { + document.dispatchEvent( + new CustomEvent("pw-errorMessage-clear", { + bubbles: !0 + }) + ); + } +} +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 r(a) { + const u = v("span", [a]); + return v("li", [u], o.listItem); + } + function s(a) { + const u = Re(a.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); + return d.ariaHidden = "true", d; + } + class c extends HTMLElement { + constructor() { + super(); + } + connectedCallback() { + const u = this; + this.querySelector("button").addEventListener("click", async () => { + var d; + E.clearMessageBox(); + try { + const l = await ze(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, + detail: { + key: "from", + item: l + } + }) + ); + } catch (l) { + l instanceof Error && document.dispatchEvent( + new CustomEvent("pw-errorMessage", { + bubbles: !0, + detail: { + message: l.message + } + }) + ); + } + }); + } + } + customElements.define("pw-geobutton", c), customElements.define("pw-messagebox", E); + class m extends HTMLElement { + constructor() { + super(), this.dataList = {}; + } + getItem(u) { + return this.dataList[u]; + } + setItems(u) { + this.dataList = {}; + for (let h of u) + this.dataList[h.id] = h; + } + connectedCallback() { + const u = this, h = Ne( + this.getAttribute("data-debounce-ms"), + Be + ), d = this.querySelector("input"), l = this.querySelector( + "#" + this.getAttribute("for") + ); + let g = new H(d, l, { + tabInsertsSuggestions: !0, + scrollIntoViewOptions: !1 + }); + function w(p) { + p ? g.start() : (g.clearSelection(), g.stop()), l.hidden = !p; + } + function k() { + u.setItems([]), l.innerHTML = ""; + const p = r(e.noResults); + l.appendChild(p), w(!0); + } + const q = xe(async (p) => { + try { + if (!p.value) { + l.innerHTML = ""; + return; + } + const f = await Ye(t, p.value); + if (f.length === 0) + return k(); + u.setItems(f), l.innerHTML = ""; + for (let b of f) { + const S = i(b); + l.appendChild(S); + } + w(!0); + } catch { + k(); + } + }, h); + d.addEventListener("keydown", (p) => { + p.key === "Escape" && w(!1); + }), d.addEventListener( + "input", + (p) => q(p.target) + ), d.addEventListener("focus", () => w(!0)), d.addEventListener("blur", () => w(!1)), document.addEventListener("click", (p) => { + j(p.target, this) || w(!1); + }), l.addEventListener("combobox-commit", function(p) { + const f = p.target.getAttribute( + "data-feature-id" + ), b = f ? u.getItem(f) : void 0; + let S = d.value; + b && (S = `${b.name}`, b.locality && (S += `, ${b.locality}`)), d.value = S, document.dispatchEvent( + new CustomEvent("search-selected", { + bubbles: !0, + detail: { + key: d.name, + item: b + } + }) + ), l.hidden = !0, g.clearSelection(), g.stop(); + }); + } + } + customElements.define("pw-autocomplete", m); + const $ = y` +
+ +
+ `, _ = (a, u = !0) => y` +
+ ${e.searchTime.title} +
+
+ + + ${u ? y` + + ` : ""} +
+ +
+
+ `, F = y` +
+
+
+ ${e.assistant.title} +
+ +
+ + + + +
+ + + +
+ +
+ +
+ + + + +
+
+
+ ${_("pw-assistant")} +
+ ${$} +
+ `, P = y` +
+
+
+ ${e.departure.title} +
+ + + + + +
+ +
+ ${_("pw-departures", !1)} +
+ ${$} +
+ `; + return y` +
+ +
${F}
+
+ ${P} +
+
+ `; +} +function We() { + var t; + (t = document.querySelector(".js-tablist")) == null || t.addEventListener("click", function(e) { + var m, $; + 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((_) => { + _.classList.add(o.hidden); + }), document.querySelectorAll(".js-tablist a").forEach((_) => { + _.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 = ($ = Array.from(s).find( + (_) => _.checked + )) == null ? void 0 : $.value; + document.querySelectorAll(".js-search-date-details").forEach((_) => { + _.hidden = c === "now"; + }), document.dispatchEvent( + new CustomEvent("reset-search", { + bubbles: !0 + }) + ); + }); +} +function xe(t, e) { + let n = null; + return function(...i) { + clearTimeout(n), n = setTimeout(() => { + t(...i); + }, e); + }; +} +function v(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 Ne(t, e) { + const n = parseInt(t, 10); + return Number.isNaN(n) ? e : n; +} +function j(t, e) { + return t === e ? !0 : !t || !t.parentElement ? !1 : j(t.parentElement, e); +} +function Re(t) { + switch (Ge(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 Ge(t) { + return t.map(Ke).filter((e, n, i) => i.indexOf(e) === n); +} +function Ke(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 Ue(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 Ve(t, e) { + const n = e.mode !== "now" ? { + searchMode: e.mode, + searchTime: e.dateTime.toString() + } : { searchMode: e.mode }, i = Ue( + t.from, + t.to + ); + return { + ...n, + ...i + }; +} +function Qe(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 Ye(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 Je(t, e) { + const i = await (await fetch( + `${t}api/departures/reverse?lat=${e.latitude}&lon=${e.longitude}` + )).json(); + if (i) + return i; +} +async function ze(t, e) { + return new Promise(function(n, i) { + navigator.geolocation.getCurrentPosition( + async (r) => { + const s = await Je(t, r.coords); + n(s); + }, + (r) => { + i(new Error(Xe(r.code, e))); + }, + { enableHighAccuracy: !0, timeout: 1e4 } + ); + }); +} +function Xe(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 Ze = { + 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 et(t) { + return Ze[t]; +} +export { + ot as createWidget, + Je as reverse +}; diff --git a/public/widget/HYMw1kA/2.21.1/planner-web.umd.js b/public/widget/HYMw1kA/2.21.1/planner-web.umd.js new file mode 100644 index 00000000..aba2aee7 --- /dev/null +++ b/public/widget/HYMw1kA/2.21.1/planner-web.umd.js @@ -0,0 +1,291 @@ +(function(f,S){typeof exports=="object"&&typeof module<"u"?S(exports):typeof define=="function"&&define.amd?define(["exports"],S):(f=typeof globalThis<"u"?globalThis:f||self,S(f.PlannerWeb={}))})(this,function(f){"use strict";class S{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=>H(c,this),this.compositionEventHandler=c=>x(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")}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")}start(){this.input.setAttribute("aria-expanded","true"),this.input.addEventListener("compositionstart",this.compositionEventHandler),this.input.addEventListener("compositionend",this.compositionEventHandler),this.input.addEventListener("input",this.inputHandler),this.input.addEventListener("keydown",this.keyboardEventHandler),this.list.addEventListener("mousedown",I),this.resetSelection()}stop(){this.clearSelection(),this.input.setAttribute("aria-expanded","false"),this.input.removeEventListener("compositionstart",this.compositionEventHandler),this.input.removeEventListener("compositionend",this.compositionEventHandler),this.input.removeEventListener("input",this.inputHandler),this.input.removeEventListener("keydown",this.keyboardEventHandler),this.list.removeEventListener("mousedown",I)}indicateDefaultOption(){var e;this.firstOptionSelectionMode==="active"?(e=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(A)[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(A)[0],i=Array.from(this.list.querySelectorAll('[role="option"]')).filter(A),r=i.indexOf(n);if(r===i.length-1&&e===1||r===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&&m0||t.offsetHeight>0)}function x(t,e){e.isComposing=t.type==="compositionstart",document.getElementById(e.input.getAttribute("aria-controls")||"")&&e.clearSelection()}const o={"override-light":"theme-module__override-light",light:"theme-module__light",assistant:'"../page-modules/assistant/assistant.module.css"',departures:'"../page-modules/departures/departures.module.css"',search:'"../components/search/search.module.css"',selector:'"../modules/search-time/selector/selector.module.css"',buttonComponent:'"../components/button/button.module.css"',hidden:"widget-module__hidden",lightWrapper:"widget-module__lightWrapper theme-module__light",wrapper:"widget-module__wrapper theme-module__override-light",form:"widget-module__form assistant-module__container",nav:"widget-module__nav",tabs:"widget-module__tabs",tabSelected:"widget-module__tabSelected",main:"widget-module__main assistant-module__main",heading:"widget-module__heading assistant-module__heading",inputBoxes:"widget-module__inputBoxes",search_container:"widget-module__search_container search-module__container",search_inputContainer:"widget-module__search_inputContainer search-module__inputContainer",search_label:"widget-module__search_label search-module__label typography-module__typo-body__secondary",search_input:"widget-module__search_input search-module__input",search_inputLast:"widget-module__search_inputLast",button_geolocation:"widget-module__button_geolocation departures-module__geolocationButton",selector_group:"widget-module__selector_group selector-module__departureDateSelector",selector_options:"widget-module__selector_options selector-module__options",selector_options__small:"widget-module__selector_options__small selector-module__options",selector_option:"widget-module__selector_option selector-module__option",selector_option__text:"widget-module__selector_option__text selector-module__option__text",selector_option__label:"widget-module__selector_option__label selector-module__option__label",selector_option__input:"widget-module__selector_option__input selector-module__option__input",selector_dateAndTimeSelectorsWrapper:"widget-module__selector_dateAndTimeSelectorsWrapper selector-module__dateAndTimeSelectorsWrapper",selector_dateAndTimeSelectorsWrapper__hidden:"widget-module__selector_dateAndTimeSelectorsWrapper__hidden",selector_dateAndTimeSelectors:"widget-module__selector_dateAndTimeSelectors selector-module__dateAndTimeSelectors",selector_dateSelector:"widget-module__selector_dateSelector selector-module__dateSelector",selector_timeSelector:"widget-module__selector_timeSelector selector-module__timeSelector",buttonGroup:"widget-module__buttonGroup",button:"widget-module__button",buttonLightOutline:"widget-module__buttonLightOutline","button--disabled":"widget-module__button--disabled",listItem:"widget-module__listItem",itemIcon:"widget-module__itemIcon",itemLocality:"widget-module__itemLocality search-module__itemLocality typography-module__typo-body__secondary",popupContainer:"widget-module__popupContainer search-module__menu",messageBox:"widget-module__messageBox",inheritFont:"widget-module__inheritFont",singleColumnLayout:"widget-module__singleColumnLayout"};function N(t){return Object.entries(t).reduce(function(e,n){return n[1]?e+" "+n[0]:e},"")}var O={MODULE_VERSION:"2.21.1",COMPRESSED_ORG:"HYMw1kA",ORG_ID:"nfk"};const R=300,y=String.raw,k=O.MODULE_VERSION,C=O.COMPRESSED_ORG;function G(t){if(!(t!=null&&t.startsWith("http")))throw new Error("Missing urlBase in correct schema.");return t.endsWith("/")||(t+="/"),{URL_BASE:t,URL_JS_UMD:`${t}widget/${C}/${k}/planner-web.umd.js`,URL_JS_ESM:`${t}widget/${C}/${k}/planner-web.mjs`,URL_CSS:`${t}widget/${C}/${k}/planner-web.css`}}function K({urlBase:t,language:e="en",outputOverrideOptions:n={}}){const i=ce(e),r=G(t),s={inheritFont:!1,singleColumnLayout:!1,...n};return{output:Y(r,i,s),init:U,urls:r}}function U(){var e,n;J(),B("pw-assistant"),B("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}),document.addEventListener("reset-search",function(){t={from:void 0,to:void 0},document.querySelectorAll('input[name="from"], input[name="to"]').forEach(i=>{i.value=""})}),document.querySelectorAll("[name$=searchTimeSelector]").forEach(function(i){i.addEventListener("change",function(r){const c=r.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;Q(r,t.from)}),(n=document.querySelector("#pw-form-assistant"))==null||n.addEventListener("submit",i=>{i.preventDefault();const r=i.currentTarget;V(r,t.from,t.to)})}function B(t){const e=document.querySelector(`#${t}-searchTimeSelector-date`),n=document.querySelector(`#${t}-searchTimeSelector-time`);try{if(e&&(e.valueAsDate=new Date),n){const i=new Date,r=String(i.getHours()).padStart(2,"0"),s=String(i.getMinutes()).padStart(2,"0");n.value=`${r}:${s}`}}catch{}}function j(t,e){const n=t.get(`${e}-searchTimeSelector`);if(n==="now")return{mode:"now"};{const i=t.get("dateinput"),r=t.get("timeinput");if(i&&r){const s=new Date(`${i}T${r}`);return{mode:n=="arriveBy"?"arriveBy":"departBy",dateTime:s.getTime()}}return{mode:"now"}}}function V(t,e,n){const i=t.action,r=j(new FormData(t),"pw-assistant"),s=ne({from:e,to:n},r),c=new URLSearchParams(s);window.location.href=`${i}?${c.toString()}`}function Q(t,e){const n=t.action,i=j(new FormData(t),"pw-departures"),r=ie(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()}`}class E extends HTMLElement{constructor(){super()}connectedCallback(){const e=this;e.hidden=!0,e.classList.add(o.messageBox),document.addEventListener("pw-errorMessage",function(n){const i=n;e.textContent=i.detail.message,e.hidden=!1}),document.addEventListener("pw-errorMessage-clear",function(n){e.hidden=!0}),e.addEventListener("click",function(){E.clearMessageBox()})}static clearMessageBox(){document.dispatchEvent(new CustomEvent("pw-errorMessage-clear",{bubbles:!0}))}}function Y({URL_BASE:t},e,n){function i(a){const u=s(a),_=b("span",[a.name]),d=b("span",[a.locality??""],o.itemLocality),l=b("li",[u,_,d],o.listItem);return l.role="option",l.setAttribute("data-feature-id",a.id),l}function r(a){const u=b("span",[a]);return b("li",[u],o.listItem)}function s(a){const u=Z(a.category),_=b("img");_.src=`${t}assets/mono/light/${u.icon}.svg`,_.alt=u.alt,_.role="img";const d=b("div",[_],o.itemIcon);return d.ariaHidden="true",d}class c extends HTMLElement{constructor(){super()}connectedCallback(){const u=this;this.querySelector("button").addEventListener("click",async()=>{var d;E.clearMessageBox();try{const l=await se(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,detail:{key:"from",item:l}}))}catch(l){l instanceof Error&&document.dispatchEvent(new CustomEvent("pw-errorMessage",{bubbles:!0,detail:{message:l.message}}))}})}}customElements.define("pw-geobutton",c),customElements.define("pw-messagebox",E);class m extends HTMLElement{constructor(){super(),this.dataList={}}getItem(u){return this.dataList[u]}setItems(u){this.dataList={};for(let _ of u)this.dataList[_.id]=_}connectedCallback(){const u=this,_=X(this.getAttribute("data-debounce-ms"),R),d=this.querySelector("input"),l=this.querySelector("#"+this.getAttribute("for"));let g=new S(d,l,{tabInsertsSuggestions:!0,scrollIntoViewOptions:!1});function $(p){p?g.start():(g.clearSelection(),g.stop()),l.hidden=!p}function q(){u.setItems([]),l.innerHTML="";const p=r(e.noResults);l.appendChild(p),$(!0)}const pe=z(async p=>{try{if(!p.value){l.innerHTML="";return}const v=await re(t,p.value);if(v.length===0)return q();u.setItems(v),l.innerHTML="";for(let w of v){const L=i(w);l.appendChild(L)}$(!0)}catch{q()}},_);d.addEventListener("keydown",p=>{p.key==="Escape"&&$(!1)}),d.addEventListener("input",p=>pe(p.target)),d.addEventListener("focus",()=>$(!0)),d.addEventListener("blur",()=>$(!1)),document.addEventListener("click",p=>{P(p.target,this)||$(!1)}),l.addEventListener("combobox-commit",function(p){const v=p.target.getAttribute("data-feature-id"),w=v?u.getItem(v):void 0;let L=d.value;w&&(L=`${w.name}`,w.locality&&(L+=`, ${w.locality}`)),d.value=L,document.dispatchEvent(new CustomEvent("search-selected",{bubbles:!0,detail:{key:d.name,item:w}})),l.hidden=!0,g.clearSelection(),g.stop()})}}customElements.define("pw-autocomplete",m);const T=y` +
+ +
+ `,h=(a,u=!0)=>y` +
+ ${e.searchTime.title} +
+
+ + + ${u?y` + + `:""} +
+ +
+
+ `,ue=y` +
+
+
+ ${e.assistant.title} +
+ +
+ + + + +
+ + + +
+ +
+ +
+ + + + +
+
+
+ ${h("pw-assistant")} +
+ ${T} +
+ `,de=y` +
+
+
+ ${e.departure.title} +
+ + + + + +
+ +
+ ${h("pw-departures",!1)} +
+ ${T} +
+ `;return y` +
+ +
${ue}
+
+ ${de} +
+
+ `}function J(){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"})}); diff --git a/public/widget/IYFwRkA/2.21.1/planner-web.css b/public/widget/IYFwRkA/2.21.1/planner-web.css new file mode 100644 index 00000000..000ded54 --- /dev/null +++ b/public/widget/IYFwRkA/2.21.1/planner-web.css @@ -0,0 +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: #007C92;--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: #37424A;--static-background-background_accent_0-text: #FFFFFF;--static-background-background_accent_1-background: #555E65;--static-background-background_accent_1-text: #FFFFFF;--static-background-background_accent_2-background: #D4E9EC;--static-background-background_accent_2-text: #000000;--static-background-background_accent_3-background: #007C92;--static-background-background_accent_3-text: #FFFFFF;--static-background-background_accent_4-background: #E5E8B8;--static-background-background_accent_4-text: #000000;--static-background-background_accent_5-background: #A6D1D9;--static-background-background_accent_5-text: #000000;--static-zone_selection-from-background: #A2AD00;--static-zone_selection-from-text: #000000;--static-zone_selection-to-background: #71D6E0;--static-zone_selection-to-text: #000000;--interactive-interactive_0-default-background: #007C92;--interactive-interactive_0-default-text: #FFFFFF;--interactive-interactive_0-hover-background: #006678;--interactive-interactive_0-hover-text: #FFFFFF;--interactive-interactive_0-active-background: #A6D1D9;--interactive-interactive_0-active-text: #000000;--interactive-interactive_0-disabled-background: #D4E9EC;--interactive-interactive_0-disabled-text: #000000;--interactive-interactive_0-outline-background: #71D6E0;--interactive-interactive_0-outline-text: #000000;--interactive-interactive_0-destructive-background: #A51140;--interactive-interactive_0-destructive-text: #FFFFFF;--interactive-interactive_1-default-background: #555E65;--interactive-interactive_1-default-text: #FFFFFF;--interactive-interactive_1-hover-background: #6F777D;--interactive-interactive_1-hover-text: #000000;--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: #007C92;--interactive-interactive_1-outline-text: #FFFFFF;--interactive-interactive_1-destructive-background: #A51140;--interactive-interactive_1-destructive-text: #FFFFFF;--interactive-interactive_2-default-background: #FFFFFF;--interactive-interactive_2-default-text: #000000;--interactive-interactive_2-hover-background: #D4E9EC;--interactive-interactive_2-hover-text: #000000;--interactive-interactive_2-active-background: #A6D1D9;--interactive-interactive_2-active-text: #000000;--interactive-interactive_2-disabled-background: #FFFFFF;--interactive-interactive_2-disabled-text: #000000;--interactive-interactive_2-outline-background: #007C92;--interactive-interactive_2-outline-text: #FFFFFF;--interactive-interactive_2-destructive-background: #A51140;--interactive-interactive_2-destructive-text: #FFFFFF;--interactive-interactive_3-default-background: #D4E9EC;--interactive-interactive_3-default-text: #000000;--interactive-interactive_3-hover-background: #A6D1D9;--interactive-interactive_3-hover-text: #000000;--interactive-interactive_3-active-background: #A6D1D9;--interactive-interactive_3-active-text: #000000;--interactive-interactive_3-disabled-background: #E3E5E6;--interactive-interactive_3-disabled-text: #000000;--interactive-interactive_3-outline-background: #004E5C;--interactive-interactive_3-outline-text: #FFFFFF;--interactive-interactive_3-destructive-background: #A51140;--interactive-interactive_3-destructive-text: #FFFFFF;--interactive-interactive_destructive-default-background: #A51140;--interactive-interactive_destructive-default-text: #FFFFFF;--interactive-interactive_destructive-hover-background: #B74166;--interactive-interactive_destructive-hover-text: #000000;--interactive-interactive_destructive-active-background: #380616;--interactive-interactive_destructive-active-text: #FFFFFF;--interactive-interactive_destructive-disabled-background: #EED2DB;--interactive-interactive_destructive-disabled-text: #000000;--interactive-interactive_destructive-outline-background: #007C92;--interactive-interactive_destructive-outline-text: #FFFFFF;--interactive-interactive_destructive-destructive-background: #A51140;--interactive-interactive_destructive-destructive-text: #FFFFFF;--transport-transport_city-primary-background: #A2AD00;--transport-transport_city-primary-text: #000000;--transport-transport_city-secondary-background: #909A00;--transport-transport_city-secondary-text: #000000;--transport-transport_region-primary-background: #007C92;--transport-transport_region-primary-text: #FFFFFF;--transport-transport_region-secondary-background: #006678;--transport-transport_region-secondary-text: #FFFFFF;--transport-transport_airport_express-primary-background: #A51140;--transport-transport_airport_express-primary-text: #FFFFFF;--transport-transport_airport_express-secondary-background: #7D0D31;--transport-transport_airport_express-secondary-text: #FFFFFF;--transport-transport_boat-primary-background: #71D6E0;--transport-transport_boat-primary-text: #000000;--transport-transport_boat-secondary-background: #539CA4;--transport-transport_boat-secondary-text: #000000;--transport-transport_train-primary-background: #4B2942;--transport-transport_train-primary-text: #FFFFFF;--transport-transport_train-secondary-background: #2C1827;--transport-transport_train-secondary-text: #FFFFFF;--transport-transport_airport-primary-background: #C75B12;--transport-transport_airport-primary-text: #000000;--transport-transport_airport-secondary-background: #97450E;--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: #C75B12;--transport-transport_flexible-primary-text: #000000;--transport-transport_flexible-secondary-background: #97450E;--transport-transport_flexible-secondary-text: #FFFFFF;--transport-transport_bike-primary-background: #7D0D31;--transport-transport_bike-primary-text: #FFFFFF;--transport-transport_bike-secondary-background: #5C0A24;--transport-transport_bike-secondary-text: #FFFFFF;--transport-transport_scooter-primary-background: #464A00;--transport-transport_scooter-primary-text: #FFFFFF;--transport-transport_scooter-secondary-background: #323600;--transport-transport_scooter-secondary-text: #FFFFFF;--transport-transport_car-primary-background: #5B3C53;--transport-transport_car-primary-text: #FFFFFF;--transport-transport_car-secondary-background: #4B2942;--transport-transport_car-secondary-text: #FFFFFF;--transport-transport_other-primary-background: #555E65;--transport-transport_other-primary-text: #FFFFFF;--transport-transport_other-secondary-background: #2B343A;--transport-transport_other-secondary-text: #FFFFFF;--status-valid-primary-background: #A2AD00;--status-valid-primary-text: #000000;--status-valid-secondary-background: #A2AD00;--status-valid-secondary-text: #000000;--status-info-primary-background: #71D6E0;--status-info-primary-text: #000000;--status-info-secondary-background: #71D6E0;--status-info-secondary-text: #000000;--status-warning-primary-background: #E4D700;--status-warning-primary-text: #000000;--status-warning-secondary-background: #E4D700;--status-warning-secondary-text: #000000;--status-error-primary-background: #A51140;--status-error-primary-text: #FFFFFF;--status-error-secondary-background: #A51140;--status-error-secondary-text: #FFFFFF}.theme-module__dark{--border-primary: #242B30;--border-secondary: #FFFFFF;--border-focus: #448086;--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: #000000;--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: #37424A;--static-background-background_accent_0-text: #FFFFFF;--static-background-background_accent_1-background: #555E65;--static-background-background_accent_1-text: #FFFFFF;--static-background-background_accent_2-background: #D4E9EC;--static-background-background_accent_2-text: #000000;--static-background-background_accent_3-background: #007C92;--static-background-background_accent_3-text: #FFFFFF;--static-background-background_accent_4-background: #E5E8B8;--static-background-background_accent_4-text: #000000;--static-background-background_accent_5-background: #2B343A;--static-background-background_accent_5-text: #FFFFFF;--static-zone_selection-from-background: #A2AD00;--static-zone_selection-from-text: #000000;--static-zone_selection-to-background: #71D6E0;--static-zone_selection-to-text: #000000;--interactive-interactive_0-default-background: #007C92;--interactive-interactive_0-default-text: #FFFFFF;--interactive-interactive_0-hover-background: #006678;--interactive-interactive_0-hover-text: #FFFFFF;--interactive-interactive_0-active-background: #A6D1D9;--interactive-interactive_0-active-text: #000000;--interactive-interactive_0-disabled-background: #D4E9EC;--interactive-interactive_0-disabled-text: #000000;--interactive-interactive_0-outline-background: #71D6E0;--interactive-interactive_0-outline-text: #000000;--interactive-interactive_0-destructive-background: #D691A7;--interactive-interactive_0-destructive-text: #000000;--interactive-interactive_1-default-background: #555E65;--interactive-interactive_1-default-text: #FFFFFF;--interactive-interactive_1-hover-background: #6F777D;--interactive-interactive_1-hover-text: #000000;--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: #007C92;--interactive-interactive_1-outline-text: #FFFFFF;--interactive-interactive_1-destructive-background: #D691A7;--interactive-interactive_1-destructive-text: #000000;--interactive-interactive_2-default-background: #000000;--interactive-interactive_2-default-text: #FFFFFF;--interactive-interactive_2-hover-background: #002329;--interactive-interactive_2-hover-text: #FFFFFF;--interactive-interactive_2-active-background: #004E5C;--interactive-interactive_2-active-text: #FFFFFF;--interactive-interactive_2-disabled-background: #000000;--interactive-interactive_2-disabled-text: #FFFFFF;--interactive-interactive_2-outline-background: #007C92;--interactive-interactive_2-outline-text: #FFFFFF;--interactive-interactive_2-destructive-background: #D691A7;--interactive-interactive_2-destructive-text: #000000;--interactive-interactive_3-default-background: #004E5C;--interactive-interactive_3-default-text: #FFFFFF;--interactive-interactive_3-hover-background: #003943;--interactive-interactive_3-hover-text: #FFFFFF;--interactive-interactive_3-active-background: #003943;--interactive-interactive_3-active-text: #FFFFFF;--interactive-interactive_3-disabled-background: #555E65;--interactive-interactive_3-disabled-text: #FFFFFF;--interactive-interactive_3-outline-background: #D4E9EC;--interactive-interactive_3-outline-text: #000000;--interactive-interactive_3-destructive-background: #A51140;--interactive-interactive_3-destructive-text: #FFFFFF;--interactive-interactive_destructive-default-background: #A51140;--interactive-interactive_destructive-default-text: #FFFFFF;--interactive-interactive_destructive-hover-background: #B74166;--interactive-interactive_destructive-hover-text: #000000;--interactive-interactive_destructive-active-background: #380616;--interactive-interactive_destructive-active-text: #FFFFFF;--interactive-interactive_destructive-disabled-background: #EED2DB;--interactive-interactive_destructive-disabled-text: #000000;--interactive-interactive_destructive-outline-background: #007C92;--interactive-interactive_destructive-outline-text: #FFFFFF;--interactive-interactive_destructive-destructive-background: #D691A7;--interactive-interactive_destructive-destructive-text: #000000;--transport-transport_city-primary-background: #A2AD00;--transport-transport_city-primary-text: #000000;--transport-transport_city-secondary-background: #909A00;--transport-transport_city-secondary-text: #000000;--transport-transport_region-primary-background: #007C92;--transport-transport_region-primary-text: #FFFFFF;--transport-transport_region-secondary-background: #006678;--transport-transport_region-secondary-text: #FFFFFF;--transport-transport_airport_express-primary-background: #A51140;--transport-transport_airport_express-primary-text: #FFFFFF;--transport-transport_airport_express-secondary-background: #7D0D31;--transport-transport_airport_express-secondary-text: #FFFFFF;--transport-transport_boat-primary-background: #71D6E0;--transport-transport_boat-primary-text: #000000;--transport-transport_boat-secondary-background: #539CA4;--transport-transport_boat-secondary-text: #000000;--transport-transport_train-primary-background: #4B2942;--transport-transport_train-primary-text: #FFFFFF;--transport-transport_train-secondary-background: #2C1827;--transport-transport_train-secondary-text: #FFFFFF;--transport-transport_airport-primary-background: #C75B12;--transport-transport_airport-primary-text: #000000;--transport-transport_airport-secondary-background: #97450E;--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: #C75B12;--transport-transport_flexible-primary-text: #000000;--transport-transport_flexible-secondary-background: #97450E;--transport-transport_flexible-secondary-text: #FFFFFF;--transport-transport_bike-primary-background: #A51140;--transport-transport_bike-primary-text: #FFFFFF;--transport-transport_bike-secondary-background: #5C0A24;--transport-transport_bike-secondary-text: #FFFFFF;--transport-transport_scooter-primary-background: #5B6100;--transport-transport_scooter-primary-text: #FFFFFF;--transport-transport_scooter-secondary-background: #323600;--transport-transport_scooter-secondary-text: #FFFFFF;--transport-transport_car-primary-background: #6F5468;--transport-transport_car-primary-text: #FFFFFF;--transport-transport_car-secondary-background: #4B2942;--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: #A2AD00;--status-valid-primary-text: #000000;--status-valid-secondary-background: #A2AD00;--status-valid-secondary-text: #000000;--status-info-primary-background: #71D6E0;--status-info-primary-text: #000000;--status-info-secondary-background: #71D6E0;--status-info-secondary-text: #000000;--status-warning-primary-background: #E4D700;--status-warning-primary-text: #000000;--status-warning-secondary-background: #E4D700;--status-warning-secondary-text: #000000;--status-error-primary-background: #A51140;--status-error-primary-text: #FFFFFF;--status-error-secondary-background: #A51140;--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: #448086;--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: #000000;--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: #37424A;--static-background-background_accent_0-text: #FFFFFF;--static-background-background_accent_1-background: #555E65;--static-background-background_accent_1-text: #FFFFFF;--static-background-background_accent_2-background: #D4E9EC;--static-background-background_accent_2-text: #000000;--static-background-background_accent_3-background: #007C92;--static-background-background_accent_3-text: #FFFFFF;--static-background-background_accent_4-background: #E5E8B8;--static-background-background_accent_4-text: #000000;--static-background-background_accent_5-background: #2B343A;--static-background-background_accent_5-text: #FFFFFF;--static-zone_selection-from-background: #A2AD00;--static-zone_selection-from-text: #000000;--static-zone_selection-to-background: #71D6E0;--static-zone_selection-to-text: #000000;--interactive-interactive_0-default-background: #007C92;--interactive-interactive_0-default-text: #FFFFFF;--interactive-interactive_0-hover-background: #006678;--interactive-interactive_0-hover-text: #FFFFFF;--interactive-interactive_0-active-background: #A6D1D9;--interactive-interactive_0-active-text: #000000;--interactive-interactive_0-disabled-background: #D4E9EC;--interactive-interactive_0-disabled-text: #000000;--interactive-interactive_0-outline-background: #71D6E0;--interactive-interactive_0-outline-text: #000000;--interactive-interactive_0-destructive-background: #D691A7;--interactive-interactive_0-destructive-text: #000000;--interactive-interactive_1-default-background: #555E65;--interactive-interactive_1-default-text: #FFFFFF;--interactive-interactive_1-hover-background: #6F777D;--interactive-interactive_1-hover-text: #000000;--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: #007C92;--interactive-interactive_1-outline-text: #FFFFFF;--interactive-interactive_1-destructive-background: #D691A7;--interactive-interactive_1-destructive-text: #000000;--interactive-interactive_2-default-background: #000000;--interactive-interactive_2-default-text: #FFFFFF;--interactive-interactive_2-hover-background: #002329;--interactive-interactive_2-hover-text: #FFFFFF;--interactive-interactive_2-active-background: #004E5C;--interactive-interactive_2-active-text: #FFFFFF;--interactive-interactive_2-disabled-background: #000000;--interactive-interactive_2-disabled-text: #FFFFFF;--interactive-interactive_2-outline-background: #007C92;--interactive-interactive_2-outline-text: #FFFFFF;--interactive-interactive_2-destructive-background: #D691A7;--interactive-interactive_2-destructive-text: #000000;--interactive-interactive_3-default-background: #004E5C;--interactive-interactive_3-default-text: #FFFFFF;--interactive-interactive_3-hover-background: #003943;--interactive-interactive_3-hover-text: #FFFFFF;--interactive-interactive_3-active-background: #003943;--interactive-interactive_3-active-text: #FFFFFF;--interactive-interactive_3-disabled-background: #555E65;--interactive-interactive_3-disabled-text: #FFFFFF;--interactive-interactive_3-outline-background: #D4E9EC;--interactive-interactive_3-outline-text: #000000;--interactive-interactive_3-destructive-background: #A51140;--interactive-interactive_3-destructive-text: #FFFFFF;--interactive-interactive_destructive-default-background: #A51140;--interactive-interactive_destructive-default-text: #FFFFFF;--interactive-interactive_destructive-hover-background: #B74166;--interactive-interactive_destructive-hover-text: #000000;--interactive-interactive_destructive-active-background: #380616;--interactive-interactive_destructive-active-text: #FFFFFF;--interactive-interactive_destructive-disabled-background: #EED2DB;--interactive-interactive_destructive-disabled-text: #000000;--interactive-interactive_destructive-outline-background: #007C92;--interactive-interactive_destructive-outline-text: #FFFFFF;--interactive-interactive_destructive-destructive-background: #D691A7;--interactive-interactive_destructive-destructive-text: #000000;--transport-transport_city-primary-background: #A2AD00;--transport-transport_city-primary-text: #000000;--transport-transport_city-secondary-background: #909A00;--transport-transport_city-secondary-text: #000000;--transport-transport_region-primary-background: #007C92;--transport-transport_region-primary-text: #FFFFFF;--transport-transport_region-secondary-background: #006678;--transport-transport_region-secondary-text: #FFFFFF;--transport-transport_airport_express-primary-background: #A51140;--transport-transport_airport_express-primary-text: #FFFFFF;--transport-transport_airport_express-secondary-background: #7D0D31;--transport-transport_airport_express-secondary-text: #FFFFFF;--transport-transport_boat-primary-background: #71D6E0;--transport-transport_boat-primary-text: #000000;--transport-transport_boat-secondary-background: #539CA4;--transport-transport_boat-secondary-text: #000000;--transport-transport_train-primary-background: #4B2942;--transport-transport_train-primary-text: #FFFFFF;--transport-transport_train-secondary-background: #2C1827;--transport-transport_train-secondary-text: #FFFFFF;--transport-transport_airport-primary-background: #C75B12;--transport-transport_airport-primary-text: #000000;--transport-transport_airport-secondary-background: #97450E;--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: #C75B12;--transport-transport_flexible-primary-text: #000000;--transport-transport_flexible-secondary-background: #97450E;--transport-transport_flexible-secondary-text: #FFFFFF;--transport-transport_bike-primary-background: #A51140;--transport-transport_bike-primary-text: #FFFFFF;--transport-transport_bike-secondary-background: #5C0A24;--transport-transport_bike-secondary-text: #FFFFFF;--transport-transport_scooter-primary-background: #5B6100;--transport-transport_scooter-primary-text: #FFFFFF;--transport-transport_scooter-secondary-background: #323600;--transport-transport_scooter-secondary-text: #FFFFFF;--transport-transport_car-primary-background: #6F5468;--transport-transport_car-primary-text: #FFFFFF;--transport-transport_car-secondary-background: #4B2942;--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: #A2AD00;--status-valid-primary-text: #000000;--status-valid-secondary-background: #A2AD00;--status-valid-secondary-text: #000000;--status-info-primary-background: #71D6E0;--status-info-primary-text: #000000;--status-info-secondary-background: #71D6E0;--status-info-secondary-text: #000000;--status-warning-primary-background: #E4D700;--status-warning-primary-text: #000000;--status-warning-secondary-background: #E4D700;--status-warning-secondary-text: #000000;--status-error-primary-background: #A51140;--status-error-primary-text: #FFFFFF;--status-error-secondary-background: #A51140;--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_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_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_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}.selector-module__dateSelector label,.selector-module__timeSelector label{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__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)}.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%} diff --git a/public/widget/IYFwRkA/2.21.1/planner-web.d.ts b/public/widget/IYFwRkA/2.21.1/planner-web.d.ts new file mode 100644 index 00000000..a543ddb4 --- /dev/null +++ b/public/widget/IYFwRkA/2.21.1/planner-web.d.ts @@ -0,0 +1,33 @@ +import { GeocoderFeature } from '@atb/page-modules/departures'; + +export declare function createWidget({ urlBase, language, outputOverrideOptions, }: WidgetOptions): PlannerWebOutput; + +declare type Languages = 'nb' | 'nn' | 'en'; + +declare type OutputOverrideOptions = { + inheritFont?: boolean; + singleColumnLayout?: boolean; +}; + +export declare type PlannerWebOutput = { + output: string; + init: () => void; + urls: SettingConstants; +}; + +export declare function reverse(urlBase: string, coords: GeolocationCoordinates): Promise; + +declare type SettingConstants = { + URL_BASE: string; + URL_JS_UMD: string; + URL_JS_ESM: string; + URL_CSS: string; +}; + +export declare type WidgetOptions = { + urlBase: string; + language?: Languages; + outputOverrideOptions?: Partial; +}; + +export { } diff --git a/public/widget/IYFwRkA/2.21.1/planner-web.mjs b/public/widget/IYFwRkA/2.21.1/planner-web.mjs new file mode 100644 index 00000000..ee91b4ac --- /dev/null +++ b/public/widget/IYFwRkA/2.21.1/planner-web.mjs @@ -0,0 +1,973 @@ +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"); + } + 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"); + } + start() { + this.input.setAttribute("aria-expanded", "true"), this.input.addEventListener("compositionstart", this.compositionEventHandler), this.input.addEventListener("compositionend", this.compositionEventHandler), this.input.addEventListener("input", this.inputHandler), this.input.addEventListener("keydown", this.keyboardEventHandler), this.list.addEventListener("mousedown", C), this.resetSelection(); + } + stop() { + this.clearSelection(), this.input.setAttribute("aria-expanded", "false"), this.input.removeEventListener("compositionstart", this.compositionEventHandler), this.input.removeEventListener("compositionend", this.compositionEventHandler), this.input.removeEventListener("input", this.inputHandler), this.input.removeEventListener("keydown", this.keyboardEventHandler), this.list.removeEventListener("mousedown", C); + } + indicateDefaultOption() { + var e; + 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) { + 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); + } + const c = i[s]; + 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"); + } + clearSelection() { + this.input.removeAttribute("aria-activedescendant"); + for (const e of this.list.querySelectorAll('[aria-selected="true"], [data-combobox-option-default="true"]')) + e.removeAttribute("aria-selected"), e.removeAttribute("data-combobox-option-default"); + } + resetSelection() { + this.clearSelection(), this.indicateDefaultOption(); + } +} +function W(t, e) { + if (!(t.shiftKey || t.metaKey || t.altKey) && !(!e.ctrlBindings && t.ctrlKey) && !e.isComposing) + switch (t.key) { + case "Enter": + I(e.input, e.list) && t.preventDefault(); + break; + case "Tab": + e.tabInsertsSuggestions && I(e.input, e.list) && t.preventDefault(); + break; + case "Escape": + e.clearSelection(); + break; + case "ArrowDown": + e.navigate(1), t.preventDefault(); + break; + case "ArrowUp": + e.navigate(-1), t.preventDefault(); + break; + case "n": + e.ctrlBindings && t.ctrlKey && (e.navigate(1), t.preventDefault()); + break; + case "p": + e.ctrlBindings && t.ctrlKey && (e.navigate(-1), t.preventDefault()); + break; + default: + if (t.ctrlKey) + break; + e.resetSelection(); + } +} +function C(t) { + if (!(t.target instanceof Element)) + return; + const e = t.target.closest('[role="option"]'); + 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; +} +function M(t, e) { + t.dispatchEvent(new CustomEvent("combobox-commit", { bubbles: !0, detail: e })); +} +function x(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) { + 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"', Y = "widget-module__hidden", J = "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: Y, + lightWrapper: J, + 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, + "button--disabled": "widget-module__button--disabled", + listItem: Le, + itemIcon: Ae, + itemLocality: ke, + popupContainer: Ce, + messageBox: Ie, + inheritFont: De, + singleColumnLayout: Me +}; +function Oe(t) { + return Object.entries(t).reduce(function(e, n) { + return n[1] ? e + " " + n[0] : e; + }, ""); +} +var O = { MODULE_VERSION: "2.21.1", COMPRESSED_ORG: "IYFwRkA", ORG_ID: "atb" }; +const Be = 300, y = String.raw, L = O.MODULE_VERSION, A = O.COMPRESSED_ORG; +function Fe(t) { + if (!(t != null && t.startsWith("http"))) + throw new Error("Missing urlBase in correct schema."); + return t.endsWith("/") || (t += "/"), { + URL_BASE: t, + URL_JS_UMD: `${t}widget/${A}/${L}/planner-web.umd.js`, + URL_JS_ESM: `${t}widget/${A}/${L}/planner-web.mjs`, + URL_CSS: `${t}widget/${A}/${L}/planner-web.css` + }; +} +function ot({ + urlBase: t, + language: e = "en", + outputOverrideOptions: n = {} +}) { + const i = et(e), r = Fe(t), s = { + inheritFont: !1, + singleColumnLayout: !1, + ...n + }; + return { + output: He(r, i, s), + init: je, + urls: r + }; +} +function je() { + var e, n; + We(), 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; + }), document.addEventListener("reset-search", function() { + t = { + from: void 0, + to: void 0 + }, document.querySelectorAll( + 'input[name="from"], input[name="to"]' + ).forEach((i) => { + i.value = ""; + }); + }), document.querySelectorAll("[name$=searchTimeSelector]").forEach(function(i) { + i.addEventListener("change", function(r) { + const c = r.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) => { + i.preventDefault(); + const r = i.currentTarget; + Pe(r, t.from, t.to); + }); +} +function D(t) { + const e = document.querySelector( + `#${t}-searchTimeSelector-date` + ), n = 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}`; + } + } catch { + } +} +function B(t, e) { + const n = t.get(`${e}-searchTimeSelector`); + if (n === "now") + return { + mode: "now" + }; + { + const i = t.get("dateinput"), r = t.get("timeinput"); + if (i && r) { + const s = /* @__PURE__ */ new Date(`${i}T${r}`); + return { + mode: n == "arriveBy" ? "arriveBy" : "departBy", + dateTime: s.getTime() + }; + } + return { + mode: "now" + }; + } +} +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); + 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()}`; +} +class E extends HTMLElement { + constructor() { + super(); + } + connectedCallback() { + const e = this; + e.hidden = !0, e.classList.add(o.messageBox), document.addEventListener("pw-errorMessage", function(n) { + const i = n; + e.textContent = i.detail.message, e.hidden = !1; + }), document.addEventListener("pw-errorMessage-clear", function(n) { + e.hidden = !0; + }), e.addEventListener("click", function() { + E.clearMessageBox(); + }); + } + static clearMessageBox() { + document.dispatchEvent( + new CustomEvent("pw-errorMessage-clear", { + bubbles: !0 + }) + ); + } +} +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 r(a) { + const u = v("span", [a]); + return v("li", [u], o.listItem); + } + function s(a) { + const u = Re(a.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); + return d.ariaHidden = "true", d; + } + class c extends HTMLElement { + constructor() { + super(); + } + connectedCallback() { + const u = this; + this.querySelector("button").addEventListener("click", async () => { + var d; + E.clearMessageBox(); + try { + const l = await ze(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, + detail: { + key: "from", + item: l + } + }) + ); + } catch (l) { + l instanceof Error && document.dispatchEvent( + new CustomEvent("pw-errorMessage", { + bubbles: !0, + detail: { + message: l.message + } + }) + ); + } + }); + } + } + customElements.define("pw-geobutton", c), customElements.define("pw-messagebox", E); + class m extends HTMLElement { + constructor() { + super(), this.dataList = {}; + } + getItem(u) { + return this.dataList[u]; + } + setItems(u) { + this.dataList = {}; + for (let h of u) + this.dataList[h.id] = h; + } + connectedCallback() { + const u = this, h = Ne( + this.getAttribute("data-debounce-ms"), + Be + ), d = this.querySelector("input"), l = this.querySelector( + "#" + this.getAttribute("for") + ); + let g = new H(d, l, { + tabInsertsSuggestions: !0, + scrollIntoViewOptions: !1 + }); + function w(p) { + p ? g.start() : (g.clearSelection(), g.stop()), l.hidden = !p; + } + function k() { + u.setItems([]), l.innerHTML = ""; + const p = r(e.noResults); + l.appendChild(p), w(!0); + } + const q = xe(async (p) => { + try { + if (!p.value) { + l.innerHTML = ""; + return; + } + const f = await Ye(t, p.value); + if (f.length === 0) + return k(); + u.setItems(f), l.innerHTML = ""; + for (let b of f) { + const S = i(b); + l.appendChild(S); + } + w(!0); + } catch { + k(); + } + }, h); + d.addEventListener("keydown", (p) => { + p.key === "Escape" && w(!1); + }), d.addEventListener( + "input", + (p) => q(p.target) + ), d.addEventListener("focus", () => w(!0)), d.addEventListener("blur", () => w(!1)), document.addEventListener("click", (p) => { + F(p.target, this) || w(!1); + }), l.addEventListener("combobox-commit", function(p) { + const f = p.target.getAttribute( + "data-feature-id" + ), b = f ? u.getItem(f) : void 0; + let S = d.value; + b && (S = `${b.name}`, b.locality && (S += `, ${b.locality}`)), d.value = S, document.dispatchEvent( + new CustomEvent("search-selected", { + bubbles: !0, + detail: { + key: d.name, + item: b + } + }) + ), l.hidden = !0, g.clearSelection(), g.stop(); + }); + } + } + customElements.define("pw-autocomplete", m); + const $ = y` +
+ +
+ `, _ = (a, u = !0) => y` +
+ ${e.searchTime.title} +
+
+ + + ${u ? y` + + ` : ""} +
+ +
+
+ `, j = y` +
+
+
+ ${e.assistant.title} +
+ +
+ + + + +
+ + + +
+ +
+ +
+ + + + +
+
+
+ ${_("pw-assistant")} +
+ ${$} +
+ `, P = y` +
+
+
+ ${e.departure.title} +
+ + + + + +
+ +
+ ${_("pw-departures", !1)} +
+ ${$} +
+ `; + return y` +
+ +
${j}
+
+ ${P} +
+
+ `; +} +function We() { + var t; + (t = document.querySelector(".js-tablist")) == null || t.addEventListener("click", function(e) { + var m, $; + 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((_) => { + _.classList.add(o.hidden); + }), document.querySelectorAll(".js-tablist a").forEach((_) => { + _.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 = ($ = Array.from(s).find( + (_) => _.checked + )) == null ? void 0 : $.value; + document.querySelectorAll(".js-search-date-details").forEach((_) => { + _.hidden = c === "now"; + }), document.dispatchEvent( + new CustomEvent("reset-search", { + bubbles: !0 + }) + ); + }); +} +function xe(t, e) { + let n = null; + return function(...i) { + clearTimeout(n), n = setTimeout(() => { + t(...i); + }, e); + }; +} +function v(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 Ne(t, e) { + const n = parseInt(t, 10); + return Number.isNaN(n) ? e : n; +} +function F(t, e) { + return t === e ? !0 : !t || !t.parentElement ? !1 : F(t.parentElement, e); +} +function Re(t) { + switch (Ge(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 Ge(t) { + return t.map(Ke).filter((e, n, i) => i.indexOf(e) === n); +} +function Ke(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 Ue(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 Ve(t, e) { + const n = e.mode !== "now" ? { + searchMode: e.mode, + searchTime: e.dateTime.toString() + } : { searchMode: e.mode }, i = Ue( + t.from, + t.to + ); + return { + ...n, + ...i + }; +} +function Qe(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 Ye(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 Je(t, e) { + const i = await (await fetch( + `${t}api/departures/reverse?lat=${e.latitude}&lon=${e.longitude}` + )).json(); + if (i) + return i; +} +async function ze(t, e) { + return new Promise(function(n, i) { + navigator.geolocation.getCurrentPosition( + async (r) => { + const s = await Je(t, r.coords); + n(s); + }, + (r) => { + i(new Error(Xe(r.code, e))); + }, + { enableHighAccuracy: !0, timeout: 1e4 } + ); + }); +} +function Xe(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 Ze = { + 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 et(t) { + return Ze[t]; +} +export { + ot as createWidget, + Je as reverse +}; diff --git a/public/widget/IYFwRkA/2.21.1/planner-web.umd.js b/public/widget/IYFwRkA/2.21.1/planner-web.umd.js new file mode 100644 index 00000000..3bab78af --- /dev/null +++ b/public/widget/IYFwRkA/2.21.1/planner-web.umd.js @@ -0,0 +1,291 @@ +(function(f,S){typeof exports=="object"&&typeof module<"u"?S(exports):typeof define=="function"&&define.amd?define(["exports"],S):(f=typeof globalThis<"u"?globalThis:f||self,S(f.PlannerWeb={}))})(this,function(f){"use strict";class S{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=>x(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")}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")}start(){this.input.setAttribute("aria-expanded","true"),this.input.addEventListener("compositionstart",this.compositionEventHandler),this.input.addEventListener("compositionend",this.compositionEventHandler),this.input.addEventListener("input",this.inputHandler),this.input.addEventListener("keydown",this.keyboardEventHandler),this.list.addEventListener("mousedown",I),this.resetSelection()}stop(){this.clearSelection(),this.input.setAttribute("aria-expanded","false"),this.input.removeEventListener("compositionstart",this.compositionEventHandler),this.input.removeEventListener("compositionend",this.compositionEventHandler),this.input.removeEventListener("input",this.inputHandler),this.input.removeEventListener("keydown",this.keyboardEventHandler),this.list.removeEventListener("mousedown",I)}indicateDefaultOption(){var e;this.firstOptionSelectionMode==="active"?(e=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(A)[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(A)[0],i=Array.from(this.list.querySelectorAll('[role="option"]')).filter(A),r=i.indexOf(n);if(r===i.length-1&&e===1||r===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&&m0||t.offsetHeight>0)}function x(t,e){e.isComposing=t.type==="compositionstart",document.getElementById(e.input.getAttribute("aria-controls")||"")&&e.clearSelection()}const o={"override-light":"theme-module__override-light",light:"theme-module__light",assistant:'"../page-modules/assistant/assistant.module.css"',departures:'"../page-modules/departures/departures.module.css"',search:'"../components/search/search.module.css"',selector:'"../modules/search-time/selector/selector.module.css"',buttonComponent:'"../components/button/button.module.css"',hidden:"widget-module__hidden",lightWrapper:"widget-module__lightWrapper theme-module__light",wrapper:"widget-module__wrapper theme-module__override-light",form:"widget-module__form assistant-module__container",nav:"widget-module__nav",tabs:"widget-module__tabs",tabSelected:"widget-module__tabSelected",main:"widget-module__main assistant-module__main",heading:"widget-module__heading assistant-module__heading",inputBoxes:"widget-module__inputBoxes",search_container:"widget-module__search_container search-module__container",search_inputContainer:"widget-module__search_inputContainer search-module__inputContainer",search_label:"widget-module__search_label search-module__label typography-module__typo-body__secondary",search_input:"widget-module__search_input search-module__input",search_inputLast:"widget-module__search_inputLast",button_geolocation:"widget-module__button_geolocation departures-module__geolocationButton",selector_group:"widget-module__selector_group selector-module__departureDateSelector",selector_options:"widget-module__selector_options selector-module__options",selector_options__small:"widget-module__selector_options__small selector-module__options",selector_option:"widget-module__selector_option selector-module__option",selector_option__text:"widget-module__selector_option__text selector-module__option__text",selector_option__label:"widget-module__selector_option__label selector-module__option__label",selector_option__input:"widget-module__selector_option__input selector-module__option__input",selector_dateAndTimeSelectorsWrapper:"widget-module__selector_dateAndTimeSelectorsWrapper selector-module__dateAndTimeSelectorsWrapper",selector_dateAndTimeSelectorsWrapper__hidden:"widget-module__selector_dateAndTimeSelectorsWrapper__hidden",selector_dateAndTimeSelectors:"widget-module__selector_dateAndTimeSelectors selector-module__dateAndTimeSelectors",selector_dateSelector:"widget-module__selector_dateSelector selector-module__dateSelector",selector_timeSelector:"widget-module__selector_timeSelector selector-module__timeSelector",buttonGroup:"widget-module__buttonGroup",button:"widget-module__button",buttonLightOutline:"widget-module__buttonLightOutline","button--disabled":"widget-module__button--disabled",listItem:"widget-module__listItem",itemIcon:"widget-module__itemIcon",itemLocality:"widget-module__itemLocality search-module__itemLocality typography-module__typo-body__secondary",popupContainer:"widget-module__popupContainer search-module__menu",messageBox:"widget-module__messageBox",inheritFont:"widget-module__inheritFont",singleColumnLayout:"widget-module__singleColumnLayout"};function N(t){return Object.entries(t).reduce(function(e,n){return n[1]?e+" "+n[0]:e},"")}var O={MODULE_VERSION:"2.21.1",COMPRESSED_ORG:"IYFwRkA",ORG_ID:"atb"};const R=300,y=String.raw,k=O.MODULE_VERSION,C=O.COMPRESSED_ORG;function G(t){if(!(t!=null&&t.startsWith("http")))throw new Error("Missing urlBase in correct schema.");return t.endsWith("/")||(t+="/"),{URL_BASE:t,URL_JS_UMD:`${t}widget/${C}/${k}/planner-web.umd.js`,URL_JS_ESM:`${t}widget/${C}/${k}/planner-web.mjs`,URL_CSS:`${t}widget/${C}/${k}/planner-web.css`}}function K({urlBase:t,language:e="en",outputOverrideOptions:n={}}){const i=ce(e),r=G(t),s={inheritFont:!1,singleColumnLayout:!1,...n};return{output:Y(r,i,s),init:U,urls:r}}function U(){var e,n;J(),B("pw-assistant"),B("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}),document.addEventListener("reset-search",function(){t={from:void 0,to:void 0},document.querySelectorAll('input[name="from"], input[name="to"]').forEach(i=>{i.value=""})}),document.querySelectorAll("[name$=searchTimeSelector]").forEach(function(i){i.addEventListener("change",function(r){const c=r.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;Q(r,t.from)}),(n=document.querySelector("#pw-form-assistant"))==null||n.addEventListener("submit",i=>{i.preventDefault();const r=i.currentTarget;V(r,t.from,t.to)})}function B(t){const e=document.querySelector(`#${t}-searchTimeSelector-date`),n=document.querySelector(`#${t}-searchTimeSelector-time`);try{if(e&&(e.valueAsDate=new Date),n){const i=new Date,r=String(i.getHours()).padStart(2,"0"),s=String(i.getMinutes()).padStart(2,"0");n.value=`${r}:${s}`}}catch{}}function j(t,e){const n=t.get(`${e}-searchTimeSelector`);if(n==="now")return{mode:"now"};{const i=t.get("dateinput"),r=t.get("timeinput");if(i&&r){const s=new Date(`${i}T${r}`);return{mode:n=="arriveBy"?"arriveBy":"departBy",dateTime:s.getTime()}}return{mode:"now"}}}function V(t,e,n){const i=t.action,r=j(new FormData(t),"pw-assistant"),s=ne({from:e,to:n},r),c=new URLSearchParams(s);window.location.href=`${i}?${c.toString()}`}function Q(t,e){const n=t.action,i=j(new FormData(t),"pw-departures"),r=ie(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()}`}class E extends HTMLElement{constructor(){super()}connectedCallback(){const e=this;e.hidden=!0,e.classList.add(o.messageBox),document.addEventListener("pw-errorMessage",function(n){const i=n;e.textContent=i.detail.message,e.hidden=!1}),document.addEventListener("pw-errorMessage-clear",function(n){e.hidden=!0}),e.addEventListener("click",function(){E.clearMessageBox()})}static clearMessageBox(){document.dispatchEvent(new CustomEvent("pw-errorMessage-clear",{bubbles:!0}))}}function Y({URL_BASE:t},e,n){function i(a){const u=s(a),_=b("span",[a.name]),d=b("span",[a.locality??""],o.itemLocality),l=b("li",[u,_,d],o.listItem);return l.role="option",l.setAttribute("data-feature-id",a.id),l}function r(a){const u=b("span",[a]);return b("li",[u],o.listItem)}function s(a){const u=Z(a.category),_=b("img");_.src=`${t}assets/mono/light/${u.icon}.svg`,_.alt=u.alt,_.role="img";const d=b("div",[_],o.itemIcon);return d.ariaHidden="true",d}class c extends HTMLElement{constructor(){super()}connectedCallback(){const u=this;this.querySelector("button").addEventListener("click",async()=>{var d;E.clearMessageBox();try{const l=await se(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,detail:{key:"from",item:l}}))}catch(l){l instanceof Error&&document.dispatchEvent(new CustomEvent("pw-errorMessage",{bubbles:!0,detail:{message:l.message}}))}})}}customElements.define("pw-geobutton",c),customElements.define("pw-messagebox",E);class m extends HTMLElement{constructor(){super(),this.dataList={}}getItem(u){return this.dataList[u]}setItems(u){this.dataList={};for(let _ of u)this.dataList[_.id]=_}connectedCallback(){const u=this,_=X(this.getAttribute("data-debounce-ms"),R),d=this.querySelector("input"),l=this.querySelector("#"+this.getAttribute("for"));let g=new S(d,l,{tabInsertsSuggestions:!0,scrollIntoViewOptions:!1});function $(p){p?g.start():(g.clearSelection(),g.stop()),l.hidden=!p}function q(){u.setItems([]),l.innerHTML="";const p=r(e.noResults);l.appendChild(p),$(!0)}const pe=z(async p=>{try{if(!p.value){l.innerHTML="";return}const v=await re(t,p.value);if(v.length===0)return q();u.setItems(v),l.innerHTML="";for(let w of v){const L=i(w);l.appendChild(L)}$(!0)}catch{q()}},_);d.addEventListener("keydown",p=>{p.key==="Escape"&&$(!1)}),d.addEventListener("input",p=>pe(p.target)),d.addEventListener("focus",()=>$(!0)),d.addEventListener("blur",()=>$(!1)),document.addEventListener("click",p=>{F(p.target,this)||$(!1)}),l.addEventListener("combobox-commit",function(p){const v=p.target.getAttribute("data-feature-id"),w=v?u.getItem(v):void 0;let L=d.value;w&&(L=`${w.name}`,w.locality&&(L+=`, ${w.locality}`)),d.value=L,document.dispatchEvent(new CustomEvent("search-selected",{bubbles:!0,detail:{key:d.name,item:w}})),l.hidden=!0,g.clearSelection(),g.stop()})}}customElements.define("pw-autocomplete",m);const T=y` +
+ +
+ `,h=(a,u=!0)=>y` +
+ ${e.searchTime.title} +
+
+ + + ${u?y` + + `:""} +
+ +
+
+ `,ue=y` +
+
+
+ ${e.assistant.title} +
+ +
+ + + + +
+ + + +
+ +
+ +
+ + + + +
+
+
+ ${h("pw-assistant")} +
+ ${T} +
+ `,de=y` +
+
+
+ ${e.departure.title} +
+ + + + + +
+ +
+ ${h("pw-departures",!1)} +
+ ${T} +
+ `;return y` +
+ +
${ue}
+
+ ${de} +
+
+ `}function J(){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 F(t,e){return t===e?!0:!t||!t.parentElement?!1:F(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 P(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 P(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=P,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})}); diff --git a/src/page-modules/widget/available-widgets/C4Jw9gtgzkA/manifest.json b/src/page-modules/widget/available-widgets/C4Jw9gtgzkA/manifest.json index 4cf8b37a..a13ce96f 100644 --- a/src/page-modules/widget/available-widgets/C4Jw9gtgzkA/manifest.json +++ b/src/page-modules/widget/available-widgets/C4Jw9gtgzkA/manifest.json @@ -1,17 +1,26 @@ { "latest": { - "version": "2.20.1", - "created": "2024-03-20T09:21:56.259Z", + "version": "2.21.1", + "created": "2024-03-20T10:12:22.053Z", "urls": { - "umd": "/widget/C4Jw9gtgzkA/2.20.1/planner-web.umd.js", - "esm": "/widget/C4Jw9gtgzkA/2.20.1/planner-web.mjs", - "css": "/widget/C4Jw9gtgzkA/2.20.1/planner-web.css" + "umd": "/widget/C4Jw9gtgzkA/2.21.1/planner-web.umd.js", + "esm": "/widget/C4Jw9gtgzkA/2.21.1/planner-web.mjs", + "css": "/widget/C4Jw9gtgzkA/2.21.1/planner-web.css" } }, "all": [ + { + "version": "2.21.1", + "created": "2024-03-20T10:12:22.053Z", + "urls": { + "umd": "/widget/C4Jw9gtgzkA/2.21.1/planner-web.umd.js", + "esm": "/widget/C4Jw9gtgzkA/2.21.1/planner-web.mjs", + "css": "/widget/C4Jw9gtgzkA/2.21.1/planner-web.css" + } + }, { "version": "2.20.1", - "created": "2024-03-20T09:21:56.259Z", + "created": "2024-03-20T10:12:22.053Z", "urls": { "umd": "/widget/C4Jw9gtgzkA/2.20.1/planner-web.umd.js", "esm": "/widget/C4Jw9gtgzkA/2.20.1/planner-web.mjs", @@ -20,7 +29,7 @@ }, { "version": "2.20.0", - "created": "2024-03-20T09:21:56.259Z", + "created": "2024-03-20T10:12:22.053Z", "urls": { "umd": "/widget/C4Jw9gtgzkA/2.20.0/planner-web.umd.js", "esm": "/widget/C4Jw9gtgzkA/2.20.0/planner-web.mjs", @@ -29,7 +38,7 @@ }, { "version": "2.16.1", - "created": "2024-03-20T09:21:56.259Z", + "created": "2024-03-20T10:12:22.053Z", "urls": { "umd": "/widget/C4Jw9gtgzkA/2.16.1/planner-web.umd.js", "esm": "/widget/C4Jw9gtgzkA/2.16.1/planner-web.mjs", @@ -38,7 +47,7 @@ }, { "version": "2.15.2", - "created": "2024-03-20T09:21:56.259Z", + "created": "2024-03-20T10:12:22.053Z", "urls": { "umd": "/widget/C4Jw9gtgzkA/2.15.2/planner-web.umd.js", "esm": "/widget/C4Jw9gtgzkA/2.15.2/planner-web.mjs", @@ -47,7 +56,7 @@ }, { "version": "2.15.1", - "created": "2024-03-20T09:21:56.259Z", + "created": "2024-03-20T10:12:22.053Z", "urls": { "umd": "/widget/C4Jw9gtgzkA/2.15.1/planner-web.umd.js", "esm": "/widget/C4Jw9gtgzkA/2.15.1/planner-web.mjs", @@ -56,7 +65,7 @@ }, { "version": "2.14.0", - "created": "2024-03-20T09:21:56.259Z", + "created": "2024-03-20T10:12:22.053Z", "urls": { "umd": "/widget/C4Jw9gtgzkA/2.14.0/planner-web.umd.js", "esm": "/widget/C4Jw9gtgzkA/2.14.0/planner-web.mjs", diff --git a/src/page-modules/widget/available-widgets/GYJwhgtkA/manifest.json b/src/page-modules/widget/available-widgets/GYJwhgtkA/manifest.json index 93e25453..7f8481c6 100644 --- a/src/page-modules/widget/available-widgets/GYJwhgtkA/manifest.json +++ b/src/page-modules/widget/available-widgets/GYJwhgtkA/manifest.json @@ -1,17 +1,26 @@ { "latest": { - "version": "2.20.1", - "created": "2023-12-13T09:19:53.902Z", + "version": "2.21.1", + "created": "2023-12-21T11:45:28.198Z", "urls": { - "umd": "/widget/GYJwhgtkA/2.20.1/planner-web.umd.js", - "esm": "/widget/GYJwhgtkA/2.20.1/planner-web.mjs", - "css": "/widget/GYJwhgtkA/2.20.1/planner-web.css" + "umd": "/widget/GYJwhgtkA/2.21.1/planner-web.umd.js", + "esm": "/widget/GYJwhgtkA/2.21.1/planner-web.mjs", + "css": "/widget/GYJwhgtkA/2.21.1/planner-web.css" } }, "all": [ + { + "version": "2.21.1", + "created": "2023-12-21T11:45:28.198Z", + "urls": { + "umd": "/widget/GYJwhgtkA/2.21.1/planner-web.umd.js", + "esm": "/widget/GYJwhgtkA/2.21.1/planner-web.mjs", + "css": "/widget/GYJwhgtkA/2.21.1/planner-web.css" + } + }, { "version": "2.20.1", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/2.20.1/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/2.20.1/planner-web.mjs", @@ -20,7 +29,7 @@ }, { "version": "2.20.0", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/2.20.0/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/2.20.0/planner-web.mjs", @@ -29,7 +38,7 @@ }, { "version": "2.16.1", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/2.16.1/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/2.16.1/planner-web.mjs", @@ -38,7 +47,7 @@ }, { "version": "2.15.2", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/2.15.2/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/2.15.2/planner-web.mjs", @@ -47,7 +56,7 @@ }, { "version": "2.15.1", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/2.15.1/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/2.15.1/planner-web.mjs", @@ -56,7 +65,7 @@ }, { "version": "2.14.0", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/2.14.0/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/2.14.0/planner-web.mjs", @@ -65,7 +74,7 @@ }, { "version": "2.13.0", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/2.13.0/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/2.13.0/planner-web.mjs", @@ -74,7 +83,7 @@ }, { "version": "2.12.1", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/2.12.1/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/2.12.1/planner-web.mjs", @@ -83,7 +92,7 @@ }, { "version": "2.9.0", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/2.9.0/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/2.9.0/planner-web.mjs", @@ -92,7 +101,7 @@ }, { "version": "2.8.0", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/2.8.0/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/2.8.0/planner-web.mjs", @@ -101,7 +110,7 @@ }, { "version": "2.6.0", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/2.6.0/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/2.6.0/planner-web.mjs", @@ -110,7 +119,7 @@ }, { "version": "2.2.2", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/2.2.2/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/2.2.2/planner-web.mjs", @@ -119,7 +128,7 @@ }, { "version": "2.1.0", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/2.1.0/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/2.1.0/planner-web.mjs", @@ -128,7 +137,7 @@ }, { "version": "2.0.0", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/2.0.0/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/2.0.0/planner-web.mjs", @@ -137,7 +146,7 @@ }, { "version": "1.0.0", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/1.0.0/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/1.0.0/planner-web.mjs", @@ -146,7 +155,7 @@ }, { "version": "0.2.0", - "created": "2023-12-13T09:19:53.902Z", + "created": "2023-12-21T11:45:28.198Z", "urls": { "umd": "/widget/GYJwhgtkA/0.2.0/planner-web.umd.js", "esm": "/widget/GYJwhgtkA/0.2.0/planner-web.mjs", diff --git a/src/page-modules/widget/available-widgets/HYMw1kA/manifest.json b/src/page-modules/widget/available-widgets/HYMw1kA/manifest.json index 679861ba..b2b8322e 100644 --- a/src/page-modules/widget/available-widgets/HYMw1kA/manifest.json +++ b/src/page-modules/widget/available-widgets/HYMw1kA/manifest.json @@ -1,17 +1,26 @@ { "latest": { - "version": "2.20.1", - "created": "2023-12-13T09:19:53.903Z", + "version": "2.21.1", + "created": "2023-12-21T11:45:28.200Z", "urls": { - "umd": "/widget/HYMw1kA/2.20.1/planner-web.umd.js", - "esm": "/widget/HYMw1kA/2.20.1/planner-web.mjs", - "css": "/widget/HYMw1kA/2.20.1/planner-web.css" + "umd": "/widget/HYMw1kA/2.21.1/planner-web.umd.js", + "esm": "/widget/HYMw1kA/2.21.1/planner-web.mjs", + "css": "/widget/HYMw1kA/2.21.1/planner-web.css" } }, "all": [ + { + "version": "2.21.1", + "created": "2023-12-21T11:45:28.200Z", + "urls": { + "umd": "/widget/HYMw1kA/2.21.1/planner-web.umd.js", + "esm": "/widget/HYMw1kA/2.21.1/planner-web.mjs", + "css": "/widget/HYMw1kA/2.21.1/planner-web.css" + } + }, { "version": "2.20.1", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/2.20.1/planner-web.umd.js", "esm": "/widget/HYMw1kA/2.20.1/planner-web.mjs", @@ -20,7 +29,7 @@ }, { "version": "2.20.0", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/2.20.0/planner-web.umd.js", "esm": "/widget/HYMw1kA/2.20.0/planner-web.mjs", @@ -29,7 +38,7 @@ }, { "version": "2.16.1", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/2.16.1/planner-web.umd.js", "esm": "/widget/HYMw1kA/2.16.1/planner-web.mjs", @@ -38,7 +47,7 @@ }, { "version": "2.15.2", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/2.15.2/planner-web.umd.js", "esm": "/widget/HYMw1kA/2.15.2/planner-web.mjs", @@ -47,7 +56,7 @@ }, { "version": "2.15.1", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/2.15.1/planner-web.umd.js", "esm": "/widget/HYMw1kA/2.15.1/planner-web.mjs", @@ -56,7 +65,7 @@ }, { "version": "2.14.0", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/2.14.0/planner-web.umd.js", "esm": "/widget/HYMw1kA/2.14.0/planner-web.mjs", @@ -65,7 +74,7 @@ }, { "version": "2.13.0", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/2.13.0/planner-web.umd.js", "esm": "/widget/HYMw1kA/2.13.0/planner-web.mjs", @@ -74,7 +83,7 @@ }, { "version": "2.12.1", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/2.12.1/planner-web.umd.js", "esm": "/widget/HYMw1kA/2.12.1/planner-web.mjs", @@ -83,7 +92,7 @@ }, { "version": "2.9.0", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/2.9.0/planner-web.umd.js", "esm": "/widget/HYMw1kA/2.9.0/planner-web.mjs", @@ -92,7 +101,7 @@ }, { "version": "2.8.0", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/2.8.0/planner-web.umd.js", "esm": "/widget/HYMw1kA/2.8.0/planner-web.mjs", @@ -101,7 +110,7 @@ }, { "version": "2.6.0", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/2.6.0/planner-web.umd.js", "esm": "/widget/HYMw1kA/2.6.0/planner-web.mjs", @@ -110,7 +119,7 @@ }, { "version": "2.2.2", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/2.2.2/planner-web.umd.js", "esm": "/widget/HYMw1kA/2.2.2/planner-web.mjs", @@ -119,7 +128,7 @@ }, { "version": "2.1.0", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/2.1.0/planner-web.umd.js", "esm": "/widget/HYMw1kA/2.1.0/planner-web.mjs", @@ -128,7 +137,7 @@ }, { "version": "2.0.0", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/2.0.0/planner-web.umd.js", "esm": "/widget/HYMw1kA/2.0.0/planner-web.mjs", @@ -137,7 +146,7 @@ }, { "version": "1.0.0", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/1.0.0/planner-web.umd.js", "esm": "/widget/HYMw1kA/1.0.0/planner-web.mjs", @@ -146,7 +155,7 @@ }, { "version": "0.2.0", - "created": "2023-12-13T09:19:53.903Z", + "created": "2023-12-21T11:45:28.200Z", "urls": { "umd": "/widget/HYMw1kA/0.2.0/planner-web.umd.js", "esm": "/widget/HYMw1kA/0.2.0/planner-web.mjs", diff --git a/src/page-modules/widget/available-widgets/IYFwRkA/manifest.json b/src/page-modules/widget/available-widgets/IYFwRkA/manifest.json index 7502e014..ff02d37f 100644 --- a/src/page-modules/widget/available-widgets/IYFwRkA/manifest.json +++ b/src/page-modules/widget/available-widgets/IYFwRkA/manifest.json @@ -1,17 +1,26 @@ { "latest": { - "version": "2.20.1", - "created": "2023-12-13T09:19:53.904Z", + "version": "2.21.1", + "created": "2023-12-21T11:45:28.202Z", "urls": { - "umd": "/widget/IYFwRkA/2.20.1/planner-web.umd.js", - "esm": "/widget/IYFwRkA/2.20.1/planner-web.mjs", - "css": "/widget/IYFwRkA/2.20.1/planner-web.css" + "umd": "/widget/IYFwRkA/2.21.1/planner-web.umd.js", + "esm": "/widget/IYFwRkA/2.21.1/planner-web.mjs", + "css": "/widget/IYFwRkA/2.21.1/planner-web.css" } }, "all": [ + { + "version": "2.21.1", + "created": "2023-12-21T11:45:28.202Z", + "urls": { + "umd": "/widget/IYFwRkA/2.21.1/planner-web.umd.js", + "esm": "/widget/IYFwRkA/2.21.1/planner-web.mjs", + "css": "/widget/IYFwRkA/2.21.1/planner-web.css" + } + }, { "version": "2.20.1", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/2.20.1/planner-web.umd.js", "esm": "/widget/IYFwRkA/2.20.1/planner-web.mjs", @@ -20,7 +29,7 @@ }, { "version": "2.20.0", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/2.20.0/planner-web.umd.js", "esm": "/widget/IYFwRkA/2.20.0/planner-web.mjs", @@ -29,7 +38,7 @@ }, { "version": "2.16.1", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/2.16.1/planner-web.umd.js", "esm": "/widget/IYFwRkA/2.16.1/planner-web.mjs", @@ -38,7 +47,7 @@ }, { "version": "2.15.2", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/2.15.2/planner-web.umd.js", "esm": "/widget/IYFwRkA/2.15.2/planner-web.mjs", @@ -47,7 +56,7 @@ }, { "version": "2.15.1", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/2.15.1/planner-web.umd.js", "esm": "/widget/IYFwRkA/2.15.1/planner-web.mjs", @@ -56,7 +65,7 @@ }, { "version": "2.14.0", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/2.14.0/planner-web.umd.js", "esm": "/widget/IYFwRkA/2.14.0/planner-web.mjs", @@ -65,7 +74,7 @@ }, { "version": "2.13.0", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/2.13.0/planner-web.umd.js", "esm": "/widget/IYFwRkA/2.13.0/planner-web.mjs", @@ -74,7 +83,7 @@ }, { "version": "2.12.1", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/2.12.1/planner-web.umd.js", "esm": "/widget/IYFwRkA/2.12.1/planner-web.mjs", @@ -83,7 +92,7 @@ }, { "version": "2.9.0", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/2.9.0/planner-web.umd.js", "esm": "/widget/IYFwRkA/2.9.0/planner-web.mjs", @@ -92,7 +101,7 @@ }, { "version": "2.8.0", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/2.8.0/planner-web.umd.js", "esm": "/widget/IYFwRkA/2.8.0/planner-web.mjs", @@ -101,7 +110,7 @@ }, { "version": "2.6.0", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/2.6.0/planner-web.umd.js", "esm": "/widget/IYFwRkA/2.6.0/planner-web.mjs", @@ -110,7 +119,7 @@ }, { "version": "2.2.2", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/2.2.2/planner-web.umd.js", "esm": "/widget/IYFwRkA/2.2.2/planner-web.mjs", @@ -119,7 +128,7 @@ }, { "version": "2.1.0", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/2.1.0/planner-web.umd.js", "esm": "/widget/IYFwRkA/2.1.0/planner-web.mjs", @@ -128,7 +137,7 @@ }, { "version": "2.0.0", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/2.0.0/planner-web.umd.js", "esm": "/widget/IYFwRkA/2.0.0/planner-web.mjs", @@ -137,7 +146,7 @@ }, { "version": "1.0.0", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/1.0.0/planner-web.umd.js", "esm": "/widget/IYFwRkA/1.0.0/planner-web.mjs", @@ -146,7 +155,7 @@ }, { "version": "0.2.0", - "created": "2023-12-13T09:19:53.904Z", + "created": "2023-12-21T11:45:28.202Z", "urls": { "umd": "/widget/IYFwRkA/0.2.0/planner-web.umd.js", "esm": "/widget/IYFwRkA/0.2.0/planner-web.mjs",