@mrfylke/contact-form 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ContactFormRoot.d.ts +37 -0
- package/lib/ContactFormRoot.d.ts.map +1 -0
- package/lib/ContactFormRoot.js +53 -0
- package/lib/commoneEvents.d.ts +16 -0
- package/lib/commoneEvents.d.ts.map +1 -0
- package/lib/commoneEvents.js +4 -0
- package/lib/components/button/button.d.ts +17 -0
- package/lib/components/button/button.d.ts.map +1 -0
- package/lib/components/button/button.js +15 -0
- package/lib/components/button/button.module.css +399 -0
- package/lib/components/button/index.d.ts +5 -0
- package/lib/components/button/index.d.ts.map +1 -0
- package/lib/components/button/index.js +10 -0
- package/lib/components/button/link.d.ts +27 -0
- package/lib/components/button/link.d.ts.map +1 -0
- package/lib/components/button/link.js +19 -0
- package/lib/components/button/utils.d.ts +69 -0
- package/lib/components/button/utils.d.ts.map +1 -0
- package/lib/components/button/utils.js +33 -0
- package/lib/components/checkbox/checkbox.d.ts +13 -0
- package/lib/components/checkbox/checkbox.d.ts.map +1 -0
- package/lib/components/checkbox/checkbox.js +23 -0
- package/lib/components/checkbox/checkbox.module.css +96 -0
- package/lib/components/checkbox/index.d.ts +3 -0
- package/lib/components/checkbox/index.d.ts.map +1 -0
- package/lib/components/checkbox/index.js +8 -0
- package/lib/components/error-message/error-message.d.ts +6 -0
- package/lib/components/error-message/error-message.d.ts.map +1 -0
- package/lib/components/error-message/error-message.js +13 -0
- package/lib/components/error-message/error-message.module.css +6 -0
- package/lib/components/error-message/index.d.ts +3 -0
- package/lib/components/error-message/index.d.ts.map +1 -0
- package/lib/components/error-message/index.js +8 -0
- package/lib/components/external-link-page.d.ts +14 -0
- package/lib/components/external-link-page.d.ts.map +1 -0
- package/lib/components/external-link-page.js +27 -0
- package/lib/components/external-link-page.module.css +29 -0
- package/lib/components/form/date-selector.d.ts +11 -0
- package/lib/components/form/date-selector.d.ts.map +1 -0
- package/lib/components/form/date-selector.js +21 -0
- package/lib/components/form/description-modal.d.ts +13 -0
- package/lib/components/form/description-modal.d.ts.map +1 -0
- package/lib/components/form/description-modal.js +43 -0
- package/lib/components/form/field-wrapper-with-error/index.d.ts +8 -0
- package/lib/components/form/field-wrapper-with-error/index.d.ts.map +1 -0
- package/lib/components/form/field-wrapper-with-error/index.js +12 -0
- package/lib/components/form/fieldset/fieldset.module.css +26 -0
- package/lib/components/form/fieldset/index.d.ts +8 -0
- package/lib/components/form/fieldset/index.d.ts.map +1 -0
- package/lib/components/form/fieldset/index.js +17 -0
- package/lib/components/form/file-input.d.ts +10 -0
- package/lib/components/form/file-input.d.ts.map +1 -0
- package/lib/components/form/file-input.js +68 -0
- package/lib/components/form/form-component-label/form-component-label.module.css +10 -0
- package/lib/components/form/form-component-label/index.d.ts +9 -0
- package/lib/components/form/form-component-label/index.d.ts.map +1 -0
- package/lib/components/form/form-component-label/index.js +18 -0
- package/lib/components/form/form.module.css +573 -0
- package/lib/components/form/index.d.ts +11 -0
- package/lib/components/form/index.d.ts.map +1 -0
- package/lib/components/form/index.js +28 -0
- package/lib/components/form/input.d.ts +17 -0
- package/lib/components/form/input.d.ts.map +1 -0
- package/lib/components/form/input.js +42 -0
- package/lib/components/form/radio.d.ts +7 -0
- package/lib/components/form/radio.d.ts.map +1 -0
- package/lib/components/form/radio.js +14 -0
- package/lib/components/form/searchable-select/index.d.ts +3 -0
- package/lib/components/form/searchable-select/index.d.ts.map +1 -0
- package/lib/components/form/searchable-select/index.js +11 -0
- package/lib/components/form/searchable-select/searchable-select.d.ts +18 -0
- package/lib/components/form/searchable-select/searchable-select.d.ts.map +1 -0
- package/lib/components/form/searchable-select/searchable-select.js +55 -0
- package/lib/components/form/searchable-select/utils.d.ts +5 -0
- package/lib/components/form/searchable-select/utils.d.ts.map +1 -0
- package/lib/components/form/searchable-select/utils.js +19 -0
- package/lib/components/form/select.d.ts +15 -0
- package/lib/components/form/select.d.ts.map +1 -0
- package/lib/components/form/select.js +22 -0
- package/lib/components/form/textarea.d.ts +11 -0
- package/lib/components/form/textarea.d.ts.map +1 -0
- package/lib/components/form/textarea.js +17 -0
- package/lib/components/form/time-selector.d.ts +11 -0
- package/lib/components/form/time-selector.d.ts.map +1 -0
- package/lib/components/form/time-selector.js +22 -0
- package/lib/components/icon/checkbox-icon.d.ts +14 -0
- package/lib/components/icon/checkbox-icon.d.ts.map +1 -0
- package/lib/components/icon/checkbox-icon.js +18 -0
- package/lib/components/icon/color-icon.d.ts +17 -0
- package/lib/components/icon/color-icon.d.ts.map +1 -0
- package/lib/components/icon/color-icon.js +27 -0
- package/lib/components/icon/generated-icons.d.ts +1797 -0
- package/lib/components/icon/generated-icons.d.ts.map +1 -0
- package/lib/components/icon/generated-icons.js +1782 -0
- package/lib/components/icon/icon-wrapper.d.ts +30 -0
- package/lib/components/icon/icon-wrapper.d.ts.map +1 -0
- package/lib/components/icon/icon-wrapper.js +39 -0
- package/lib/components/icon/illustration.d.ts +7 -0
- package/lib/components/icon/illustration.d.ts.map +1 -0
- package/lib/components/icon/illustration.js +25 -0
- package/lib/components/icon/image.d.ts +7 -0
- package/lib/components/icon/image.d.ts.map +1 -0
- package/lib/components/icon/image.js +26 -0
- package/lib/components/icon/index.d.ts +6 -0
- package/lib/components/icon/index.d.ts.map +1 -0
- package/lib/components/icon/index.js +20 -0
- package/lib/components/icon/mono-icon-new.d.ts +32 -0
- package/lib/components/icon/mono-icon-new.d.ts.map +1 -0
- package/lib/components/icon/mono-icon-new.js +43 -0
- package/lib/components/icon/mono-icon.d.ts +29 -0
- package/lib/components/icon/mono-icon.d.ts.map +1 -0
- package/lib/components/icon/mono-icon.js +39 -0
- package/lib/components/icon/utils.d.ts +3 -0
- package/lib/components/icon/utils.d.ts.map +1 -0
- package/lib/components/icon/utils.js +12 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +18 -0
- package/lib/components/loading/index.d.ts +15 -0
- package/lib/components/loading/index.d.ts.map +1 -0
- package/lib/components/loading/index.js +19 -0
- package/lib/components/loading/loading.module.css +17 -0
- package/lib/components/section-card/index.d.ts +2 -0
- package/lib/components/section-card/index.d.ts.map +1 -0
- package/lib/components/section-card/index.js +8 -0
- package/lib/components/section-card/section-card.d.ts +7 -0
- package/lib/components/section-card/section-card.d.ts.map +1 -0
- package/lib/components/section-card/section-card.js +14 -0
- package/lib/components/section-card/section-card.module.css +15 -0
- package/lib/components/typography/index.d.ts +19 -0
- package/lib/components/typography/index.d.ts.map +1 -0
- package/lib/components/typography/index.js +27 -0
- package/lib/components/typography/utils.d.ts +2 -0
- package/lib/components/typography/utils.d.ts.map +1 -0
- package/lib/components/typography/utils.js +4 -0
- package/lib/contact.module.css +76 -0
- package/lib/error-content/error-content.d.ts +2 -0
- package/lib/error-content/error-content.d.ts.map +1 -0
- package/lib/error-content/error-content.js +19 -0
- package/lib/error-content/error-content.module.css +11 -0
- package/lib/group-travel/index.d.ts +2 -0
- package/lib/group-travel/index.d.ts.map +1 -0
- package/lib/group-travel/index.js +15 -0
- package/lib/index.d.ts +25 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +73 -0
- package/lib/journey-info/events.d.ts +14 -0
- package/lib/journey-info/events.d.ts.map +1 -0
- package/lib/journey-info/events.js +5 -0
- package/lib/journey-info/index.d.ts +2 -0
- package/lib/journey-info/index.d.ts.map +1 -0
- package/lib/journey-info/index.js +66 -0
- package/lib/journey-info/journeyInfoStateMachine.d.ts +179 -0
- package/lib/journey-info/journeyInfoStateMachine.d.ts.map +1 -0
- package/lib/journey-info/journeyInfoStateMachine.js +160 -0
- package/lib/layouts/contact-form-container.d.ts +10 -0
- package/lib/layouts/contact-form-container.d.ts.map +1 -0
- package/lib/layouts/contact-form-container.js +12 -0
- package/lib/layouts/contact-form-footer.d.ts +5 -0
- package/lib/layouts/contact-form-footer.d.ts.map +1 -0
- package/lib/layouts/contact-form-footer.js +59 -0
- package/lib/layouts/contact-form-header.d.ts +9 -0
- package/lib/layouts/contact-form-header.d.ts.map +1 -0
- package/lib/layouts/contact-form-header.js +45 -0
- package/lib/layouts/contact-page-layout.d.ts +24 -0
- package/lib/layouts/contact-page-layout.d.ts.map +1 -0
- package/lib/layouts/contact-page-layout.js +104 -0
- package/lib/layouts/container.module.css +15 -0
- package/lib/layouts/footer.module.css +109 -0
- package/lib/layouts/header.module.css +39 -0
- package/lib/layouts/index.d.ts +3 -0
- package/lib/layouts/index.d.ts.map +1 -0
- package/lib/layouts/index.js +11 -0
- package/lib/layouts/layout.module.css +80 -0
- package/lib/lines/use-lines.d.ts +25 -0
- package/lib/lines/use-lines.d.ts.map +1 -0
- package/lib/lines/use-lines.js +77 -0
- package/lib/lost-property/index.d.ts +2 -0
- package/lib/lost-property/index.d.ts.map +1 -0
- package/lib/lost-property/index.js +11 -0
- package/lib/means-of-transport/events.d.ts +17 -0
- package/lib/means-of-transport/events.d.ts.map +1 -0
- package/lib/means-of-transport/events.js +5 -0
- package/lib/means-of-transport/forms/delayForm.d.ts +11 -0
- package/lib/means-of-transport/forms/delayForm.d.ts.map +1 -0
- package/lib/means-of-transport/forms/delayForm.js +88 -0
- package/lib/means-of-transport/forms/driverForm.d.ts +11 -0
- package/lib/means-of-transport/forms/driverForm.d.ts.map +1 -0
- package/lib/means-of-transport/forms/driverForm.js +88 -0
- package/lib/means-of-transport/forms/index.d.ts +7 -0
- package/lib/means-of-transport/forms/index.d.ts.map +1 -0
- package/lib/means-of-transport/forms/index.js +18 -0
- package/lib/means-of-transport/forms/injuryForm.d.ts +11 -0
- package/lib/means-of-transport/forms/injuryForm.d.ts.map +1 -0
- package/lib/means-of-transport/forms/injuryForm.js +88 -0
- package/lib/means-of-transport/forms/serviceOfferingForm.d.ts +11 -0
- package/lib/means-of-transport/forms/serviceOfferingForm.d.ts.map +1 -0
- package/lib/means-of-transport/forms/serviceOfferingForm.js +64 -0
- package/lib/means-of-transport/forms/stopForm.d.ts +11 -0
- package/lib/means-of-transport/forms/stopForm.d.ts.map +1 -0
- package/lib/means-of-transport/forms/stopForm.js +76 -0
- package/lib/means-of-transport/forms/transportationForm.d.ts +11 -0
- package/lib/means-of-transport/forms/transportationForm.d.ts.map +1 -0
- package/lib/means-of-transport/forms/transportationForm.js +88 -0
- package/lib/means-of-transport/index.d.ts +3 -0
- package/lib/means-of-transport/index.d.ts.map +1 -0
- package/lib/means-of-transport/index.js +47 -0
- package/lib/means-of-transport/means-of-transport-form-machine.d.ts +291 -0
- package/lib/means-of-transport/means-of-transport-form-machine.d.ts.map +1 -0
- package/lib/means-of-transport/means-of-transport-form-machine.js +287 -0
- package/lib/modules/api-browser/index.d.ts +8 -0
- package/lib/modules/api-browser/index.d.ts.map +1 -0
- package/lib/modules/api-browser/index.js +54 -0
- package/lib/modules/api-server/external-client.d.ts +22 -0
- package/lib/modules/api-server/external-client.d.ts.map +1 -0
- package/lib/modules/api-server/external-client.js +86 -0
- package/lib/modules/api-server/index.d.ts +9 -0
- package/lib/modules/api-server/index.d.ts.map +1 -0
- package/lib/modules/api-server/index.js +24 -0
- package/lib/modules/api-server/requesters/graphql-requester.d.ts +6 -0
- package/lib/modules/api-server/requesters/graphql-requester.d.ts.map +1 -0
- package/lib/modules/api-server/requesters/graphql-requester.js +63 -0
- package/lib/modules/api-server/requesters/http-requester.d.ts +3 -0
- package/lib/modules/api-server/requesters/http-requester.d.ts.map +1 -0
- package/lib/modules/api-server/requesters/http-requester.js +110 -0
- package/lib/modules/api-server/requesters/types.d.ts +37 -0
- package/lib/modules/api-server/requesters/types.d.ts.map +1 -0
- package/lib/modules/api-server/requesters/types.js +34 -0
- package/lib/modules/api-server/requesters/utils.d.ts +17 -0
- package/lib/modules/api-server/requesters/utils.d.ts.map +1 -0
- package/lib/modules/api-server/requesters/utils.js +75 -0
- package/lib/modules/config/context.d.ts +54 -0
- package/lib/modules/config/context.d.ts.map +1 -0
- package/lib/modules/config/context.js +112 -0
- package/lib/modules/config/index.d.ts +4 -0
- package/lib/modules/config/index.d.ts.map +1 -0
- package/lib/modules/config/index.js +19 -0
- package/lib/modules/config/theme-adapter.d.ts +20 -0
- package/lib/modules/config/theme-adapter.d.ts.map +1 -0
- package/lib/modules/config/theme-adapter.js +56 -0
- package/lib/modules/config/types.d.ts +348 -0
- package/lib/modules/config/types.d.ts.map +1 -0
- package/lib/modules/config/types.js +6 -0
- package/lib/modules/cookies/constants.d.ts +4 -0
- package/lib/modules/cookies/constants.d.ts.map +1 -0
- package/lib/modules/cookies/constants.js +6 -0
- package/lib/modules/cookies/cookies-context.d.ts +17 -0
- package/lib/modules/cookies/cookies-context.d.ts.map +1 -0
- package/lib/modules/cookies/cookies-context.js +61 -0
- package/lib/modules/cookies/index.d.ts +15 -0
- package/lib/modules/cookies/index.d.ts.map +1 -0
- package/lib/modules/cookies/index.js +22 -0
- package/lib/modules/firebase/analytics.d.ts +3 -0
- package/lib/modules/firebase/analytics.d.ts.map +1 -0
- package/lib/modules/firebase/analytics.js +40 -0
- package/lib/modules/firebase/firebase.d.ts +4 -0
- package/lib/modules/firebase/firebase.d.ts.map +1 -0
- package/lib/modules/firebase/firebase.js +19 -0
- package/lib/modules/firebase/index.d.ts +5 -0
- package/lib/modules/firebase/index.d.ts.map +1 -0
- package/lib/modules/firebase/index.js +25 -0
- package/lib/modules/firebase/preassigned-fare-products.d.ts +8 -0
- package/lib/modules/firebase/preassigned-fare-products.d.ts.map +1 -0
- package/lib/modules/firebase/preassigned-fare-products.js +35 -0
- package/lib/modules/firebase/tariff-zones.d.ts +17 -0
- package/lib/modules/firebase/tariff-zones.d.ts.map +1 -0
- package/lib/modules/firebase/tariff-zones.js +32 -0
- package/lib/modules/firebase/transport-mode-filter.d.ts +27 -0
- package/lib/modules/firebase/transport-mode-filter.d.ts.map +1 -0
- package/lib/modules/firebase/transport-mode-filter.js +27 -0
- package/lib/modules/firebase/types.d.ts +19 -0
- package/lib/modules/firebase/types.d.ts.map +1 -0
- package/lib/modules/firebase/types.js +15 -0
- package/lib/modules/graphql-types/index.d.ts +1998 -0
- package/lib/modules/graphql-types/index.d.ts.map +1 -0
- package/lib/modules/graphql-types/index.js +442 -0
- package/lib/modules/graphql-types/journeyplanner-types_v3.generated.d.ts +2419 -0
- package/lib/modules/graphql-types/journeyplanner-types_v3.generated.d.ts.map +1 -0
- package/lib/modules/graphql-types/journeyplanner-types_v3.generated.js +524 -0
- package/lib/modules/logging/index.d.ts +6 -0
- package/lib/modules/logging/index.d.ts.map +1 -0
- package/lib/modules/logging/index.js +13 -0
- package/lib/modules/logging/log-api-response.d.ts +15 -0
- package/lib/modules/logging/log-api-response.d.ts.map +1 -0
- package/lib/modules/logging/log-api-response.js +52 -0
- package/lib/modules/logging/log-page-access.d.ts +20 -0
- package/lib/modules/logging/log-page-access.d.ts.map +1 -0
- package/lib/modules/logging/log-page-access.js +60 -0
- package/lib/modules/logging/logger.d.ts +3 -0
- package/lib/modules/logging/logger.d.ts.map +1 -0
- package/lib/modules/logging/logger.js +32 -0
- package/lib/modules/logging/timer.d.ts +6 -0
- package/lib/modules/logging/timer.d.ts.map +1 -0
- package/lib/modules/logging/timer.js +13 -0
- package/lib/modules/logging/with-access-logging.d.ts +5 -0
- package/lib/modules/logging/with-access-logging.d.ts.map +1 -0
- package/lib/modules/logging/with-access-logging.js +20 -0
- package/lib/modules/org-data/compat-layer.d.ts +8 -0
- package/lib/modules/org-data/compat-layer.d.ts.map +1 -0
- package/lib/modules/org-data/compat-layer.js +8 -0
- package/lib/modules/org-data/index.d.ts +12 -0
- package/lib/modules/org-data/index.d.ts.map +1 -0
- package/lib/modules/org-data/index.js +27 -0
- package/lib/modules/theme/index.d.ts +3 -0
- package/lib/modules/theme/index.d.ts.map +1 -0
- package/lib/modules/theme/index.js +9 -0
- package/lib/modules/theme/theme-context.d.ts +43 -0
- package/lib/modules/theme/theme-context.d.ts.map +1 -0
- package/lib/modules/theme/theme-context.js +73 -0
- package/lib/modules/transport-mode/filter/filter.d.ts +9 -0
- package/lib/modules/transport-mode/filter/filter.d.ts.map +1 -0
- package/lib/modules/transport-mode/filter/filter.js +64 -0
- package/lib/modules/transport-mode/filter/filter.module.css +98 -0
- package/lib/modules/transport-mode/filter/index.d.ts +3 -0
- package/lib/modules/transport-mode/filter/index.d.ts.map +1 -0
- package/lib/modules/transport-mode/filter/index.js +11 -0
- package/lib/modules/transport-mode/filter/types.d.ts +2 -0
- package/lib/modules/transport-mode/filter/types.d.ts.map +1 -0
- package/lib/modules/transport-mode/filter/types.js +2 -0
- package/lib/modules/transport-mode/filter/utils.d.ts +9 -0
- package/lib/modules/transport-mode/filter/utils.d.ts.map +1 -0
- package/lib/modules/transport-mode/filter/utils.js +21 -0
- package/lib/modules/transport-mode/icon/icon.module.css +33 -0
- package/lib/modules/transport-mode/icon/index.d.ts +29 -0
- package/lib/modules/transport-mode/icon/index.d.ts.map +1 -0
- package/lib/modules/transport-mode/icon/index.js +116 -0
- package/lib/modules/transport-mode/icon/transport-icon-new.d.ts +28 -0
- package/lib/modules/transport-mode/icon/transport-icon-new.d.ts.map +1 -0
- package/lib/modules/transport-mode/icon/transport-icon-new.js +114 -0
- package/lib/modules/transport-mode/index.d.ts +5 -0
- package/lib/modules/transport-mode/index.d.ts.map +1 -0
- package/lib/modules/transport-mode/index.js +29 -0
- package/lib/modules/transport-mode/types.d.ts +10 -0
- package/lib/modules/transport-mode/types.d.ts.map +1 -0
- package/lib/modules/transport-mode/types.js +141 -0
- package/lib/modules/transport-mode/utils.d.ts +9 -0
- package/lib/modules/transport-mode/utils.d.ts.map +1 -0
- package/lib/modules/transport-mode/utils.js +53 -0
- package/lib/refund/events.d.ts +32 -0
- package/lib/refund/events.d.ts.map +1 -0
- package/lib/refund/events.js +5 -0
- package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts +10 -0
- package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts.map +1 -0
- package/lib/refund/forms/refund-and-travel-guarantee/index.js +37 -0
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts +11 -0
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts.map +1 -0
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.js +133 -0
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts +11 -0
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts.map +1 -0
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.js +133 -0
- package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts +12 -0
- package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts.map +1 -0
- package/lib/refund/forms/refund-ticket/appTicketRefund.js +82 -0
- package/lib/refund/forms/refund-ticket/index.d.ts +10 -0
- package/lib/refund/forms/refund-ticket/index.d.ts.map +1 -0
- package/lib/refund/forms/refund-ticket/index.js +38 -0
- package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts +11 -0
- package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts.map +1 -0
- package/lib/refund/forms/refund-ticket/otherTicketRefund.js +109 -0
- package/lib/refund/forms/residualValueOnTravelCard/index.d.ts +2 -0
- package/lib/refund/forms/residualValueOnTravelCard/index.d.ts.map +1 -0
- package/lib/refund/forms/residualValueOnTravelCard/index.js +19 -0
- package/lib/refund/index.d.ts +3 -0
- package/lib/refund/index.d.ts.map +1 -0
- package/lib/refund/index.js +50 -0
- package/lib/refund/refundFormMachine.d.ts +406 -0
- package/lib/refund/refundFormMachine.d.ts.map +1 -0
- package/lib/refund/refundFormMachine.js +404 -0
- package/lib/server/contact/index.d.ts +11 -0
- package/lib/server/contact/index.d.ts.map +1 -0
- package/lib/server/contact/index.js +47 -0
- package/lib/server/index.d.ts +9 -0
- package/lib/server/index.d.ts.map +1 -0
- package/lib/server/index.js +14 -0
- package/lib/server/journey-planner/authority.d.ts +26 -0
- package/lib/server/journey-planner/authority.d.ts.map +1 -0
- package/lib/server/journey-planner/authority.js +48 -0
- package/lib/server/journey-planner/entur-client.d.ts +7 -0
- package/lib/server/journey-planner/entur-client.d.ts.map +1 -0
- package/lib/server/journey-planner/entur-client.js +46 -0
- package/lib/server/journey-planner/index.d.ts +11 -0
- package/lib/server/journey-planner/index.d.ts.map +1 -0
- package/lib/server/journey-planner/index.js +63 -0
- package/lib/server/journey-planner/journey-gql/lines.generated.d.ts +25 -0
- package/lib/server/journey-planner/journey-gql/lines.generated.d.ts.map +1 -0
- package/lib/server/journey-planner/journey-gql/lines.generated.js +30 -0
- package/lib/server/journey-planner/validators.d.ts +25 -0
- package/lib/server/journey-planner/validators.d.ts.map +1 -0
- package/lib/server/journey-planner/validators.js +17 -0
- package/lib/server/types.d.ts +5 -0
- package/lib/server/types.d.ts.map +1 -0
- package/lib/server/types.js +2 -0
- package/lib/success-content/success-content.d.ts +2 -0
- package/lib/success-content/success-content.d.ts.map +1 -0
- package/lib/success-content/success-content.js +19 -0
- package/lib/success-content/success-content.module.css +11 -0
- package/lib/ticket-control/events.d.ts +16 -0
- package/lib/ticket-control/events.d.ts.map +1 -0
- package/lib/ticket-control/events.js +5 -0
- package/lib/ticket-control/forms/feeComplaintForm.d.ts +11 -0
- package/lib/ticket-control/forms/feeComplaintForm.d.ts.map +1 -0
- package/lib/ticket-control/forms/feeComplaintForm.js +130 -0
- package/lib/ticket-control/forms/feedbackForm.d.ts +11 -0
- package/lib/ticket-control/forms/feedbackForm.d.ts.map +1 -0
- package/lib/ticket-control/forms/feedbackForm.js +75 -0
- package/lib/ticket-control/forms/postponePayment.d.ts +11 -0
- package/lib/ticket-control/forms/postponePayment.d.ts.map +1 -0
- package/lib/ticket-control/forms/postponePayment.js +37 -0
- package/lib/ticket-control/index.d.ts +3 -0
- package/lib/ticket-control/index.d.ts.map +1 -0
- package/lib/ticket-control/index.js +53 -0
- package/lib/ticket-control/ticket-control-form-machine.d.ts +277 -0
- package/lib/ticket-control/ticket-control-form-machine.d.ts.map +1 -0
- package/lib/ticket-control/ticket-control-form-machine.js +262 -0
- package/lib/ticketing/events.d.ts +28 -0
- package/lib/ticketing/events.d.ts.map +1 -0
- package/lib/ticketing/events.js +5 -0
- package/lib/ticketing/forms/app/appAccountForm.d.ts +11 -0
- package/lib/ticketing/forms/app/appAccountForm.d.ts.map +1 -0
- package/lib/ticketing/forms/app/appAccountForm.js +51 -0
- package/lib/ticketing/forms/app/appTicketingForm.d.ts +11 -0
- package/lib/ticketing/forms/app/appTicketingForm.d.ts.map +1 -0
- package/lib/ticketing/forms/app/appTicketingForm.js +59 -0
- package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts +11 -0
- package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts.map +1 -0
- package/lib/ticketing/forms/app/appTravelSuggestionForm.js +41 -0
- package/lib/ticketing/forms/app/index.d.ts +10 -0
- package/lib/ticketing/forms/app/index.d.ts.map +1 -0
- package/lib/ticketing/forms/app/index.js +23 -0
- package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts +11 -0
- package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts.map +1 -0
- package/lib/ticketing/forms/priceAndTicketTypesForm.js +41 -0
- package/lib/ticketing/forms/travel-card/index.d.ts +10 -0
- package/lib/ticketing/forms/travel-card/index.d.ts.map +1 -0
- package/lib/ticketing/forms/travel-card/index.js +24 -0
- package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts +3 -0
- package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts.map +1 -0
- package/lib/ticketing/forms/travel-card/orderTravelCard.js +21 -0
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts +11 -0
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts.map +1 -0
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.js +52 -0
- package/lib/ticketing/forms/webshop/index.d.ts +10 -0
- package/lib/ticketing/forms/webshop/index.d.ts.map +1 -0
- package/lib/ticketing/forms/webshop/index.js +22 -0
- package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts +11 -0
- package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts.map +1 -0
- package/lib/ticketing/forms/webshop/webshopAccountForm.js +51 -0
- package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts +11 -0
- package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts.map +1 -0
- package/lib/ticketing/forms/webshop/webshopTicketingForm.js +58 -0
- package/lib/ticketing/index.d.ts +3 -0
- package/lib/ticketing/index.d.ts.map +1 -0
- package/lib/ticketing/index.js +52 -0
- package/lib/ticketing/ticketingStateMachine.d.ts +438 -0
- package/lib/ticketing/ticketingStateMachine.d.ts.map +1 -0
- package/lib/ticketing/ticketingStateMachine.js +435 -0
- package/lib/translations/__tests__/utils.test.d.ts +2 -0
- package/lib/translations/__tests__/utils.test.d.ts.map +1 -0
- package/lib/translations/__tests__/utils.test.js +35 -0
- package/lib/translations/common/index.d.ts +3 -0
- package/lib/translations/common/index.d.ts.map +1 -0
- package/lib/translations/common/index.js +7 -0
- package/lib/translations/common/layout.d.ts +8 -0
- package/lib/translations/common/layout.d.ts.map +1 -0
- package/lib/translations/common/layout.js +39 -0
- package/lib/translations/common/titles.d.ts +4 -0
- package/lib/translations/common/titles.d.ts.map +1 -0
- package/lib/translations/common/titles.js +25 -0
- package/lib/translations/commons.d.ts +21 -0
- package/lib/translations/commons.d.ts.map +1 -0
- package/lib/translations/commons.js +39 -0
- package/lib/translations/components/clear-button.d.ts +4 -0
- package/lib/translations/components/clear-button.d.ts.map +1 -0
- package/lib/translations/components/clear-button.js +7 -0
- package/lib/translations/components/departure-date-selector.d.ts +8 -0
- package/lib/translations/components/departure-date-selector.d.ts.map +1 -0
- package/lib/translations/components/departure-date-selector.js +11 -0
- package/lib/translations/components/departure-time.d.ts +8 -0
- package/lib/translations/components/departure-time.d.ts.map +1 -0
- package/lib/translations/components/departure-time.js +11 -0
- package/lib/translations/components/empty-search.d.ts +18 -0
- package/lib/translations/components/empty-search.d.ts.map +1 -0
- package/lib/translations/components/empty-search.js +21 -0
- package/lib/translations/components/geolocation-button.d.ts +10 -0
- package/lib/translations/components/geolocation-button.d.ts.map +1 -0
- package/lib/translations/components/geolocation-button.js +13 -0
- package/lib/translations/components/index.d.ts +14 -0
- package/lib/translations/components/index.d.ts.map +1 -0
- package/lib/translations/components/index.js +29 -0
- package/lib/translations/components/loading.d.ts +4 -0
- package/lib/translations/components/loading.d.ts.map +1 -0
- package/lib/translations/components/loading.js +7 -0
- package/lib/translations/components/map.d.ts +19 -0
- package/lib/translations/components/map.d.ts.map +1 -0
- package/lib/translations/components/map.js +22 -0
- package/lib/translations/components/search.d.ts +9 -0
- package/lib/translations/components/search.d.ts.map +1 -0
- package/lib/translations/components/search.js +12 -0
- package/lib/translations/components/swap-button.d.ts +4 -0
- package/lib/translations/components/swap-button.d.ts.map +1 -0
- package/lib/translations/components/swap-button.js +7 -0
- package/lib/translations/components/tab-link.d.ts +5 -0
- package/lib/translations/components/tab-link.d.ts.map +1 -0
- package/lib/translations/components/tab-link.js +8 -0
- package/lib/translations/components/transport-mode-filter.d.ts +6 -0
- package/lib/translations/components/transport-mode-filter.d.ts.map +1 -0
- package/lib/translations/components/transport-mode-filter.js +9 -0
- package/lib/translations/components/transport-mode.d.ts +3 -0
- package/lib/translations/components/transport-mode.d.ts.map +1 -0
- package/lib/translations/components/transport-mode.js +28 -0
- package/lib/translations/components/venue-icon.d.ts +9 -0
- package/lib/translations/components/venue-icon.d.ts.map +1 -0
- package/lib/translations/components/venue-icon.js +12 -0
- package/lib/translations/dictionary.d.ts +33 -0
- package/lib/translations/dictionary.d.ts.map +1 -0
- package/lib/translations/dictionary.js +59 -0
- package/lib/translations/index.d.ts +16 -0
- package/lib/translations/index.d.ts.map +1 -0
- package/lib/translations/index.js +65 -0
- package/lib/translations/json-to-override.d.ts +19 -0
- package/lib/translations/json-to-override.d.ts.map +1 -0
- package/lib/translations/json-to-override.js +61 -0
- package/lib/translations/language-context.d.ts +37 -0
- package/lib/translations/language-context.d.ts.map +1 -0
- package/lib/translations/language-context.js +98 -0
- package/lib/translations/load-org-translations.d.ts +19 -0
- package/lib/translations/load-org-translations.d.ts.map +1 -0
- package/lib/translations/load-org-translations.js +23 -0
- package/lib/translations/merge-overrides.d.ts +28 -0
- package/lib/translations/merge-overrides.d.ts.map +1 -0
- package/lib/translations/merge-overrides.js +126 -0
- package/lib/translations/modules/index.d.ts +4 -0
- package/lib/translations/modules/index.d.ts.map +1 -0
- package/lib/translations/modules/index.js +9 -0
- package/lib/translations/modules/layout.d.ts +73 -0
- package/lib/translations/modules/layout.d.ts.map +1 -0
- package/lib/translations/modules/layout.js +106 -0
- package/lib/translations/modules/search-time.d.ts +8 -0
- package/lib/translations/modules/search-time.d.ts.map +1 -0
- package/lib/translations/modules/search-time.js +11 -0
- package/lib/translations/modules/situation.d.ts +8 -0
- package/lib/translations/modules/situation.d.ts.map +1 -0
- package/lib/translations/modules/situation.js +11 -0
- package/lib/translations/pages/assistant.d.ts +2 -0
- package/lib/translations/pages/assistant.d.ts.map +1 -0
- package/lib/translations/pages/assistant.js +303 -0
- package/lib/translations/pages/contact.d.ts +589 -0
- package/lib/translations/pages/contact.d.ts.map +1 -0
- package/lib/translations/pages/contact.js +679 -0
- package/lib/translations/pages/departures.d.ts +64 -0
- package/lib/translations/pages/departures.d.ts.map +1 -0
- package/lib/translations/pages/departures.js +75 -0
- package/lib/translations/pages/error.d.ts +8 -0
- package/lib/translations/pages/error.d.ts.map +1 -0
- package/lib/translations/pages/error.js +11 -0
- package/lib/translations/pages/index.d.ts +4 -0
- package/lib/translations/pages/index.d.ts.map +1 -0
- package/lib/translations/pages/index.js +9 -0
- package/lib/translations/server/endpoints.d.ts +67 -0
- package/lib/translations/server/endpoints.d.ts.map +1 -0
- package/lib/translations/server/endpoints.js +146 -0
- package/lib/translations/server/index.d.ts +2 -0
- package/lib/translations/server/index.d.ts.map +1 -0
- package/lib/translations/server/index.js +5 -0
- package/lib/translations/translations-context.d.ts +10 -0
- package/lib/translations/translations-context.d.ts.map +1 -0
- package/lib/translations/translations-context.js +20 -0
- package/lib/translations/types.d.ts +41 -0
- package/lib/translations/types.d.ts.map +1 -0
- package/lib/translations/types.js +24 -0
- package/lib/translations/utils.d.ts +16 -0
- package/lib/translations/utils.d.ts.map +1 -0
- package/lib/translations/utils.js +56 -0
- package/lib/types/submit-payloads.d.ts +119 -0
- package/lib/types/submit-payloads.d.ts.map +1 -0
- package/lib/types/submit-payloads.js +7 -0
- package/lib/types.d.ts +20 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +12 -0
- package/lib/utils/color.d.ts +2 -0
- package/lib/utils/color.d.ts.map +1 -0
- package/lib/utils/color.js +50 -0
- package/lib/utils/css.d.ts +3 -0
- package/lib/utils/css.d.ts.map +1 -0
- package/lib/utils/css.js +15 -0
- package/lib/utils/date.d.ts +4 -0
- package/lib/utils/date.d.ts.map +1 -0
- package/lib/utils/date.js +21 -0
- package/lib/utils/enum-from-string.d.ts +4 -0
- package/lib/utils/enum-from-string.d.ts.map +1 -0
- package/lib/utils/enum-from-string.js +9 -0
- package/lib/utils/env.d.ts +10 -0
- package/lib/utils/env.d.ts.map +1 -0
- package/lib/utils/env.js +49 -0
- package/lib/utils/only-uniques.d.ts +3 -0
- package/lib/utils/only-uniques.d.ts.map +1 -0
- package/lib/utils/only-uniques.js +7 -0
- package/lib/utils/org-theme-definitions.d.ts +5 -0
- package/lib/utils/org-theme-definitions.d.ts.map +1 -0
- package/lib/utils/org-theme-definitions.js +13 -0
- package/lib/utils/presence.d.ts +2 -0
- package/lib/utils/presence.d.ts.map +1 -0
- package/lib/utils/presence.js +5 -0
- package/lib/utils/reference-data.d.ts +15 -0
- package/lib/utils/reference-data.d.ts.map +1 -0
- package/lib/utils/reference-data.js +15 -0
- package/lib/utils/use-client-width.d.ts +2 -0
- package/lib/utils/use-client-width.d.ts.map +1 -0
- package/lib/utils/use-client-width.js +18 -0
- package/lib/utils/use-debounce.d.ts +3 -0
- package/lib/utils/use-debounce.d.ts.map +1 -0
- package/lib/utils/use-debounce.js +14 -0
- package/lib/utils/use-interval.d.ts +2 -0
- package/lib/utils/use-interval.d.ts.map +1 -0
- package/lib/utils/use-interval.js +22 -0
- package/lib/utils/use-localstorage.d.ts +2 -0
- package/lib/utils/use-localstorage.d.ts.map +1 -0
- package/lib/utils/use-localstorage.js +40 -0
- package/lib/utils/use-now.d.ts +2 -0
- package/lib/utils/use-now.d.ts.map +1 -0
- package/lib/utils/use-now.js +13 -0
- package/lib/utils/user-media-query.d.ts +2 -0
- package/lib/utils/user-media-query.d.ts.map +1 -0
- package/lib/utils/user-media-query.js +36 -0
- package/lib/utils.d.ts +19 -0
- package/lib/utils.d.ts.map +1 -0
- package/lib/utils.js +126 -0
- package/lib/validation/commonInputValidator.d.ts +7 -0
- package/lib/validation/commonInputValidator.d.ts.map +1 -0
- package/lib/validation/commonInputValidator.js +28 -0
- package/lib/validation/index.d.ts +2 -0
- package/lib/validation/index.d.ts.map +1 -0
- package/lib/validation/index.js +8 -0
- package/lib/validation/validationRules.d.ts +11 -0
- package/lib/validation/validationRules.d.ts.map +1 -0
- package/lib/validation/validationRules.js +372 -0
- package/package.json +99 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const Departures: {
|
|
2
|
+
title: import("../../translations/commons").TranslatedString;
|
|
3
|
+
titleAddress: (place: string) => import("../../translations/commons").TranslatedString;
|
|
4
|
+
titleStopp: (place: string) => import("../../translations/commons").TranslatedString;
|
|
5
|
+
homeLink: (name: string) => import("../../translations/commons").TranslatedString;
|
|
6
|
+
shortTitle: import("../../translations/commons").TranslatedString;
|
|
7
|
+
search: {
|
|
8
|
+
input: {
|
|
9
|
+
label: import("../../translations/commons").TranslatedString;
|
|
10
|
+
from: import("../../translations/commons").TranslatedString;
|
|
11
|
+
placeholder: import("../../translations/commons").TranslatedString;
|
|
12
|
+
};
|
|
13
|
+
date: {
|
|
14
|
+
label: import("../../translations/commons").TranslatedString;
|
|
15
|
+
};
|
|
16
|
+
buttons: {
|
|
17
|
+
find: {
|
|
18
|
+
title: import("../../translations/commons").TranslatedString;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
nearest: {
|
|
23
|
+
stopPlaceItem: {
|
|
24
|
+
stopPlace: import("../../translations/commons").TranslatedString;
|
|
25
|
+
uuTitle: (name: string, distance: string) => import("../../translations/commons").TranslatedString;
|
|
26
|
+
};
|
|
27
|
+
resultsFound: (count: number) => import("../../translations/commons").TranslatedString;
|
|
28
|
+
emptySearchResults: {
|
|
29
|
+
emptyNearbyLocationsTitle: import("../../translations/commons").TranslatedString;
|
|
30
|
+
emptyNearbyLocationsDetails: import("../../translations/commons").TranslatedString;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
stopPlace: {
|
|
34
|
+
noDepartures: import("../../translations/commons").TranslatedString;
|
|
35
|
+
quaySection: {
|
|
36
|
+
resultsLoaded: import("../../translations/commons").TranslatedString;
|
|
37
|
+
refreshButton: import("../../translations/commons").TranslatedString;
|
|
38
|
+
a11yExpand: import("../../translations/commons").TranslatedString;
|
|
39
|
+
a11yMinimize: import("../../translations/commons").TranslatedString;
|
|
40
|
+
a11yToQuayHint: import("../../translations/commons").TranslatedString;
|
|
41
|
+
moreDepartures: import("../../translations/commons").TranslatedString;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
details: {
|
|
45
|
+
backToDepartures: import("../../translations/commons").TranslatedString;
|
|
46
|
+
backToAssistant: import("../../translations/commons").TranslatedString;
|
|
47
|
+
quayPublicCodePrefix: import("../../translations/commons").TranslatedString;
|
|
48
|
+
lastPassedStop: (stopPlaceName: string, time: string) => import("../../translations/commons").TranslatedString;
|
|
49
|
+
noPassedStop: (stopPlaceName: string, time: string) => import("../../translations/commons").TranslatedString;
|
|
50
|
+
onTime: import("../../translations/commons").TranslatedString;
|
|
51
|
+
notOnTime: import("../../translations/commons").TranslatedString;
|
|
52
|
+
collapse: {
|
|
53
|
+
label: (numberStops: number) => import("../../translations/commons").TranslatedString;
|
|
54
|
+
a11yHint: import("../../translations/commons").TranslatedString;
|
|
55
|
+
};
|
|
56
|
+
messages: {
|
|
57
|
+
loading: import("../../translations/commons").TranslatedString;
|
|
58
|
+
noAlighting: import("../../translations/commons").TranslatedString;
|
|
59
|
+
noBoarding: import("../../translations/commons").TranslatedString;
|
|
60
|
+
noActiveItem: import("../../translations/commons").TranslatedString;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=departures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"departures.d.ts","sourceRoot":"","sources":["../../../src/translations/pages/departures.ts"],"names":[],"mappings":"AAiKA,eAAO,MAAM,UAAU;;0BA5JG,MAAM;wBAER,MAAM;qBAMT,MAAM;;;;;;;;;;;;;;;;;;;;4BAmCC,MAAM,YAAY,MAAM;;8BAOtB,MAAM;;;;;;;;;;;;;;;;;;;;;wCAkEI,MAAM,QAAQ,MAAM;sCAMtB,MAAM,QAAQ,MAAM;;;;iCASzB,MAAM;;;;;;;;;;CA+BrC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Departures = void 0;
|
|
4
|
+
const commons_1 = require("../../translations/commons");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
const DeparturesInternal = {
|
|
7
|
+
title: (0, commons_1.translation)('Se avganger', 'See departures', 'Sjå avgangar'),
|
|
8
|
+
titleAddress: (place) => (0, commons_1.translation)(`Stopp nært ${place}`, `Stops near ${place}`, `Stopp nær ${place}`),
|
|
9
|
+
titleStopp: (place) => (0, commons_1.translation)(`Avganger fra ${place}`, `Departures from ${place}`, `Avganger frå ${place}`),
|
|
10
|
+
homeLink: (name) => (0, commons_1.translation)(`Tilbake til ${name}`, `Back to ${name}`, `Tilbake til ${name}`),
|
|
11
|
+
shortTitle: (0, commons_1.translation)('Avganger', 'Departures', 'Avganger'),
|
|
12
|
+
search: {
|
|
13
|
+
input: {
|
|
14
|
+
label: (0, commons_1.translation)('Hvor vil du reise fra?', 'Where do you want to travel from?', 'Kor vil du reise frå?'),
|
|
15
|
+
from: (0, commons_1.translation)('Fra', 'From', 'Frå'),
|
|
16
|
+
placeholder: (0, commons_1.translation)('Sted eller adresse', 'Place or address', 'Stad eller adresse'),
|
|
17
|
+
},
|
|
18
|
+
date: {
|
|
19
|
+
label: (0, commons_1.translation)('Når vil du reise?', 'When do you want to travel?', 'Når vil du reise?'),
|
|
20
|
+
},
|
|
21
|
+
buttons: {
|
|
22
|
+
find: {
|
|
23
|
+
title: (0, commons_1.translation)('Finn avganger', 'Find departures', 'Finn avgangar'),
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
nearest: {
|
|
28
|
+
stopPlaceItem: {
|
|
29
|
+
stopPlace: (0, commons_1.translation)('Holdeplass', 'Stop', 'Haldeplass'),
|
|
30
|
+
uuTitle: (name, distance) => (0, commons_1.translation)(`Holdeplass ${name}. ${distance} meter gåavstand.`, `Stop place ${name}. ${distance} meters walking distance`, `Holdeplass ${name}. ${distance} meter gåavstand`),
|
|
31
|
+
},
|
|
32
|
+
resultsFound: (count) => (0, commons_1.translation)(`Fant ${count} holdeplasser i nærheten`, `Found ${count} stop places nearby`, `Fann ${count} holdeplassar i nærleiken`),
|
|
33
|
+
emptySearchResults: {
|
|
34
|
+
emptyNearbyLocationsTitle: (0, commons_1.translation)('Finner ingen holdeplasser i nærheten', 'No nearby stop places found', 'Finn ingen haldeplassar i nærleiken'),
|
|
35
|
+
emptyNearbyLocationsDetails: (0, commons_1.translation)('Prøv å søke på et annet navn eller bruk et annet stoppested for å finne avganger i nærheten.', 'Try to search for another name or use another stop place to find departures nearby.', 'Prøv å søkje på eit anna namn eller bruk ein annan stoppestad for å finne avgangar i nærleiken.'),
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
stopPlace: {
|
|
39
|
+
noDepartures: (0, commons_1.translation)('Ingen avganger i dette tidsrommet.', 'No departures in the selected period of time.', 'Ingen avgangar i dette tidsrommet.'),
|
|
40
|
+
quaySection: {
|
|
41
|
+
resultsLoaded: (0, commons_1.translation)('Lastet avganger', 'Loaded departures', 'Lasta avgangar'),
|
|
42
|
+
refreshButton: (0, commons_1.translation)('Oppdater', 'Refresh', 'Oppdater'),
|
|
43
|
+
a11yExpand: (0, commons_1.translation)('Aktiver for å utvide', 'Activate to expand', 'Aktiver for å utvide'),
|
|
44
|
+
a11yMinimize: (0, commons_1.translation)('Aktiver for å minimere', 'Activate to minimize', 'Aktiver for å minimere'),
|
|
45
|
+
a11yToQuayHint: (0, commons_1.translation)('Aktiver for å vise flere avganger', 'Activate to show more departures', 'Aktiver for å vise fleire avgangar'),
|
|
46
|
+
moreDepartures: (0, commons_1.translation)('Se flere avganger', 'See more departures', 'Sjå fleire avgangar'),
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
details: {
|
|
50
|
+
backToDepartures: (0, commons_1.translation)('Tilbake til avganger', 'Back to departures', 'Tilbake til avgangar'),
|
|
51
|
+
backToAssistant: (0, commons_1.translation)('Tilbake til reiseforslag', 'Back to travel suggestion', 'Tilbake til reiseforslag'),
|
|
52
|
+
quayPublicCodePrefix: (0, commons_1.translation)('', '', ''),
|
|
53
|
+
lastPassedStop: (stopPlaceName, time) => (0, commons_1.translation)(`Passerte ${stopPlaceName} kl. ${time}`, `Passed ${stopPlaceName} at ${time}`, `Passerte ${stopPlaceName} kl. ${time}`),
|
|
54
|
+
noPassedStop: (stopPlaceName, time) => (0, commons_1.translation)(`Kjører fra ${stopPlaceName} kl. ${time}`, `Departs from ${stopPlaceName} at ${time}`, `Køyrer frå ${stopPlaceName} kl. ${time}`),
|
|
55
|
+
onTime: (0, commons_1.translation)(`I rute`, `On time`, `I rute`),
|
|
56
|
+
notOnTime: (0, commons_1.translation)(`Etter rutetid`, `Behind scheduled time`, `Etter rutetid`),
|
|
57
|
+
collapse: {
|
|
58
|
+
label: (numberStops) => (0, commons_1.translation)(`${numberStops} mellomstopp`, `${numberStops} intermediate stops`, `${numberStops} mellomstopp`),
|
|
59
|
+
a11yHint: (0, commons_1.translation)('Aktivér for å vise alle mellomstopp.', 'Activate to show intermediate stops', 'Aktiver for å vise alle mellomstopp'),
|
|
60
|
+
},
|
|
61
|
+
messages: {
|
|
62
|
+
loading: (0, commons_1.translation)('Laster detaljer', 'Loading details', 'Lastar detaljar'),
|
|
63
|
+
noAlighting: (0, commons_1.translation)('Ingen avstigning', 'No disembarking', 'Ingen avstiging'),
|
|
64
|
+
noBoarding: (0, commons_1.translation)('Ingen påstigning', 'No boarding', 'Ingen påstiging'),
|
|
65
|
+
noActiveItem: (0, commons_1.translation)('Ojda! Noe gikk galt med lasting av detaljer for denne reisen.', 'Oops! We had some issues loading the details for this journey.', 'Oi då! Noko gjekk gale med lasting av detaljar for denne reisa.'),
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
exports.Departures = (0, utils_1.orgSpecificTranslations)(DeparturesInternal, {
|
|
70
|
+
vkt: {
|
|
71
|
+
details: {
|
|
72
|
+
quayPublicCodePrefix: (0, commons_1.translation)(' - Spor ', ' - Track ', ' - Spor '),
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const Error: {
|
|
2
|
+
title: import("../../translations/commons").TranslatedString;
|
|
3
|
+
backButton: import("../../translations/commons").TranslatedString;
|
|
4
|
+
'404': import("../../translations/commons").TranslatedString;
|
|
5
|
+
'500': import("../../translations/commons").TranslatedString;
|
|
6
|
+
unknown: import("../../translations/commons").TranslatedString;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/translations/pages/error.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;CAsBjB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Error = void 0;
|
|
4
|
+
const commons_1 = require("../../translations/commons");
|
|
5
|
+
exports.Error = {
|
|
6
|
+
title: (0, commons_1.translation)('Oisann! Noe har gått galt...', 'Oh no, something is wrong...', 'Oisann! Noko har gått gale...'),
|
|
7
|
+
backButton: (0, commons_1.translation)('Tilbake', 'Back', 'Tilbake'),
|
|
8
|
+
'404': (0, commons_1.translation)('Fant ikke siden du prøvde å åpne. Forsøk å gå tilbake til startsiden og prøv på nytt.', "Couldn't find the page you were looking for. Please try returning to the main page and try again.", 'Fann ikkje sida du forsøkte å gå til. Du kan forsøke å gå til startsida og forsøke ein gang til.'),
|
|
9
|
+
'500': (0, commons_1.translation)('Her gikk vi på en blemme og det skjedde en feil. Kan du prøve igjen?', 'An error occured. Could you try again for us?', 'Her gjekk vi på ei blemme og det skjedde ein feil. Kan du prøve igjen?'),
|
|
10
|
+
unknown: (0, commons_1.translation)('Her gikk vi på en blemme og det skjedde en feil. Kan du prøve igjen?', 'An error occured. Could you try again for us?', 'Her gjekk vi på ei blemme og det skjedde ein feil. Kan du prøve igjen?'),
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/translations/pages/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Error = exports.Contact = exports.Departures = void 0;
|
|
4
|
+
var departures_1 = require("./departures");
|
|
5
|
+
Object.defineProperty(exports, "Departures", { enumerable: true, get: function () { return departures_1.Departures; } });
|
|
6
|
+
var contact_1 = require("./contact");
|
|
7
|
+
Object.defineProperty(exports, "Contact", { enumerable: true, get: function () { return contact_1.Contact; } });
|
|
8
|
+
var error_1 = require("./error");
|
|
9
|
+
Object.defineProperty(exports, "Error", { enumerable: true, get: function () { return error_1.Error; } });
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export declare const Endpoints: {
|
|
2
|
+
empty: import("../../translations/commons").TranslatedString;
|
|
3
|
+
resourceNotFound: import("../../translations/commons").TranslatedString;
|
|
4
|
+
rateLimit: import("../../translations/commons").TranslatedString;
|
|
5
|
+
serverError: import("../../translations/commons").TranslatedString;
|
|
6
|
+
serverErrorGeneric: (err: string) => import("../../translations/commons").TranslatedString;
|
|
7
|
+
accessError: import("../../translations/commons").TranslatedString;
|
|
8
|
+
invalidMethod: import("../../translations/commons").TranslatedString;
|
|
9
|
+
invalidData: import("../../translations/commons").TranslatedString;
|
|
10
|
+
decodeError: import("../../translations/commons").TranslatedString;
|
|
11
|
+
recurringPayment: {
|
|
12
|
+
missingId: import("../../translations/commons").TranslatedString;
|
|
13
|
+
};
|
|
14
|
+
behalfOfOthers: {
|
|
15
|
+
register: {
|
|
16
|
+
missingAlias: import("../../translations/commons").TranslatedString;
|
|
17
|
+
success: (alias: string) => import("../../translations/commons").TranslatedString;
|
|
18
|
+
};
|
|
19
|
+
updatedAlias: import("../../translations/commons").TranslatedString;
|
|
20
|
+
deletedAccount: import("../../translations/commons").TranslatedString;
|
|
21
|
+
missingId: import("../../translations/commons").TranslatedString;
|
|
22
|
+
missingAccount: import("../../translations/commons").TranslatedString;
|
|
23
|
+
serverErrors: {
|
|
24
|
+
aliasExists: import("../../translations/commons").TranslatedString;
|
|
25
|
+
travelCardExists: import("../../translations/commons").TranslatedString;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
serverErrors: {
|
|
29
|
+
travelCardExists: import("../../translations/commons").TranslatedString;
|
|
30
|
+
};
|
|
31
|
+
travelCard: {
|
|
32
|
+
missingId: import("../../translations/commons").TranslatedString;
|
|
33
|
+
successAdd: import("../../translations/commons").TranslatedString;
|
|
34
|
+
successRemove: import("../../translations/commons").TranslatedString;
|
|
35
|
+
blocked: import("../../translations/commons").TranslatedString;
|
|
36
|
+
notExist: import("../../translations/commons").TranslatedString;
|
|
37
|
+
couldNotValidate: import("../../translations/commons").TranslatedString;
|
|
38
|
+
};
|
|
39
|
+
consents: {
|
|
40
|
+
missingConsent: import("../../translations/commons").TranslatedString;
|
|
41
|
+
missingEmail: import("../../translations/commons").TranslatedString;
|
|
42
|
+
success: import("../../translations/commons").TranslatedString;
|
|
43
|
+
};
|
|
44
|
+
searchOffer: {
|
|
45
|
+
missingData: import("../../translations/commons").TranslatedString;
|
|
46
|
+
missingStopPlaces: import("../../translations/commons").TranslatedString;
|
|
47
|
+
missingFromStopPlaces: import("../../translations/commons").TranslatedString;
|
|
48
|
+
missingToStopPlace: import("../../translations/commons").TranslatedString;
|
|
49
|
+
travelDateIsNotNextMorning: (timestamp: string) => import("../../translations/commons").TranslatedString;
|
|
50
|
+
};
|
|
51
|
+
reserve: {
|
|
52
|
+
missingData: import("../../translations/commons").TranslatedString;
|
|
53
|
+
};
|
|
54
|
+
sendReceipt: {
|
|
55
|
+
missingEmail: import("../../translations/commons").TranslatedString;
|
|
56
|
+
missingOrderData: import("../../translations/commons").TranslatedString;
|
|
57
|
+
success: import("../../translations/commons").TranslatedString;
|
|
58
|
+
};
|
|
59
|
+
updateProfile: {
|
|
60
|
+
missingProfileData: import("../../translations/commons").TranslatedString;
|
|
61
|
+
success: import("../../translations/commons").TranslatedString;
|
|
62
|
+
};
|
|
63
|
+
registerProfile: {
|
|
64
|
+
success: import("../../translations/commons").TranslatedString;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/translations/server/endpoints.ts"],"names":[],"mappings":"AAqMA,eAAO,MAAM,SAAS;;;;;8BAjLQ,MAAM;;;;;;;;;;;6BA2BP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDA0Ga,MAAM;;;;;;;;;;;;;;;;;CAkNpD,CAAC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Endpoints = void 0;
|
|
4
|
+
const commons_1 = require("../../translations/commons");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
const EndpointsInternal = {
|
|
7
|
+
empty: (0, commons_1.translation)('', '', ''),
|
|
8
|
+
resourceNotFound: (0, commons_1.translation)('Fant ikke resursen.', 'Resource not found.', 'Fann ikkje ressursen.'),
|
|
9
|
+
rateLimit: (0, commons_1.translation)('For mange forsøk. Prøv igjen senere.', 'Rate limit exceeded.', 'For mange forsøk. Prøv igjen seinare.'),
|
|
10
|
+
serverError: (0, commons_1.translation)('Ukjent feil med tjenesten.', 'Internal server error.', 'Ukjend feil med tenesta.'),
|
|
11
|
+
serverErrorGeneric: (err) => (0, commons_1.translation)(err, err, err),
|
|
12
|
+
accessError: (0, commons_1.translation)('Du har ikke tilgang. Prøv å logge inn på nytt.', "You don't have the necessary access. Try logging in again", 'Du har ikkje tilgang. Prøv å logge inn på nytt.'),
|
|
13
|
+
invalidMethod: (0, commons_1.translation)('Ugyldig forespørsel.', 'Invalid method.', 'Ugyldig førespurnad.'),
|
|
14
|
+
invalidData: (0, commons_1.translation)('Ugyldig data.', 'Invalid data.', 'Ugyldig data.'),
|
|
15
|
+
decodeError: (0, commons_1.translation)('Kunne ikke hente ut data.', 'Could not decode received data.', 'Kunne ikkje hente ut data.'),
|
|
16
|
+
recurringPayment: {
|
|
17
|
+
missingId: (0, commons_1.translation)('Mangler betalingsid.', 'Missing payment id.', 'Manglar betalingsid.'),
|
|
18
|
+
},
|
|
19
|
+
behalfOfOthers: {
|
|
20
|
+
register: {
|
|
21
|
+
missingAlias: (0, commons_1.translation)('Mangler navn.', 'Missing alias.', 'Manglar namn.'),
|
|
22
|
+
success: (alias) => (0, commons_1.translation)(`${alias} ble opprettet.`, `${alias} was created.`, `${alias} blei oppretta.`),
|
|
23
|
+
},
|
|
24
|
+
updatedAlias: (0, commons_1.translation)('Kallenavn oppdatert.', 'Nickname updated.', 'Kallenavn oppdatert.'),
|
|
25
|
+
deletedAccount: (0, commons_1.translation)('Person slettet.', 'Person deleted.', 'Person sletta.'),
|
|
26
|
+
missingId: (0, commons_1.translation)('Mangler bruker id.', 'Missing user id.', 'Manglar id for brukar.'),
|
|
27
|
+
missingAccount: (0, commons_1.translation)('Feil konto.', 'Wrong account.', 'Feil konto.'),
|
|
28
|
+
serverErrors: {
|
|
29
|
+
aliasExists: (0, commons_1.translation)('Du har alt en person med det kallenavnet.', 'Person with the alias already exists', 'Du har allereie ein person med det kallenamnet.'),
|
|
30
|
+
travelCardExists: (0, commons_1.translation)('t:kortet er registert hos noen andre.', 't:card is already registered to another account.', 't:kortet er registert hos nokon andre.'),
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
serverErrors: {
|
|
34
|
+
travelCardExists: (0, commons_1.translation)('t:kortet er registert hos noen andre.', 't:card is already registered to another account.', 't:kortet er registert hos nokon andre.'),
|
|
35
|
+
},
|
|
36
|
+
travelCard: {
|
|
37
|
+
missingId: (0, commons_1.translation)('Mangler t:kort nummer.', 'Missing t:card number.', 'Manglar t:kort nummer.'),
|
|
38
|
+
successAdd: (0, commons_1.translation)('Lagt til t:kort.', 't:card added.', 'Lagt til t:kort.'),
|
|
39
|
+
successRemove: (0, commons_1.translation)('Fjernet t:kort.', 't:card successfully removed.', 'Fjerna t:kort.'),
|
|
40
|
+
blocked: (0, commons_1.translation)('Reisekort er blokkert.', 'Travelcard is blocked.', 'Reisekort er blokkert.'),
|
|
41
|
+
notExist: (0, commons_1.translation)('Reisekort finnes ikke.', 'Travelcard does not exist.', 'Reisekort finst ikkje.'),
|
|
42
|
+
couldNotValidate: (0, commons_1.translation)('Kunne ikke validere reisekort.', 'Could not validate travelcard.', 'Kunne ikkje validere reisekort.'),
|
|
43
|
+
},
|
|
44
|
+
consents: {
|
|
45
|
+
missingConsent: (0, commons_1.translation)('Ugyldig forespørsel, ikke sendt med samtykke.', 'Not a valid request, missing consent.', 'Ugyldig førespurnad, ikkje sendt med samtykke.'),
|
|
46
|
+
missingEmail: (0, commons_1.translation)('Du har ikke satt en e-post på profilen din.', 'You need to specify e-mail in profile settings.', 'Du har ikkje sett ein e-post på profilen din.'),
|
|
47
|
+
success: (0, commons_1.translation)('Oppdatert samtykker.', 'Consents updated.', 'Oppdaterte samtykker.'),
|
|
48
|
+
},
|
|
49
|
+
searchOffer: {
|
|
50
|
+
missingData: (0, commons_1.translation)('Mangler informasjon i forespørselen.', 'Missing information in request.', 'Manglar informasjon i førespurnaden.'),
|
|
51
|
+
missingStopPlaces: (0, commons_1.translation)('Du må velge fra- og til-holdeplass.', 'You have to select a from stop and a to stop.', 'Du må velje frå- og til-holdeplass.'),
|
|
52
|
+
missingFromStopPlaces: (0, commons_1.translation)('Du må velge fra-holdeplass.', 'You have to select a from stop.', 'Du må velje frå-holdeplass.'),
|
|
53
|
+
missingToStopPlace: (0, commons_1.translation)('Du må velge til-holdeplass.', 'You have to select a to stop.', 'Du må velje til-holdeplass.'),
|
|
54
|
+
travelDateIsNotNextMorning: (timestamp) => (0, commons_1.translation)(`Starttidspunkt kan tidligst være klokken ${timestamp} neste dag.`, `Validity start cannot be earlier than ${timestamp} AM the following day.`, `Starttidspunkt kan tidlegast vere klokka ${timestamp} neste dag.`),
|
|
55
|
+
},
|
|
56
|
+
reserve: {
|
|
57
|
+
missingData: (0, commons_1.translation)('Mangler informasjon i forespørselen.', 'Missing information in request.', 'Manglar informasjon i førespurnaden.'),
|
|
58
|
+
},
|
|
59
|
+
sendReceipt: {
|
|
60
|
+
missingEmail: (0, commons_1.translation)('Du har ikke satt en e-post på profilen din.', 'You need to specify e-mail in profile settings.', 'Du har ikkje sett ein e-post på profilen din.'),
|
|
61
|
+
missingOrderData: (0, commons_1.translation)('Fant ikke billett du spør etter.', 'Could not find ticket.', 'Fann ikkje billett du spør etter.'),
|
|
62
|
+
success: (0, commons_1.translation)('Kvittering sendt til din e-post.', 'Receipt sent to your e-mail.', 'Kvittering sendt til din e-post.'),
|
|
63
|
+
},
|
|
64
|
+
updateProfile: {
|
|
65
|
+
missingProfileData: (0, commons_1.translation)('Mangelfull data sendt til oppdatering.', 'Invalid profile data.', 'Mangelfull data sendt til oppdatering.'),
|
|
66
|
+
success: (0, commons_1.translation)('Oppdatert profil.', 'Updated profile.', 'Oppdatert profil.'),
|
|
67
|
+
},
|
|
68
|
+
registerProfile: {
|
|
69
|
+
success: (0, commons_1.translation)('Opprettet profil.', 'Created profile.', 'Oppretta profil.'),
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
exports.Endpoints = (0, utils_1.orgSpecificTranslations)(EndpointsInternal, {
|
|
73
|
+
nfk: {
|
|
74
|
+
serverErrors: {
|
|
75
|
+
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
76
|
+
},
|
|
77
|
+
behalfOfOthers: {
|
|
78
|
+
serverErrors: {
|
|
79
|
+
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
travelCard: {
|
|
83
|
+
missingId: (0, commons_1.translation)('Mangler reisekort nummer.', 'Missing travelcard number.', 'Manglar reisekortnummer.'),
|
|
84
|
+
successAdd: (0, commons_1.translation)('Lagt til reisekort.', 'Travelcard added.', 'Reisekort lagt til.'),
|
|
85
|
+
successRemove: (0, commons_1.translation)('Fjernet reisekort.', 'Travelcard successfully removed.', 'Fjerna reisekort.'),
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
farte: {
|
|
89
|
+
serverErrors: {
|
|
90
|
+
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
91
|
+
},
|
|
92
|
+
behalfOfOthers: {
|
|
93
|
+
serverErrors: {
|
|
94
|
+
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
travelCard: {
|
|
98
|
+
missingId: (0, commons_1.translation)('Mangler reisekort nummer.', 'Missing travelcard number.', 'Manglar reisekortnummer.'),
|
|
99
|
+
successAdd: (0, commons_1.translation)('Lagt til reisekort.', 'Travelcard added.', 'Reisekort lagt til.'),
|
|
100
|
+
successRemove: (0, commons_1.translation)('Fjernet reisekort.', 'Travelcard successfully removed.', 'Fjerna reisekort.'),
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
vkt: {
|
|
104
|
+
serverErrors: {
|
|
105
|
+
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
106
|
+
},
|
|
107
|
+
behalfOfOthers: {
|
|
108
|
+
serverErrors: {
|
|
109
|
+
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
travelCard: {
|
|
113
|
+
missingId: (0, commons_1.translation)('Mangler reisekort nummer.', 'Missing travelcard number.', 'Manglar reisekortnummer.'),
|
|
114
|
+
successAdd: (0, commons_1.translation)('Lagt til reisekort.', 'Travelcard added.', 'Reisekort lagt til.'),
|
|
115
|
+
successRemove: (0, commons_1.translation)('Fjernet reisekort.', 'Travelcard successfully removed.', 'Fjerna reisekort.'),
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
fram: {
|
|
119
|
+
serverErrors: {
|
|
120
|
+
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
121
|
+
},
|
|
122
|
+
behalfOfOthers: {
|
|
123
|
+
serverErrors: {
|
|
124
|
+
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
travelCard: {
|
|
128
|
+
missingId: (0, commons_1.translation)('Mangler reisekort nummer.', 'Missing travelcard number.', 'Manglar reisekortnummer.'),
|
|
129
|
+
successAdd: (0, commons_1.translation)('Lagt til reisekort.', 'Travelcard added.', 'Reisekort lagt til.'),
|
|
130
|
+
successRemove: (0, commons_1.translation)('Fjernet reisekort.', 'Travelcard successfully removed.', 'Fjerna reisekort.'),
|
|
131
|
+
},
|
|
132
|
+
consents: {
|
|
133
|
+
missingEmail: (0, commons_1.translation)('Du har ikke satt en e-post på brukeren din.', 'You need to specify e-mail in user settings.', 'Du har ikkje sett ein e-post på brukaren din.'),
|
|
134
|
+
},
|
|
135
|
+
updateProfile: {
|
|
136
|
+
missingProfileData: (0, commons_1.translation)('Mangelfull data sendt til oppdatering.', 'Invalid user data.', 'Mangelfull data sendt til oppdatering.'),
|
|
137
|
+
success: (0, commons_1.translation)('Oppdatert bruker.', 'Updated user.', 'Oppdatert brukar.'),
|
|
138
|
+
},
|
|
139
|
+
sendReceipt: {
|
|
140
|
+
missingEmail: (0, commons_1.translation)('Du har ikke satt en e-post på brukeren din.', 'You need to specify e-mail in user settings.', 'Du har ikkje sett ein e-post på brukaren din.'),
|
|
141
|
+
},
|
|
142
|
+
registerProfile: {
|
|
143
|
+
success: (0, commons_1.translation)('Opprettet bruker.', 'Created user.', 'Oppretta brukar.'),
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/translations/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Endpoints = void 0;
|
|
4
|
+
var endpoints_1 = require("./endpoints");
|
|
5
|
+
Object.defineProperty(exports, "Endpoints", { enumerable: true, get: function () { return endpoints_1.Endpoints; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ContactFormTranslationsOverride } from './types';
|
|
2
|
+
import { mergeTranslationOverrides } from './merge-overrides';
|
|
3
|
+
type MergedTranslations = ReturnType<typeof mergeTranslationOverrides>;
|
|
4
|
+
export declare function TranslationsProvider({ overrides, children, }: {
|
|
5
|
+
overrides: ContactFormTranslationsOverride;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function useMergedTranslations(): MergedTranslations;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=translations-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations-context.d.ts","sourceRoot":"","sources":["../../src/translations/translations-context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAC,yBAAyB,EAAC,MAAM,mBAAmB,CAAC;AAE5D,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAIvE,wBAAgB,oBAAoB,CAAC,EACjC,SAAS,EACT,QAAQ,GACX,EAAE;IACC,SAAS,EAAE,+BAA+B,CAAC;IAC3C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,2CAWA;AAED,wBAAgB,qBAAqB,IAAI,kBAAkB,CAS1D"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TranslationsProvider = TranslationsProvider;
|
|
4
|
+
exports.useMergedTranslations = useMergedTranslations;
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const merge_overrides_1 = require("./merge-overrides");
|
|
8
|
+
const TranslationsContext = (0, react_1.createContext)(null);
|
|
9
|
+
function TranslationsProvider({ overrides, children, }) {
|
|
10
|
+
const merged = (0, react_1.useMemo)(() => (0, merge_overrides_1.mergeTranslationOverrides)(overrides), [overrides]);
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)(TranslationsContext.Provider, { value: merged, children: children }));
|
|
12
|
+
}
|
|
13
|
+
function useMergedTranslations() {
|
|
14
|
+
const context = (0, react_1.useContext)(TranslationsContext);
|
|
15
|
+
if (!context) {
|
|
16
|
+
throw new Error('useMergedTranslations must be used within a TranslationsProvider. ' +
|
|
17
|
+
'Ensure translations are provided via ContactFormConfig.translations.');
|
|
18
|
+
}
|
|
19
|
+
return context;
|
|
20
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import * as PageText from './pages';
|
|
3
|
+
import * as ModuleText from './modules';
|
|
4
|
+
import * as ComponentText from './components';
|
|
5
|
+
import * as CommonText from './common';
|
|
6
|
+
import * as ServerText from './server';
|
|
7
|
+
export declare enum LanguageAndTextLanguagesEnum {
|
|
8
|
+
'nob' = "nob",
|
|
9
|
+
'nno' = "nno",
|
|
10
|
+
'nn' = "nn",
|
|
11
|
+
'nor' = "nor",
|
|
12
|
+
'no' = "no",
|
|
13
|
+
'eng' = "eng",
|
|
14
|
+
'en' = "en"
|
|
15
|
+
}
|
|
16
|
+
export declare const languageAndTextSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
17
|
+
lang: z.ZodString;
|
|
18
|
+
value: z.ZodString;
|
|
19
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
+
language: z.ZodOptional<z.ZodString>;
|
|
21
|
+
value: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>]>;
|
|
23
|
+
export type LanguageAndTextType = z.infer<typeof languageAndTextSchema>;
|
|
24
|
+
/**
|
|
25
|
+
* Deeply partial type used for translation overrides.
|
|
26
|
+
*/
|
|
27
|
+
export type DeepPartial<T> = {
|
|
28
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Optional, structured translation overrides that consumers can pass to
|
|
32
|
+
* tweak or extend the built-in dictionaries.
|
|
33
|
+
*/
|
|
34
|
+
export type ContactFormTranslationsOverride = {
|
|
35
|
+
pages?: DeepPartial<typeof PageText>;
|
|
36
|
+
modules?: DeepPartial<typeof ModuleText>;
|
|
37
|
+
components?: DeepPartial<typeof ComponentText>;
|
|
38
|
+
common?: DeepPartial<typeof CommonText>;
|
|
39
|
+
server?: DeepPartial<typeof ServerText>;
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/translations/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AAEvC,oBAAY,4BAA4B;IACpC,KAAK,QAAQ;IACb,KAAK,QAAQ;IACb,IAAI,OAAO;IACX,KAAK,QAAQ;IACb,IAAI,OAAO;IACX,KAAK,QAAQ;IACb,IAAI,OAAO;CACd;AAED,eAAO,MAAM,qBAAqB;;;;;;mBAShC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAExE;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KACxB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAClE,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC1C,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,WAAW,CAAC,OAAO,UAAU,CAAC,CAAC;IACzC,UAAU,CAAC,EAAE,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;IAC/C,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,UAAU,CAAC,CAAC;IACxC,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,UAAU,CAAC,CAAC;CAC3C,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.languageAndTextSchema = exports.LanguageAndTextLanguagesEnum = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var LanguageAndTextLanguagesEnum;
|
|
6
|
+
(function (LanguageAndTextLanguagesEnum) {
|
|
7
|
+
LanguageAndTextLanguagesEnum["nob"] = "nob";
|
|
8
|
+
LanguageAndTextLanguagesEnum["nno"] = "nno";
|
|
9
|
+
LanguageAndTextLanguagesEnum["nn"] = "nn";
|
|
10
|
+
LanguageAndTextLanguagesEnum["nor"] = "nor";
|
|
11
|
+
LanguageAndTextLanguagesEnum["no"] = "no";
|
|
12
|
+
LanguageAndTextLanguagesEnum["eng"] = "eng";
|
|
13
|
+
LanguageAndTextLanguagesEnum["en"] = "en";
|
|
14
|
+
})(LanguageAndTextLanguagesEnum || (exports.LanguageAndTextLanguagesEnum = LanguageAndTextLanguagesEnum = {}));
|
|
15
|
+
exports.languageAndTextSchema = zod_1.z.union([
|
|
16
|
+
zod_1.z.object({
|
|
17
|
+
lang: zod_1.z.string(),
|
|
18
|
+
value: zod_1.z.string(),
|
|
19
|
+
}),
|
|
20
|
+
zod_1.z.object({
|
|
21
|
+
language: zod_1.z.string().optional(),
|
|
22
|
+
value: zod_1.z.string().optional(),
|
|
23
|
+
}),
|
|
24
|
+
]);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Language } from './commons';
|
|
2
|
+
import { LanguageAndTextType } from './types';
|
|
3
|
+
export type WEBSHOP_ORGS = 'nfk' | 'atb' | 'fram' | 'troms' | 'vkt' | 'farte';
|
|
4
|
+
export type LanguageOverrides<T> = {
|
|
5
|
+
[P in keyof T]?: LanguageOverrides<T[P]>;
|
|
6
|
+
};
|
|
7
|
+
export declare function orgSpecificTranslations<T extends Record<string, any>>(translationTexts: T, overrides: Partial<{
|
|
8
|
+
[org in WEBSHOP_ORGS]: LanguageOverrides<T>;
|
|
9
|
+
}>, orgId?: WEBSHOP_ORGS): T;
|
|
10
|
+
/**
|
|
11
|
+
* Get the text in the requested language. If the requested translation isn't
|
|
12
|
+
* found, it will fall back to Bokmål/Norwegian. If no known translation is
|
|
13
|
+
* found, the first text in the provided texts array is returned.
|
|
14
|
+
*/
|
|
15
|
+
export declare const getTextForLanguage: (texts: LanguageAndTextType[] | undefined, language: Language) => string | undefined;
|
|
16
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/translations/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAC;AACnC,OAAO,EAA+B,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAG1E,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,OAAO,CAAC;AAE9E,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI;KAC9B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3C,CAAC;AAiBF,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACjE,gBAAgB,EAAE,CAAC,EACnB,SAAS,EAAE,OAAO,CAAC;KAAG,GAAG,IAAI,YAAY,GAAG,iBAAiB,CAAC,CAAC,CAAC;CAAE,CAAC,EACnE,KAAK,CAAC,EAAE,YAAY,KAMvB;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC3B,OAAO,mBAAmB,EAAE,GAAG,SAAS,EACxC,UAAU,QAAQ,KACnB,MAAM,GAAG,SA0BX,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTextForLanguage = void 0;
|
|
4
|
+
exports.orgSpecificTranslations = orgSpecificTranslations;
|
|
5
|
+
const commons_1 = require("./commons");
|
|
6
|
+
const types_1 = require("./types");
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use configuration-based approach instead
|
|
9
|
+
*/
|
|
10
|
+
function deepMerge(target, source) {
|
|
11
|
+
const result = { ...target };
|
|
12
|
+
for (const key in source) {
|
|
13
|
+
if (source[key] && typeof source[key] === 'object' && !Array.isArray(source[key])) {
|
|
14
|
+
result[key] = deepMerge(result[key] || {}, source[key]);
|
|
15
|
+
}
|
|
16
|
+
else if (source[key] !== undefined) {
|
|
17
|
+
result[key] = source[key];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
function orgSpecificTranslations(translationTexts, overrides, orgId) {
|
|
23
|
+
if (!orgId)
|
|
24
|
+
return translationTexts;
|
|
25
|
+
const orgOverride = overrides[orgId];
|
|
26
|
+
if (!orgOverride)
|
|
27
|
+
return translationTexts;
|
|
28
|
+
return deepMerge(translationTexts, orgOverride);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Get the text in the requested language. If the requested translation isn't
|
|
32
|
+
* found, it will fall back to Bokmål/Norwegian. If no known translation is
|
|
33
|
+
* found, the first text in the provided texts array is returned.
|
|
34
|
+
*/
|
|
35
|
+
const getTextForLanguage = (texts, language) => {
|
|
36
|
+
if (language === commons_1.Language.English) {
|
|
37
|
+
const englishText = texts?.find((t) => getLanguage(t) === types_1.LanguageAndTextLanguagesEnum.eng ||
|
|
38
|
+
getLanguage(t) === types_1.LanguageAndTextLanguagesEnum.en);
|
|
39
|
+
if (englishText?.value)
|
|
40
|
+
return englishText.value;
|
|
41
|
+
}
|
|
42
|
+
if (language === commons_1.Language.Nynorsk) {
|
|
43
|
+
const nynorskText = texts?.find((t) => getLanguage(t) === types_1.LanguageAndTextLanguagesEnum.nno ||
|
|
44
|
+
getLanguage(t) === types_1.LanguageAndTextLanguagesEnum.nn);
|
|
45
|
+
if (nynorskText?.value)
|
|
46
|
+
return nynorskText.value;
|
|
47
|
+
}
|
|
48
|
+
const norwegianText = texts?.find((t) => getLanguage(t) === types_1.LanguageAndTextLanguagesEnum.nor ||
|
|
49
|
+
getLanguage(t) === types_1.LanguageAndTextLanguagesEnum.nob ||
|
|
50
|
+
getLanguage(t) === types_1.LanguageAndTextLanguagesEnum.no);
|
|
51
|
+
if (norwegianText?.value)
|
|
52
|
+
return norwegianText.value;
|
|
53
|
+
return texts?.[0]?.value;
|
|
54
|
+
};
|
|
55
|
+
exports.getTextForLanguage = getTextForLanguage;
|
|
56
|
+
const getLanguage = (lv) => 'lang' in lv ? lv.lang : lv.language;
|