@mrfylke/contact-form 0.1.11 → 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/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 +13 -7
- 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 +19 -16
- 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 +4 -3
- package/lib/lines/use-lines.d.ts.map +1 -1
- package/lib/lines/use-lines.js +43 -10
- 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 -9
- 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 -0
- package/lib/modules/config/types.d.ts +48 -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 +2 -2
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts.map +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.js +15 -8
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts.map +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.js +15 -8
- package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/appTicketRefund.js +46 -11
- package/lib/refund/forms/refund-ticket/index.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/index.js +8 -7
- package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/otherTicketRefund.js +53 -19
- 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 +96 -3
- 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/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 +28 -25
- package/lib/ticket-control/forms/feedbackForm.d.ts.map +1 -1
- package/lib/ticket-control/forms/feedbackForm.js +22 -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 +15 -6
- package/lib/ticket-control/ticket-control-form-machine.d.ts +14 -10
- package/lib/ticket-control/ticket-control-form-machine.d.ts.map +1 -1
- package/lib/ticket-control/ticket-control-form-machine.js +17 -2
- 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/pages/contact.d.ts +46 -0
- package/lib/translations/pages/contact.d.ts.map +1 -1
- package/lib/translations/pages/contact.js +50 -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 +19 -0
- package/lib/types/submit-payloads.d.ts.map +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 +7 -0
- package/package.json +1 -2
package/lib/ticketing/index.js
CHANGED
|
@@ -8,6 +8,7 @@ const contact_module_css_1 = __importDefault(require("../contact.module.css"));
|
|
|
8
8
|
const react_1 = require("@xstate/react");
|
|
9
9
|
const react_2 = require("react");
|
|
10
10
|
const ticketingStateMachine_1 = require("./ticketingStateMachine");
|
|
11
|
+
const url_form_type_1 = require("../url-form-type");
|
|
11
12
|
const components_1 = require("../components");
|
|
12
13
|
const priceAndTicketTypesForm_1 = __importDefault(require("./forms/priceAndTicketTypesForm"));
|
|
13
14
|
const app_1 = __importDefault(require("./forms/app"));
|
|
@@ -19,6 +20,7 @@ const button_1 = require("../components/button");
|
|
|
19
20
|
const config_1 = require("../modules/config");
|
|
20
21
|
const error_message_1 = __importDefault(require("../components/error-message/error-message"));
|
|
21
22
|
const TicketingContent = () => {
|
|
23
|
+
const PageText = (0, translations_1.usePageText)();
|
|
22
24
|
const { t } = (0, translations_1.useTranslation)();
|
|
23
25
|
const apiConfig = (0, config_1.useApiConfig)();
|
|
24
26
|
const { formSchemaOverrides, layout } = (0, config_1.useContactFormConfig)();
|
|
@@ -40,15 +42,28 @@ const TicketingContent = () => {
|
|
|
40
42
|
return allCategories;
|
|
41
43
|
return allCategories.filter((category) => override.includes(category));
|
|
42
44
|
}, [formSchemaOverrides]);
|
|
45
|
+
const enabledFormCategoriesRef = (0, react_2.useRef)(enabledFormCategories);
|
|
46
|
+
(0, react_2.useEffect)(() => {
|
|
47
|
+
const { type } = (0, url_form_type_1.readFormTypeParam)(enabledFormCategoriesRef.current);
|
|
48
|
+
if (type) {
|
|
49
|
+
send({
|
|
50
|
+
type: 'SELECT_FORM_CATEGORY',
|
|
51
|
+
formCategory: type,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}, [send]);
|
|
43
55
|
const onSubmit = async (e) => {
|
|
44
56
|
e.preventDefault();
|
|
45
57
|
send({ type: 'SUBMIT', orderedFormFieldNames: (0, utils_1.findOrderFormFields)(e) });
|
|
46
58
|
};
|
|
47
|
-
const additionalTicketingInfo =
|
|
48
|
-
.additionalTicketingInfo ? ((0, jsx_runtime_1.jsxs)("p", { children: [t(
|
|
49
|
-
return ((0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: contact_module_css_1.default.form, children: [(0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
59
|
+
const additionalTicketingInfo = PageText.Contact.ticketing
|
|
60
|
+
.additionalTicketingInfo ? ((0, jsx_runtime_1.jsxs)("p", { children: [t(PageText.Contact.ticketing.additionalTicketingInfo.detail), ' ', (0, jsx_runtime_1.jsx)("a", { href: t(PageText.Contact.ticketing.additionalTicketingInfo.href), children: t(PageText.Contact.ticketing.additionalTicketingInfo.linkText) }), "."] })) : null;
|
|
61
|
+
return ((0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: contact_module_css_1.default.form, children: [(0, jsx_runtime_1.jsxs)(components_1.Fieldset, { title: t(PageText.Contact.ticketing.title), children: [(0, jsx_runtime_1.jsx)("ul", { className: contact_module_css_1.default.form_options__list, children: enabledFormCategories.map((formCategory) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(components_1.Radio, { label: t(PageText.Contact.ticketing[formCategory].description), checked: state.matches({ editing: formCategory }), onChange: () => {
|
|
62
|
+
(0, url_form_type_1.setFormTypeParam)(formCategory);
|
|
63
|
+
send({
|
|
64
|
+
type: 'SELECT_FORM_CATEGORY',
|
|
65
|
+
formCategory: formCategory,
|
|
66
|
+
});
|
|
67
|
+
} }) }, formCategory))) }), additionalTicketingInfo] }), state.matches({ editing: 'priceAndTicketTypes' }) && ((0, jsx_runtime_1.jsx)(priceAndTicketTypesForm_1.default, { state: state, send: send })), state.matches({ editing: 'app' }) && ((0, jsx_runtime_1.jsx)(app_1.default, { state: state, send: send })), state.matches({ editing: 'webshop' }) && ((0, jsx_runtime_1.jsx)(webshop_1.default, { state: state, send: send })), state.matches({ editing: 'travelCard' }) && ((0, jsx_runtime_1.jsx)(travel_card_1.default, { state: state, send: send })), state.context.hasSubmissionError && ((0, jsx_runtime_1.jsx)(error_message_1.default, { message: t(PageText.Contact.error.info), id: "submission-error" })), displaySubmitButton && ((0, jsx_runtime_1.jsx)(button_1.Button, { title: t(PageText.Contact.submit), mode: 'interactive_0--bordered', buttonProps: { type: 'submit' }, state: state.matches('submitting') ? 'loading' : undefined, className: contact_module_css_1.default.submitButton }))] }));
|
|
53
68
|
};
|
|
54
69
|
exports.default = TicketingContent;
|
|
@@ -72,7 +72,7 @@ export declare function createTicketingStateMachine(onSubmit: (schemaName: FormS
|
|
|
72
72
|
type: "VALIDATE";
|
|
73
73
|
} | {
|
|
74
74
|
type: "ON_INPUT_CHANGE";
|
|
75
|
-
inputName: "address" | "attachments" | "bankAccountNumber" | "city" | "date" | "email" | "firstName" | "feedback" | "IBAN" | "lastName" | "phoneNumber" | "postalCode" | "SWIFT" | "toStop" | "fromStop" | "plannedDepartureTime";
|
|
75
|
+
inputName: "address" | "attachments" | "bankAccountNumber" | "city" | "date" | "email" | "firstName" | "feedback" | "IBAN" | "lastName" | "phoneNumber" | "postalCode" | "SWIFT" | "toStop" | "fromStop" | "plannedDepartureTime" | "tripId";
|
|
76
76
|
value: any;
|
|
77
77
|
} | {
|
|
78
78
|
type: "ON_TRANSPORTMODE_CHANGE";
|
|
@@ -109,6 +109,9 @@ export declare function createTicketingStateMachine(onSubmit: (schemaName: FormS
|
|
|
109
109
|
logic: import("xstate").PromiseActorLogic<true, SubmitInput, import("xstate").EventObject>;
|
|
110
110
|
id: string | undefined;
|
|
111
111
|
}, {
|
|
112
|
+
type: "onInputChange";
|
|
113
|
+
params: unknown;
|
|
114
|
+
} | {
|
|
112
115
|
type: "navigateToErrorPage";
|
|
113
116
|
params: unknown;
|
|
114
117
|
} | {
|
|
@@ -132,9 +135,6 @@ export declare function createTicketingStateMachine(onSubmit: (schemaName: FormS
|
|
|
132
135
|
} | {
|
|
133
136
|
type: "clearSubmissionError";
|
|
134
137
|
params: unknown;
|
|
135
|
-
} | {
|
|
136
|
-
type: "onInputChange";
|
|
137
|
-
params: unknown;
|
|
138
138
|
}, {
|
|
139
139
|
type: "isFormValid";
|
|
140
140
|
params: unknown;
|
|
@@ -173,11 +173,11 @@ export declare function createTicketingStateMachine(onSubmit: (schemaName: FormS
|
|
|
173
173
|
params: unknown;
|
|
174
174
|
}, never, "success" | "formCategoryHandler" | "validating" | "submitting" | "appFormHandler" | "webshopFormHandler" | "travelCardFormHandler" | {
|
|
175
175
|
editing: "priceAndTicketTypes" | "selectFormCategory" | {
|
|
176
|
-
travelCard: "orderTravelCard" | "travelCardQuestion" | "selectTravelCardForm";
|
|
177
|
-
} | {
|
|
178
176
|
webshop: "webshopTicketing" | "webshopAccount" | "selectWebshopForm";
|
|
179
177
|
} | {
|
|
180
178
|
app: "appTicketing" | "appTravelSuggestion" | "appAccount" | "selectAppForm";
|
|
179
|
+
} | {
|
|
180
|
+
travelCard: "orderTravelCard" | "travelCardQuestion" | "selectTravelCardForm";
|
|
181
181
|
};
|
|
182
182
|
}, string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
183
183
|
id: "ticketingStateMachine";
|
|
@@ -255,7 +255,7 @@ export declare const ticketingStateMachine: import("xstate").StateMachine<Ticket
|
|
|
255
255
|
type: "VALIDATE";
|
|
256
256
|
} | {
|
|
257
257
|
type: "ON_INPUT_CHANGE";
|
|
258
|
-
inputName: "address" | "attachments" | "bankAccountNumber" | "city" | "date" | "email" | "firstName" | "feedback" | "IBAN" | "lastName" | "phoneNumber" | "postalCode" | "SWIFT" | "toStop" | "fromStop" | "plannedDepartureTime";
|
|
258
|
+
inputName: "address" | "attachments" | "bankAccountNumber" | "city" | "date" | "email" | "firstName" | "feedback" | "IBAN" | "lastName" | "phoneNumber" | "postalCode" | "SWIFT" | "toStop" | "fromStop" | "plannedDepartureTime" | "tripId";
|
|
259
259
|
value: any;
|
|
260
260
|
} | {
|
|
261
261
|
type: "ON_TRANSPORTMODE_CHANGE";
|
|
@@ -292,6 +292,9 @@ export declare const ticketingStateMachine: import("xstate").StateMachine<Ticket
|
|
|
292
292
|
logic: import("xstate").PromiseActorLogic<true, SubmitInput, import("xstate").EventObject>;
|
|
293
293
|
id: string | undefined;
|
|
294
294
|
}, {
|
|
295
|
+
type: "onInputChange";
|
|
296
|
+
params: unknown;
|
|
297
|
+
} | {
|
|
295
298
|
type: "navigateToErrorPage";
|
|
296
299
|
params: unknown;
|
|
297
300
|
} | {
|
|
@@ -315,9 +318,6 @@ export declare const ticketingStateMachine: import("xstate").StateMachine<Ticket
|
|
|
315
318
|
} | {
|
|
316
319
|
type: "clearSubmissionError";
|
|
317
320
|
params: unknown;
|
|
318
|
-
} | {
|
|
319
|
-
type: "onInputChange";
|
|
320
|
-
params: unknown;
|
|
321
321
|
}, {
|
|
322
322
|
type: "isFormValid";
|
|
323
323
|
params: unknown;
|
|
@@ -356,11 +356,11 @@ export declare const ticketingStateMachine: import("xstate").StateMachine<Ticket
|
|
|
356
356
|
params: unknown;
|
|
357
357
|
}, never, "success" | "formCategoryHandler" | "validating" | "submitting" | "appFormHandler" | "webshopFormHandler" | "travelCardFormHandler" | {
|
|
358
358
|
editing: "priceAndTicketTypes" | "selectFormCategory" | {
|
|
359
|
-
travelCard: "orderTravelCard" | "travelCardQuestion" | "selectTravelCardForm";
|
|
360
|
-
} | {
|
|
361
359
|
webshop: "webshopTicketing" | "webshopAccount" | "selectWebshopForm";
|
|
362
360
|
} | {
|
|
363
361
|
app: "appTicketing" | "appTravelSuggestion" | "appAccount" | "selectAppForm";
|
|
362
|
+
} | {
|
|
363
|
+
travelCard: "orderTravelCard" | "travelCardQuestion" | "selectTravelCardForm";
|
|
364
364
|
};
|
|
365
365
|
}, string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
366
366
|
id: "ticketingStateMachine";
|
|
@@ -4,7 +4,7 @@ export type { ContactFormTranslationsOverride } from './types';
|
|
|
4
4
|
export { default as AppLanguageProvider, useTranslation, useLanguageSettings, } from './language-context';
|
|
5
5
|
export { getTextForLanguage } from './utils';
|
|
6
6
|
export { jsonToTranslatedString, mergeTranslationOverrides, } from './merge-overrides';
|
|
7
|
-
export { useMergedTranslations } from './translations-context';
|
|
7
|
+
export { useMergedTranslations, usePageText } from './translations-context';
|
|
8
8
|
export { jsonTranslationsToOverride } from './json-to-override';
|
|
9
9
|
export { loadOrgTranslations } from './load-org-translations';
|
|
10
10
|
export type { JsonTranslationObject, JsonTranslationValue, } from './json-to-override';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/translations/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,uBAAuB,EACvB,YAAY,EACZ,WAAW,GACZ,MAAM,WAAW,CAAC;AAEnB,YAAY,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAE/D,OAAO,EACL,OAAO,IAAI,mBAAmB,EAC9B,cAAc,EACd,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EACL,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/translations/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,uBAAuB,EACvB,YAAY,EACZ,WAAW,GACZ,MAAM,WAAW,CAAC;AAEnB,YAAY,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAE/D,OAAO,EACL,OAAO,IAAI,mBAAmB,EAC9B,cAAc,EACd,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EACL,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EACV,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC"}
|
|
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.PageText = exports.ComponentText = exports.ServerText = exports.CommonText = exports.loadOrgTranslations = exports.jsonTranslationsToOverride = exports.useMergedTranslations = exports.mergeTranslationOverrides = exports.jsonToTranslatedString = exports.getTextForLanguage = exports.useLanguageSettings = exports.useTranslation = exports.AppLanguageProvider = exports.translation = exports.appLanguages = exports.DEFAULT_LANGUAGE_STRING = exports.DEFAULT_LANGUAGE = exports.Language = void 0;
|
|
39
|
+
exports.PageText = exports.ComponentText = exports.ServerText = exports.CommonText = exports.loadOrgTranslations = exports.jsonTranslationsToOverride = exports.usePageText = exports.useMergedTranslations = exports.mergeTranslationOverrides = exports.jsonToTranslatedString = exports.getTextForLanguage = exports.useLanguageSettings = exports.useTranslation = exports.AppLanguageProvider = exports.translation = exports.appLanguages = exports.DEFAULT_LANGUAGE_STRING = exports.DEFAULT_LANGUAGE = exports.Language = void 0;
|
|
40
40
|
var commons_1 = require("./commons");
|
|
41
41
|
Object.defineProperty(exports, "Language", { enumerable: true, get: function () { return commons_1.Language; } });
|
|
42
42
|
Object.defineProperty(exports, "DEFAULT_LANGUAGE", { enumerable: true, get: function () { return commons_1.DEFAULT_LANGUAGE; } });
|
|
@@ -54,6 +54,7 @@ Object.defineProperty(exports, "jsonToTranslatedString", { enumerable: true, get
|
|
|
54
54
|
Object.defineProperty(exports, "mergeTranslationOverrides", { enumerable: true, get: function () { return merge_overrides_1.mergeTranslationOverrides; } });
|
|
55
55
|
var translations_context_1 = require("./translations-context");
|
|
56
56
|
Object.defineProperty(exports, "useMergedTranslations", { enumerable: true, get: function () { return translations_context_1.useMergedTranslations; } });
|
|
57
|
+
Object.defineProperty(exports, "usePageText", { enumerable: true, get: function () { return translations_context_1.usePageText; } });
|
|
57
58
|
var json_to_override_1 = require("./json-to-override");
|
|
58
59
|
Object.defineProperty(exports, "jsonTranslationsToOverride", { enumerable: true, get: function () { return json_to_override_1.jsonTranslationsToOverride; } });
|
|
59
60
|
var load_org_translations_1 = require("./load-org-translations");
|
|
@@ -57,15 +57,21 @@ export declare const Contact: {
|
|
|
57
57
|
refundCar: {
|
|
58
58
|
label: import("../../translations/commons").TranslatedString;
|
|
59
59
|
};
|
|
60
|
+
feedbackAttachmentLabel: import("../../translations/commons").TranslatedString;
|
|
61
|
+
};
|
|
62
|
+
ticketBoughtOnBus: {
|
|
63
|
+
description: import("../../translations/commons").TranslatedString;
|
|
60
64
|
};
|
|
61
65
|
residualValueOnTravelCard: {
|
|
62
66
|
description: import("../../translations/commons").TranslatedString;
|
|
67
|
+
webshopRefundLabel: import("../../translations/commons").TranslatedString;
|
|
63
68
|
title: import("../../translations/commons").TranslatedString;
|
|
64
69
|
link: {
|
|
65
70
|
text: import("../../translations/commons").TranslatedString;
|
|
66
71
|
href: import("../../translations/commons").TranslatedString;
|
|
67
72
|
};
|
|
68
73
|
monthlyPayoutDetails: import("../../translations/commons").TranslatedString;
|
|
74
|
+
paymentWhen: import("../../translations/commons").TranslatedString;
|
|
69
75
|
automatedProcessNotice: {
|
|
70
76
|
note: import("../../translations/commons").TranslatedString;
|
|
71
77
|
text: import("../../translations/commons").TranslatedString;
|
|
@@ -176,6 +182,22 @@ export declare const Contact: {
|
|
|
176
182
|
url: import("../../translations/commons").TranslatedString;
|
|
177
183
|
};
|
|
178
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
|
+
};
|
|
179
201
|
ticketing: {
|
|
180
202
|
title: import("../../translations/commons").TranslatedString;
|
|
181
203
|
additionalTicketingInfo: {
|
|
@@ -238,6 +260,7 @@ export declare const Contact: {
|
|
|
238
260
|
info: {
|
|
239
261
|
text: import("../../translations/commons").TranslatedString;
|
|
240
262
|
link: import("../../translations/commons").TranslatedString;
|
|
263
|
+
note: import("../../translations/commons").TranslatedString;
|
|
241
264
|
};
|
|
242
265
|
checkbox: import("../../translations/commons").TranslatedString;
|
|
243
266
|
};
|
|
@@ -259,6 +282,8 @@ export declare const Contact: {
|
|
|
259
282
|
info: {
|
|
260
283
|
useTravelSearch: import("../../translations/commons").TranslatedString;
|
|
261
284
|
useTravelSearchLink: import("../../translations/commons").TranslatedString;
|
|
285
|
+
contactInfoPrefix: import("../../translations/commons").TranslatedString;
|
|
286
|
+
contactLinkText: import("../../translations/commons").TranslatedString;
|
|
262
287
|
};
|
|
263
288
|
input: {
|
|
264
289
|
question: {
|
|
@@ -270,6 +295,16 @@ export declare const Contact: {
|
|
|
270
295
|
};
|
|
271
296
|
lostAndFound: {
|
|
272
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
|
+
};
|
|
273
308
|
};
|
|
274
309
|
groupTravel: {
|
|
275
310
|
title: import("../../translations/commons").TranslatedString;
|
|
@@ -360,6 +395,7 @@ export declare const Contact: {
|
|
|
360
395
|
bus: import("../../translations/commons").TranslatedString;
|
|
361
396
|
expressboat: import("../../translations/commons").TranslatedString;
|
|
362
397
|
ferry: import("../../translations/commons").TranslatedString;
|
|
398
|
+
bestillingstransport: import("../../translations/commons").TranslatedString;
|
|
363
399
|
};
|
|
364
400
|
errorMessages: {
|
|
365
401
|
empty: import("../../translations/commons").TranslatedString;
|
|
@@ -422,6 +458,9 @@ export declare const Contact: {
|
|
|
422
458
|
};
|
|
423
459
|
plannedDepartureTime: {
|
|
424
460
|
label: import("../../translations/commons").TranslatedString;
|
|
461
|
+
optionLabel: import("../../translations/commons").TranslatedString;
|
|
462
|
+
loading: import("../../translations/commons").TranslatedString;
|
|
463
|
+
noOptions: import("../../translations/commons").TranslatedString;
|
|
425
464
|
errorMessages: {
|
|
426
465
|
empty: import("../../translations/commons").TranslatedString;
|
|
427
466
|
};
|
|
@@ -578,6 +617,13 @@ export declare const Contact: {
|
|
|
578
617
|
empty: import("../../translations/commons").TranslatedString;
|
|
579
618
|
};
|
|
580
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
|
+
};
|
|
581
627
|
};
|
|
582
628
|
success: {
|
|
583
629
|
title: 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;AAE9D,OAAO,EAAE,yBAAyB,EAAE,YAAY,EAAE,MAAM,aAAa,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;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,6 +302,7 @@ 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
|
},
|
|
@@ -301,6 +324,8 @@ const ContactInternal = {
|
|
|
301
324
|
info: {
|
|
302
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.'),
|
|
303
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'),
|
|
304
329
|
},
|
|
305
330
|
input: {
|
|
306
331
|
question: {
|
|
@@ -310,7 +335,19 @@ const ContactInternal = {
|
|
|
310
335
|
},
|
|
311
336
|
},
|
|
312
337
|
},
|
|
313
|
-
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
|
+
},
|
|
314
351
|
groupTravel: {
|
|
315
352
|
title: (0, commons_1.translation)('Gruppereise', 'Group travel', 'Gruppereise'),
|
|
316
353
|
description: {
|
|
@@ -400,6 +437,7 @@ const ContactInternal = {
|
|
|
400
437
|
bus: (0, commons_1.translation)('Buss', 'Bus', 'Buss'),
|
|
401
438
|
expressboat: (0, commons_1.translation)('Hurtigbåt', 'Express boat', 'Hurtigbåt'),
|
|
402
439
|
ferry: (0, commons_1.translation)('Ferge', 'Ferry', 'Ferje'),
|
|
440
|
+
bestillingstransport: (0, commons_1.translation)('Bestillingstransport', 'On-demand transport', 'Bestillingstransport'),
|
|
403
441
|
},
|
|
404
442
|
errorMessages: {
|
|
405
443
|
empty: (0, commons_1.translation)('Velg transportmiddel', 'Select transport mode', 'Vel transportmiddel'),
|
|
@@ -458,6 +496,9 @@ const ContactInternal = {
|
|
|
458
496
|
},
|
|
459
497
|
plannedDepartureTime: {
|
|
460
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'),
|
|
461
502
|
errorMessages: {
|
|
462
503
|
empty: (0, commons_1.translation)('Velg planlagt avgangstid', 'Select planned departure time', 'Vel avgangstid'),
|
|
463
504
|
},
|
|
@@ -527,7 +568,7 @@ const ContactInternal = {
|
|
|
527
568
|
},
|
|
528
569
|
},
|
|
529
570
|
feedback: {
|
|
530
|
-
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?'),
|
|
531
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)'),
|
|
532
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.'),
|
|
533
574
|
attachment: {
|
|
@@ -655,6 +696,13 @@ const ContactInternal = {
|
|
|
655
696
|
empty: (0, commons_1.translation)('Beløp mangler', 'Amount is missing', 'Beløp manglar'),
|
|
656
697
|
},
|
|
657
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
|
+
},
|
|
658
706
|
},
|
|
659
707
|
success: {
|
|
660
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
|
+
}
|
|
@@ -28,6 +28,7 @@ export interface TicketControlSubmitPayload {
|
|
|
28
28
|
toStop?: string;
|
|
29
29
|
dateOfTicketControl?: string;
|
|
30
30
|
timeOfTicketControl?: string;
|
|
31
|
+
tripId?: string;
|
|
31
32
|
invoiceNumber?: string;
|
|
32
33
|
attachments?: {
|
|
33
34
|
filename: string;
|
|
@@ -83,6 +84,7 @@ export interface MeansOfTransportSubmitPayload {
|
|
|
83
84
|
stop?: string;
|
|
84
85
|
date?: string;
|
|
85
86
|
departureTime?: string;
|
|
87
|
+
tripId?: string;
|
|
86
88
|
feedback?: string;
|
|
87
89
|
firstName?: string;
|
|
88
90
|
lastName?: string;
|
|
@@ -126,4 +128,21 @@ export interface JourneyInfoSubmitPayload {
|
|
|
126
128
|
body: string;
|
|
127
129
|
}[];
|
|
128
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;
|
|
147
|
+
}
|
|
129
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,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,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,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
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,CAAC;AAClD,OAAO,EAAY,gBAAgB,EAAE,MAAM,gBAAg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