@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,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OtherTicketRefund = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const translations_1 = require("../../../translations");
|
|
6
|
+
const components_1 = require("../../../components");
|
|
7
|
+
const checkbox_1 = require("../../../components/checkbox");
|
|
8
|
+
const types_1 = require("../../../types");
|
|
9
|
+
const RefundSection = ({ state, send }) => {
|
|
10
|
+
const { t } = (0, translations_1.useTranslation)();
|
|
11
|
+
const ticketTypeOptions = translations_1.PageText.Contact.input.ticketType.options.filter((option) => option.id == types_1.TicketTypeId.SingleTicket ||
|
|
12
|
+
option.id == types_1.TicketTypeId.PeriodTicket);
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(translations_1.PageText.Contact.ticketing.refund.otherTicketRefund.label), children: [(0, jsx_runtime_1.jsx)(components_1.Select, { id: "ticketType", label: t(translations_1.PageText.Contact.input.ticketType.labelRefund), value: state.context.ticketType, valueToId: (option) => option.id, valueToText: (option) => t(option.name), onChange: (value) => {
|
|
14
|
+
if (!value)
|
|
15
|
+
return;
|
|
16
|
+
send({
|
|
17
|
+
type: 'ON_INPUT_CHANGE',
|
|
18
|
+
inputName: 'ticketType',
|
|
19
|
+
value: value,
|
|
20
|
+
});
|
|
21
|
+
}, placeholder: t(translations_1.PageText.Contact.input.ticketType.optionLabelRefund), options: ticketTypeOptions, isRequired: true, error: state.context?.errorMessages['ticketType']?.[0]
|
|
22
|
+
? t(state.context?.errorMessages['ticketType'][0])
|
|
23
|
+
: undefined }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "orderId", label: t(translations_1.PageText.Contact.input.orderId.label(false)), type: "text", name: "orderId", value: state.context.orderId || '', isRequired: true, errorMessage: state.context?.errorMessages['orderId']?.[0], onChange: (e) => send({
|
|
24
|
+
type: 'ON_INPUT_CHANGE',
|
|
25
|
+
inputName: 'orderId',
|
|
26
|
+
value: e.target.value,
|
|
27
|
+
}), modalContent: {
|
|
28
|
+
description: t(translations_1.PageText.Contact.input.orderId.description),
|
|
29
|
+
instruction: t(translations_1.PageText.Contact.input.orderId.instruction),
|
|
30
|
+
bulletPoints: translations_1.PageText.Contact.input.orderId.descriptionBulletPoints.map((bulletPoint) => t(bulletPoint)),
|
|
31
|
+
} }), state.context.ticketType?.id === types_1.TicketTypeId.PeriodTicket && ((0, jsx_runtime_1.jsx)(components_1.Input, { id: "travelCardNumber", label: t(translations_1.PageText.Contact.input.travelCardNumber.label), type: "text", name: "travelCardNumber", value: state.context.travelCardNumber || '', modalContent: {
|
|
32
|
+
description: t(translations_1.PageText.Contact.input.travelCardNumber.info),
|
|
33
|
+
}, isRequired: true, errorMessage: state.context.errorMessages['travelCardNumber']?.[0], onChange: (e) => send({
|
|
34
|
+
type: 'ON_INPUT_CHANGE',
|
|
35
|
+
inputName: 'travelCardNumber',
|
|
36
|
+
value: e.target.value,
|
|
37
|
+
}) })), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "amount", label: t(translations_1.PageText.Contact.input.amount.info), type: "text", name: "amount", value: state.context.amount || '', isRequired: true, errorMessage: state.context?.errorMessages['amount']?.[0], onChange: (e) => send({
|
|
38
|
+
type: 'ON_INPUT_CHANGE',
|
|
39
|
+
inputName: 'amount',
|
|
40
|
+
value: e.target.value,
|
|
41
|
+
}) }), (0, jsx_runtime_1.jsx)(components_1.Textarea, { id: "refundReason", description: t(translations_1.PageText.Contact.input.refundReason.question), value: state.context.refundReason || '', isRequired: true, onChange: (e) => send({
|
|
42
|
+
type: 'ON_INPUT_CHANGE',
|
|
43
|
+
inputName: 'refundReason',
|
|
44
|
+
value: e.target.value,
|
|
45
|
+
}), error: state.context.errorMessages['refundReason']?.[0]
|
|
46
|
+
? t(state.context.errorMessages['refundReason']?.[0])
|
|
47
|
+
: undefined }), (0, jsx_runtime_1.jsx)(components_1.FileInput, { id: "attachments", label: t(translations_1.PageText.Contact.refund.refundTaxi.taxiReceipt.info), iconLabel: t(translations_1.PageText.Contact.input.feedback.attachment.receipt), name: "attachments", isRequired: true, onChange: (files) => {
|
|
48
|
+
send({
|
|
49
|
+
type: 'ON_INPUT_CHANGE',
|
|
50
|
+
inputName: 'attachments',
|
|
51
|
+
value: files,
|
|
52
|
+
});
|
|
53
|
+
}, errorMessage: state.context?.errorMessages['attachments']?.[0]
|
|
54
|
+
? t(state.context?.errorMessages['attachments']?.[0])
|
|
55
|
+
: undefined })] }));
|
|
56
|
+
};
|
|
57
|
+
const AboutYouSection = ({ state, send }) => {
|
|
58
|
+
const { t } = (0, translations_1.useTranslation)();
|
|
59
|
+
return ((0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(translations_1.PageText.Contact.aboutYouInfo.title), children: [(0, jsx_runtime_1.jsx)(components_1.Input, { id: "firstName", label: t(translations_1.PageText.Contact.input.firstName.label), type: "text", autoComplete: "given-name additional-name", name: "firstName", value: state.context.firstName || '', isRequired: true, errorMessage: state.context?.errorMessages['firstName']?.[0], onChange: (e) => send({
|
|
60
|
+
type: 'ON_INPUT_CHANGE',
|
|
61
|
+
inputName: 'firstName',
|
|
62
|
+
value: e.target.value,
|
|
63
|
+
}) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "lastName", label: t(translations_1.PageText.Contact.input.lastName.label), type: "text", autoComplete: "family-name", name: "lastName", value: state.context.lastName || '', isRequired: true, errorMessage: state.context?.errorMessages['lastName']?.[0], onChange: (e) => send({
|
|
64
|
+
type: 'ON_INPUT_CHANGE',
|
|
65
|
+
inputName: 'lastName',
|
|
66
|
+
value: e.target.value,
|
|
67
|
+
}) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "address", label: t(translations_1.PageText.Contact.input.address.label), type: "text", autoComplete: "street-address", name: "address", value: state.context.address || '', isRequired: true, errorMessage: state.context?.errorMessages['address']?.[0], onChange: (e) => send({
|
|
68
|
+
type: 'ON_INPUT_CHANGE',
|
|
69
|
+
inputName: 'address',
|
|
70
|
+
value: e.target.value,
|
|
71
|
+
}) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "postalCode", label: t(translations_1.PageText.Contact.input.postalCode.label), type: "text", autoComplete: "postal-code", name: "postalCode", value: state.context.postalCode || '', isRequired: true, errorMessage: state.context?.errorMessages['postalCode']?.[0], onChange: (e) => send({
|
|
72
|
+
type: 'ON_INPUT_CHANGE',
|
|
73
|
+
inputName: 'postalCode',
|
|
74
|
+
value: e.target.value,
|
|
75
|
+
}) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "city", label: t(translations_1.PageText.Contact.input.city.label), type: "text", name: "city", value: state.context.city || '', isRequired: true, errorMessage: state.context?.errorMessages['city']?.[0], onChange: (e) => send({
|
|
76
|
+
type: 'ON_INPUT_CHANGE',
|
|
77
|
+
inputName: 'city',
|
|
78
|
+
value: e.target.value,
|
|
79
|
+
}) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "email", label: t(translations_1.PageText.Contact.input.email.label), type: "email", autoComplete: "email", name: "email", value: state.context.email || '', isRequired: true, errorMessage: state.context?.errorMessages['email']?.[0], onChange: (e) => send({
|
|
80
|
+
type: 'ON_INPUT_CHANGE',
|
|
81
|
+
inputName: 'email',
|
|
82
|
+
value: e.target.value,
|
|
83
|
+
}) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "phoneNumber", label: t(translations_1.PageText.Contact.input.phoneNumber.label), type: "tel", name: "phoneNumber", value: state.context.phoneNumber || '', isRequired: true, errorMessage: state.context?.errorMessages['phoneNumber']?.[0], onChange: (e) => send({
|
|
84
|
+
type: 'ON_INPUT_CHANGE',
|
|
85
|
+
inputName: 'phoneNumber',
|
|
86
|
+
value: e.target.value,
|
|
87
|
+
}) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "bankAccountNumber", label: t(translations_1.PageText.Contact.input.bankInformation.bankAccountNumber.label), placeholder: t(translations_1.PageText.Contact.input.bankInformation.bankAccountNumber.placeholder), type: "text", name: "bankAccountNumber", value: state.context.bankAccountNumber || '', disabled: state.context.hasInternationalBankAccount, isRequired: true, errorMessage: state.context?.errorMessages['bankAccountNumber']?.[0], onChange: (e) => send({
|
|
88
|
+
type: 'ON_INPUT_CHANGE',
|
|
89
|
+
inputName: 'bankAccountNumber',
|
|
90
|
+
value: e.target.value,
|
|
91
|
+
}) }), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { label: t(translations_1.PageText.Contact.input.bankInformation.checkbox), checked: state.context.hasInternationalBankAccount, onChange: () => send({
|
|
92
|
+
type: 'ON_INPUT_CHANGE',
|
|
93
|
+
inputName: 'hasInternationalBankAccount',
|
|
94
|
+
value: !state.context.hasInternationalBankAccount,
|
|
95
|
+
}) }), state.context.hasInternationalBankAccount && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Input, { id: "IBAN", label: t(translations_1.PageText.Contact.input.bankInformation.IBAN.label), type: "string", name: "IBAN", value: state.context.IBAN || '', isRequired: true, errorMessage: state.context?.errorMessages['IBAN']?.[0], onChange: (e) => send({
|
|
96
|
+
type: 'ON_INPUT_CHANGE',
|
|
97
|
+
inputName: 'IBAN',
|
|
98
|
+
value: e.target.value,
|
|
99
|
+
}) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "SWIFT", label: t(translations_1.PageText.Contact.input.bankInformation.SWIFT.label), type: "string", name: "SWIFT", value: state.context.SWIFT || '', isRequired: true, errorMessage: state.context?.errorMessages['SWIFT']?.[0], onChange: (e) => send({
|
|
100
|
+
type: 'ON_INPUT_CHANGE',
|
|
101
|
+
inputName: 'SWIFT',
|
|
102
|
+
value: e.target.value,
|
|
103
|
+
}) })] }))] }));
|
|
104
|
+
};
|
|
105
|
+
const OtherTicketRefund = ({ state, send }) => {
|
|
106
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(RefundSection, { state: state, send: send }), (0, jsx_runtime_1.jsx)(AboutYouSection, { state: state, send: send })] }));
|
|
107
|
+
};
|
|
108
|
+
exports.OtherTicketRefund = OtherTicketRefund;
|
|
109
|
+
exports.default = exports.OtherTicketRefund;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/residualValueOnTravelCard/index.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB,GAAI,MAAE,4CAqC3C,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ResidualValueOnTravelCard = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const link_1 = __importDefault(require("next/link"));
|
|
9
|
+
const typography_1 = require("../../../components/typography");
|
|
10
|
+
const translations_1 = require("../../../translations");
|
|
11
|
+
const components_1 = require("../../../components");
|
|
12
|
+
const ResidualValueOnTravelCard = ({}) => {
|
|
13
|
+
const { t } = (0, translations_1.useTranslation)();
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(translations_1.PageText.Contact.refund.residualValueOnTravelCard.title), children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: (0, jsx_runtime_1.jsx)(link_1.default, { href: t(translations_1.PageText.Contact.refund.residualValueOnTravelCard.link.href), children: t(translations_1.PageText.Contact.refund.residualValueOnTravelCard.link.text) }) }), (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(translations_1.PageText.Contact.refund.residualValueOnTravelCard
|
|
15
|
+
.monthlyPayoutDetails) }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m__strong", children: t(translations_1.PageText.Contact.refund.residualValueOnTravelCard
|
|
16
|
+
.automatedProcessNotice.note) }), (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(translations_1.PageText.Contact.refund.residualValueOnTravelCard
|
|
17
|
+
.automatedProcessNotice.text) })] })] }));
|
|
18
|
+
};
|
|
19
|
+
exports.ResidualValueOnTravelCard = ResidualValueOnTravelCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/refund/index.tsx"],"names":[],"mappings":"AAeA,QAAA,MAAM,aAAa,+CAkFlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("@xstate/react");
|
|
8
|
+
const react_2 = require("react");
|
|
9
|
+
const config_1 = require("../modules/config");
|
|
10
|
+
const refundFormMachine_1 = require("./refundFormMachine");
|
|
11
|
+
const contact_module_css_1 = __importDefault(require("../contact.module.css"));
|
|
12
|
+
const components_1 = require("../components");
|
|
13
|
+
const refund_and_travel_guarantee_1 = __importDefault(require("./forms/refund-and-travel-guarantee"));
|
|
14
|
+
const refund_ticket_1 = __importDefault(require("./forms/refund-ticket"));
|
|
15
|
+
const residualValueOnTravelCard_1 = require("./forms/residualValueOnTravelCard");
|
|
16
|
+
const utils_1 = require("../utils");
|
|
17
|
+
const translations_1 = require("../translations");
|
|
18
|
+
const button_1 = require("../components/button");
|
|
19
|
+
const error_message_1 = __importDefault(require("../components/error-message/error-message"));
|
|
20
|
+
const RefundContent = () => {
|
|
21
|
+
const { t } = (0, translations_1.useTranslation)();
|
|
22
|
+
const apiConfig = (0, config_1.useApiConfig)();
|
|
23
|
+
const { formSchemaOverrides, layout } = (0, config_1.useContactFormConfig)();
|
|
24
|
+
const successPath = layout?.successPath ?? (layout?.basePath ? `${layout.basePath}/success` : '/contact/success');
|
|
25
|
+
const errorPath = layout?.errorPath ?? (layout?.basePath ? `${layout.basePath}/error` : '/contact/error');
|
|
26
|
+
const machine = (0, react_2.useMemo)(() => (0, refundFormMachine_1.createRefundStateMachine)(apiConfig.onSubmit, {
|
|
27
|
+
successPath,
|
|
28
|
+
errorPath,
|
|
29
|
+
}), [apiConfig.onSubmit, successPath, errorPath]);
|
|
30
|
+
const [state, send] = (0, react_1.useMachine)(machine);
|
|
31
|
+
const displaySubmitButton = state.context.formType &&
|
|
32
|
+
state.context.formType !== 'residualValueOnTravelCard';
|
|
33
|
+
// Filter form categories based on overrides
|
|
34
|
+
const enabledFormCategories = (0, react_2.useMemo)(() => {
|
|
35
|
+
const allCategories = Object.values(refundFormMachine_1.FormCategory);
|
|
36
|
+
const override = formSchemaOverrides?.refund?.enabledFormCategories;
|
|
37
|
+
if (!override)
|
|
38
|
+
return allCategories;
|
|
39
|
+
return allCategories.filter((category) => override.includes(category));
|
|
40
|
+
}, [formSchemaOverrides]);
|
|
41
|
+
const onSubmit = async (e) => {
|
|
42
|
+
e.preventDefault();
|
|
43
|
+
send({ type: 'SUBMIT', orderedFormFieldNames: (0, utils_1.findOrderFormFields)(e) });
|
|
44
|
+
};
|
|
45
|
+
return ((0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: contact_module_css_1.default.form, children: [(0, jsx_runtime_1.jsx)(components_1.Fieldset, { title: t(translations_1.PageText.Contact.refund.title), children: (0, jsx_runtime_1.jsx)("ul", { className: contact_module_css_1.default.form_options__list, children: enabledFormCategories.map((formCategory) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(components_1.Radio, { label: t(translations_1.PageText.Contact.refund[formCategory].description), checked: state.matches({ editing: formCategory }), onChange: () => send({
|
|
46
|
+
type: 'SELECT_FORM_CATEGORY',
|
|
47
|
+
formCategory: formCategory,
|
|
48
|
+
}) }) }, formCategory))) }) }), state.matches({ editing: 'refundOfTicket' }) && ((0, jsx_runtime_1.jsx)(refund_ticket_1.default, { state: state, send: send })), state.matches({ editing: 'refundAndTravelGuarantee' }) && ((0, jsx_runtime_1.jsx)(refund_and_travel_guarantee_1.default, { state: state, send: send })), state.matches({ editing: 'residualValueOnTravelCard' }) && ((0, jsx_runtime_1.jsx)(residualValueOnTravelCard_1.ResidualValueOnTravelCard, {})), state.context.hasSubmissionError && ((0, jsx_runtime_1.jsx)(error_message_1.default, { message: t(translations_1.PageText.Contact.error.info), id: "submission-error" })), displaySubmitButton && ((0, jsx_runtime_1.jsx)(button_1.Button, { title: t(translations_1.PageText.Contact.submit), mode: 'interactive_0--bordered', buttonProps: { type: 'submit' }, state: state.matches('submitting') ? 'loading' : undefined, className: contact_module_css_1.default.submitButton }))] }));
|
|
49
|
+
};
|
|
50
|
+
exports.default = RefundContent;
|
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
import { PurchasePlatformType, TransportModeType, ReasonForTransportFailure, TicketType } from '../types';
|
|
2
|
+
import { Line } from '../server/journey-planner/validators';
|
|
3
|
+
import { InputErrorMessages } from '../validation';
|
|
4
|
+
import type { FormSchemaName } from '../modules/config/types';
|
|
5
|
+
export declare enum FormCategory {
|
|
6
|
+
RefundOfTicket = "refundOfTicket",
|
|
7
|
+
RefundAndTravelGuarantee = "refundAndTravelGuarantee",
|
|
8
|
+
ResidualValueOnTravelCard = "residualValueOnTravelCard"
|
|
9
|
+
}
|
|
10
|
+
export declare enum RefundTicketForm {
|
|
11
|
+
AppTicketRefund = "appTicketRefund",
|
|
12
|
+
OtherTicketRefund = "otherTicketRefund"
|
|
13
|
+
}
|
|
14
|
+
export declare enum RefundAndTravelGuarantee {
|
|
15
|
+
RefundTaxi = "refundTaxi",
|
|
16
|
+
RefundCar = "refundCar"
|
|
17
|
+
}
|
|
18
|
+
export declare enum FormType {
|
|
19
|
+
RefundTaxi = "refundTaxi",
|
|
20
|
+
RefundCar = "refundCar",
|
|
21
|
+
AppTicketRefund = "appTicketRefund",
|
|
22
|
+
OtherTicketRefund = "otherTicketRefund",
|
|
23
|
+
ResidualValueOnTravelCard = "residualValueOnTravelCard"
|
|
24
|
+
}
|
|
25
|
+
type SubmitInput = {
|
|
26
|
+
firstName?: string;
|
|
27
|
+
lastName?: string;
|
|
28
|
+
email?: string;
|
|
29
|
+
address?: string;
|
|
30
|
+
postalCode?: string;
|
|
31
|
+
city?: string;
|
|
32
|
+
phoneNumber?: string;
|
|
33
|
+
bankAccountNumber?: string;
|
|
34
|
+
IBAN?: string;
|
|
35
|
+
SWIFT?: string;
|
|
36
|
+
feedback?: string;
|
|
37
|
+
attachments?: File[];
|
|
38
|
+
transportMode?: string;
|
|
39
|
+
line?: string;
|
|
40
|
+
fromStop?: string;
|
|
41
|
+
toStop?: string;
|
|
42
|
+
date?: string;
|
|
43
|
+
plannedDepartureTime?: string;
|
|
44
|
+
kilometersDriven?: string;
|
|
45
|
+
fromAddress?: string;
|
|
46
|
+
toAddress?: string;
|
|
47
|
+
reasonForTransportFailure?: string;
|
|
48
|
+
amount?: string;
|
|
49
|
+
customerNumber?: string;
|
|
50
|
+
orderId?: string;
|
|
51
|
+
ticketType?: string;
|
|
52
|
+
travelCardNumber?: string;
|
|
53
|
+
refundReason?: string;
|
|
54
|
+
purchasePlatform?: string;
|
|
55
|
+
};
|
|
56
|
+
export type RefundContextProps = {
|
|
57
|
+
formType?: FormType;
|
|
58
|
+
firstName?: string;
|
|
59
|
+
lastName?: string;
|
|
60
|
+
email?: string;
|
|
61
|
+
address?: string;
|
|
62
|
+
postalCode?: string;
|
|
63
|
+
city?: string;
|
|
64
|
+
phoneNumber?: string;
|
|
65
|
+
bankAccountNumber?: string;
|
|
66
|
+
IBAN?: string;
|
|
67
|
+
SWIFT?: string;
|
|
68
|
+
feedback?: string;
|
|
69
|
+
attachments?: File[];
|
|
70
|
+
transportMode?: TransportModeType | undefined;
|
|
71
|
+
line?: Line | undefined;
|
|
72
|
+
fromStop?: Line['quays'][0] | undefined;
|
|
73
|
+
toStop?: Line['quays'][0] | undefined;
|
|
74
|
+
date?: string;
|
|
75
|
+
plannedDepartureTime?: string;
|
|
76
|
+
kilometersDriven?: string;
|
|
77
|
+
fromAddress?: string;
|
|
78
|
+
toAddress?: string;
|
|
79
|
+
reasonForTransportFailure?: ReasonForTransportFailure;
|
|
80
|
+
amount?: string;
|
|
81
|
+
customerNumber?: string;
|
|
82
|
+
orderId?: string;
|
|
83
|
+
ticketType?: TicketType;
|
|
84
|
+
travelCardNumber?: string;
|
|
85
|
+
refundReason?: string;
|
|
86
|
+
purchasePlatform?: PurchasePlatformType | undefined;
|
|
87
|
+
isInitialAgreementChecked: boolean;
|
|
88
|
+
hasInternationalBankAccount: boolean;
|
|
89
|
+
errorMessages: InputErrorMessages;
|
|
90
|
+
firstIncorrectErrorMessage?: string;
|
|
91
|
+
hasSubmissionError?: boolean;
|
|
92
|
+
};
|
|
93
|
+
export type MachinePaths = {
|
|
94
|
+
successPath: string;
|
|
95
|
+
errorPath: string;
|
|
96
|
+
};
|
|
97
|
+
export declare function createRefundStateMachine(onSubmit: (schemaName: FormSchemaName, state: Record<string, unknown>) => Promise<Response>, paths?: MachinePaths): import("xstate").StateMachine<RefundContextProps, {
|
|
98
|
+
type: "ON_INPUT_CHANGE";
|
|
99
|
+
inputName: "formType" | "kilometersDriven" | "fromAddress" | "toAddress" | "amount" | "reasonForTransportFailure" | "orderId" | "customerNumber" | "ticketType" | "travelCardNumber" | "refundReason" | "firstName" | "lastName" | "address" | "postalCode" | "city" | "email" | "phoneNumber" | "bankAccountNumber" | "IBAN" | "SWIFT" | "fromStop" | "toStop" | "date" | "plannedDepartureTime" | "feedback" | "attachments" | "isInitialAgreementChecked" | "hasInternationalBankAccount" | "showInputTravelCardNumber";
|
|
100
|
+
value: string | boolean | ReasonForTransportFailure | TicketType | Line["quays"][0] | File[] | undefined;
|
|
101
|
+
} | {
|
|
102
|
+
type: "SELECT_FORM_CATEGORY";
|
|
103
|
+
formCategory: FormCategory;
|
|
104
|
+
} | {
|
|
105
|
+
type: "SELECT_REFUND_TICKET_FORM";
|
|
106
|
+
refundTicketForm: RefundTicketForm;
|
|
107
|
+
} | {
|
|
108
|
+
type: "SELECT_REFUND_AND_TRAVEL_GUARANTEE_FORM";
|
|
109
|
+
refundAndTravelGuarantee: RefundAndTravelGuarantee;
|
|
110
|
+
} | {
|
|
111
|
+
type: "ON_TRANSPORTMODE_CHANGE";
|
|
112
|
+
value: TransportModeType;
|
|
113
|
+
} | {
|
|
114
|
+
type: "ON_LINE_CHANGE";
|
|
115
|
+
value: Line | undefined;
|
|
116
|
+
} | {
|
|
117
|
+
type: "ON_PURCHASE_PLATFORM_CHANGE";
|
|
118
|
+
value: PurchasePlatformType | undefined;
|
|
119
|
+
} | {
|
|
120
|
+
type: "SUBMIT";
|
|
121
|
+
orderedFormFieldNames: string[];
|
|
122
|
+
}, {
|
|
123
|
+
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<true, SubmitInput, import("xstate").EventObject>> | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
src: "submit";
|
|
126
|
+
logic: import("xstate").PromiseActorLogic<true, SubmitInput, import("xstate").EventObject>;
|
|
127
|
+
id: string | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
type: "navigateToErrorPage";
|
|
130
|
+
params: unknown;
|
|
131
|
+
} | {
|
|
132
|
+
type: "navigateToSuccessPage";
|
|
133
|
+
params: unknown;
|
|
134
|
+
} | {
|
|
135
|
+
type: "setFormTypeToUndefined";
|
|
136
|
+
params: unknown;
|
|
137
|
+
} | {
|
|
138
|
+
type: "setInitialAgreementAndFormType";
|
|
139
|
+
params: unknown;
|
|
140
|
+
} | {
|
|
141
|
+
type: "clearValidationErrors";
|
|
142
|
+
params: unknown;
|
|
143
|
+
} | {
|
|
144
|
+
type: "setValidationErrors";
|
|
145
|
+
params: unknown;
|
|
146
|
+
} | {
|
|
147
|
+
type: "scrollToFirstErrorMessage";
|
|
148
|
+
params: unknown;
|
|
149
|
+
} | {
|
|
150
|
+
type: "setSubmissionError";
|
|
151
|
+
params: unknown;
|
|
152
|
+
} | {
|
|
153
|
+
type: "clearSubmissionError";
|
|
154
|
+
params: unknown;
|
|
155
|
+
} | {
|
|
156
|
+
type: "onInputChange";
|
|
157
|
+
params: unknown;
|
|
158
|
+
} | {
|
|
159
|
+
type: "onTransportModeChange";
|
|
160
|
+
params: unknown;
|
|
161
|
+
} | {
|
|
162
|
+
type: "onLineChange";
|
|
163
|
+
params: unknown;
|
|
164
|
+
} | {
|
|
165
|
+
type: "onPurchasePlatformChange";
|
|
166
|
+
params: unknown;
|
|
167
|
+
}, {
|
|
168
|
+
type: "isFormValid";
|
|
169
|
+
params: unknown;
|
|
170
|
+
} | {
|
|
171
|
+
type: "isRefundOfTicket";
|
|
172
|
+
params: unknown;
|
|
173
|
+
} | {
|
|
174
|
+
type: "isRefundAndTravelGuarantee";
|
|
175
|
+
params: unknown;
|
|
176
|
+
} | {
|
|
177
|
+
type: "isResidualValueOnTravelCard";
|
|
178
|
+
params: unknown;
|
|
179
|
+
} | {
|
|
180
|
+
type: "isAppTicketRefund";
|
|
181
|
+
params: unknown;
|
|
182
|
+
} | {
|
|
183
|
+
type: "isOtherTicketRefund";
|
|
184
|
+
params: unknown;
|
|
185
|
+
} | {
|
|
186
|
+
type: "isRefundCar";
|
|
187
|
+
params: unknown;
|
|
188
|
+
} | {
|
|
189
|
+
type: "isRefundTaxi";
|
|
190
|
+
params: unknown;
|
|
191
|
+
}, never, "success" | "formCategoryHandler" | "refundTicketFormHandler" | "refundAndTravelGuaranteeFormHandler" | "validating" | "submitting" | {
|
|
192
|
+
editing: "residualValueOnTravelCard" | "selectFormCategory" | {
|
|
193
|
+
refundOfTicket: "appTicketRefund" | "otherTicketRefund" | "selectRefundOfTicketForm";
|
|
194
|
+
} | {
|
|
195
|
+
refundAndTravelGuarantee: "refundTaxi" | "refundCar" | "selectRefundAndTravelGuaranteeForm";
|
|
196
|
+
};
|
|
197
|
+
}, string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
198
|
+
id: "refundStateMachine";
|
|
199
|
+
states: {
|
|
200
|
+
readonly formCategoryHandler: {
|
|
201
|
+
id: "formCategoryHandler";
|
|
202
|
+
};
|
|
203
|
+
readonly refundTicketFormHandler: {
|
|
204
|
+
id: "refundTicketFormHandler";
|
|
205
|
+
};
|
|
206
|
+
readonly refundAndTravelGuaranteeFormHandler: {
|
|
207
|
+
id: "refundAndTravelGuaranteeFormHandler";
|
|
208
|
+
};
|
|
209
|
+
readonly editing: {
|
|
210
|
+
states: {
|
|
211
|
+
readonly selectFormCategory: {};
|
|
212
|
+
readonly refundOfTicket: {
|
|
213
|
+
id: "refundOfTicket";
|
|
214
|
+
states: {
|
|
215
|
+
readonly selectRefundOfTicketForm: {};
|
|
216
|
+
readonly appTicketRefund: {
|
|
217
|
+
id: "appTicketRefund";
|
|
218
|
+
};
|
|
219
|
+
readonly otherTicketRefund: {
|
|
220
|
+
id: "otherTicketRefund";
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
readonly refundAndTravelGuarantee: {
|
|
225
|
+
id: "refundAndTravelGuarantee";
|
|
226
|
+
states: {
|
|
227
|
+
readonly selectRefundAndTravelGuaranteeForm: {};
|
|
228
|
+
readonly refundCar: {
|
|
229
|
+
id: "refundCar";
|
|
230
|
+
};
|
|
231
|
+
readonly refundTaxi: {
|
|
232
|
+
id: "refundTaxi";
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
readonly residualValueOnTravelCard: {
|
|
237
|
+
id: "residualValueOnTravelCard";
|
|
238
|
+
};
|
|
239
|
+
readonly history: {};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
readonly validating: {
|
|
243
|
+
id: "validating";
|
|
244
|
+
};
|
|
245
|
+
readonly submitting: {
|
|
246
|
+
id: "submitting";
|
|
247
|
+
};
|
|
248
|
+
readonly success: {};
|
|
249
|
+
};
|
|
250
|
+
}>;
|
|
251
|
+
export declare const refundStateMachine: import("xstate").StateMachine<RefundContextProps, {
|
|
252
|
+
type: "ON_INPUT_CHANGE";
|
|
253
|
+
inputName: "formType" | "kilometersDriven" | "fromAddress" | "toAddress" | "amount" | "reasonForTransportFailure" | "orderId" | "customerNumber" | "ticketType" | "travelCardNumber" | "refundReason" | "firstName" | "lastName" | "address" | "postalCode" | "city" | "email" | "phoneNumber" | "bankAccountNumber" | "IBAN" | "SWIFT" | "fromStop" | "toStop" | "date" | "plannedDepartureTime" | "feedback" | "attachments" | "isInitialAgreementChecked" | "hasInternationalBankAccount" | "showInputTravelCardNumber";
|
|
254
|
+
value: string | boolean | ReasonForTransportFailure | TicketType | Line["quays"][0] | File[] | undefined;
|
|
255
|
+
} | {
|
|
256
|
+
type: "SELECT_FORM_CATEGORY";
|
|
257
|
+
formCategory: FormCategory;
|
|
258
|
+
} | {
|
|
259
|
+
type: "SELECT_REFUND_TICKET_FORM";
|
|
260
|
+
refundTicketForm: RefundTicketForm;
|
|
261
|
+
} | {
|
|
262
|
+
type: "SELECT_REFUND_AND_TRAVEL_GUARANTEE_FORM";
|
|
263
|
+
refundAndTravelGuarantee: RefundAndTravelGuarantee;
|
|
264
|
+
} | {
|
|
265
|
+
type: "ON_TRANSPORTMODE_CHANGE";
|
|
266
|
+
value: TransportModeType;
|
|
267
|
+
} | {
|
|
268
|
+
type: "ON_LINE_CHANGE";
|
|
269
|
+
value: Line | undefined;
|
|
270
|
+
} | {
|
|
271
|
+
type: "ON_PURCHASE_PLATFORM_CHANGE";
|
|
272
|
+
value: PurchasePlatformType | undefined;
|
|
273
|
+
} | {
|
|
274
|
+
type: "SUBMIT";
|
|
275
|
+
orderedFormFieldNames: string[];
|
|
276
|
+
}, {
|
|
277
|
+
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<true, SubmitInput, import("xstate").EventObject>> | undefined;
|
|
278
|
+
}, {
|
|
279
|
+
src: "submit";
|
|
280
|
+
logic: import("xstate").PromiseActorLogic<true, SubmitInput, import("xstate").EventObject>;
|
|
281
|
+
id: string | undefined;
|
|
282
|
+
}, {
|
|
283
|
+
type: "navigateToErrorPage";
|
|
284
|
+
params: unknown;
|
|
285
|
+
} | {
|
|
286
|
+
type: "navigateToSuccessPage";
|
|
287
|
+
params: unknown;
|
|
288
|
+
} | {
|
|
289
|
+
type: "setFormTypeToUndefined";
|
|
290
|
+
params: unknown;
|
|
291
|
+
} | {
|
|
292
|
+
type: "setInitialAgreementAndFormType";
|
|
293
|
+
params: unknown;
|
|
294
|
+
} | {
|
|
295
|
+
type: "clearValidationErrors";
|
|
296
|
+
params: unknown;
|
|
297
|
+
} | {
|
|
298
|
+
type: "setValidationErrors";
|
|
299
|
+
params: unknown;
|
|
300
|
+
} | {
|
|
301
|
+
type: "scrollToFirstErrorMessage";
|
|
302
|
+
params: unknown;
|
|
303
|
+
} | {
|
|
304
|
+
type: "setSubmissionError";
|
|
305
|
+
params: unknown;
|
|
306
|
+
} | {
|
|
307
|
+
type: "clearSubmissionError";
|
|
308
|
+
params: unknown;
|
|
309
|
+
} | {
|
|
310
|
+
type: "onInputChange";
|
|
311
|
+
params: unknown;
|
|
312
|
+
} | {
|
|
313
|
+
type: "onTransportModeChange";
|
|
314
|
+
params: unknown;
|
|
315
|
+
} | {
|
|
316
|
+
type: "onLineChange";
|
|
317
|
+
params: unknown;
|
|
318
|
+
} | {
|
|
319
|
+
type: "onPurchasePlatformChange";
|
|
320
|
+
params: unknown;
|
|
321
|
+
}, {
|
|
322
|
+
type: "isFormValid";
|
|
323
|
+
params: unknown;
|
|
324
|
+
} | {
|
|
325
|
+
type: "isRefundOfTicket";
|
|
326
|
+
params: unknown;
|
|
327
|
+
} | {
|
|
328
|
+
type: "isRefundAndTravelGuarantee";
|
|
329
|
+
params: unknown;
|
|
330
|
+
} | {
|
|
331
|
+
type: "isResidualValueOnTravelCard";
|
|
332
|
+
params: unknown;
|
|
333
|
+
} | {
|
|
334
|
+
type: "isAppTicketRefund";
|
|
335
|
+
params: unknown;
|
|
336
|
+
} | {
|
|
337
|
+
type: "isOtherTicketRefund";
|
|
338
|
+
params: unknown;
|
|
339
|
+
} | {
|
|
340
|
+
type: "isRefundCar";
|
|
341
|
+
params: unknown;
|
|
342
|
+
} | {
|
|
343
|
+
type: "isRefundTaxi";
|
|
344
|
+
params: unknown;
|
|
345
|
+
}, never, "success" | "formCategoryHandler" | "refundTicketFormHandler" | "refundAndTravelGuaranteeFormHandler" | "validating" | "submitting" | {
|
|
346
|
+
editing: "residualValueOnTravelCard" | "selectFormCategory" | {
|
|
347
|
+
refundOfTicket: "appTicketRefund" | "otherTicketRefund" | "selectRefundOfTicketForm";
|
|
348
|
+
} | {
|
|
349
|
+
refundAndTravelGuarantee: "refundTaxi" | "refundCar" | "selectRefundAndTravelGuaranteeForm";
|
|
350
|
+
};
|
|
351
|
+
}, string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
352
|
+
id: "refundStateMachine";
|
|
353
|
+
states: {
|
|
354
|
+
readonly formCategoryHandler: {
|
|
355
|
+
id: "formCategoryHandler";
|
|
356
|
+
};
|
|
357
|
+
readonly refundTicketFormHandler: {
|
|
358
|
+
id: "refundTicketFormHandler";
|
|
359
|
+
};
|
|
360
|
+
readonly refundAndTravelGuaranteeFormHandler: {
|
|
361
|
+
id: "refundAndTravelGuaranteeFormHandler";
|
|
362
|
+
};
|
|
363
|
+
readonly editing: {
|
|
364
|
+
states: {
|
|
365
|
+
readonly selectFormCategory: {};
|
|
366
|
+
readonly refundOfTicket: {
|
|
367
|
+
id: "refundOfTicket";
|
|
368
|
+
states: {
|
|
369
|
+
readonly selectRefundOfTicketForm: {};
|
|
370
|
+
readonly appTicketRefund: {
|
|
371
|
+
id: "appTicketRefund";
|
|
372
|
+
};
|
|
373
|
+
readonly otherTicketRefund: {
|
|
374
|
+
id: "otherTicketRefund";
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
readonly refundAndTravelGuarantee: {
|
|
379
|
+
id: "refundAndTravelGuarantee";
|
|
380
|
+
states: {
|
|
381
|
+
readonly selectRefundAndTravelGuaranteeForm: {};
|
|
382
|
+
readonly refundCar: {
|
|
383
|
+
id: "refundCar";
|
|
384
|
+
};
|
|
385
|
+
readonly refundTaxi: {
|
|
386
|
+
id: "refundTaxi";
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
readonly residualValueOnTravelCard: {
|
|
391
|
+
id: "residualValueOnTravelCard";
|
|
392
|
+
};
|
|
393
|
+
readonly history: {};
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
readonly validating: {
|
|
397
|
+
id: "validating";
|
|
398
|
+
};
|
|
399
|
+
readonly submitting: {
|
|
400
|
+
id: "submitting";
|
|
401
|
+
};
|
|
402
|
+
readonly success: {};
|
|
403
|
+
};
|
|
404
|
+
}>;
|
|
405
|
+
export {};
|
|
406
|
+
//# sourceMappingURL=refundFormMachine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refundFormMachine.d.ts","sourceRoot":"","sources":["../../src/refund/refundFormMachine.ts"],"names":[],"mappings":"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"}
|