@mrfylke/contact-form 0.1.10 → 0.1.21
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 +393 -2
- package/lib/ContactFormRoot.d.ts +11 -1
- package/lib/ContactFormRoot.d.ts.map +1 -1
- package/lib/ContactFormRoot.js +2 -2
- package/lib/commoneEvents.d.ts +1 -1
- package/lib/commoneEvents.d.ts.map +1 -1
- package/lib/components/form/date-selector.d.ts.map +1 -1
- package/lib/components/form/date-selector.js +5 -4
- package/lib/components/form/departure-time-field.d.ts +16 -0
- package/lib/components/form/departure-time-field.d.ts.map +1 -0
- package/lib/components/form/departure-time-field.js +28 -0
- package/lib/components/form/description-modal.d.ts.map +1 -1
- package/lib/components/form/description-modal.js +2 -1
- package/lib/components/form/file-input.d.ts.map +1 -1
- package/lib/components/form/file-input.js +2 -1
- package/lib/components/form/index.d.ts +1 -0
- package/lib/components/form/index.d.ts.map +1 -1
- package/lib/components/form/index.js +3 -1
- package/lib/components/form/input.d.ts.map +1 -1
- package/lib/components/form/input.js +2 -1
- package/lib/components/form/searchable-select/utils.js +6 -1
- package/lib/components/index.d.ts +1 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +2 -1
- package/lib/contact.module.css +9 -0
- package/lib/error-content/error-content.d.ts.map +1 -1
- package/lib/error-content/error-content.js +2 -1
- package/lib/group-travel/index.d.ts.map +1 -1
- package/lib/group-travel/index.js +3 -1
- package/lib/index.d.ts +16 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +41 -1
- package/lib/journey-info/index.d.ts.map +1 -1
- package/lib/journey-info/index.js +14 -8
- package/lib/journey-info/journeyInfoStateMachine.d.ts +8 -8
- package/lib/layouts/contact-page-layout.d.ts +2 -2
- package/lib/layouts/contact-page-layout.d.ts.map +1 -1
- package/lib/layouts/contact-page-layout.js +29 -20
- package/lib/layouts/container.module.css +1 -1
- package/lib/layouts/layout.module.css +23 -2
- package/lib/lines/use-departures.d.ts +12 -0
- package/lib/lines/use-departures.d.ts.map +1 -0
- package/lib/lines/use-departures.js +35 -0
- package/lib/lines/use-lines.d.ts +5 -6
- package/lib/lines/use-lines.d.ts.map +1 -1
- package/lib/lines/use-lines.js +75 -42
- package/lib/lost-property/LostPropertyForm.d.ts +10 -0
- package/lib/lost-property/LostPropertyForm.d.ts.map +1 -0
- package/lib/lost-property/LostPropertyForm.js +65 -0
- package/lib/lost-property/LostPropertyMachine.d.ts +116 -0
- package/lib/lost-property/LostPropertyMachine.d.ts.map +1 -0
- package/lib/lost-property/LostPropertyMachine.js +187 -0
- package/lib/lost-property/index.d.ts.map +1 -1
- package/lib/lost-property/index.js +27 -3
- package/lib/means-of-transport/forms/delayForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/delayForm.js +26 -18
- package/lib/means-of-transport/forms/driverForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/driverForm.js +26 -18
- package/lib/means-of-transport/forms/injuryForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/injuryForm.js +26 -18
- package/lib/means-of-transport/forms/serviceOfferingForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/serviceOfferingForm.js +10 -10
- package/lib/means-of-transport/forms/stopForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/stopForm.js +13 -12
- package/lib/means-of-transport/forms/transportationForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/transportationForm.js +26 -18
- package/lib/means-of-transport/index.d.ts.map +1 -1
- package/lib/means-of-transport/index.js +13 -4
- package/lib/means-of-transport/means-of-transport-form-machine.d.ts +10 -8
- 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 +6 -1
- package/lib/modules/config/types.d.ts +56 -1
- package/lib/modules/config/types.d.ts.map +1 -1
- package/lib/refund/events.d.ts +1 -1
- package/lib/refund/events.d.ts.map +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 +7 -5
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts.map +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.js +39 -29
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts.map +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.js +37 -28
- package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/appTicketRefund.js +46 -25
- package/lib/refund/forms/refund-ticket/index.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/index.js +9 -6
- package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/otherTicketRefund.js +56 -30
- package/lib/refund/forms/residualValueOnTravelCard/index.d.ts.map +1 -1
- package/lib/refund/forms/residualValueOnTravelCard/index.js +5 -3
- package/lib/refund/index.d.ts.map +1 -1
- package/lib/refund/index.js +39 -6
- package/lib/refund/refundFormMachine.d.ts +37 -13
- package/lib/refund/refundFormMachine.d.ts.map +1 -1
- package/lib/refund/refundFormMachine.js +107 -11
- package/lib/server/journey-planner/index.d.ts.map +1 -1
- package/lib/server/journey-planner/index.js +15 -6
- package/lib/server/journey-planner/validators.d.ts +2 -0
- package/lib/server/journey-planner/validators.d.ts.map +1 -1
- package/lib/server/journey-planner/validators.js +1 -0
- package/lib/success-content/success-content.d.ts.map +1 -1
- package/lib/success-content/success-content.js +2 -1
- package/lib/test-utils/setup.d.ts +2 -0
- package/lib/test-utils/setup.d.ts.map +1 -0
- package/lib/test-utils/setup.js +3 -0
- 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.map +1 -1
- package/lib/ticket-control/forms/feeComplaintForm.js +39 -36
- package/lib/ticket-control/forms/feedbackForm.d.ts.map +1 -1
- package/lib/ticket-control/forms/feedbackForm.js +26 -14
- package/lib/ticket-control/forms/postponePayment.d.ts.map +1 -1
- package/lib/ticket-control/forms/postponePayment.js +8 -7
- package/lib/ticket-control/index.d.ts.map +1 -1
- package/lib/ticket-control/index.js +23 -8
- package/lib/ticket-control/ticket-control-form-machine.d.ts +19 -11
- package/lib/ticket-control/ticket-control-form-machine.d.ts.map +1 -1
- package/lib/ticket-control/ticket-control-form-machine.js +25 -5
- package/lib/ticketing/forms/app/appAccountForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appAccountForm.js +9 -8
- package/lib/ticketing/forms/app/appTicketingForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appTicketingForm.js +13 -12
- package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appTravelSuggestionForm.js +6 -5
- package/lib/ticketing/forms/app/index.d.ts.map +1 -1
- package/lib/ticketing/forms/app/index.js +2 -1
- package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts.map +1 -1
- package/lib/ticketing/forms/priceAndTicketTypesForm.js +6 -5
- package/lib/ticketing/forms/travel-card/index.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/index.js +2 -1
- package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/orderTravelCard.js +2 -2
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.js +9 -8
- package/lib/ticketing/forms/webshop/index.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/index.js +2 -1
- package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/webshopAccountForm.js +9 -8
- package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/webshopTicketingForm.js +12 -11
- package/lib/ticketing/index.d.ts.map +1 -1
- package/lib/ticketing/index.js +21 -6
- package/lib/ticketing/ticketingStateMachine.d.ts +12 -12
- package/lib/translations/index.d.ts +1 -1
- package/lib/translations/index.d.ts.map +1 -1
- package/lib/translations/index.js +2 -1
- package/lib/translations/merge-overrides.d.ts.map +1 -1
- package/lib/translations/merge-overrides.js +8 -1
- package/lib/translations/pages/contact.d.ts +61 -0
- package/lib/translations/pages/contact.d.ts.map +1 -1
- package/lib/translations/pages/contact.js +64 -2
- package/lib/translations/translations-context.d.ts +2 -0
- package/lib/translations/translations-context.d.ts.map +1 -1
- package/lib/translations/translations-context.js +39 -0
- package/lib/types/submit-payloads.d.ts +40 -11
- package/lib/types/submit-payloads.d.ts.map +1 -1
- package/lib/types/submit-payloads.js +1 -1
- package/lib/types.d.ts +1 -1
- package/lib/types.d.ts.map +1 -1
- package/lib/url-form-type.d.ts +6 -0
- package/lib/url-form-type.d.ts.map +1 -0
- package/lib/url-form-type.js +21 -0
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +10 -0
- package/lib/validation/validationRules.d.ts.map +1 -1
- package/lib/validation/validationRules.js +31 -0
- package/package.json +11 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { translation as _ } from '../../translations/commons';
|
|
1
2
|
import { ReasonForTransportFailure, TicketTypeId } from '../../types';
|
|
2
3
|
export declare const Contact: {
|
|
3
4
|
pageTitle: import("../../translations/commons").TranslatedString;
|
|
@@ -56,15 +57,21 @@ export declare const Contact: {
|
|
|
56
57
|
refundCar: {
|
|
57
58
|
label: import("../../translations/commons").TranslatedString;
|
|
58
59
|
};
|
|
60
|
+
feedbackAttachmentLabel: import("../../translations/commons").TranslatedString;
|
|
61
|
+
};
|
|
62
|
+
ticketBoughtOnBus: {
|
|
63
|
+
description: import("../../translations/commons").TranslatedString;
|
|
59
64
|
};
|
|
60
65
|
residualValueOnTravelCard: {
|
|
61
66
|
description: import("../../translations/commons").TranslatedString;
|
|
67
|
+
webshopRefundLabel: import("../../translations/commons").TranslatedString;
|
|
62
68
|
title: import("../../translations/commons").TranslatedString;
|
|
63
69
|
link: {
|
|
64
70
|
text: import("../../translations/commons").TranslatedString;
|
|
65
71
|
href: import("../../translations/commons").TranslatedString;
|
|
66
72
|
};
|
|
67
73
|
monthlyPayoutDetails: import("../../translations/commons").TranslatedString;
|
|
74
|
+
paymentWhen: import("../../translations/commons").TranslatedString;
|
|
68
75
|
automatedProcessNotice: {
|
|
69
76
|
note: import("../../translations/commons").TranslatedString;
|
|
70
77
|
text: import("../../translations/commons").TranslatedString;
|
|
@@ -175,6 +182,22 @@ export declare const Contact: {
|
|
|
175
182
|
url: import("../../translations/commons").TranslatedString;
|
|
176
183
|
};
|
|
177
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
|
+
};
|
|
178
201
|
ticketing: {
|
|
179
202
|
title: import("../../translations/commons").TranslatedString;
|
|
180
203
|
additionalTicketingInfo: {
|
|
@@ -237,9 +260,14 @@ export declare const Contact: {
|
|
|
237
260
|
info: {
|
|
238
261
|
text: import("../../translations/commons").TranslatedString;
|
|
239
262
|
link: import("../../translations/commons").TranslatedString;
|
|
263
|
+
note: import("../../translations/commons").TranslatedString;
|
|
240
264
|
};
|
|
241
265
|
checkbox: import("../../translations/commons").TranslatedString;
|
|
242
266
|
};
|
|
267
|
+
nonRefundableTicketTypes: {
|
|
268
|
+
title: import("../../translations/commons").TranslatedString;
|
|
269
|
+
rules: ReturnType<typeof _>[];
|
|
270
|
+
};
|
|
243
271
|
};
|
|
244
272
|
appTicketRefund: {
|
|
245
273
|
label: import("../../translations/commons").TranslatedString;
|
|
@@ -254,6 +282,8 @@ export declare const Contact: {
|
|
|
254
282
|
info: {
|
|
255
283
|
useTravelSearch: import("../../translations/commons").TranslatedString;
|
|
256
284
|
useTravelSearchLink: import("../../translations/commons").TranslatedString;
|
|
285
|
+
contactInfoPrefix: import("../../translations/commons").TranslatedString;
|
|
286
|
+
contactLinkText: import("../../translations/commons").TranslatedString;
|
|
257
287
|
};
|
|
258
288
|
input: {
|
|
259
289
|
question: {
|
|
@@ -265,6 +295,16 @@ export declare const Contact: {
|
|
|
265
295
|
};
|
|
266
296
|
lostAndFound: {
|
|
267
297
|
title: import("../../translations/commons").TranslatedString;
|
|
298
|
+
info: import("../../translations/commons").TranslatedString;
|
|
299
|
+
about: {
|
|
300
|
+
title: import("../../translations/commons").TranslatedString;
|
|
301
|
+
};
|
|
302
|
+
itemDescription: {
|
|
303
|
+
title: import("../../translations/commons").TranslatedString;
|
|
304
|
+
};
|
|
305
|
+
contactInfo: {
|
|
306
|
+
title: import("../../translations/commons").TranslatedString;
|
|
307
|
+
};
|
|
268
308
|
};
|
|
269
309
|
groupTravel: {
|
|
270
310
|
title: import("../../translations/commons").TranslatedString;
|
|
@@ -355,6 +395,7 @@ export declare const Contact: {
|
|
|
355
395
|
bus: import("../../translations/commons").TranslatedString;
|
|
356
396
|
expressboat: import("../../translations/commons").TranslatedString;
|
|
357
397
|
ferry: import("../../translations/commons").TranslatedString;
|
|
398
|
+
bestillingstransport: import("../../translations/commons").TranslatedString;
|
|
358
399
|
};
|
|
359
400
|
errorMessages: {
|
|
360
401
|
empty: import("../../translations/commons").TranslatedString;
|
|
@@ -417,6 +458,9 @@ export declare const Contact: {
|
|
|
417
458
|
};
|
|
418
459
|
plannedDepartureTime: {
|
|
419
460
|
label: import("../../translations/commons").TranslatedString;
|
|
461
|
+
optionLabel: import("../../translations/commons").TranslatedString;
|
|
462
|
+
loading: import("../../translations/commons").TranslatedString;
|
|
463
|
+
noOptions: import("../../translations/commons").TranslatedString;
|
|
420
464
|
errorMessages: {
|
|
421
465
|
empty: import("../../translations/commons").TranslatedString;
|
|
422
466
|
};
|
|
@@ -516,6 +560,16 @@ export declare const Contact: {
|
|
|
516
560
|
empty: import("../../translations/commons").TranslatedString;
|
|
517
561
|
};
|
|
518
562
|
};
|
|
563
|
+
referenceNumber: {
|
|
564
|
+
label: import("../../translations/commons").TranslatedString;
|
|
565
|
+
errorMessages: {
|
|
566
|
+
empty: import("../../translations/commons").TranslatedString;
|
|
567
|
+
invalidFormat: {
|
|
568
|
+
singleId: import("../../translations/commons").TranslatedString;
|
|
569
|
+
multipleIds: import("../../translations/commons").TranslatedString;
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
};
|
|
519
573
|
orderId: {
|
|
520
574
|
label: (expectsSingleOrderId: boolean) => import("../../translations/commons").TranslatedString;
|
|
521
575
|
description: import("../../translations/commons").TranslatedString;
|
|
@@ -563,6 +617,13 @@ export declare const Contact: {
|
|
|
563
617
|
empty: import("../../translations/commons").TranslatedString;
|
|
564
618
|
};
|
|
565
619
|
};
|
|
620
|
+
bankCardDetails: {
|
|
621
|
+
label: import("../../translations/commons").TranslatedString;
|
|
622
|
+
description: import("../../translations/commons").TranslatedString;
|
|
623
|
+
errorMessages: {
|
|
624
|
+
empty: import("../../translations/commons").TranslatedString;
|
|
625
|
+
};
|
|
626
|
+
};
|
|
566
627
|
};
|
|
567
628
|
success: {
|
|
568
629
|
title: import("../../translations/commons").TranslatedString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../src/translations/pages/contact.ts"],"names":[],"mappings":"
|
|
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;AAE9D,OAAO,EAAE,yBAAyB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAosDtE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAl6BG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA+clC,yBAAyB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAgPF,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAyMd,MAAM;;;;yCASA,MAAM;;;;CAiCvC,CAAC"}
|
|
@@ -70,15 +70,21 @@ const ContactInternal = {
|
|
|
70
70
|
refundCar: {
|
|
71
71
|
label: (0, commons_1.translation)('Jeg ønsker refusjon for bil', 'I would like refund for car', 'Eg ønsker refusjon for bil'),
|
|
72
72
|
},
|
|
73
|
+
feedbackAttachmentLabel: (0, commons_1.translation)('Last opp vedlegg', 'Upload attachments', 'Last opp vedlegg'),
|
|
74
|
+
},
|
|
75
|
+
ticketBoughtOnBus: {
|
|
76
|
+
description: (0, commons_1.translation)('Billett kjøpt på buss', 'Ticket bought on bus', 'Billett kjøpt på buss'),
|
|
73
77
|
},
|
|
74
78
|
residualValueOnTravelCard: {
|
|
75
79
|
description: (0, commons_1.translation)('Restverdi på reisekort (reisepenger)', 'Residual value on travel card (travel allowance)', 'Restverdi på reisekort (reisepengar)'),
|
|
80
|
+
webshopRefundLabel: (0, commons_1.translation)('Billett kjøpt i nettbutikk', 'Ticket purchased in webshop', 'Billett kjøpt i nettbutikk'),
|
|
76
81
|
title: (0, commons_1.translation)('Søk refusjon av restverdien på et reisekort', 'Apply for a refund of the residual value on a travel card', 'Søk refusjon av restverdien på eit reisekort'),
|
|
77
82
|
link: {
|
|
78
83
|
text: (0, commons_1.translation)('Skjema for refusjon av restverdien på et reisekort', 'Form for refund of residual value on a travel card', 'Skjema for refusjon av restverdien på eit reisekort'),
|
|
79
84
|
href: (0, commons_1.translation)('https://forms.office.com/Pages/ResponsePage.aspx?id=5-wyud-clE20wRUlbkPH6qGF2mFbrapOg9lnALAiJk9UMkROS0dORUdaTTZURzJHNFNSSVhVTzE4Ti4u', 'https://forms.office.com/Pages/ResponsePage.aspx?id=5-wyud-clE20wRUlbkPH6qGF2mFbrapOg9lnALAiJk9UMkROS0dORUdaTTZURzJHNFNSSVhVTzE4Ti4u', 'https://forms.office.com/Pages/ResponsePage.aspx?id=5-wyud-clE20wRUlbkPH6qGF2mFbrapOg9lnALAiJk9UMkROS0dORUdaTTZURzJHNFNSSVhVTzE4Ti4u'),
|
|
80
85
|
},
|
|
81
86
|
monthlyPayoutDetails: (0, commons_1.translation)('Restverdien blir betalt ut i slutten av hver måned (med forbehold). Hvis du har flere reisekort du vil ha refundert, må du sende inn ett skjema per reisekort.', 'The residual value is paid out at the end of each month (with reservations). If you have multiple travel cards that you want refunded, you must submit one form per travel card.', 'Restverdien blir betalt ut i slutten av kvar månad (med atterhald). Viss du har fleire reisekort du vil ha refundert, må du sende inn eitt skjema per reisekort.'),
|
|
87
|
+
paymentWhen: (0, commons_1.translation)('Du får tilbakebetalt det beløpet som gjenstår i kortet, minus et administrasjonsgebyr på 100,- kr. Beløpet må være satt inn i løpet av de tre siste årene.', 'You will be reimbursed the amount remaining on the card, minus an administration fee of NOK 100,-. The amount must have been deposited within the last three years.', 'Du får tilbakebetalt det beløpet som gjenstår i kortet, minus eit administrasjonsgebyr på 100,- kr. Beløpet må være satt inn i løpet av dei siste tre åra.'),
|
|
82
88
|
automatedProcessNotice: {
|
|
83
89
|
note: (0, commons_1.translation)('Merk!', 'Note!', 'Merk!'),
|
|
84
90
|
text: (0, commons_1.translation)('Dette skjemaet gjelder bare for refusjon av restverdi på reisekort. Det er en automatisert prosess som bare fungerer for denne typen refusjon.', 'This form only applies to refunds of residual value on travel cards. It is an automated process that only works for this type of refund.', 'Dette skjemaet gjeld berre for refusjon av restverdi på reisekort. Det er ein automatisert prosess som berre fungerar for denne typen refusjon.'),
|
|
@@ -205,6 +211,22 @@ const ContactInternal = {
|
|
|
205
211
|
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/'),
|
|
206
212
|
},
|
|
207
213
|
},
|
|
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
|
+
},
|
|
208
230
|
ticketing: {
|
|
209
231
|
title: (0, commons_1.translation)('Billetter og app', 'Tickets and app', 'Billettar og app'),
|
|
210
232
|
additionalTicketingInfo: {
|
|
@@ -280,9 +302,14 @@ const ContactInternal = {
|
|
|
280
302
|
info: {
|
|
281
303
|
text: (0, commons_1.translation)('Gjelder kravet reisegaranti, dvs refusjon for utgifter til andre transportmiddel fordi buss eller hurtigbåt ikke var i rute? Da skal du søke om', 'Does the claim apply to a travel guarantee, i.e. refund for expenses for other means of transport because the bus or express boat was not on schedule? Then you should not apply for', 'Gjeld kravet reisegaranti, dvs refusjon for utgifter til andre transportmiddel fordi buss eller hurtigbåt ikkje var i rute? Då skal du søke om'),
|
|
282
304
|
link: (0, commons_1.translation)('reisegaranti.', 'travel guarantee.', 'reisegaranti.'),
|
|
305
|
+
note: (0, commons_1.translation)('', '', ''),
|
|
283
306
|
},
|
|
284
307
|
checkbox: (0, commons_1.translation)('Jeg forstår', 'I understand', 'Eg forstår'),
|
|
285
308
|
},
|
|
309
|
+
nonRefundableTicketTypes: {
|
|
310
|
+
title: (0, commons_1.translation)('Vi refunderer IKKE disse billettypene:', 'We do NOT refund these ticket types:', 'Vi refunderer IKKJE desse billettypane:'),
|
|
311
|
+
rules: [],
|
|
312
|
+
},
|
|
286
313
|
},
|
|
287
314
|
appTicketRefund: {
|
|
288
315
|
label: (0, commons_1.translation)('Billett kjøpt i app eller nettbutikk', 'Ticket purchased in an app or webshop', 'Billett kjøpt i app eller nettbutikk'),
|
|
@@ -297,6 +324,8 @@ const ContactInternal = {
|
|
|
297
324
|
info: {
|
|
298
325
|
useTravelSearch: (0, commons_1.translation)('Du kan bruke reiseplanleggeren for å finne oppdatert ruteinformasjon om linjene, holdeplassene, tidene og annet.', 'You can use the journey planner to find updated route information about the lines, stops, times and other.', 'Du kan bruke reiseplanleggaren for å finne oppdatert ruteinformasjon om linjene, haldeplassene, tidene og anna.'),
|
|
299
326
|
useTravelSearchLink: (0, commons_1.translation)('Reiseplanlegger', 'Journey planner', 'Reiseplanleggar'),
|
|
327
|
+
contactInfoPrefix: (0, commons_1.translation)('', '', ''),
|
|
328
|
+
contactLinkText: (0, commons_1.translation)('Kontakt oss', 'Contact us', 'Kontakt oss'),
|
|
300
329
|
},
|
|
301
330
|
input: {
|
|
302
331
|
question: {
|
|
@@ -306,7 +335,19 @@ const ContactInternal = {
|
|
|
306
335
|
},
|
|
307
336
|
},
|
|
308
337
|
},
|
|
309
|
-
lostAndFound: {
|
|
338
|
+
lostAndFound: {
|
|
339
|
+
title: (0, commons_1.translation)('Hittegods', 'Lost and found', 'Hittegods'),
|
|
340
|
+
info: (0, commons_1.translation)('Vi har ikke et eget hittegods, men vi formidler gjerne din henvendelse videre til reisepersonalet og selskapet som var ansvarlig for reisen din. Fyll ut skjemaet, så tar de kontakt med deg direkte.', 'We do not have our own lost and found service, but we are happy to pass your enquiry on to the travel staff and company responsible for your journey. Fill in the form and they will contact you directly.', 'Vi har ikkje eit eige hittegods, men vi formidlar gjerne førespurnaden din vidare til reisepersonalet og selskapet som var ansvarleg for reisa di. Fyll ut skjemaet, så tek dei kontakt med deg direkte.'),
|
|
341
|
+
about: {
|
|
342
|
+
title: (0, commons_1.translation)('Om reisen', 'About the journey', 'Om reisa'),
|
|
343
|
+
},
|
|
344
|
+
itemDescription: {
|
|
345
|
+
title: (0, commons_1.translation)('Beskriv gjenstanden(e) du har mistet', 'Describe the item(s) you have lost', 'Beskriv gjenstanden(e) du har mist'),
|
|
346
|
+
},
|
|
347
|
+
contactInfo: {
|
|
348
|
+
title: (0, commons_1.translation)('Kontaktinformasjon', 'Contact information', 'Kontaktinformasjon'),
|
|
349
|
+
},
|
|
350
|
+
},
|
|
310
351
|
groupTravel: {
|
|
311
352
|
title: (0, commons_1.translation)('Gruppereise', 'Group travel', 'Gruppereise'),
|
|
312
353
|
description: {
|
|
@@ -396,6 +437,7 @@ const ContactInternal = {
|
|
|
396
437
|
bus: (0, commons_1.translation)('Buss', 'Bus', 'Buss'),
|
|
397
438
|
expressboat: (0, commons_1.translation)('Hurtigbåt', 'Express boat', 'Hurtigbåt'),
|
|
398
439
|
ferry: (0, commons_1.translation)('Ferge', 'Ferry', 'Ferje'),
|
|
440
|
+
bestillingstransport: (0, commons_1.translation)('Bestillingstransport', 'On-demand transport', 'Bestillingstransport'),
|
|
399
441
|
},
|
|
400
442
|
errorMessages: {
|
|
401
443
|
empty: (0, commons_1.translation)('Velg transportmiddel', 'Select transport mode', 'Vel transportmiddel'),
|
|
@@ -454,6 +496,9 @@ const ContactInternal = {
|
|
|
454
496
|
},
|
|
455
497
|
plannedDepartureTime: {
|
|
456
498
|
label: (0, commons_1.translation)('Planlagt avgangstid', 'Planned departure time', 'Planlagd avgangstid'),
|
|
499
|
+
optionLabel: (0, commons_1.translation)('Velg avgangstid', 'Select departure time', 'Vel avgangstid'),
|
|
500
|
+
loading: (0, commons_1.translation)('Henter avganger...', 'Loading departures...', 'Hentar avgangar...'),
|
|
501
|
+
noOptions: (0, commons_1.translation)('Ingen avganger funnet for valgt dato og stopp', 'No departures found for selected date and stop', 'Ingen avgangar funne for vald dato og stopp'),
|
|
457
502
|
errorMessages: {
|
|
458
503
|
empty: (0, commons_1.translation)('Velg planlagt avgangstid', 'Select planned departure time', 'Vel avgangstid'),
|
|
459
504
|
},
|
|
@@ -523,7 +568,7 @@ const ContactInternal = {
|
|
|
523
568
|
},
|
|
524
569
|
},
|
|
525
570
|
feedback: {
|
|
526
|
-
title: (0, commons_1.translation)('Hva vil du
|
|
571
|
+
title: (0, commons_1.translation)('Hva vil du fortelle oss?', 'What do you want to tell us?', 'Kva vil du fortelje oss?'),
|
|
527
572
|
optionalTitle: (0, commons_1.translation)('Ønsker du å fortelle oss noe mer? (valgfritt)', 'Do you wish to share anyting else with us? - (optional)', 'Ønsker du å fortelje oss noko meir? (valfritt)'),
|
|
528
573
|
description: (0, commons_1.translation)('Unngå å oppgi personlig informasjon som bankkortnummer eller helseopplysninger. Vi vil spørre deg senere om det er nødvendig.', 'Avoid providing personal information such as bank card numbers or health information. We will ask you later if it is necessary.', 'Unngå å oppgi personopplysningar som bankkortnummer eller helseopplysningar. Vi spør deg seinare viss det er nødvendig.'),
|
|
529
574
|
attachment: {
|
|
@@ -566,6 +611,16 @@ const ContactInternal = {
|
|
|
566
611
|
empty: (0, commons_1.translation)('Spørsmålet mangler', 'The question is missing', 'Spørsmålet manglar'),
|
|
567
612
|
},
|
|
568
613
|
},
|
|
614
|
+
referenceNumber: {
|
|
615
|
+
label: (0, commons_1.translation)('Referansenummer', 'Reference number', 'Referansenummer'),
|
|
616
|
+
errorMessages: {
|
|
617
|
+
empty: (0, commons_1.translation)('Referansenummer mangler', 'Reference number is missing', 'Referansenummer manglar'),
|
|
618
|
+
invalidFormat: {
|
|
619
|
+
singleId: (0, commons_1.translation)('Ugyldig referansenummer. Skriv inn en gyldig ID på 6 eller 8 tegn.', 'Invalid reference number. Please enter a valid ID of 6 or 8 characters.', 'Ugyldig referansenummer. Skriv inn ein gyldig ID på 6 eller 8 teikn.'),
|
|
620
|
+
multipleIds: (0, commons_1.translation)('En eller flere referansenumre ugyldige. En gyldig ID består av 6 eller 8 tegn.', 'One or more reference numbers are invalid. A valid ID consists of 6 or 8 characters.', 'Ein eller fleire referansenummer er ugyldige. Ein gyldig ID består av 6 eller 8 teikn.'),
|
|
621
|
+
},
|
|
622
|
+
},
|
|
623
|
+
},
|
|
569
624
|
orderId: {
|
|
570
625
|
label: (expectsSingleOrderId) => expectsSingleOrderId
|
|
571
626
|
? (0, commons_1.translation)('Ordre-id', 'Order ID', 'Ordre-id')
|
|
@@ -641,6 +696,13 @@ const ContactInternal = {
|
|
|
641
696
|
empty: (0, commons_1.translation)('Beløp mangler', 'Amount is missing', 'Beløp manglar'),
|
|
642
697
|
},
|
|
643
698
|
},
|
|
699
|
+
bankCardDetails: {
|
|
700
|
+
label: (0, commons_1.translation)('Fire siste siffer på bankkortet + utløpsdato på bankkortet du benyttet.', 'Last four digits of bank card + expiry date of the card you used.', 'Fire siste siffer på bankkortet + utløpsdato på bankkortet du nytta.'),
|
|
701
|
+
description: (0, commons_1.translation)('Her må du fylle ut siste 4 av de 16 sifrene i bankkortnummeret ditt + utløpsdato (DD/ÅÅ)', 'Enter the last 4 of the 16 digits of your bank card number + expiry date (DD/YY)', 'Her må du fylle ut siste 4 av dei 16 sifra i bankkortnummeret ditt + utløpsdato (DD/ÅÅ)'),
|
|
702
|
+
errorMessages: {
|
|
703
|
+
empty: (0, commons_1.translation)('Vennligst fyll ut kortinformasjon', 'Please fill in card information', 'Vennligst fyll ut kortinformasjon'),
|
|
704
|
+
},
|
|
705
|
+
},
|
|
644
706
|
},
|
|
645
707
|
success: {
|
|
646
708
|
title: (0, commons_1.translation)('Takk for din henvendelse', 'Thank you for your inquiry', 'Takk for din førespurnad'),
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { ContactFormTranslationsOverride } from './types';
|
|
2
2
|
import { mergeTranslationOverrides } from './merge-overrides';
|
|
3
|
+
import * as PageText from './pages';
|
|
3
4
|
type MergedTranslations = ReturnType<typeof mergeTranslationOverrides>;
|
|
4
5
|
export declare function TranslationsProvider({ overrides, children, }: {
|
|
5
6
|
overrides: ContactFormTranslationsOverride;
|
|
6
7
|
children: React.ReactNode;
|
|
7
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export declare function useMergedTranslations(): MergedTranslations;
|
|
10
|
+
export declare function usePageText(): typeof PageText;
|
|
9
11
|
export {};
|
|
10
12
|
//# sourceMappingURL=translations-context.d.ts.map
|
|
@@ -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;
|
|
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,2CAWA;AAED,wBAAgB,qBAAqB,IAAI,kBAAkB,CAS1D;AAED,wBAAgB,WAAW,IAAI,OAAO,QAAQ,CAG7C"}
|
|
@@ -1,10 +1,45 @@
|
|
|
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.TranslationsProvider = TranslationsProvider;
|
|
4
37
|
exports.useMergedTranslations = useMergedTranslations;
|
|
38
|
+
exports.usePageText = usePageText;
|
|
5
39
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
40
|
const react_1 = require("react");
|
|
7
41
|
const merge_overrides_1 = require("./merge-overrides");
|
|
42
|
+
const PageText = __importStar(require("./pages"));
|
|
8
43
|
const TranslationsContext = (0, react_1.createContext)(null);
|
|
9
44
|
function TranslationsProvider({ overrides, children, }) {
|
|
10
45
|
const merged = (0, react_1.useMemo)(() => (0, merge_overrides_1.mergeTranslationOverrides)(overrides), [overrides]);
|
|
@@ -18,3 +53,7 @@ function useMergedTranslations() {
|
|
|
18
53
|
}
|
|
19
54
|
return context;
|
|
20
55
|
}
|
|
56
|
+
function usePageText() {
|
|
57
|
+
const context = (0, react_1.useContext)(TranslationsContext);
|
|
58
|
+
return context ? context.PageText : PageText;
|
|
59
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared payload types for contact form submissions.
|
|
3
3
|
* API providers can use these types to understand the structure of incoming data.
|
|
4
|
-
* Attachments are
|
|
4
|
+
* Attachments are objects with a filename and a base64-encoded body.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* Payload for ticket control form submissions (fee complaint, feedback, postpone payment).
|
|
@@ -28,9 +28,12 @@ export interface TicketControlSubmitPayload {
|
|
|
28
28
|
toStop?: string;
|
|
29
29
|
dateOfTicketControl?: string;
|
|
30
30
|
timeOfTicketControl?: string;
|
|
31
|
+
tripId?: string;
|
|
31
32
|
invoiceNumber?: string;
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
attachments?: {
|
|
34
|
+
filename: string;
|
|
35
|
+
body: string;
|
|
36
|
+
}[];
|
|
34
37
|
}
|
|
35
38
|
/**
|
|
36
39
|
* Payload for refund form submissions.
|
|
@@ -64,8 +67,10 @@ export interface RefundSubmitPayload {
|
|
|
64
67
|
travelCardNumber?: string;
|
|
65
68
|
refundReason?: string;
|
|
66
69
|
purchasePlatform?: string;
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
attachments?: {
|
|
71
|
+
filename: string;
|
|
72
|
+
body: string;
|
|
73
|
+
}[];
|
|
69
74
|
}
|
|
70
75
|
/**
|
|
71
76
|
* Payload for means of transport form submissions (driver, transportation, delay, etc.).
|
|
@@ -79,13 +84,16 @@ export interface MeansOfTransportSubmitPayload {
|
|
|
79
84
|
stop?: string;
|
|
80
85
|
date?: string;
|
|
81
86
|
departureTime?: string;
|
|
87
|
+
tripId?: string;
|
|
82
88
|
feedback?: string;
|
|
83
89
|
firstName?: string;
|
|
84
90
|
lastName?: string;
|
|
85
91
|
email?: string;
|
|
86
92
|
isResponseWanted?: boolean;
|
|
87
|
-
|
|
88
|
-
|
|
93
|
+
attachments?: {
|
|
94
|
+
filename: string;
|
|
95
|
+
body: string;
|
|
96
|
+
}[];
|
|
89
97
|
}
|
|
90
98
|
/**
|
|
91
99
|
* Payload for ticketing form submissions.
|
|
@@ -102,8 +110,10 @@ export interface TicketingSubmitPayload {
|
|
|
102
110
|
customerNumber?: string;
|
|
103
111
|
travelCardNumber?: string;
|
|
104
112
|
ticketType?: object;
|
|
105
|
-
|
|
106
|
-
|
|
113
|
+
attachments?: {
|
|
114
|
+
filename: string;
|
|
115
|
+
body: string;
|
|
116
|
+
}[];
|
|
107
117
|
}
|
|
108
118
|
/**
|
|
109
119
|
* Payload for journey info form submissions.
|
|
@@ -113,7 +123,26 @@ export interface JourneyInfoSubmitPayload {
|
|
|
113
123
|
lastName?: string;
|
|
114
124
|
email?: string;
|
|
115
125
|
question?: string;
|
|
116
|
-
|
|
117
|
-
|
|
126
|
+
attachments?: {
|
|
127
|
+
filename: string;
|
|
128
|
+
body: string;
|
|
129
|
+
}[];
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Payload for lost property form submissions.
|
|
133
|
+
*/
|
|
134
|
+
export interface LostPropertySubmitPayload {
|
|
135
|
+
transportMode?: string;
|
|
136
|
+
line?: string;
|
|
137
|
+
fromStop?: string;
|
|
138
|
+
toStop?: string;
|
|
139
|
+
date?: string;
|
|
140
|
+
plannedDepartureTime?: string;
|
|
141
|
+
tripId?: string;
|
|
142
|
+
feedback?: string;
|
|
143
|
+
firstName?: string;
|
|
144
|
+
lastName?: string;
|
|
145
|
+
email?: string;
|
|
146
|
+
phoneNumber?: string;
|
|
118
147
|
}
|
|
119
148
|
//# sourceMappingURL=submit-payloads.d.ts.map
|
|
@@ -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,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,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,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,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"}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Shared payload types for contact form submissions.
|
|
4
4
|
* API providers can use these types to understand the structure of incoming data.
|
|
5
|
-
* Attachments are
|
|
5
|
+
* Attachments are objects with a filename and a base64-encoded body.
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/lib/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TranslatedString } from './translations';
|
|
2
|
-
export type TransportModeType = 'bus' | 'expressboat' | 'ferry';
|
|
2
|
+
export type TransportModeType = 'bus' | 'expressboat' | 'ferry' | 'bestillingstransport';
|
|
3
3
|
export type ReasonForTransportFailure = {
|
|
4
4
|
id: string;
|
|
5
5
|
name: TranslatedString;
|
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,GACzB,KAAK,GACL,aAAa,GACb,OAAO,GACP,sBAAsB,CAAC;AAC3B,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,GAC5B,SAAS,GACT,UAAU,GACV,SAAS,GACT,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-form-type.d.ts","sourceRoot":"","sources":["../src/url-form-type.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,GAAG;IACjE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;CACjB,CAQA;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAKnD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readFormTypeParam = readFormTypeParam;
|
|
4
|
+
exports.setFormTypeParam = setFormTypeParam;
|
|
5
|
+
function readFormTypeParam(validValues) {
|
|
6
|
+
if (typeof window === 'undefined')
|
|
7
|
+
return { type: null, agreed: false };
|
|
8
|
+
const params = new URLSearchParams(window.location.search);
|
|
9
|
+
const type = params.get('type');
|
|
10
|
+
return {
|
|
11
|
+
type: type && validValues.includes(type) ? type : null,
|
|
12
|
+
agreed: params.get('agreed') === 'true',
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function setFormTypeParam(type) {
|
|
16
|
+
if (typeof window === 'undefined')
|
|
17
|
+
return;
|
|
18
|
+
const params = new URLSearchParams(window.location.search);
|
|
19
|
+
params.set('type', type);
|
|
20
|
+
window.history.replaceState(null, '', `?${params.toString()}`);
|
|
21
|
+
}
|
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,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc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,6BAA6B,OAAO,QAUrC,CAAC;AAYF,eAAO,MAAM,mBAAmB,GAAI,GAAG,SAAS,CAAC,eAAe,CAAC,KAAG,MAAM,EAOpC,CAAC;AAEvC,eAAO,MAAM,yBAAyB,GAAI,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
|
@@ -40,12 +40,17 @@ const setTransportModeAndResetLineAndStops = (context, transporMode) => {
|
|
|
40
40
|
line: undefined,
|
|
41
41
|
fromStop: undefined,
|
|
42
42
|
toStop: undefined,
|
|
43
|
+
plannedDepartureTime: undefined,
|
|
44
|
+
timeOfTicketControl: undefined,
|
|
45
|
+
tripId: undefined,
|
|
43
46
|
errorMessages: {
|
|
44
47
|
...context.errorMessages,
|
|
45
48
|
transportMode: [],
|
|
46
49
|
line: [],
|
|
47
50
|
fromStop: [],
|
|
48
51
|
toStop: [],
|
|
52
|
+
plannedDepartureTime: [],
|
|
53
|
+
timeOfTicketControl: [],
|
|
49
54
|
},
|
|
50
55
|
};
|
|
51
56
|
};
|
|
@@ -56,11 +61,16 @@ const setLineAndResetStops = (context, line) => {
|
|
|
56
61
|
line: line,
|
|
57
62
|
fromStop: undefined,
|
|
58
63
|
toStop: undefined,
|
|
64
|
+
plannedDepartureTime: undefined,
|
|
65
|
+
timeOfTicketControl: undefined,
|
|
66
|
+
tripId: undefined,
|
|
59
67
|
errorMessages: {
|
|
60
68
|
...context.errorMessages,
|
|
61
69
|
line: [],
|
|
62
70
|
fromStop: [],
|
|
63
71
|
toStop: [],
|
|
72
|
+
plannedDepartureTime: [],
|
|
73
|
+
timeOfTicketControl: [],
|
|
64
74
|
},
|
|
65
75
|
};
|
|
66
76
|
};
|
|
@@ -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;AAyXF,KAAK,kBAAkB,GAAG;IAAE,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc,EAAE,CAAA;CAAE,CAAC;AAEpE,eAAO,MAAM,eAAe,EAAE,kBAwC7B,CAAC"}
|