@mrfylke/contact-form 0.1.24 → 0.1.26
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/README.md +42 -24
- package/lib/ContactFormRoot.d.ts +2 -2
- package/lib/ContactFormRoot.d.ts.map +1 -1
- package/lib/ContactFormRoot.js +6 -4
- package/lib/components/button/link.d.ts +1 -1
- package/lib/components/button/link.d.ts.map +1 -1
- package/lib/components/button/utils.d.ts +2 -2
- package/lib/components/button/utils.d.ts.map +1 -1
- package/lib/components/checkbox/checkbox.d.ts +1 -1
- package/lib/components/checkbox/checkbox.d.ts.map +1 -1
- package/lib/components/error-message/error-message.d.ts +1 -1
- package/lib/components/error-message/error-message.d.ts.map +1 -1
- package/lib/components/external-link-page.d.ts +1 -1
- package/lib/components/external-link-page.d.ts.map +1 -1
- package/lib/components/form/date-selector.d.ts +1 -1
- package/lib/components/form/date-selector.d.ts.map +1 -1
- package/lib/components/form/date-selector.js +2 -2
- package/lib/components/form/departure-time-field.d.ts +1 -1
- package/lib/components/form/departure-time-field.d.ts.map +1 -1
- package/lib/components/form/description-modal.d.ts +1 -1
- package/lib/components/form/description-modal.d.ts.map +1 -1
- package/lib/components/form/field-wrapper-with-error/index.d.ts +1 -1
- package/lib/components/form/field-wrapper-with-error/index.d.ts.map +1 -1
- package/lib/components/form/fieldset/index.d.ts +1 -1
- package/lib/components/form/fieldset/index.d.ts.map +1 -1
- package/lib/components/form/file-input.d.ts +1 -1
- package/lib/components/form/file-input.d.ts.map +1 -1
- package/lib/components/form/form-component-label/index.d.ts +3 -2
- package/lib/components/form/form-component-label/index.d.ts.map +1 -1
- package/lib/components/form/form-component-label/index.js +2 -2
- package/lib/components/form/input.d.ts +1 -1
- package/lib/components/form/input.d.ts.map +1 -1
- package/lib/components/form/radio.d.ts +1 -1
- package/lib/components/form/radio.d.ts.map +1 -1
- package/lib/components/form/searchable-select/searchable-select.d.ts +1 -1
- package/lib/components/form/searchable-select/searchable-select.d.ts.map +1 -1
- package/lib/components/form/searchable-select/searchable-select.js +1 -1
- package/lib/components/form/select.d.ts +1 -1
- package/lib/components/form/select.d.ts.map +1 -1
- package/lib/components/form/select.js +1 -1
- package/lib/components/form/textarea.d.ts +1 -1
- package/lib/components/form/textarea.d.ts.map +1 -1
- package/lib/components/form/time-selector.d.ts +1 -1
- package/lib/components/form/time-selector.d.ts.map +1 -1
- package/lib/components/form/time-selector.js +2 -2
- package/lib/components/icon/checkbox-icon.d.ts +1 -1
- package/lib/components/icon/checkbox-icon.d.ts.map +1 -1
- package/lib/components/icon/color-icon.d.ts +1 -1
- package/lib/components/icon/color-icon.d.ts.map +1 -1
- package/lib/components/icon/generated-icons.d.ts +422 -262
- package/lib/components/icon/generated-icons.d.ts.map +1 -1
- package/lib/components/icon/generated-icons.js +1931 -1771
- package/lib/components/icon/illustration.d.ts +1 -1
- package/lib/components/icon/illustration.d.ts.map +1 -1
- package/lib/components/icon/image.d.ts +1 -1
- package/lib/components/icon/image.d.ts.map +1 -1
- package/lib/components/icon/mono-icon.d.ts +1 -1
- package/lib/components/icon/mono-icon.d.ts.map +1 -1
- package/lib/components/icon/utils.d.ts.map +1 -1
- package/lib/components/icon/utils.js +6 -6
- package/lib/components/loading/index.d.ts +2 -2
- package/lib/components/loading/index.d.ts.map +1 -1
- package/lib/components/section-card/section-card.d.ts +1 -1
- package/lib/components/section-card/section-card.d.ts.map +1 -1
- package/lib/components/typography/index.d.ts +6 -6
- package/lib/components/typography/index.d.ts.map +1 -1
- package/lib/contact.module.css +0 -9
- package/lib/error-content/error-content.d.ts +1 -1
- package/lib/error-content/error-content.d.ts.map +1 -1
- package/lib/group-travel/index.d.ts +1 -1
- package/lib/group-travel/index.d.ts.map +1 -1
- package/lib/group-travel/index.js +1 -2
- package/lib/index.d.ts +3 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -10
- package/lib/journey-info/events.d.ts.map +1 -1
- package/lib/journey-info/index.d.ts +1 -1
- package/lib/journey-info/index.d.ts.map +1 -1
- package/lib/journey-info/index.js +10 -8
- package/lib/journey-info/journeyInfoStateMachine.d.ts +2 -2
- package/lib/journey-info/journeyInfoStateMachine.d.ts.map +1 -1
- package/lib/journey-info/journeyInfoStateMachine.js +1 -1
- package/lib/layouts/contact-form-container.d.ts +1 -1
- package/lib/layouts/contact-form-container.d.ts.map +1 -1
- package/lib/layouts/contact-page-layout.d.ts +1 -8
- package/lib/layouts/contact-page-layout.d.ts.map +1 -1
- package/lib/layouts/contact-page-layout.js +8 -93
- package/lib/layouts/contact-pages.d.ts +20 -0
- package/lib/layouts/contact-pages.d.ts.map +1 -0
- package/lib/layouts/contact-pages.js +124 -0
- package/lib/layouts/index.d.ts +2 -1
- package/lib/layouts/index.d.ts.map +1 -1
- package/lib/layouts/index.js +5 -2
- package/lib/lines/use-departures.js +2 -2
- package/lib/lines/use-lines.d.ts +2 -2
- package/lib/lines/use-lines.js +1 -1
- package/lib/lost-property/LostPropertyForm.d.ts +2 -1
- package/lib/lost-property/LostPropertyForm.d.ts.map +1 -1
- package/lib/lost-property/LostPropertyMachine.d.ts +2 -2
- package/lib/lost-property/LostPropertyMachine.d.ts.map +1 -1
- package/lib/lost-property/LostPropertyMachine.js +1 -1
- package/lib/lost-property/index.d.ts +1 -1
- package/lib/lost-property/index.d.ts.map +1 -1
- package/lib/lost-property-external/index.d.ts +1 -1
- package/lib/lost-property-external/index.d.ts.map +1 -1
- package/lib/lost-property-external/index.js +1 -2
- package/lib/means-of-transport/events.d.ts.map +1 -1
- package/lib/means-of-transport/forms/delayForm.d.ts +1 -1
- package/lib/means-of-transport/forms/delayForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/driverForm.d.ts +1 -1
- package/lib/means-of-transport/forms/driverForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/injuryForm.d.ts +1 -1
- package/lib/means-of-transport/forms/injuryForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/serviceOfferingForm.d.ts +1 -1
- package/lib/means-of-transport/forms/serviceOfferingForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/serviceOfferingForm.js +3 -1
- package/lib/means-of-transport/forms/stopForm.d.ts +1 -1
- package/lib/means-of-transport/forms/stopForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/transportationForm.d.ts +1 -1
- package/lib/means-of-transport/forms/transportationForm.d.ts.map +1 -1
- package/lib/means-of-transport/index.d.ts +1 -1
- package/lib/means-of-transport/index.d.ts.map +1 -1
- package/lib/means-of-transport/index.js +8 -2
- package/lib/means-of-transport/means-of-transport-form-machine.d.ts +4 -2
- package/lib/means-of-transport/means-of-transport-form-machine.d.ts.map +1 -1
- package/lib/means-of-transport/means-of-transport-form-machine.js +9 -3
- package/lib/modules/config/context.d.ts +13 -38
- package/lib/modules/config/context.d.ts.map +1 -1
- package/lib/modules/config/context.js +16 -52
- package/lib/modules/config/default-submit.d.ts +3 -0
- package/lib/modules/config/default-submit.d.ts.map +1 -0
- package/lib/modules/config/default-submit.js +13 -0
- package/lib/modules/config/index.d.ts +1 -0
- package/lib/modules/config/index.d.ts.map +1 -1
- package/lib/modules/config/index.js +1 -0
- package/lib/modules/config/types.d.ts +60 -78
- package/lib/modules/config/types.d.ts.map +1 -1
- package/lib/modules/org-data/index.d.ts +1 -2
- package/lib/modules/org-data/index.d.ts.map +1 -1
- package/lib/modules/org-data/index.js +1 -2
- package/lib/modules/theme/theme-context.d.ts +1 -1
- package/lib/modules/theme/theme-context.d.ts.map +1 -1
- package/lib/modules/transport-mode/filter/filter.d.ts +1 -1
- package/lib/modules/transport-mode/filter/filter.d.ts.map +1 -1
- package/lib/modules/transport-mode/icon/index.d.ts +4 -4
- package/lib/modules/transport-mode/icon/index.d.ts.map +1 -1
- package/lib/modules/transport-mode/types.d.ts +3 -5
- package/lib/modules/transport-mode/types.d.ts.map +1 -1
- package/lib/modules/transport-mode/types.js +3 -138
- package/lib/modules/transport-mode/utils.d.ts +2 -2
- package/lib/modules/transport-mode/utils.d.ts.map +1 -1
- package/lib/modules/transport-mode/utils.js +39 -6
- package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts.map +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/index.js +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts.map +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.js +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts +2 -2
- package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/appTicketRefund.js +18 -2
- package/lib/refund/forms/refund-ticket/index.d.ts +1 -1
- package/lib/refund/forms/refund-ticket/index.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/index.js +1 -1
- package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts +1 -1
- package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/otherTicketRefund.js +16 -4
- package/lib/refund/forms/residualValueOnTravelCard/index.d.ts +1 -1
- package/lib/refund/forms/residualValueOnTravelCard/index.d.ts.map +1 -1
- package/lib/refund/forms/residualValueOnTravelCard/index.js +1 -2
- package/lib/refund/index.d.ts +1 -1
- package/lib/refund/index.d.ts.map +1 -1
- package/lib/refund/index.js +9 -0
- package/lib/refund/refundFormMachine.d.ts +10 -2
- package/lib/refund/refundFormMachine.d.ts.map +1 -1
- package/lib/refund/refundFormMachine.js +23 -2
- package/lib/server/departures-route-handler.d.ts +27 -0
- package/lib/server/departures-route-handler.d.ts.map +1 -0
- package/lib/server/departures-route-handler.js +93 -0
- package/lib/server/index.d.ts +2 -0
- package/lib/server/index.d.ts.map +1 -1
- package/lib/server/index.js +5 -1
- package/lib/server/journey-planner/authority.d.ts +2 -2
- package/lib/server/journey-planner/authority.js +3 -3
- package/lib/server/journey-planner/index.d.ts.map +1 -1
- package/lib/server/journey-planner/index.js +8 -9
- package/lib/server/journey-planner/journey-gql/lines.generated.d.ts +1 -0
- package/lib/server/journey-planner/journey-gql/lines.generated.d.ts.map +1 -1
- package/lib/server/journey-planner/journey-gql/lines.generated.js +1 -0
- package/lib/server/journey-planner/validators.d.ts +4 -4
- package/lib/server/journey-planner/validators.js +3 -3
- package/lib/server/lines-route-handler.d.ts +7 -18
- package/lib/server/lines-route-handler.d.ts.map +1 -1
- package/lib/server/lines-route-handler.js +15 -17
- package/lib/server/submit-route-handler.d.ts +20 -0
- package/lib/server/submit-route-handler.d.ts.map +1 -0
- package/lib/server/submit-route-handler.js +62 -0
- package/lib/success-content/success-content.d.ts +1 -1
- package/lib/success-content/success-content.d.ts.map +1 -1
- package/lib/ticket-control/events.d.ts +1 -1
- package/lib/ticket-control/events.d.ts.map +1 -1
- package/lib/ticket-control/forms/feeComplaintForm.d.ts +1 -1
- package/lib/ticket-control/forms/feeComplaintForm.d.ts.map +1 -1
- package/lib/ticket-control/forms/feeComplaintForm.js +5 -1
- package/lib/ticket-control/forms/feedbackForm.d.ts +1 -1
- package/lib/ticket-control/forms/feedbackForm.d.ts.map +1 -1
- package/lib/ticket-control/forms/postponePayment.d.ts +1 -1
- package/lib/ticket-control/forms/postponePayment.d.ts.map +1 -1
- package/lib/ticket-control/forms/postponePayment.js +5 -1
- package/lib/ticket-control/index.d.ts +1 -1
- package/lib/ticket-control/index.d.ts.map +1 -1
- package/lib/ticket-control/index.js +2 -0
- package/lib/ticket-control/ticket-control-form-machine.d.ts +8 -4
- package/lib/ticket-control/ticket-control-form-machine.d.ts.map +1 -1
- package/lib/ticket-control/ticket-control-form-machine.js +14 -3
- package/lib/ticketing/events.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appAccountForm.d.ts +1 -1
- package/lib/ticketing/forms/app/appAccountForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appTicketingForm.d.ts +1 -1
- package/lib/ticketing/forms/app/appTicketingForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts +1 -1
- package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/index.d.ts +1 -1
- package/lib/ticketing/forms/app/index.d.ts.map +1 -1
- package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts +1 -1
- package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/index.d.ts +1 -1
- package/lib/ticketing/forms/travel-card/index.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts +1 -1
- package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/orderTravelCard.js +1 -1
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts +1 -1
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/index.d.ts +1 -1
- package/lib/ticketing/forms/webshop/index.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts +1 -1
- package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts +1 -1
- package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts.map +1 -1
- package/lib/ticketing/index.d.ts +1 -1
- package/lib/ticketing/index.d.ts.map +1 -1
- package/lib/ticketing/ticketingStateMachine.d.ts +2 -2
- package/lib/ticketing/ticketingStateMachine.d.ts.map +1 -1
- package/lib/translations/commons.d.ts +1 -0
- package/lib/translations/commons.d.ts.map +1 -1
- package/lib/translations/commons.js +4 -4
- package/lib/translations/index.d.ts +2 -6
- package/lib/translations/index.d.ts.map +1 -1
- package/lib/translations/index.js +1 -9
- package/lib/translations/language-context.d.ts +3 -11
- package/lib/translations/language-context.d.ts.map +1 -1
- package/lib/translations/language-context.js +1 -31
- package/lib/translations/merge-overrides.d.ts +3 -9
- package/lib/translations/merge-overrides.d.ts.map +1 -1
- package/lib/translations/merge-overrides.js +3 -15
- package/lib/translations/pages/contact.d.ts +15 -4
- package/lib/translations/pages/contact.d.ts.map +1 -1
- package/lib/translations/pages/contact.js +17 -20
- package/lib/translations/server/endpoints.d.ts +0 -62
- package/lib/translations/server/endpoints.d.ts.map +1 -1
- package/lib/translations/server/endpoints.js +1 -139
- package/lib/translations/translations-context.d.ts +1 -1
- package/lib/translations/translations-context.d.ts.map +1 -1
- package/lib/translations/types.d.ts +7 -13
- package/lib/translations/types.d.ts.map +1 -1
- package/lib/translations/utils.d.ts +0 -7
- package/lib/translations/utils.d.ts.map +1 -1
- package/lib/translations/utils.js +0 -26
- package/lib/types/submit-payloads.d.ts +1 -0
- package/lib/types/submit-payloads.d.ts.map +1 -1
- package/lib/types.d.ts.map +1 -1
- package/lib/validation/validationRules.d.ts.map +1 -1
- package/lib/validation/validationRules.js +7 -0
- package/package.json +37 -32
- package/lib/components/icon/icon-wrapper.d.ts +0 -30
- package/lib/components/icon/icon-wrapper.d.ts.map +0 -1
- package/lib/components/icon/icon-wrapper.js +0 -39
- package/lib/components/icon/mono-icon-new.d.ts +0 -32
- package/lib/components/icon/mono-icon-new.d.ts.map +0 -1
- package/lib/components/icon/mono-icon-new.js +0 -43
- package/lib/translations/common/index.d.ts +0 -3
- package/lib/translations/common/index.d.ts.map +0 -1
- package/lib/translations/common/index.js +0 -7
- package/lib/translations/common/layout.d.ts +0 -8
- package/lib/translations/common/layout.d.ts.map +0 -1
- package/lib/translations/common/layout.js +0 -39
- package/lib/translations/common/titles.d.ts +0 -4
- package/lib/translations/common/titles.d.ts.map +0 -1
- package/lib/translations/common/titles.js +0 -25
- package/lib/translations/json-to-override.d.ts +0 -19
- package/lib/translations/json-to-override.d.ts.map +0 -1
- package/lib/translations/json-to-override.js +0 -65
- package/lib/translations/load-org-translations.d.ts +0 -19
- package/lib/translations/load-org-translations.d.ts.map +0 -1
- package/lib/translations/load-org-translations.js +0 -23
|
@@ -1,141 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.transportSubmodeSchema = exports.transportModeSchema = void 0;
|
|
4
|
-
const
|
|
5
|
-
exports
|
|
6
|
-
|
|
7
|
-
zod_1.z.literal('bus'),
|
|
8
|
-
zod_1.z.literal('foot'),
|
|
9
|
-
zod_1.z.literal('bicycle'),
|
|
10
|
-
zod_1.z.literal('cableway'),
|
|
11
|
-
zod_1.z.literal('car'),
|
|
12
|
-
zod_1.z.literal('carpool'),
|
|
13
|
-
zod_1.z.literal('coach'),
|
|
14
|
-
zod_1.z.literal('funicular'),
|
|
15
|
-
zod_1.z.literal('lift'),
|
|
16
|
-
zod_1.z.literal('metro'),
|
|
17
|
-
zod_1.z.literal('monorail'),
|
|
18
|
-
zod_1.z.literal('rail'),
|
|
19
|
-
zod_1.z.literal('scooter'),
|
|
20
|
-
zod_1.z.literal('taxi'),
|
|
21
|
-
zod_1.z.literal('tram'),
|
|
22
|
-
zod_1.z.literal('trolleybus'),
|
|
23
|
-
zod_1.z.literal('unknown'),
|
|
24
|
-
zod_1.z.literal('water'),
|
|
25
|
-
zod_1.z.literal('snowAndIce'),
|
|
26
|
-
]);
|
|
27
|
-
exports.transportSubmodeSchema = zod_1.z.union([
|
|
28
|
-
zod_1.z.literal('SchengenAreaFlight'),
|
|
29
|
-
zod_1.z.literal('airportBoatLink'),
|
|
30
|
-
zod_1.z.literal('airportLinkBus'),
|
|
31
|
-
zod_1.z.literal('airportLinkRail'),
|
|
32
|
-
zod_1.z.literal('airshipService'),
|
|
33
|
-
zod_1.z.literal('allFunicularServices'),
|
|
34
|
-
zod_1.z.literal('allHireVehicles'),
|
|
35
|
-
zod_1.z.literal('allTaxiServices'),
|
|
36
|
-
zod_1.z.literal('bikeTaxi'),
|
|
37
|
-
zod_1.z.literal('blackCab'),
|
|
38
|
-
zod_1.z.literal('cableCar'),
|
|
39
|
-
zod_1.z.literal('cableFerry'),
|
|
40
|
-
zod_1.z.literal('canalBarge'),
|
|
41
|
-
zod_1.z.literal('carTransportRailService'),
|
|
42
|
-
zod_1.z.literal('chairLift'),
|
|
43
|
-
zod_1.z.literal('charterTaxi'),
|
|
44
|
-
zod_1.z.literal('cityTram'),
|
|
45
|
-
zod_1.z.literal('communalTaxi'),
|
|
46
|
-
zod_1.z.literal('commuterCoach'),
|
|
47
|
-
zod_1.z.literal('crossCountryRail'),
|
|
48
|
-
zod_1.z.literal('dedicatedLaneBus'),
|
|
49
|
-
zod_1.z.literal('demandAndResponseBus'),
|
|
50
|
-
zod_1.z.literal('domesticCharterFlight'),
|
|
51
|
-
zod_1.z.literal('domesticFlight'),
|
|
52
|
-
zod_1.z.literal('domesticScheduledFlight'),
|
|
53
|
-
zod_1.z.literal('dragLift'),
|
|
54
|
-
zod_1.z.literal('escooter'),
|
|
55
|
-
zod_1.z.literal('expressBus'),
|
|
56
|
-
zod_1.z.literal('funicular'),
|
|
57
|
-
zod_1.z.literal('helicopterService'),
|
|
58
|
-
zod_1.z.literal('highFrequencyBus'),
|
|
59
|
-
zod_1.z.literal('highSpeedPassengerService'),
|
|
60
|
-
zod_1.z.literal('highSpeedRail'),
|
|
61
|
-
zod_1.z.literal('highSpeedVehicleService'),
|
|
62
|
-
zod_1.z.literal('hireCar'),
|
|
63
|
-
zod_1.z.literal('hireCycle'),
|
|
64
|
-
zod_1.z.literal('hireMotorbike'),
|
|
65
|
-
zod_1.z.literal('hireVan'),
|
|
66
|
-
zod_1.z.literal('intercontinentalCharterFlight'),
|
|
67
|
-
zod_1.z.literal('intercontinentalFlight'),
|
|
68
|
-
zod_1.z.literal('international'),
|
|
69
|
-
zod_1.z.literal('internationalCarFerry'),
|
|
70
|
-
zod_1.z.literal('internationalCharterFlight'),
|
|
71
|
-
zod_1.z.literal('internationalCoach'),
|
|
72
|
-
zod_1.z.literal('internationalFlight'),
|
|
73
|
-
zod_1.z.literal('internationalPassengerFerry'),
|
|
74
|
-
zod_1.z.literal('interregionalRail'),
|
|
75
|
-
zod_1.z.literal('lift'),
|
|
76
|
-
zod_1.z.literal('local'),
|
|
77
|
-
zod_1.z.literal('localBus'),
|
|
78
|
-
zod_1.z.literal('localCarFerry'),
|
|
79
|
-
zod_1.z.literal('localPassengerFerry'),
|
|
80
|
-
zod_1.z.literal('localTram'),
|
|
81
|
-
zod_1.z.literal('longDistance'),
|
|
82
|
-
zod_1.z.literal('metro'),
|
|
83
|
-
zod_1.z.literal('miniCab'),
|
|
84
|
-
zod_1.z.literal('mobilityBus'),
|
|
85
|
-
zod_1.z.literal('mobilityBusForRegisteredDisabled'),
|
|
86
|
-
zod_1.z.literal('nationalCarFerry'),
|
|
87
|
-
zod_1.z.literal('nationalCoach'),
|
|
88
|
-
zod_1.z.literal('nationalPassengerFerry'),
|
|
89
|
-
zod_1.z.literal('nightBus'),
|
|
90
|
-
zod_1.z.literal('nightRail'),
|
|
91
|
-
zod_1.z.literal('postBoat'),
|
|
92
|
-
zod_1.z.literal('postBus'),
|
|
93
|
-
zod_1.z.literal('rackAndPinionRailway'),
|
|
94
|
-
zod_1.z.literal('railReplacementBus'),
|
|
95
|
-
zod_1.z.literal('railShuttle'),
|
|
96
|
-
zod_1.z.literal('railTaxi'),
|
|
97
|
-
zod_1.z.literal('regionalBus'),
|
|
98
|
-
zod_1.z.literal('regionalCarFerry'),
|
|
99
|
-
zod_1.z.literal('regionalCoach'),
|
|
100
|
-
zod_1.z.literal('regionalPassengerFerry'),
|
|
101
|
-
zod_1.z.literal('regionalRail'),
|
|
102
|
-
zod_1.z.literal('regionalTram'),
|
|
103
|
-
zod_1.z.literal('replacementRailService'),
|
|
104
|
-
zod_1.z.literal('riverBus'),
|
|
105
|
-
zod_1.z.literal('roadFerryLink'),
|
|
106
|
-
zod_1.z.literal('roundTripCharterFlight'),
|
|
107
|
-
zod_1.z.literal('scheduledFerry'),
|
|
108
|
-
zod_1.z.literal('schoolAndPublicServiceBus'),
|
|
109
|
-
zod_1.z.literal('schoolBoat'),
|
|
110
|
-
zod_1.z.literal('schoolBus'),
|
|
111
|
-
zod_1.z.literal('schoolCoach'),
|
|
112
|
-
zod_1.z.literal('shortHaulInternationalFlight'),
|
|
113
|
-
zod_1.z.literal('shuttleBus'),
|
|
114
|
-
zod_1.z.literal('shuttleCoach'),
|
|
115
|
-
zod_1.z.literal('shuttleFerryService'),
|
|
116
|
-
zod_1.z.literal('shuttleFlight'),
|
|
117
|
-
zod_1.z.literal('shuttleTram'),
|
|
118
|
-
zod_1.z.literal('sightseeingBus'),
|
|
119
|
-
zod_1.z.literal('sightseeingCoach'),
|
|
120
|
-
zod_1.z.literal('sightseeingFlight'),
|
|
121
|
-
zod_1.z.literal('sightseeingService'),
|
|
122
|
-
zod_1.z.literal('sightseeingTram'),
|
|
123
|
-
zod_1.z.literal('sleeperRailService'),
|
|
124
|
-
zod_1.z.literal('specialCoach'),
|
|
125
|
-
zod_1.z.literal('specialNeedsBus'),
|
|
126
|
-
zod_1.z.literal('specialTrain'),
|
|
127
|
-
zod_1.z.literal('streetCableCar'),
|
|
128
|
-
zod_1.z.literal('suburbanRailway'),
|
|
129
|
-
zod_1.z.literal('telecabin'),
|
|
130
|
-
zod_1.z.literal('telecabinLink'),
|
|
131
|
-
zod_1.z.literal('touristCoach'),
|
|
132
|
-
zod_1.z.literal('touristRailway'),
|
|
133
|
-
zod_1.z.literal('trainFerry'),
|
|
134
|
-
zod_1.z.literal('trainTram'),
|
|
135
|
-
zod_1.z.literal('tube'),
|
|
136
|
-
zod_1.z.literal('undefined'),
|
|
137
|
-
zod_1.z.literal('undefinedFunicular'),
|
|
138
|
-
zod_1.z.literal('unknown'),
|
|
139
|
-
zod_1.z.literal('urbanRailway'),
|
|
140
|
-
zod_1.z.literal('waterTaxi'),
|
|
141
|
-
]);
|
|
4
|
+
const config_specs_1 = require("@atb-as/config-specs");
|
|
5
|
+
Object.defineProperty(exports, "transportModeSchema", { enumerable: true, get: function () { return config_specs_1.TransportModeType; } });
|
|
6
|
+
Object.defineProperty(exports, "transportSubmodeSchema", { enumerable: true, get: function () { return config_specs_1.TransportSubmodeType; } });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TransportModeGroup, TransportModeType, TransportSubmodeType } from './types';
|
|
2
2
|
import { TransportMode as GraphQlTransportMode } from '../../modules/graphql-types';
|
|
3
|
-
export declare function transportModeToTranslatedString(mode: TransportModeGroup): import("
|
|
4
|
-
export declare function severalTransportModesToTranslatedStrings(modes: TransportModeGroup[]): import("
|
|
3
|
+
export declare function transportModeToTranslatedString(mode: TransportModeGroup): import("../..").TranslatedString;
|
|
4
|
+
export declare function severalTransportModesToTranslatedStrings(modes: TransportModeGroup[]): import("../..").TranslatedString[];
|
|
5
5
|
export declare function isTransportModeType(a: any): a is TransportModeType;
|
|
6
6
|
export declare function isTransportSubmodeType(a: any): a is TransportSubmodeType;
|
|
7
7
|
export declare function filterGraphQlTransportModes(modes: GraphQlTransportMode[] | undefined): TransportModeType[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/modules/transport-mode/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAElB,iBAAiB,EAEjB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEpF,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/modules/transport-mode/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAElB,iBAAiB,EAEjB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEpF,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,kBAAkB,oCAMvE;AAED,wBAAgB,wCAAwC,CACtD,KAAK,EAAE,kBAAkB,EAAE,sCAK5B;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,iBAAiB,CAElE;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,oBAAoB,CAExE;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,oBAAoB,EAAE,GAAG,SAAS,GACxC,iBAAiB,EAAE,GAAG,SAAS,CAQjC;AAUD,wBAAgB,aAAa,CAAC,QAAQ,CAAC,EAAE,oBAAoB,EAAE,WAG9D"}
|
|
@@ -1,4 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
36
|
exports.transportModeToTranslatedString = transportModeToTranslatedString;
|
|
4
37
|
exports.severalTransportModesToTranslatedStrings = severalTransportModesToTranslatedStrings;
|
|
@@ -6,20 +39,20 @@ exports.isTransportModeType = isTransportModeType;
|
|
|
6
39
|
exports.isTransportSubmodeType = isTransportSubmodeType;
|
|
7
40
|
exports.filterGraphQlTransportModes = filterGraphQlTransportModes;
|
|
8
41
|
exports.isSubModeBoat = isSubModeBoat;
|
|
9
|
-
const
|
|
42
|
+
const ComponentText = __importStar(require("../../translations/components"));
|
|
10
43
|
const types_1 = require("./types");
|
|
11
44
|
function transportModeToTranslatedString(mode) {
|
|
12
45
|
if (!mode.transportMode)
|
|
13
|
-
return
|
|
14
|
-
if (!
|
|
15
|
-
return
|
|
46
|
+
return ComponentText.TransportMode.modes.unknown;
|
|
47
|
+
if (!ComponentText.TransportMode.modes[mode.transportMode]) {
|
|
48
|
+
return ComponentText.TransportMode.modes.unknown;
|
|
16
49
|
}
|
|
17
|
-
return
|
|
50
|
+
return ComponentText.TransportMode.modes[mode.transportMode];
|
|
18
51
|
}
|
|
19
52
|
function severalTransportModesToTranslatedStrings(modes) {
|
|
20
53
|
return modes
|
|
21
54
|
.filter((mode) => !!mode.transportMode) // Remove the ! from mode.transportMode! below if this line is removed
|
|
22
|
-
.map((mode) =>
|
|
55
|
+
.map((mode) => ComponentText.TransportMode.modes[mode.transportMode]);
|
|
23
56
|
}
|
|
24
57
|
function isTransportModeType(a) {
|
|
25
58
|
return types_1.transportModeSchema.safeParse(a).success;
|
|
@@ -5,6 +5,6 @@ type RefundAndTravelGuaranteeFormsProps = {
|
|
|
5
5
|
state: StateFrom<typeof refundStateMachine>;
|
|
6
6
|
send: (event: typeof RefundFormEvents) => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const RefundAndTravelGuaranteeForms: ({ state, send, }: RefundAndTravelGuaranteeFormsProps) => import("react
|
|
8
|
+
export declare const RefundAndTravelGuaranteeForms: ({ state, send, }: RefundAndTravelGuaranteeFormsProps) => import("react").JSX.Element;
|
|
9
9
|
export default RefundAndTravelGuaranteeForms;
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAUhD,KAAK,kCAAkC,GAAG;IACxC,KAAK,EAAE,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,kBAG3C,kCAAkC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAEL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAUhD,KAAK,kCAAkC,GAAG;IACxC,KAAK,EAAE,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,kBAG3C,kCAAkC,gCAiHpC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
|
@@ -23,7 +23,7 @@ const RefundAndTravelGuaranteeForms = ({ state, send, }) => {
|
|
|
23
23
|
const displayRefundCarForm = state.context.isInitialAgreementChecked &&
|
|
24
24
|
state.context.formType === 'refundCar';
|
|
25
25
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.refund.agreement.title), children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(PageText.Contact.refund.agreement.delayedRefundText) }), (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(PageText.Contact.refund.agreement.ticketRefundText) }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "heading__m", children: t(PageText.Contact.refund.agreement.travelGuaranteeExceptions.label) }), (0, jsx_runtime_1.jsx)("ul", { className: contact_module_css_1.default.rules__list, children: PageText.Contact.refund.agreement.travelGuaranteeExceptions.exceptions.map((exception, index) => ((0, jsx_runtime_1.jsxs)("li", { children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(exception.text) }), exception.examples.length > 0 && ((0, jsx_runtime_1.jsx)("ul", { className: contact_module_css_1.default.rules__list, children: exception.examples.map((example, exampleIndex) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(example) }) }, exampleIndex))) }))] }, index))) })] }), (0, jsx_runtime_1.jsxs)(typography_1.Typo.p, { textType: "body__m", children: [t(PageText.Contact.refund.agreement.travelGuaranteeExceptions
|
|
26
|
-
.exclusion), ' ', (0, jsx_runtime_1.jsx)(link_1.default, {
|
|
26
|
+
.exclusion), ' ', (0, jsx_runtime_1.jsx)(link_1.default, { href: t(PageText.Contact.refund.agreement.travelGuaranteeExceptions.link
|
|
27
27
|
.href), target: "_blank", rel: "noopener noreferrer", children: t(PageText.Contact.refund.agreement.travelGuaranteeExceptions.link
|
|
28
28
|
.text) })] }), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { label: t(PageText.Contact.ticketControl.feeComplaint.firstAgreement.checkbox), checked: state.context.isInitialAgreementChecked, onChange: () => send({
|
|
29
29
|
type: 'ON_INPUT_CHANGE',
|
|
@@ -6,6 +6,6 @@ type RefundCarFormProps = {
|
|
|
6
6
|
};
|
|
7
7
|
send: (event: typeof RefundFormEvents) => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const RefundCarForm: ({ state, send }: RefundCarFormProps) => import("react
|
|
9
|
+
export declare const RefundCarForm: ({ state, send }: RefundCarFormProps) => import("react").JSX.Element;
|
|
10
10
|
export default RefundCarForm;
|
|
11
11
|
//# sourceMappingURL=refundCarForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refundCarForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundCarForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAgB7D,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,iBAAiB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"refundCarForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundCarForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAgB7D,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,iBAAiB,kBAAkB,gCAgdhE,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -12,7 +12,7 @@ const RefundCarForm = ({ state, send }) => {
|
|
|
12
12
|
const PageText = (0, translations_1.usePageText)();
|
|
13
13
|
const { getLinesByMode, getQuaysByLine } = (0, use_lines_1.useLines)();
|
|
14
14
|
const transportModeOptions = (0, use_lines_1.useTransportModeOptions)();
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.refund.refundCar.aboutTheCarTrip.title), children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(PageText.Contact.refund.refundCar.info) }), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "kilometersDriven", label: t(PageText.Contact.input.kilometersDriven.label), type: "text", name: "kilometersDriven", value: state.context.kilometersDriven || '', isRequired: true, errorMessage: state.context?.errorMessages['kilometersDriven']?.[0] || undefined, onChange: (e) => send({
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.refund.refundCar.aboutTheCarTrip.title), children: [t(PageText.Contact.refund.refundCar.info) && ((0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(PageText.Contact.refund.refundCar.info) })), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "kilometersDriven", label: t(PageText.Contact.input.kilometersDriven.label), type: "text", name: "kilometersDriven", value: state.context.kilometersDriven || '', isRequired: true, errorMessage: state.context?.errorMessages['kilometersDriven']?.[0] || undefined, onChange: (e) => send({
|
|
16
16
|
type: 'ON_INPUT_CHANGE',
|
|
17
17
|
inputName: 'kilometersDriven',
|
|
18
18
|
value: e.target.value,
|
|
@@ -6,6 +6,6 @@ type RefundTaxiFormProps = {
|
|
|
6
6
|
};
|
|
7
7
|
send: (event: typeof RefundFormEvents) => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const RefundTaxiForm: ({ state, send }: RefundTaxiFormProps) => import("react
|
|
9
|
+
export declare const RefundTaxiForm: ({ state, send }: RefundTaxiFormProps) => import("react").JSX.Element;
|
|
10
10
|
export default RefundTaxiForm;
|
|
11
11
|
//# sourceMappingURL=refundTaxiForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refundTaxiForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundTaxiForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAgB7D,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,iBAAiB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"refundTaxiForm.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-and-travel-guarantee/refundTaxiForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAgB7D,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,iBAAiB,mBAAmB,gCAqblE,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -6,7 +6,7 @@ type AppTicketRefundProps = {
|
|
|
6
6
|
};
|
|
7
7
|
send: (event: typeof RefundFormEvents) => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const AppTicketRefund: ({ state, send }: AppTicketRefundProps) => import("react
|
|
10
|
-
export default function AppTicketRefundContent({ state, send, }: AppTicketRefundProps): import("react
|
|
9
|
+
export declare const AppTicketRefund: ({ state, send }: AppTicketRefundProps) => import("react").JSX.Element;
|
|
10
|
+
export default function AppTicketRefundContent({ state, send, }: AppTicketRefundProps): import("react").JSX.Element;
|
|
11
11
|
export {};
|
|
12
12
|
//# sourceMappingURL=appTicketRefund.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/appTicketRefund.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAkBhD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,iBAAiB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"appTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/appTicketRefund.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAkBhD,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,iBAAiB,oBAAoB,gCAuHpE,CAAC;AAqQF,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAC7C,KAAK,EACL,IAAI,GACL,EAAE,oBAAoB,+BAWtB"}
|
|
@@ -10,11 +10,27 @@ const use_lines_1 = require("../../../lines/use-lines");
|
|
|
10
10
|
const AppTicketRefund = ({ state, send }) => {
|
|
11
11
|
const PageText = (0, translations_1.usePageText)();
|
|
12
12
|
const { t } = (0, translations_1.useTranslation)();
|
|
13
|
-
|
|
13
|
+
const { features } = (0, context_1.useContactFormConfig)();
|
|
14
|
+
const includeCustomerNumberAndPurchasePlatform = features?.includeCustomerNumberAndPurchasePlatformInAppTicketRefund;
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.ticketing.refund.appTicketRefund.label), children: [includeCustomerNumberAndPurchasePlatform && ((0, jsx_runtime_1.jsx)(components_1.Input, { id: "customerNumber", label: t(PageText.Contact.input.customerNumber.label), type: "text", name: "customerNumber", value: state.context.customerNumber || '', isRequired: true, errorMessage: state.context?.errorMessages['customerNumber']?.[0], onChange: (e) => send({
|
|
16
|
+
type: 'ON_INPUT_CHANGE',
|
|
17
|
+
inputName: 'customerNumber',
|
|
18
|
+
value: e.target.value,
|
|
19
|
+
}), modalContent: {
|
|
20
|
+
description: t(PageText.Contact.input.customerNumber.description),
|
|
21
|
+
} })), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "orderId", label: t(PageText.Contact.input.orderId.label(true)), type: "text", name: "orderId", value: state.context.orderId || '', isRequired: true, errorMessage: state.context?.errorMessages['orderId']?.[0], onChange: (e) => send({
|
|
14
22
|
type: 'ON_INPUT_CHANGE',
|
|
15
23
|
inputName: 'orderId',
|
|
16
24
|
value: e.target.value,
|
|
17
|
-
})
|
|
25
|
+
}), modalContent: {
|
|
26
|
+
description: t(PageText.Contact.input.orderId.description),
|
|
27
|
+
bulletPoints: PageText.Contact.input.orderId.descriptionBulletPoints.map((bulletPoint) => t(bulletPoint)),
|
|
28
|
+
} }), includeCustomerNumberAndPurchasePlatform && ((0, jsx_runtime_1.jsx)(components_1.Select, { id: "purchasePlatform", label: t(PageText.Contact.input.purchasePlatform.label), value: state.context.purchasePlatform || '', onChange: (value) => send({
|
|
29
|
+
type: 'ON_PURCHASE_PLATFORM_CHANGE',
|
|
30
|
+
value: value,
|
|
31
|
+
}), isRequired: true, error: state.context?.errorMessages['purchasePlatform']?.[0]
|
|
32
|
+
? t(state.context?.errorMessages['purchasePlatform']?.[0])
|
|
33
|
+
: undefined, valueToId: (val) => val, valueToText: (val) => t(PageText.Contact.input.purchasePlatform.platforms[val]), options: ['enturApp', 'enturWeb', 'framApp', 'framWeb'], placeholder: t(PageText.Contact.input.purchasePlatform.optionLabel) })), (0, jsx_runtime_1.jsx)(components_1.Textarea, { id: "refundReason", description: t(PageText.Contact.input.refundReason.question), value: state.context.refundReason || '', isRequired: true, onChange: (e) => send({
|
|
18
34
|
type: 'ON_INPUT_CHANGE',
|
|
19
35
|
inputName: 'refundReason',
|
|
20
36
|
value: e.target.value,
|
|
@@ -5,6 +5,6 @@ type RefundTicketFormsProps = {
|
|
|
5
5
|
state: StateFrom<typeof refundStateMachine>;
|
|
6
6
|
send: (event: typeof RefundFormEvents) => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const RefundTicketForms: ({ state, send }: RefundTicketFormsProps) => import("react
|
|
8
|
+
export declare const RefundTicketForms: ({ state, send }: RefundTicketFormsProps) => import("react").JSX.Element;
|
|
9
9
|
export default RefundTicketForms;
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAUnC,OAAO,EAAE,kBAAkB,EAAoB,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIhD,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAUnC,OAAO,EAAE,kBAAkB,EAAoB,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIhD,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,sBAAsB,gCAkIxE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -26,7 +26,7 @@ const RefundTicketForms = ({ state, send }) => {
|
|
|
26
26
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Fieldset, { title: t(PageText.Contact.ticketing.refund.initialAgreement
|
|
27
27
|
.ticketRefundAvailability.title), children: (0, jsx_runtime_1.jsx)("ul", { className: contact_module_css_1.default.rules__list, children: PageText.Contact.ticketing.refund.initialAgreement.ticketRefundAvailability.rules.map((rule, index) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(rule) }) }, index))) }) }), (0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.ticketing.refund.initialAgreement
|
|
28
28
|
.refundableTicketTypes.title), children: [(0, jsx_runtime_1.jsx)("ul", { className: contact_module_css_1.default.rules__list, children: refundableTicketTypes.rules.map((rule, index) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(rule) }) }, index))) }), (0, jsx_runtime_1.jsxs)(typography_1.Typo.p, { textType: "body__m", children: [t(PageText.Contact.ticketing.refund.initialAgreement
|
|
29
|
-
.refundableTicketTypes.info.text), ' ', (0, jsx_runtime_1.jsx)(link_1.default, {
|
|
29
|
+
.refundableTicketTypes.info.text), ' ', (0, jsx_runtime_1.jsx)(link_1.default, { href: '?type=refundAndTravelGuarantee&agreed=true', target: "_blank", rel: "noopener noreferrer", children: t(PageText.Contact.ticketing.refund.initialAgreement
|
|
30
30
|
.refundableTicketTypes.info.link) })] }), t(refundableTicketTypes.info.note) && ((0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(refundableTicketTypes.info.note) })), nonRefundableTicketTypes.rules.length > 0 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "heading__m", children: t(nonRefundableTicketTypes.title) }), (0, jsx_runtime_1.jsx)("ul", { className: contact_module_css_1.default.rules__list, children: nonRefundableTicketTypes.rules.map((rule, index) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(rule) }) }, index))) })] })), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { label: t(PageText.Contact.ticketing.refund.initialAgreement
|
|
31
31
|
.refundableTicketTypes.checkbox), checked: state.context.isInitialAgreementChecked, onChange: () => send({
|
|
32
32
|
type: 'ON_INPUT_CHANGE',
|
|
@@ -6,6 +6,6 @@ type OtherTicketRefundProps = {
|
|
|
6
6
|
};
|
|
7
7
|
send: (event: typeof RefundFormEvents) => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const OtherTicketRefund: ({ state, send }: OtherTicketRefundProps) => import("react
|
|
9
|
+
export declare const OtherTicketRefund: ({ state, send }: OtherTicketRefundProps) => import("react").JSX.Element;
|
|
10
10
|
export default OtherTicketRefund;
|
|
11
11
|
//# sourceMappingURL=otherTicketRefund.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otherTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/otherTicketRefund.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAahD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAO7D,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;
|
|
1
|
+
{"version":3,"file":"otherTicketRefund.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/refund-ticket/otherTicketRefund.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAahD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAO7D,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE;QAAE,OAAO,EAAE,kBAAkB,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,gBAAgB,KAAK,IAAI,CAAC;CAChD,CAAC;AA0eF,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,sBAAsB,gCAWxE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -14,6 +14,8 @@ const RefundSection = ({ state, send }) => {
|
|
|
14
14
|
const { features } = (0, context_1.useContactFormConfig)();
|
|
15
15
|
const ticketTypeOptions = PageText.Contact.input.ticketType.options.filter((option) => option.id == types_1.TicketTypeId.SingleTicket ||
|
|
16
16
|
option.id == types_1.TicketTypeId.PeriodTicket);
|
|
17
|
+
const showTravelCardNumber = !state.context.includeOtherTicketTypeSelector ||
|
|
18
|
+
state.context.ticketType?.id === types_1.TicketTypeId.PeriodTicket;
|
|
17
19
|
return ((0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.ticketing.refund.otherTicketRefund.label), children: [state.context.includeOtherTicketTypeSelector && ((0, jsx_runtime_1.jsx)(components_1.Select, { id: "ticketType", label: t(PageText.Contact.input.ticketType.labelRefund), value: state.context.ticketType, valueToId: (option) => option.id, valueToText: (option) => t(option.name), onChange: (value) => {
|
|
18
20
|
if (!value)
|
|
19
21
|
return;
|
|
@@ -24,21 +26,31 @@ const RefundSection = ({ state, send }) => {
|
|
|
24
26
|
});
|
|
25
27
|
}, placeholder: t(PageText.Contact.input.ticketType.optionLabelRefund), options: ticketTypeOptions, isRequired: true, error: state.context?.errorMessages['ticketType']?.[0]
|
|
26
28
|
? t(state.context?.errorMessages['ticketType'][0])
|
|
27
|
-
: undefined })), (0, jsx_runtime_1.jsx)(components_1.Input, { id: "orderId", label: t(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({
|
|
29
|
+
: undefined })), features?.includeOrderIdAndAmountInOtherTicketRefund && ((0, jsx_runtime_1.jsx)(components_1.Input, { id: "orderId", label: t(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({
|
|
28
30
|
type: 'ON_INPUT_CHANGE',
|
|
29
31
|
inputName: 'orderId',
|
|
30
32
|
value: e.target.value,
|
|
31
|
-
})
|
|
33
|
+
}), modalContent: {
|
|
34
|
+
description: t(PageText.Contact.input.orderId.description),
|
|
35
|
+
instruction: t(PageText.Contact.input.orderId.instruction),
|
|
36
|
+
bulletPoints: PageText.Contact.input.orderId.descriptionBulletPoints.map((bulletPoint) => t(bulletPoint)),
|
|
37
|
+
} })), showTravelCardNumber && ((0, jsx_runtime_1.jsx)(components_1.Input, { id: "travelCardNumber", label: t(PageText.Contact.input.travelCardNumber.label), type: "text", name: "travelCardNumber", value: state.context.travelCardNumber || '', isRequired: true, errorMessage: state.context.errorMessages['travelCardNumber']?.[0], onChange: (e) => send({
|
|
32
38
|
type: 'ON_INPUT_CHANGE',
|
|
33
39
|
inputName: 'travelCardNumber',
|
|
34
40
|
value: e.target.value,
|
|
35
|
-
})
|
|
41
|
+
}), modalContent: {
|
|
42
|
+
description: t(PageText.Contact.input.travelCardNumber.info),
|
|
43
|
+
} })), features?.includeOrderIdAndAmountInOtherTicketRefund && ((0, jsx_runtime_1.jsx)(components_1.Input, { id: "amount", label: t(PageText.Contact.input.amount.info), type: "text", name: "amount", value: state.context.amount || '', isRequired: true, errorMessage: state.context?.errorMessages['amount']?.[0], onChange: (e) => send({
|
|
44
|
+
type: 'ON_INPUT_CHANGE',
|
|
45
|
+
inputName: 'amount',
|
|
46
|
+
value: e.target.value,
|
|
47
|
+
}) })), (0, jsx_runtime_1.jsx)(components_1.Textarea, { id: "refundReason", description: t(PageText.Contact.input.refundReason.question), value: state.context.refundReason || '', isRequired: true, onChange: (e) => send({
|
|
36
48
|
type: 'ON_INPUT_CHANGE',
|
|
37
49
|
inputName: 'refundReason',
|
|
38
50
|
value: e.target.value,
|
|
39
51
|
}), error: state.context.errorMessages['refundReason']?.[0]
|
|
40
52
|
? t(state.context.errorMessages['refundReason']?.[0])
|
|
41
|
-
: undefined }), features?.enableFileUploads && ((0, jsx_runtime_1.jsx)(components_1.FileInput, { id: "attachments", label: t(PageText.Contact.refund.refundTaxi.taxiReceipt.info), iconLabel: t(PageText.Contact.input.feedback.attachment.receipt), name: "attachments", onChange: (files) => {
|
|
53
|
+
: undefined }), features?.enableFileUploads && ((0, jsx_runtime_1.jsx)(components_1.FileInput, { id: "attachments", label: t(PageText.Contact.refund.refundTaxi.taxiReceipt.info), iconLabel: t(PageText.Contact.input.feedback.attachment.receipt), name: "attachments", isRequired: features?.enableRequiredAttachmentInOtherTicketRefund, onChange: (files) => {
|
|
42
54
|
send({
|
|
43
55
|
type: 'ON_INPUT_CHANGE',
|
|
44
56
|
inputName: 'attachments',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ResidualValueOnTravelCard: ({}: {}) => import("react
|
|
1
|
+
export declare const ResidualValueOnTravelCard: ({}: {}) => import("react").JSX.Element;
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/residualValueOnTravelCard/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/refund/forms/residualValueOnTravelCard/index.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB,GAAI,MAAE,gCAwC3C,CAAC"}
|
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ResidualValueOnTravelCard = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const contact_module_css_1 = __importDefault(require("../../../contact.module.css"));
|
|
9
8
|
const link_1 = __importDefault(require("next/link"));
|
|
10
9
|
const typography_1 = require("../../../components/typography");
|
|
11
10
|
const translations_1 = require("../../../translations");
|
|
@@ -13,7 +12,7 @@ const components_1 = require("../../../components");
|
|
|
13
12
|
const ResidualValueOnTravelCard = ({}) => {
|
|
14
13
|
const PageText = (0, translations_1.usePageText)();
|
|
15
14
|
const { t } = (0, translations_1.useTranslation)();
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(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, {
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(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(PageText.Contact.refund.residualValueOnTravelCard.link.href), target: "_blank", rel: "noopener noreferrer", children: t(PageText.Contact.refund.residualValueOnTravelCard.link.text) }) }), (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(PageText.Contact.refund.residualValueOnTravelCard
|
|
17
16
|
.monthlyPayoutDetails) }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m__strong", children: t(PageText.Contact.refund.residualValueOnTravelCard
|
|
18
17
|
.automatedProcessNotice.note) }), (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(PageText.Contact.refund.residualValueOnTravelCard
|
|
19
18
|
.automatedProcessNotice.text) })] })] }));
|
package/lib/refund/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/refund/index.tsx"],"names":[],"mappings":"AAgBA,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/refund/index.tsx"],"names":[],"mappings":"AAgBA,QAAA,MAAM,aAAa,mCA2IlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/lib/refund/index.js
CHANGED
|
@@ -33,12 +33,21 @@ const RefundContent = () => {
|
|
|
33
33
|
errorPath,
|
|
34
34
|
includeOtherTicketTypeSelector: features?.includeOtherTicketTypeSelector !== false,
|
|
35
35
|
includeRefundDepartureInfo: features?.includeRefundDepartureInfo === true,
|
|
36
|
+
includeCustomerNumberAndPurchasePlatformInAppTicketRefund: features?.includeCustomerNumberAndPurchasePlatformInAppTicketRefund ===
|
|
37
|
+
true,
|
|
38
|
+
includeOrderIdAndAmountInOtherTicketRefund: features?.includeOrderIdAndAmountInOtherTicketRefund === true,
|
|
39
|
+
enableFileUploads: features?.enableFileUploads === true,
|
|
40
|
+
enableRequiredAttachmentInOtherTicketRefund: features?.enableRequiredAttachmentInOtherTicketRefund === true,
|
|
36
41
|
}), [
|
|
37
42
|
apiConfig.onSubmit,
|
|
38
43
|
successPath,
|
|
39
44
|
errorPath,
|
|
40
45
|
features?.includeOtherTicketTypeSelector,
|
|
41
46
|
features?.includeRefundDepartureInfo,
|
|
47
|
+
features?.includeCustomerNumberAndPurchasePlatformInAppTicketRefund,
|
|
48
|
+
features?.includeOrderIdAndAmountInOtherTicketRefund,
|
|
49
|
+
features?.enableFileUploads,
|
|
50
|
+
features?.enableRequiredAttachmentInOtherTicketRefund,
|
|
42
51
|
]);
|
|
43
52
|
const [state, send] = (0, react_1.useMachine)(machine);
|
|
44
53
|
const displaySubmitButton = state.context.formType &&
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PurchasePlatformType, TransportModeType, ReasonForTransportFailure, TicketType } from '../types';
|
|
2
2
|
import { Line } from '../server/journey-planner/validators';
|
|
3
3
|
import { InputErrorMessages } from '../validation';
|
|
4
|
-
import type {
|
|
4
|
+
import type { FormSlug } from '../modules/config/types';
|
|
5
5
|
export declare enum FormCategory {
|
|
6
6
|
RefundOfTicket = "refundOfTicket",
|
|
7
7
|
RefundAndTravelGuarantee = "refundAndTravelGuarantee",
|
|
@@ -96,6 +96,10 @@ export type RefundContextProps = {
|
|
|
96
96
|
hasInternationalBankAccount: boolean;
|
|
97
97
|
includeOtherTicketTypeSelector: boolean;
|
|
98
98
|
includeRefundDepartureInfo: boolean;
|
|
99
|
+
includeCustomerNumberAndPurchasePlatformInAppTicketRefund: boolean;
|
|
100
|
+
includeOrderIdAndAmountInOtherTicketRefund: boolean;
|
|
101
|
+
enableFileUploads: boolean;
|
|
102
|
+
enableRequiredAttachmentInOtherTicketRefund: boolean;
|
|
99
103
|
errorMessages: InputErrorMessages;
|
|
100
104
|
firstIncorrectErrorMessage?: string;
|
|
101
105
|
hasSubmissionError?: boolean;
|
|
@@ -105,8 +109,12 @@ export type MachinePaths = {
|
|
|
105
109
|
errorPath: string;
|
|
106
110
|
includeOtherTicketTypeSelector?: boolean;
|
|
107
111
|
includeRefundDepartureInfo?: boolean;
|
|
112
|
+
includeCustomerNumberAndPurchasePlatformInAppTicketRefund?: boolean;
|
|
113
|
+
includeOrderIdAndAmountInOtherTicketRefund?: boolean;
|
|
114
|
+
enableFileUploads?: boolean;
|
|
115
|
+
enableRequiredAttachmentInOtherTicketRefund?: boolean;
|
|
108
116
|
};
|
|
109
|
-
export declare function createRefundStateMachine(onSubmit: (
|
|
117
|
+
export declare function createRefundStateMachine(onSubmit: (slug: FormSlug, state: Record<string, unknown>) => Promise<Response>, paths?: Partial<MachinePaths>): import("xstate").StateMachine<RefundContextProps, {
|
|
110
118
|
type: "ON_INPUT_CHANGE";
|
|
111
119
|
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" | "tripId" | "feedback" | "attachments" | "isInitialAgreementChecked" | "hasInternationalBankAccount" | "showInputTravelCardNumber" | "bankCardDetails";
|
|
112
120
|
value: string | boolean | ReasonForTransportFailure | TicketType | Line["quays"][0] | File[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refundFormMachine.d.ts","sourceRoot":"","sources":["../../src/refund/refundFormMachine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,EACzB,UAAU,
|
|
1
|
+
{"version":3,"file":"refundFormMachine.d.ts","sourceRoot":"","sources":["../../src/refund/refundFormMachine.ts"],"names":[],"mappings":"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"}
|