@mrfylke/contact-form 0.1.23 → 0.1.25
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 +1 -11
- package/lib/ContactFormRoot.d.ts +2 -2
- package/lib/ContactFormRoot.d.ts.map +1 -1
- package/lib/ContactFormRoot.js +2 -1
- 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 +2 -2
- package/lib/components/external-link-page.d.ts.map +1 -1
- package/lib/components/external-link-page.js +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/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/index.d.ts +5 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -12
- 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 +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 -23
- package/lib/layouts/contact-page-layout.d.ts.map +1 -1
- package/lib/layouts/contact-page-layout.js +39 -90
- 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/index.d.ts +1 -1
- package/lib/lost-property/index.d.ts.map +1 -1
- package/lib/lost-property-external/index.d.ts +2 -0
- package/lib/lost-property-external/index.d.ts.map +1 -0
- package/lib/lost-property-external/index.js +17 -0
- 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/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/means-of-transport-form-machine.d.ts +22 -22
- package/lib/means-of-transport/means-of-transport-form-machine.d.ts.map +1 -1
- package/lib/modules/config/context.d.ts +5 -37
- package/lib/modules/config/context.d.ts.map +1 -1
- package/lib/modules/config/context.js +9 -51
- package/lib/modules/config/types.d.ts +79 -64
- package/lib/modules/config/types.d.ts.map +1 -1
- package/lib/modules/config/types.js +9 -0
- package/lib/modules/org-data/index.d.ts +2 -2
- package/lib/modules/org-data/index.js +2 -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/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/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/index.d.ts +1 -1
- package/lib/refund/forms/refund-ticket/index.d.ts.map +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 +1 -5
- package/lib/refund/forms/residualValueOnTravelCard/index.d.ts +1 -1
- package/lib/refund/forms/residualValueOnTravelCard/index.d.ts.map +1 -1
- package/lib/refund/index.d.ts +1 -1
- package/lib/refund/index.d.ts.map +1 -1
- package/lib/refund/refundFormMachine.d.ts +14 -14
- package/lib/refund/refundFormMachine.js +1 -1
- 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 +1 -0
- package/lib/server/index.d.ts.map +1 -1
- package/lib/server/index.js +3 -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/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/ticket-control-form-machine.d.ts +24 -22
- package/lib/ticket-control/ticket-control-form-machine.d.ts.map +1 -1
- package/lib/ticket-control/ticket-control-form-machine.js +4 -2
- 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/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 +8 -8
- package/lib/translations/common/layout.d.ts.map +1 -1
- package/lib/translations/common/layout.js +1 -29
- package/lib/translations/common/titles.d.ts.map +1 -1
- package/lib/translations/common/titles.js +2 -20
- package/lib/translations/json-to-override.d.ts.map +1 -1
- package/lib/translations/language-context.d.ts +3 -3
- package/lib/translations/language-context.d.ts.map +1 -1
- package/lib/translations/merge-overrides.d.ts +3 -3
- package/lib/translations/merge-overrides.js +3 -3
- package/lib/translations/pages/contact.d.ts +6 -16
- package/lib/translations/pages/contact.d.ts.map +1 -1
- package/lib/translations/pages/contact.js +7 -31
- package/lib/translations/server/endpoints.d.ts.map +1 -1
- package/lib/translations/server/endpoints.js +7 -83
- 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 -7
- 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/utils/typing.d.ts +32 -0
- package/lib/utils/typing.d.ts.map +1 -0
- package/lib/utils/typing.js +6 -0
- package/lib/utils.d.ts +0 -1
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +1 -5
- package/lib/validation/validationRules.d.ts.map +1 -1
- package/lib/validation/validationRules.js +7 -0
- package/package.json +42 -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
|
@@ -2,38 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Layout = void 0;
|
|
4
4
|
const commons_1 = require("../../translations/commons");
|
|
5
|
-
|
|
6
|
-
const LayoutInternal = {
|
|
5
|
+
exports.Layout = {
|
|
7
6
|
homeLink: (name) => (0, commons_1.translation)(`Gå til ${name}`, `Go to ${name}`, `Gå til ${name}`),
|
|
8
7
|
contactLink: (0, commons_1.translation)('Kontaktskjema', 'Contact form', 'Kontaktskjema'),
|
|
9
8
|
meta: {
|
|
10
9
|
defaultDescription: (0, commons_1.translation)('Finn rutetider, holdeplasser og tilbud for buss, trikk, båt og tog i Trøndelag med reiseplanleggeren.', 'Find timetables, stops and offers for bus, tram, boat and train in Trøndelag with the travel planner.', 'Finn rutetider, haldeplassar og tilbod for buss, trikk, båt og tog i Trøndelag med reiseplanleggaren.'),
|
|
11
10
|
},
|
|
12
11
|
};
|
|
13
|
-
exports.Layout = (0, utils_1.orgSpecificTranslations)(LayoutInternal, {
|
|
14
|
-
nfk: {
|
|
15
|
-
meta: {
|
|
16
|
-
defaultDescription: (0, commons_1.translation)('Finn rutetider, holdeplasser og tilbud for buss, båt og tog i Nordland med reiseplanleggeren.', 'Find timetables, stops and offers for bus, boat and train in Nordland with the travel planner.', 'Finn rutetider, haldeplassar og tilbod for buss, båt og tog i Nordland med reiseplanleggaren.'),
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
fram: {
|
|
20
|
-
meta: {
|
|
21
|
-
defaultDescription: (0, commons_1.translation)('Finn rutetider, holdeplasser, kaier og tilbud for buss, hurtigbåt og ferge i Møre og Romsdal med reiseplanleggeren.', 'Find timetables, stops and offers for bus, boat and ferry in Møre og Romsdal with the travel planner.', 'Finn rutetider, haldeplassar, kaier og tilbod for buss, hurtigbåt og ferje i Møre og Romsdal med reiseplanleggaren.'),
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
troms: {
|
|
25
|
-
meta: {
|
|
26
|
-
defaultDescription: (0, commons_1.translation)('Finn rutetider, holdeplasser, kaier og tilbud for buss, hurtigbåt og ferge i Troms med reiseplanleggeren.', 'Find timetables, stops and offers for bus, boat and ferry in Troms with the travel planner.', 'Finn rutetider, haldeplassar, kaier og tilbod for buss, hurtigbåt og ferje i Troms med reiseplanleggaren.'),
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
vkt: {
|
|
30
|
-
meta: {
|
|
31
|
-
defaultDescription: (0, commons_1.translation)('Finn rutetider, holdeplasser, kaier og tilbud for buss, hurtigbåt og ferge i Vestfold med reiseplanleggeren.', 'Find timetables, stops and offers for bus, boat and ferry in Vestfold with the travel planner.', 'Finn rutetider, haldeplassar, kaier og tilbod for buss, hurtigbåt og ferje i Vestfold med reiseplanleggaren.'),
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
farte: {
|
|
35
|
-
meta: {
|
|
36
|
-
defaultDescription: (0, commons_1.translation)('Finn rutetider, holdeplasser, kaier og tilbud for buss, hurtigbåt og ferge i Telemark med reiseplanleggeren.', 'Find timetables, stops and offers for bus, boat and ferry in Telemark with the travel planner.', 'Finn rutetider, haldeplassar, kaier og tilbod for buss, hurtigbåt og ferje i Telemark med reiseplanleggaren.'),
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"titles.d.ts","sourceRoot":"","sources":["../../../src/translations/common/titles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"titles.d.ts","sourceRoot":"","sources":["../../../src/translations/common/titles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;CAElB,CAAC"}
|
|
@@ -2,24 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Titles = void 0;
|
|
4
4
|
const commons_1 = require("../../translations/commons");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
siteTitle: (0, commons_1.translation)('AtB Reisesøk', 'AtB Travel Search', 'AtB Reisesøk'),
|
|
5
|
+
exports.Titles = {
|
|
6
|
+
siteTitle: (0, commons_1.translation)('Reisesøk', 'Travel Search', 'Reisesøk'),
|
|
8
7
|
};
|
|
9
|
-
exports.Titles = (0, utils_1.orgSpecificTranslations)(TitlesInternal, {
|
|
10
|
-
nfk: {
|
|
11
|
-
siteTitle: (0, commons_1.translation)('Reis Reisesøk', 'Reis Travel Search', 'Reis Reisesøk'),
|
|
12
|
-
},
|
|
13
|
-
fram: {
|
|
14
|
-
siteTitle: (0, commons_1.translation)('FRAM Reiseplanlegger', 'FRAM Travel Search', 'FRAM Reiseplanleggar'),
|
|
15
|
-
},
|
|
16
|
-
troms: {
|
|
17
|
-
siteTitle: (0, commons_1.translation)('Svipper Reisesøk', 'Svipper Travel Search', 'Svipper Reisesøk'),
|
|
18
|
-
},
|
|
19
|
-
vkt: {
|
|
20
|
-
siteTitle: (0, commons_1.translation)('Vestfold Kollektivtrafikk Reisesøk', 'Vestfold Kollektivtrafikk Travel Search', 'Vestfold Kollektivtrafikk Reisesøk'),
|
|
21
|
-
},
|
|
22
|
-
farte: {
|
|
23
|
-
siteTitle: (0, commons_1.translation)('Farte Reisesøk', 'Farte Travel Search', 'Farte Reisesøk'),
|
|
24
|
-
},
|
|
25
|
-
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-to-override.d.ts","sourceRoot":"","sources":["../../src/translations/json-to-override.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAG/D;;;GAGG;AACH,MAAM,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"json-to-override.d.ts","sourceRoot":"","sources":["../../src/translations/json-to-override.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAG/D;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAC9B,MAAM,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,qBAAqB,CAAC;AAE7E,MAAM,MAAM,qBAAqB,GAAG;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,GAAG,oBAAoB,EAAE,CAAC;CAC9D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,qBAAqB,GAC1B,+BAA+B,CAqEjC"}
|
|
@@ -18,13 +18,13 @@ type LanguageState = {
|
|
|
18
18
|
};
|
|
19
19
|
export type AppLanguageProviderProps = PropsWithChildren<{
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* Translation overrides for the contact form. Any key left unset falls
|
|
22
|
+
* back to the package's built-in default translations.
|
|
23
23
|
*/
|
|
24
24
|
overrides: ContactFormTranslationsOverride;
|
|
25
25
|
language: Language;
|
|
26
26
|
}>;
|
|
27
|
-
export default function AppLanguageProvider({ children, overrides, language, }: AppLanguageProviderProps): import("react
|
|
27
|
+
export default function AppLanguageProvider({ children, overrides, language, }: AppLanguageProviderProps): import("react").JSX.Element;
|
|
28
28
|
export declare function useLanguageSettings(): LanguageState;
|
|
29
29
|
/** Parses a raw Accept-Language header into the nearest supported Language. Use for SSR. */
|
|
30
30
|
export declare function getLocalesFromAcceptLanguage(headerStr: string): Language;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"language-context.d.ts","sourceRoot":"","sources":["../../src/translations/language-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkC,QAAQ,EAAE,MAAM,WAAW,CAAC;AAIrE,OAAO,EAEL,iBAAiB,EAIlB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAG/D,eAAO,MAAM,KAAK;;;;;;CAA+C,CAAC;AAElE,eAAO,MAAM,cAAc;;;CAAuB,CAAC;AAenD,K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@@ export declare function jsonToTranslatedString(json: {
|
|
|
13
13
|
nn?: string;
|
|
14
14
|
} | string): ReturnType<typeof translation> | string;
|
|
15
15
|
/**
|
|
16
|
-
* Merge translation overrides
|
|
17
|
-
*
|
|
18
|
-
* Returns merged versions of PageText, ComponentText, etc.
|
|
16
|
+
* Merge translation overrides onto the package's built-in translation
|
|
17
|
+
* modules. Any key omitted from `overrides` falls back to the package
|
|
18
|
+
* default. Returns merged versions of PageText, ComponentText, etc.
|
|
19
19
|
*/
|
|
20
20
|
export declare function mergeTranslationOverrides(overrides: ContactFormTranslationsOverride): {
|
|
21
21
|
PageText: typeof PageText;
|
|
@@ -107,9 +107,9 @@ function deepMergeTranslations(defaults, overrides) {
|
|
|
107
107
|
return result;
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
* Merge translation overrides
|
|
111
|
-
*
|
|
112
|
-
* Returns merged versions of PageText, ComponentText, etc.
|
|
110
|
+
* Merge translation overrides onto the package's built-in translation
|
|
111
|
+
* modules. Any key omitted from `overrides` falls back to the package
|
|
112
|
+
* default. Returns merged versions of PageText, ComponentText, etc.
|
|
113
113
|
*/
|
|
114
114
|
function mergeTranslationOverrides(overrides) {
|
|
115
115
|
// Since translations are required, we use them directly
|
|
@@ -182,22 +182,6 @@ export declare const Contact: {
|
|
|
182
182
|
url: import("../../translations/commons").TranslatedString;
|
|
183
183
|
};
|
|
184
184
|
};
|
|
185
|
-
skoleskyss: {
|
|
186
|
-
title: import("../../translations/commons").TranslatedString;
|
|
187
|
-
intro: {
|
|
188
|
-
before: import("../../translations/commons").TranslatedString;
|
|
189
|
-
between: import("../../translations/commons").TranslatedString;
|
|
190
|
-
after: import("../../translations/commons").TranslatedString;
|
|
191
|
-
};
|
|
192
|
-
grunnskole: {
|
|
193
|
-
linkText: import("../../translations/commons").TranslatedString;
|
|
194
|
-
href: import("../../translations/commons").TranslatedString;
|
|
195
|
-
};
|
|
196
|
-
videregaaende: {
|
|
197
|
-
linkText: import("../../translations/commons").TranslatedString;
|
|
198
|
-
href: import("../../translations/commons").TranslatedString;
|
|
199
|
-
};
|
|
200
|
-
};
|
|
201
185
|
ticketing: {
|
|
202
186
|
title: import("../../translations/commons").TranslatedString;
|
|
203
187
|
additionalTicketingInfo: {
|
|
@@ -455,6 +439,12 @@ export declare const Contact: {
|
|
|
455
439
|
empty: import("../../translations/commons").TranslatedString;
|
|
456
440
|
};
|
|
457
441
|
};
|
|
442
|
+
feeDate: {
|
|
443
|
+
label: import("../../translations/commons").TranslatedString;
|
|
444
|
+
errorMessages: {
|
|
445
|
+
empty: import("../../translations/commons").TranslatedString;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
458
448
|
};
|
|
459
449
|
plannedDepartureTime: {
|
|
460
450
|
label: import("../../translations/commons").TranslatedString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../src/translations/pages/contact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,CAAC,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../src/translations/pages/contact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,CAAC,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEtE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+wBG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA0dlC,yBAAyB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAgPF,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAyMd,MAAM;;;;yCASA,MAAM;;;;CAexC,CAAC"}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Contact = void 0;
|
|
4
4
|
const commons_1 = require("../../translations/commons");
|
|
5
|
-
const utils_1 = require("../utils");
|
|
6
5
|
const types_1 = require("../../types");
|
|
7
|
-
|
|
6
|
+
exports.Contact = {
|
|
8
7
|
pageTitle: (0, commons_1.translation)('Kontakt', 'Contact', 'Kontakt'),
|
|
9
8
|
contactPageLayout: {
|
|
10
9
|
title: (0, commons_1.translation)('Hva kan vi hjelpe deg med?', 'What can we help you with?', 'Kva kan vi hjelpe deg med?'),
|
|
@@ -211,22 +210,6 @@ const ContactInternal = {
|
|
|
211
210
|
url: (0, commons_1.translation)('https://frammr.no/hjelp-og-kontakt/hittegods/', 'https://frammr.no/hjelp-og-kontakt/hittegods/?sprak=3', 'https://frammr.no/hjelp-og-kontakt/hittegods/'),
|
|
212
211
|
},
|
|
213
212
|
},
|
|
214
|
-
skoleskyss: {
|
|
215
|
-
title: (0, commons_1.translation)('Skoleskyss', 'School transport', 'Skuleskyss'),
|
|
216
|
-
intro: {
|
|
217
|
-
before: (0, commons_1.translation)('', '', ''),
|
|
218
|
-
between: (0, commons_1.translation)('', '', ''),
|
|
219
|
-
after: (0, commons_1.translation)('', '', ''),
|
|
220
|
-
},
|
|
221
|
-
grunnskole: {
|
|
222
|
-
linkText: (0, commons_1.translation)('', '', ''),
|
|
223
|
-
href: (0, commons_1.translation)('', '', ''),
|
|
224
|
-
},
|
|
225
|
-
videregaaende: {
|
|
226
|
-
linkText: (0, commons_1.translation)('', '', ''),
|
|
227
|
-
href: (0, commons_1.translation)('', '', ''),
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
213
|
ticketing: {
|
|
231
214
|
title: (0, commons_1.translation)('Billetter og app', 'Tickets and app', 'Billettar og app'),
|
|
232
215
|
additionalTicketingInfo: {
|
|
@@ -493,6 +476,12 @@ const ContactInternal = {
|
|
|
493
476
|
empty: (0, commons_1.translation)('Oppgi dato for når billettkontrollen ble gjennomført', 'Please provide the date for when the ticket control was carried out.', 'Oppgi dato for når billettkontrollen blei gjennomført'),
|
|
494
477
|
},
|
|
495
478
|
},
|
|
479
|
+
feeDate: {
|
|
480
|
+
label: (0, commons_1.translation)('Dato', 'Date', 'Dato'),
|
|
481
|
+
errorMessages: {
|
|
482
|
+
empty: (0, commons_1.translation)('Oppgi dato for gebyret', 'Please provide the fee date', 'Oppgi dato for gebyret'),
|
|
483
|
+
},
|
|
484
|
+
},
|
|
496
485
|
},
|
|
497
486
|
plannedDepartureTime: {
|
|
498
487
|
label: (0, commons_1.translation)('Planlagt avgangstid', 'Planned departure time', 'Planlagd avgangstid'),
|
|
@@ -726,16 +715,3 @@ const ContactInternal = {
|
|
|
726
715
|
},
|
|
727
716
|
},
|
|
728
717
|
};
|
|
729
|
-
exports.Contact = (0, utils_1.orgSpecificTranslations)(ContactInternal, {
|
|
730
|
-
fram: {
|
|
731
|
-
ticketControl: {
|
|
732
|
-
feeComplaint: {
|
|
733
|
-
ticketStorage: {
|
|
734
|
-
app: {
|
|
735
|
-
title: (0, commons_1.translation)('Mobilapp (f.eks. FRAM, Entur)', 'Mobile app (e.g. FRAM, Entur)', 'Mobilapp (f.eks. FRAM, Entur)'),
|
|
736
|
-
},
|
|
737
|
-
},
|
|
738
|
-
},
|
|
739
|
-
},
|
|
740
|
-
},
|
|
741
|
-
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/translations/server/endpoints.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/translations/server/endpoints.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;8BAiBM,MAAM;;;;;;;;;;;6BA2BX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDA8Ge,MAAM;;;;;;;;;;;;;;;;;CA0CjD,CAAC"}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Endpoints = void 0;
|
|
4
4
|
const commons_1 = require("../../translations/commons");
|
|
5
|
-
|
|
6
|
-
const EndpointsInternal = {
|
|
5
|
+
exports.Endpoints = {
|
|
7
6
|
empty: (0, commons_1.translation)('', '', ''),
|
|
8
|
-
resourceNotFound: (0, commons_1.translation)('Fant ikke
|
|
7
|
+
resourceNotFound: (0, commons_1.translation)('Fant ikke ressursen.', 'Resource not found.', 'Fann ikkje ressursen.'),
|
|
9
8
|
rateLimit: (0, commons_1.translation)('For mange forsøk. Prøv igjen senere.', 'Rate limit exceeded.', 'For mange forsøk. Prøv igjen seinare.'),
|
|
10
9
|
serverError: (0, commons_1.translation)('Ukjent feil med tjenesten.', 'Internal server error.', 'Ukjend feil med tenesta.'),
|
|
11
10
|
serverErrorGeneric: (err) => (0, commons_1.translation)(err, err, err),
|
|
@@ -27,16 +26,16 @@ const EndpointsInternal = {
|
|
|
27
26
|
missingAccount: (0, commons_1.translation)('Feil konto.', 'Wrong account.', 'Feil konto.'),
|
|
28
27
|
serverErrors: {
|
|
29
28
|
aliasExists: (0, commons_1.translation)('Du har alt en person med det kallenavnet.', 'Person with the alias already exists', 'Du har allereie ein person med det kallenamnet.'),
|
|
30
|
-
travelCardExists: (0, commons_1.translation)('
|
|
29
|
+
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registert hos nokon andre.'),
|
|
31
30
|
},
|
|
32
31
|
},
|
|
33
32
|
serverErrors: {
|
|
34
|
-
travelCardExists: (0, commons_1.translation)('
|
|
33
|
+
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registert hos nokon andre.'),
|
|
35
34
|
},
|
|
36
35
|
travelCard: {
|
|
37
|
-
missingId: (0, commons_1.translation)('Mangler
|
|
38
|
-
successAdd: (0, commons_1.translation)('Lagt til
|
|
39
|
-
successRemove: (0, commons_1.translation)('Fjernet
|
|
36
|
+
missingId: (0, commons_1.translation)('Mangler reisekort nummer.', 'Missing travelcard number.', 'Manglar reisekortnummer.'),
|
|
37
|
+
successAdd: (0, commons_1.translation)('Lagt til reisekort.', 'Travelcard added.', 'Reisekort lagt til.'),
|
|
38
|
+
successRemove: (0, commons_1.translation)('Fjernet reisekort.', 'Travelcard successfully removed.', 'Fjerna reisekort.'),
|
|
40
39
|
blocked: (0, commons_1.translation)('Reisekort er blokkert.', 'Travelcard is blocked.', 'Reisekort er blokkert.'),
|
|
41
40
|
notExist: (0, commons_1.translation)('Reisekort finnes ikke.', 'Travelcard does not exist.', 'Reisekort finst ikkje.'),
|
|
42
41
|
couldNotValidate: (0, commons_1.translation)('Kunne ikke validere reisekort.', 'Could not validate travelcard.', 'Kunne ikkje validere reisekort.'),
|
|
@@ -69,78 +68,3 @@ const EndpointsInternal = {
|
|
|
69
68
|
success: (0, commons_1.translation)('Opprettet profil.', 'Created profile.', 'Oppretta profil.'),
|
|
70
69
|
},
|
|
71
70
|
};
|
|
72
|
-
exports.Endpoints = (0, utils_1.orgSpecificTranslations)(EndpointsInternal, {
|
|
73
|
-
nfk: {
|
|
74
|
-
serverErrors: {
|
|
75
|
-
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
76
|
-
},
|
|
77
|
-
behalfOfOthers: {
|
|
78
|
-
serverErrors: {
|
|
79
|
-
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
travelCard: {
|
|
83
|
-
missingId: (0, commons_1.translation)('Mangler reisekort nummer.', 'Missing travelcard number.', 'Manglar reisekortnummer.'),
|
|
84
|
-
successAdd: (0, commons_1.translation)('Lagt til reisekort.', 'Travelcard added.', 'Reisekort lagt til.'),
|
|
85
|
-
successRemove: (0, commons_1.translation)('Fjernet reisekort.', 'Travelcard successfully removed.', 'Fjerna reisekort.'),
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
farte: {
|
|
89
|
-
serverErrors: {
|
|
90
|
-
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
91
|
-
},
|
|
92
|
-
behalfOfOthers: {
|
|
93
|
-
serverErrors: {
|
|
94
|
-
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
travelCard: {
|
|
98
|
-
missingId: (0, commons_1.translation)('Mangler reisekort nummer.', 'Missing travelcard number.', 'Manglar reisekortnummer.'),
|
|
99
|
-
successAdd: (0, commons_1.translation)('Lagt til reisekort.', 'Travelcard added.', 'Reisekort lagt til.'),
|
|
100
|
-
successRemove: (0, commons_1.translation)('Fjernet reisekort.', 'Travelcard successfully removed.', 'Fjerna reisekort.'),
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
vkt: {
|
|
104
|
-
serverErrors: {
|
|
105
|
-
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
106
|
-
},
|
|
107
|
-
behalfOfOthers: {
|
|
108
|
-
serverErrors: {
|
|
109
|
-
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
travelCard: {
|
|
113
|
-
missingId: (0, commons_1.translation)('Mangler reisekort nummer.', 'Missing travelcard number.', 'Manglar reisekortnummer.'),
|
|
114
|
-
successAdd: (0, commons_1.translation)('Lagt til reisekort.', 'Travelcard added.', 'Reisekort lagt til.'),
|
|
115
|
-
successRemove: (0, commons_1.translation)('Fjernet reisekort.', 'Travelcard successfully removed.', 'Fjerna reisekort.'),
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
fram: {
|
|
119
|
-
serverErrors: {
|
|
120
|
-
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
121
|
-
},
|
|
122
|
-
behalfOfOthers: {
|
|
123
|
-
serverErrors: {
|
|
124
|
-
travelCardExists: (0, commons_1.translation)('Reisekortet er registert hos noen andre.', 'Travelcard is already registered to another account.', 'Reisekortet er registrert hos nokon andre.'),
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
travelCard: {
|
|
128
|
-
missingId: (0, commons_1.translation)('Mangler reisekort nummer.', 'Missing travelcard number.', 'Manglar reisekortnummer.'),
|
|
129
|
-
successAdd: (0, commons_1.translation)('Lagt til reisekort.', 'Travelcard added.', 'Reisekort lagt til.'),
|
|
130
|
-
successRemove: (0, commons_1.translation)('Fjernet reisekort.', 'Travelcard successfully removed.', 'Fjerna reisekort.'),
|
|
131
|
-
},
|
|
132
|
-
consents: {
|
|
133
|
-
missingEmail: (0, commons_1.translation)('Du har ikke satt en e-post på brukeren din.', 'You need to specify e-mail in user settings.', 'Du har ikkje sett ein e-post på brukaren din.'),
|
|
134
|
-
},
|
|
135
|
-
updateProfile: {
|
|
136
|
-
missingProfileData: (0, commons_1.translation)('Mangelfull data sendt til oppdatering.', 'Invalid user data.', 'Mangelfull data sendt til oppdatering.'),
|
|
137
|
-
success: (0, commons_1.translation)('Oppdatert bruker.', 'Updated user.', 'Oppdatert brukar.'),
|
|
138
|
-
},
|
|
139
|
-
sendReceipt: {
|
|
140
|
-
missingEmail: (0, commons_1.translation)('Du har ikke satt en e-post på brukeren din.', 'You need to specify e-mail in user settings.', 'Du har ikkje sett ein e-post på brukaren din.'),
|
|
141
|
-
},
|
|
142
|
-
registerProfile: {
|
|
143
|
-
success: (0, commons_1.translation)('Opprettet bruker.', 'Created user.', 'Oppretta brukar.'),
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
});
|
|
@@ -5,7 +5,7 @@ type MergedTranslations = ReturnType<typeof mergeTranslationOverrides>;
|
|
|
5
5
|
export declare function TranslationsProvider({ overrides, children, }: {
|
|
6
6
|
overrides: ContactFormTranslationsOverride;
|
|
7
7
|
children: React.ReactNode;
|
|
8
|
-
}): import("react
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
9
|
export declare function useMergedTranslations(): MergedTranslations;
|
|
10
10
|
export declare function usePageText(): typeof PageText;
|
|
11
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations-context.d.ts","sourceRoot":"","sources":["../../src/translations/translations-context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AAEpC,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAIvE,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,+BAA+B,CAAC;IAC3C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B
|
|
1
|
+
{"version":3,"file":"translations-context.d.ts","sourceRoot":"","sources":["../../src/translations/translations-context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AAEpC,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAIvE,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,+BAA+B,CAAC;IAC3C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,+BAWA;AAED,wBAAgB,qBAAqB,IAAI,kBAAkB,CAS1D;AAED,wBAAgB,WAAW,IAAI,OAAO,QAAQ,CAG7C"}
|
|
@@ -4,13 +4,13 @@ import * as ComponentText from './components';
|
|
|
4
4
|
import * as CommonText from './common';
|
|
5
5
|
import * as ServerText from './server';
|
|
6
6
|
export declare enum LanguageAndTextLanguagesEnum {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
nob = "nob",
|
|
8
|
+
nno = "nno",
|
|
9
|
+
nn = "nn",
|
|
10
|
+
nor = "nor",
|
|
11
|
+
no = "no",
|
|
12
|
+
eng = "eng",
|
|
13
|
+
en = "en"
|
|
14
14
|
}
|
|
15
15
|
export declare const languageAndTextSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
16
16
|
lang: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/translations/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AAEvC,oBAAY,4BAA4B;IACtC,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/translations/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AAEvC,oBAAY,4BAA4B;IACtC,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,EAAE,OAAO;IACT,GAAG,QAAQ;IACX,EAAE,OAAO;IACT,GAAG,QAAQ;IACX,EAAE,OAAO;CACV;AAED,eAAO,MAAM,qBAAqB;;;;;;mBAShC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAExE;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;IAC/C,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,UAAU,CAAC,CAAC;IACxC,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,UAAU,CAAC,CAAC;CACzC,CAAC"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { Language } from './commons';
|
|
2
2
|
import { LanguageAndTextType } from './types';
|
|
3
|
-
export type WEBSHOP_ORGS = 'nfk' | 'atb' | 'fram' | 'troms' | 'vkt' | 'farte';
|
|
4
|
-
export type LanguageOverrides<T> = {
|
|
5
|
-
[P in keyof T]?: LanguageOverrides<T[P]>;
|
|
6
|
-
};
|
|
7
|
-
export declare function orgSpecificTranslations<T extends Record<string, any>>(translationTexts: T, overrides: Partial<{
|
|
8
|
-
[org in WEBSHOP_ORGS]: LanguageOverrides<T>;
|
|
9
|
-
}>, orgId?: WEBSHOP_ORGS): T;
|
|
10
3
|
/**
|
|
11
4
|
* Get the text in the requested language. If the requested translation isn't
|
|
12
5
|
* found, it will fall back to Bokmål/Norwegian. If no known translation is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/translations/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAgC,mBAAmB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/translations/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAgC,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE5E;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,mBAAmB,EAAE,GAAG,SAAS,EACxC,UAAU,QAAQ,KACjB,MAAM,GAAG,SA0BX,CAAC"}
|
|
@@ -1,34 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getTextForLanguage = void 0;
|
|
4
|
-
exports.orgSpecificTranslations = orgSpecificTranslations;
|
|
5
4
|
const commons_1 = require("./commons");
|
|
6
5
|
const types_1 = require("./types");
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Use configuration-based approach instead
|
|
9
|
-
*/
|
|
10
|
-
function deepMerge(target, source) {
|
|
11
|
-
const result = { ...target };
|
|
12
|
-
for (const key in source) {
|
|
13
|
-
if (source[key] &&
|
|
14
|
-
typeof source[key] === 'object' &&
|
|
15
|
-
!Array.isArray(source[key])) {
|
|
16
|
-
result[key] = deepMerge(result[key] || {}, source[key]);
|
|
17
|
-
}
|
|
18
|
-
else if (source[key] !== undefined) {
|
|
19
|
-
result[key] = source[key];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return result;
|
|
23
|
-
}
|
|
24
|
-
function orgSpecificTranslations(translationTexts, overrides, orgId) {
|
|
25
|
-
if (!orgId)
|
|
26
|
-
return translationTexts;
|
|
27
|
-
const orgOverride = overrides[orgId];
|
|
28
|
-
if (!orgOverride)
|
|
29
|
-
return translationTexts;
|
|
30
|
-
return deepMerge(translationTexts, orgOverride);
|
|
31
|
-
}
|
|
32
6
|
/**
|
|
33
7
|
* Get the text in the requested language. If the requested translation isn't
|
|
34
8
|
* found, it will fall back to Bokmål/Norwegian. If no known translation is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-payloads.d.ts","sourceRoot":"","sources":["../../src/types/submit-payloads.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM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EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACpD;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACpD;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
package/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,MAAM,iBAAiB,GAC3B,KAAK,GAAG,aAAa,GAAG,OAAO,GAAG,sBAAsB,CAAC;AAC3D,MAAM,MAAM,yBAAyB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,gBAAgB,CAAA;CAAE,CAAC;AAE/E,oBAAY,YAAY;IACtB,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,UAAU,eAAe;CAC1B;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,YAAY,CAAC;IACjB,IAAI,EAAE,gBAAgB,CAAC;CACxB,CAAC;AACF,MAAM,MAAM,oBAAoB,GAC9B,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generic, reusable type-level utilities for checking that a value contains
|
|
3
|
+
* at most one member from each of a set of mutually-exclusive groups.
|
|
4
|
+
*/
|
|
5
|
+
/** Identity type used only to check `T` against its constraint at declaration. */
|
|
6
|
+
export type AssertExtends<T extends TConstraint, TConstraint> = T;
|
|
7
|
+
/** Comma-joined, quoted list of a tuple's members, e.g. `'a', 'b', 'c'`. */
|
|
8
|
+
export type Join<T extends string[]> = T extends [
|
|
9
|
+
infer Head extends string,
|
|
10
|
+
...infer Rest extends string[]
|
|
11
|
+
] ? Rest extends [] ? `'${Head}'` : `'${Head}', ${Join<Rest>}` : '';
|
|
12
|
+
/**
|
|
13
|
+
* `never`, unless `T` contains more than one member of `TGroup` — then a
|
|
14
|
+
* string literal describing the conflict. `TGroup` may have any number of
|
|
15
|
+
* members (2 or more).
|
|
16
|
+
*/
|
|
17
|
+
export type GroupConflict<T extends string[], TGroup extends string[]> = {
|
|
18
|
+
[K in keyof TGroup]: TGroup[K] extends T[number] ? [Extract<Exclude<TGroup[number], TGroup[K]>, T[number]>] extends [never] ? never : `Cannot enable more than one of ${Join<TGroup>} — they share a slug, enable exactly one` : never;
|
|
19
|
+
}[number];
|
|
20
|
+
/** Union of every conflict message triggered by `T` across all `TGroups`. */
|
|
21
|
+
export type ConflictMessages<T extends string[], TGroups extends string[][]> = {
|
|
22
|
+
[K in keyof TGroups]: GroupConflict<T, TGroups[K]>;
|
|
23
|
+
}[number];
|
|
24
|
+
/**
|
|
25
|
+
* `T`, unless it violates one of `TGroups` — then the union of triggered
|
|
26
|
+
* conflict messages, which fails to match `T` and surfaces as a precise
|
|
27
|
+
* argument type error at the call site of whatever builder function uses it.
|
|
28
|
+
*/
|
|
29
|
+
export type CheckNoConflicts<T extends string[], TGroups extends string[][]> = [
|
|
30
|
+
ConflictMessages<T, TGroups>
|
|
31
|
+
] extends [never] ? T : ConflictMessages<T, TGroups>;
|
|
32
|
+
//# sourceMappingURL=typing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typing.d.ts","sourceRoot":"","sources":["../../src/utils/typing.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,kFAAkF;AAClF,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,WAAW,EAAE,WAAW,IAAI,CAAC,CAAC;AAElE,4EAA4E;AAC5E,MAAM,MAAM,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,CAAC,SAAS;IAC/C,MAAM,IAAI,SAAS,MAAM;IACzB,GAAG,MAAM,IAAI,SAAS,MAAM,EAAE;CAC/B,GACG,IAAI,SAAS,EAAE,GACb,IAAI,IAAI,GAAG,GACX,IAAI,IAAI,MAAM,IAAI,CAAC,IAAI,CAAC,EAAE,GAC5B,EAAE,CAAC;AAEP;;;;GAIG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,MAAM,SAAS,MAAM,EAAE,IAAI;KACtE,CAAC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,GAC5C,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GACtE,KAAK,GACL,kCAAkC,IAAI,CAAC,MAAM,CAAC,0CAA0C,GAC1F,KAAK;CACV,CAAC,MAAM,CAAC,CAAC;AAEV,6EAA6E;AAC7E,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,OAAO,SAAS,MAAM,EAAE,EAAE,IAAI;KAC5E,CAAC,IAAI,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CACnD,CAAC,MAAM,CAAC,CAAC;AAEV;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,OAAO,SAAS,MAAM,EAAE,EAAE,IAAI;IAC7E,gBAAgB,CAAC,CAAC,EAAE,OAAO,CAAC;CAC7B,SAAS,CAAC,KAAK,CAAC,GACb,CAAC,GACD,gBAAgB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC"}
|
package/lib/utils.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { FormEvent } from 'react';
|
|
|
4
4
|
import { InputErrorMessages } from './validation';
|
|
5
5
|
import { TranslatedString } from './translations';
|
|
6
6
|
export declare const getContactPageTitle: (subtitle?: TranslatedString) => TranslatedString[];
|
|
7
|
-
export declare const shouldShowContactPage: () => boolean;
|
|
8
7
|
export declare const convertFilesToBase64: (attachments: File[]) => Promise<{
|
|
9
8
|
filename: string;
|
|
10
9
|
body: string;
|
package/lib/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,C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I,IAAI,MAAM,GAAG,SAAS,KAAG,IA4BlE,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,YAAY,MAAM,EAAE,GAAG,SAAS,EAChC,QAAQ,kBAAkB,KACzB,MAAM,GAAG,SAQX,CAAC;AAEF,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAEtE"}
|
package/lib/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findFirstErrorMessage = exports.scrollToFirstErrorMessage = exports.findOrderFormFields = exports.setBankAccountStatusAndResetBankInformation = exports.setLineAndResetStops = exports.setTransportModeAndResetLineAndStops = exports.convertFilesToBase64 = exports.
|
|
3
|
+
exports.findFirstErrorMessage = exports.scrollToFirstErrorMessage = exports.findOrderFormFields = exports.setBankAccountStatusAndResetBankInformation = exports.setLineAndResetStops = exports.setTransportModeAndResetLineAndStops = exports.convertFilesToBase64 = exports.getContactPageTitle = void 0;
|
|
4
4
|
exports.getLineName = getLineName;
|
|
5
5
|
const translations_1 = require("./translations");
|
|
6
6
|
const getContactPageTitle = (subtitle) => {
|
|
@@ -9,10 +9,6 @@ const getContactPageTitle = (subtitle) => {
|
|
|
9
9
|
: [translations_1.PageText.Contact.pageTitle];
|
|
10
10
|
};
|
|
11
11
|
exports.getContactPageTitle = getContactPageTitle;
|
|
12
|
-
const shouldShowContactPage = () => {
|
|
13
|
-
return !!process.env.NEXT_PUBLIC_CONTACT_API_URL;
|
|
14
|
-
};
|
|
15
|
-
exports.shouldShowContactPage = shouldShowContactPage;
|
|
16
12
|
const convertFilesToBase64 = (attachments) => {
|
|
17
13
|
const filePromises = attachments.map((file) => {
|
|
18
14
|
return new Promise((resolve, reject) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validationRules.d.ts","sourceRoot":"","sources":["../../src/validation/validationRules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAyD7D,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC;IAClC,YAAY,EAAE,gBAAgB,CAAC;CAChC,CAAC;
|
|
1
|
+
{"version":3,"file":"validationRules.d.ts","sourceRoot":"","sources":["../../src/validation/validationRules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAyD7D,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC;IAClC,YAAY,EAAE,gBAAgB,CAAC;CAChC,CAAC;AAgYF,KAAK,kBAAkB,GAAG;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc,EAAE,CAAA;CAAE,CAAC;AAEpE,eAAO,MAAM,eAAe,EAAE,kBAyC7B,CAAC"}
|
|
@@ -175,6 +175,12 @@ const rulesDateOfTicketControl = [
|
|
|
175
175
|
errorMessage: translations_1.PageText.Contact.input.date.ticketControl.errorMessages.empty,
|
|
176
176
|
},
|
|
177
177
|
];
|
|
178
|
+
const rulesFeeDate = [
|
|
179
|
+
{
|
|
180
|
+
validate: isNonEmptyString,
|
|
181
|
+
errorMessage: translations_1.PageText.Contact.input.date.feeDate.errorMessages.empty,
|
|
182
|
+
},
|
|
183
|
+
];
|
|
178
184
|
const rulesTimeOfTicketControl = [
|
|
179
185
|
{
|
|
180
186
|
validate: isNonEmptyString,
|
|
@@ -382,6 +388,7 @@ exports.validationRules = {
|
|
|
382
388
|
plannedDepartureTime: rulesPlannedDepartureTime,
|
|
383
389
|
reasonForTransportFailure: rulesReasonForTransportFailure,
|
|
384
390
|
feeNumber: rulesFeeNumber,
|
|
391
|
+
feeDate: rulesFeeDate,
|
|
385
392
|
invoiceNumber: rulesInvoiceNumber,
|
|
386
393
|
feedback: rulesFeedback,
|
|
387
394
|
kilometersDriven: rulesKilometersDriven,
|