@lysaab/lysa-pep 1.0.0-0 → 1.0.0
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 +0 -0
- package/lib/Exports.d.ts +8 -7
- package/lib/Exports.js +8 -7
- package/lib/components/CountrySelect.d.ts +22 -15
- package/lib/components/CountrySelect.js +21 -30
- package/lib/components/PepAnswers.d.ts +8 -8
- package/lib/components/PepAnswers.js +39 -131
- package/lib/components/PepAnswers.scss +0 -0
- package/lib/model/Countries.d.ts +4 -4
- package/lib/model/Countries.js +1002 -1002
- package/lib/model/PepModel.d.ts +7 -7
- package/lib/model/PepModel.js +40 -40
- package/lib/model/PepTexts.d.ts +380 -0
- package/lib/model/PepTexts.js +552 -0
- package/lib/pages/PepContext.d.ts +80 -80
- package/lib/pages/PepContext.js +88 -88
- package/lib/pages/PepIsPepPage.d.ts +15 -0
- package/lib/pages/PepIsPepPage.js +59 -0
- package/lib/pages/{StatusPage/StatusPage.d.ts → PepRelationPage.d.ts} +6 -6
- package/lib/pages/PepRelationPage.js +79 -0
- package/lib/pages/PepRolePage.d.ts +10 -0
- package/lib/pages/PepRolePage.js +127 -0
- package/lib/pages/{RelationPage/RelationPage.d.ts → PepStatusPage.d.ts} +6 -6
- package/lib/pages/PepStatusPage.js +58 -0
- package/package.json +10 -13
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -0
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -0
- package/public/robots.txt +0 -0
- package/src/App.css +0 -0
- package/src/App.test.tsx +0 -0
- package/src/App.tsx +0 -0
- package/src/Exports.ts +8 -7
- package/src/components/CountrySelect.tsx +10 -14
- package/src/components/PepAnswers.scss +0 -0
- package/src/components/PepAnswers.tsx +34 -166
- package/src/demo/Done.tsx +6 -2
- package/src/demo/Pep.tsx +81 -87
- package/src/index.css +0 -0
- package/src/index.tsx +0 -0
- package/src/logo.svg +0 -0
- package/src/model/Countries.ts +0 -0
- package/src/model/PepModel.ts +0 -0
- package/src/model/PepTexts.ts +607 -0
- package/src/pages/PepContext.tsx +0 -0
- package/src/pages/PepIsPepPage.tsx +107 -0
- package/src/pages/PepRelationPage.tsx +188 -0
- package/src/pages/PepRolePage.tsx +272 -0
- package/src/pages/PepStatusPage.tsx +157 -0
- package/src/react-app-env.d.ts +0 -0
- package/src/serviceWorker.ts +0 -0
- package/tsconfig.json +0 -0
- package/tsconfig_build.json +0 -0
- package/.vscode/settings.json +0 -3
- package/lib/pages/IsPep/IsPepMessages.d.ts +0 -32
- package/lib/pages/IsPep/IsPepMessages.js +0 -74
- package/lib/pages/IsPep/IsPepPage.d.ts +0 -14
- package/lib/pages/IsPep/IsPepPage.js +0 -39
- package/lib/pages/RelationPage/RelationMessages.d.ts +0 -105
- package/lib/pages/RelationPage/RelationMessages.js +0 -282
- package/lib/pages/RelationPage/RelationPage.js +0 -142
- package/lib/pages/RolePage/RoleMessages.d.ts +0 -185
- package/lib/pages/RolePage/RoleMessages.js +0 -381
- package/lib/pages/RolePage/RolePage.d.ts +0 -11
- package/lib/pages/RolePage/RolePage.js +0 -214
- package/lib/pages/StatusPage/StatusMessages.d.ts +0 -72
- package/lib/pages/StatusPage/StatusMessages.js +0 -74
- package/lib/pages/StatusPage/StatusPage.js +0 -75
- package/src/pages/IsPep/IsPepMessages.ts +0 -75
- package/src/pages/IsPep/IsPepPage.tsx +0 -94
- package/src/pages/RelationPage/RelationMessages.ts +0 -287
- package/src/pages/RelationPage/RelationPage.tsx +0 -269
- package/src/pages/RolePage/RoleMessages.ts +0 -389
- package/src/pages/RolePage/RolePage.tsx +0 -342
- package/src/pages/StatusPage/StatusMessages.ts +0 -80
- package/src/pages/StatusPage/StatusPage.tsx +0 -172
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from "react-intl";
|
|
2
|
-
import { PepStatus } from "../PepContext";
|
|
3
|
-
export const isOngoingMessages = defineMessages({
|
|
4
|
-
header: {
|
|
5
|
-
id: "pep.status.isongoing.header",
|
|
6
|
-
description: "Is ongoing header",
|
|
7
|
-
defaultMessage: "Är befattningen pågående eller avslutad?"
|
|
8
|
-
},
|
|
9
|
-
required: {
|
|
10
|
-
id: "pep.status.isongoing.required",
|
|
11
|
-
description: "Is ongoing required error",
|
|
12
|
-
defaultMessage: "Du måste välja ett alternativ"
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
export const endedMessages = defineMessages({
|
|
16
|
-
header: {
|
|
17
|
-
id: "pep.status.ended.header",
|
|
18
|
-
description: "When did it end header",
|
|
19
|
-
defaultMessage: "När avslutades uppdraget?"
|
|
20
|
-
},
|
|
21
|
-
required: {
|
|
22
|
-
id: "pep.status.ended.required",
|
|
23
|
-
description: "When did it end required error",
|
|
24
|
-
defaultMessage: "Du måste ange ett slutdatum"
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
export const isLocalCountryMessages = defineMessages({
|
|
28
|
-
header: {
|
|
29
|
-
id: "pep.status.localcountry.sweden.header",
|
|
30
|
-
description: "Is local country header",
|
|
31
|
-
defaultMessage: "I vilket land är befattningen?"
|
|
32
|
-
},
|
|
33
|
-
required: {
|
|
34
|
-
id: "pep.status.localcountry.required",
|
|
35
|
-
description: "Is local country required error",
|
|
36
|
-
defaultMessage: "Du måste välja ett alternativ"
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export const countrySelectionMessages = defineMessages({
|
|
40
|
-
header: {
|
|
41
|
-
id: "pep.status.countryselecton.header",
|
|
42
|
-
description: "Country selection header",
|
|
43
|
-
defaultMessage: "Välj i vilket land befattningen är"
|
|
44
|
-
},
|
|
45
|
-
required: {
|
|
46
|
-
id: "pep.status.countryselecton.required",
|
|
47
|
-
description: "Country selection required error",
|
|
48
|
-
defaultMessage: "Du måste välja land"
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
export const localCountryAltMessages = defineMessages({
|
|
52
|
-
localCountry: {
|
|
53
|
-
id: "pep.status.localcountryalt.required",
|
|
54
|
-
description: "Local country name",
|
|
55
|
-
defaultMessage: "Sverige"
|
|
56
|
-
},
|
|
57
|
-
otherCountry: {
|
|
58
|
-
id: "pep.status.localcountryalt.required",
|
|
59
|
-
description: "Other country",
|
|
60
|
-
defaultMessage: "Annat"
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
export const stateAltMessages = defineMessages({
|
|
64
|
-
[PepStatus.ONGOING]: {
|
|
65
|
-
id: "pep.status.state.ONGOING",
|
|
66
|
-
description: "Ongoing alt",
|
|
67
|
-
defaultMessage: "Pågående"
|
|
68
|
-
},
|
|
69
|
-
[PepStatus.ENDED]: {
|
|
70
|
-
id: "pep.status.state.ENDED",
|
|
71
|
-
description: "Ended alt",
|
|
72
|
-
defaultMessage: "Avslutad"
|
|
73
|
-
}
|
|
74
|
-
});
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import React, { useRef, useCallback, useContext } from "react";
|
|
2
|
-
import { Form, RadioGroup, RequiredValidator, PrimaryButton, Datepicker } from "@lysaab/ui-2";
|
|
3
|
-
import { PepContext, PepStatus } from "../PepContext";
|
|
4
|
-
import { CountrySelect } from "../../components/CountrySelect";
|
|
5
|
-
import { useIntl, FormattedMessage } from "react-intl";
|
|
6
|
-
import { isOngoingMessages, endedMessages, isLocalCountryMessages, countrySelectionMessages, localCountryAltMessages, stateAltMessages } from "./StatusMessages";
|
|
7
|
-
export const StatusPage = ({ next }) => {
|
|
8
|
-
const pepContext = useContext(PepContext);
|
|
9
|
-
const formRef = useRef();
|
|
10
|
-
const intl = useIntl();
|
|
11
|
-
const stateAlternatives = getStateAlternatives(intl);
|
|
12
|
-
const isSwedenAlternatives = getIsLocalCountryAlternatives(intl);
|
|
13
|
-
const nextPage = useCallback(() => {
|
|
14
|
-
if (formRef.current && formRef.current.isValid) {
|
|
15
|
-
next();
|
|
16
|
-
}
|
|
17
|
-
}, [formRef, next]);
|
|
18
|
-
const updateIsSweden = useCallback((alternative) => {
|
|
19
|
-
pepContext.setState({ isSweden: alternative.value });
|
|
20
|
-
if (alternative.value === "other") {
|
|
21
|
-
pepContext.setState({ country: undefined });
|
|
22
|
-
}
|
|
23
|
-
}, [pepContext]);
|
|
24
|
-
const updateIsOngoing = useCallback((alternative) => {
|
|
25
|
-
pepContext.setState({ isOngoing: alternative.value });
|
|
26
|
-
if (alternative.value === PepStatus.ONGOING) {
|
|
27
|
-
pepContext.setState({ ended: undefined });
|
|
28
|
-
}
|
|
29
|
-
}, [pepContext]);
|
|
30
|
-
return (React.createElement("div", null,
|
|
31
|
-
React.createElement(Form, { lysaFormRef: formRef, onSubmit: () => {
|
|
32
|
-
nextPage();
|
|
33
|
-
} },
|
|
34
|
-
React.createElement(RadioGroup, { alternatives: stateAlternatives, header: intl.formatMessage(isOngoingMessages.header), onChange: updateIsOngoing, value: stateAlternatives.find(alt => alt.value === pepContext.state.isOngoing), validators: [
|
|
35
|
-
RequiredValidator(intl.formatMessage(isOngoingMessages.required))
|
|
36
|
-
] }),
|
|
37
|
-
pepContext.state.isOngoing &&
|
|
38
|
-
pepContext.state.isOngoing === PepStatus.ENDED ? (React.createElement(Datepicker, { label: intl.formatMessage(endedMessages.header), selected: pepContext.state.ended, onChange: event => pepContext.setState({ ended: event || undefined }), validators: [
|
|
39
|
-
RequiredValidator(intl.formatMessage(isOngoingMessages.required))
|
|
40
|
-
], showMonthYearPicker: true, dateFormat: "yyyy-MM", maxDate: new Date() })) : null,
|
|
41
|
-
React.createElement(RadioGroup, { alternatives: isSwedenAlternatives, header: intl.formatMessage(isLocalCountryMessages.header), onChange: updateIsSweden, value: isSwedenAlternatives.find(alt => alt.value === pepContext.state.isSweden), validators: [
|
|
42
|
-
RequiredValidator(intl.formatMessage(isLocalCountryMessages.required))
|
|
43
|
-
] }),
|
|
44
|
-
pepContext.state.isSweden && pepContext.state.isSweden === "other" ? (React.createElement(CountrySelect, { label: intl.formatMessage(countrySelectionMessages.header), onChange: event => pepContext.setState({
|
|
45
|
-
country: event.value ? event.value.toString() : undefined
|
|
46
|
-
}), validators: [
|
|
47
|
-
RequiredValidator(intl.formatMessage(countrySelectionMessages.required))
|
|
48
|
-
], value: pepContext.state.country, omitCountries: ["SE"] })) : null,
|
|
49
|
-
React.createElement(PrimaryButton, { type: "submit" },
|
|
50
|
-
React.createElement(FormattedMessage, { id: "pep.status.next", description: "Next button", defaultMessage: "G\u00E5 vidare" })))));
|
|
51
|
-
};
|
|
52
|
-
function getIsLocalCountryAlternatives(intl) {
|
|
53
|
-
return [
|
|
54
|
-
{
|
|
55
|
-
text: intl.formatMessage(localCountryAltMessages.localCountry),
|
|
56
|
-
value: "sweden"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
text: intl.formatMessage(localCountryAltMessages.otherCountry),
|
|
60
|
-
value: "other"
|
|
61
|
-
}
|
|
62
|
-
];
|
|
63
|
-
}
|
|
64
|
-
function getStateAlternatives(intl) {
|
|
65
|
-
return [
|
|
66
|
-
{
|
|
67
|
-
text: intl.formatMessage(stateAltMessages[PepStatus.ONGOING]),
|
|
68
|
-
value: PepStatus.ONGOING
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
text: intl.formatMessage(stateAltMessages[PepStatus.ENDED]),
|
|
72
|
-
value: PepStatus.ENDED
|
|
73
|
-
}
|
|
74
|
-
];
|
|
75
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from "react-intl";
|
|
2
|
-
import { PepType } from "../PepContext";
|
|
3
|
-
|
|
4
|
-
export const messages = defineMessages({
|
|
5
|
-
header: {
|
|
6
|
-
id: 'pep.ispep.header',
|
|
7
|
-
description: 'Not pep',
|
|
8
|
-
defaultMessage: `{
|
|
9
|
-
entityType, select,
|
|
10
|
-
PERSON {
|
|
11
|
-
Är du eller en närstående till dig en person i politisk utsatt ställning? (PEP)
|
|
12
|
-
}
|
|
13
|
-
CORPORATION {
|
|
14
|
-
Är {name} eller en närstående till {name} en person i politisk utsatt ställning? (PEP)
|
|
15
|
-
}
|
|
16
|
-
}`
|
|
17
|
-
},
|
|
18
|
-
required: {
|
|
19
|
-
id: 'pep.ispep.header',
|
|
20
|
-
description: 'Not pep',
|
|
21
|
-
defaultMessage: `{
|
|
22
|
-
entityType, select,
|
|
23
|
-
PERSON {
|
|
24
|
-
Är du eller en närstående till dig en person i politisk utsatt ställning? (PEP)
|
|
25
|
-
}
|
|
26
|
-
CORPORATION {
|
|
27
|
-
Är {name} eller en närstående till {name} en person i politisk utsatt ställning? (PEP)
|
|
28
|
-
}
|
|
29
|
-
}`
|
|
30
|
-
},
|
|
31
|
-
[PepType.NOT_PEP]: {
|
|
32
|
-
id: 'pep.ispep.NOT_PEP',
|
|
33
|
-
description: 'Not pep',
|
|
34
|
-
defaultMessage: 'Nej'
|
|
35
|
-
},
|
|
36
|
-
[PepType.ME]: {
|
|
37
|
-
id: 'pep.ispep.ME',
|
|
38
|
-
description: 'The person is pep',
|
|
39
|
-
defaultMessage: `{
|
|
40
|
-
entityType, select,
|
|
41
|
-
PERSON {
|
|
42
|
-
Jag har en funktion som gör mig till PEP
|
|
43
|
-
}
|
|
44
|
-
CORPORATION {
|
|
45
|
-
På grund av sin funktion är {name} PEP
|
|
46
|
-
}
|
|
47
|
-
}`
|
|
48
|
-
},
|
|
49
|
-
[PepType.RELATIVE]: {
|
|
50
|
-
id: 'pep.ispep.RELATIVE',
|
|
51
|
-
description: 'Jag har en relation med en person som är PEP',
|
|
52
|
-
defaultMessage: `{
|
|
53
|
-
entityType, select,
|
|
54
|
-
PERSON {
|
|
55
|
-
Jag har en relation med en person som är PEP
|
|
56
|
-
}
|
|
57
|
-
CORPORATION {
|
|
58
|
-
{name} är medarbetare till, eller har en affärsrelation med, en person som är PEP
|
|
59
|
-
}
|
|
60
|
-
}`
|
|
61
|
-
},
|
|
62
|
-
[PepType.COLLEAGUE]: {
|
|
63
|
-
id: 'pep.ispep.COLLEAGUE',
|
|
64
|
-
description: 'The person has a colleague that is pep',
|
|
65
|
-
defaultMessage: `{
|
|
66
|
-
entityType, select,
|
|
67
|
-
PERSON {
|
|
68
|
-
Jag är medarbetare till, eller har en affärsrelation med, en person som är PEP
|
|
69
|
-
}
|
|
70
|
-
CORPORATION {
|
|
71
|
-
På grund av sin funktion är {name} PEP
|
|
72
|
-
}
|
|
73
|
-
}`
|
|
74
|
-
},
|
|
75
|
-
})
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
FunctionComponent,
|
|
3
|
-
useRef,
|
|
4
|
-
useCallback,
|
|
5
|
-
useContext
|
|
6
|
-
} from "react";
|
|
7
|
-
import {
|
|
8
|
-
Form,
|
|
9
|
-
RadioGroup,
|
|
10
|
-
RequiredValidator,
|
|
11
|
-
PrimaryButton,
|
|
12
|
-
LysaFormRef
|
|
13
|
-
} from "@lysaab/ui-2";
|
|
14
|
-
import { PepType, PepContext, EntityType } from "../PepContext";
|
|
15
|
-
import { useIntl, FormattedMessage } from "react-intl";
|
|
16
|
-
import { messages } from "./IsPepMessages";
|
|
17
|
-
|
|
18
|
-
export interface ExternalIsPepState {
|
|
19
|
-
ownerName: string;
|
|
20
|
-
entityType: EntityType;
|
|
21
|
-
type?: PepType;
|
|
22
|
-
onChange: (type: PepType) => void;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface Props {
|
|
26
|
-
next?: () => void;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const IsPepRadioGroup: FunctionComponent<ExternalIsPepState> = ({
|
|
30
|
-
ownerName,
|
|
31
|
-
entityType,
|
|
32
|
-
type,
|
|
33
|
-
onChange
|
|
34
|
-
}) => {
|
|
35
|
-
const intl = useIntl();
|
|
36
|
-
|
|
37
|
-
const IsPepAlternatives = [
|
|
38
|
-
{
|
|
39
|
-
text: intl.formatMessage(messages[PepType.NOT_PEP], { entityType, name: ownerName }),
|
|
40
|
-
value: PepType.NOT_PEP
|
|
41
|
-
},
|
|
42
|
-
{ text: intl.formatMessage(messages[PepType.ME], { entityType, name: ownerName }), value: PepType.ME },
|
|
43
|
-
{
|
|
44
|
-
text: intl.formatMessage(messages[PepType.RELATIVE], { entityType, name: ownerName }),
|
|
45
|
-
value: PepType.RELATIVE
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
text: intl.formatMessage(messages[PepType.COLLEAGUE], { entityType, name: ownerName }),
|
|
49
|
-
value: PepType.COLLEAGUE
|
|
50
|
-
}
|
|
51
|
-
];
|
|
52
|
-
|
|
53
|
-
return (
|
|
54
|
-
<RadioGroup
|
|
55
|
-
alternatives={IsPepAlternatives}
|
|
56
|
-
onChange={alt => onChange(alt.value)}
|
|
57
|
-
value={IsPepAlternatives.find(alt => alt.value === type)}
|
|
58
|
-
header={intl.formatMessage(messages.header, { entityType, name: ownerName })}
|
|
59
|
-
validators={[RequiredValidator(intl.formatMessage(messages.required))]}
|
|
60
|
-
/>
|
|
61
|
-
);
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export const IsPepPage: FunctionComponent<Props> = ({ next }) => {
|
|
65
|
-
const pepContext = useContext(PepContext);
|
|
66
|
-
const formRef = useRef<LysaFormRef>();
|
|
67
|
-
|
|
68
|
-
const nextPage = useCallback(() => {
|
|
69
|
-
if (formRef.current && formRef.current.isValid && next) {
|
|
70
|
-
next();
|
|
71
|
-
}
|
|
72
|
-
}, [formRef, next]);
|
|
73
|
-
|
|
74
|
-
return (
|
|
75
|
-
<Form onSubmit={nextPage} lysaFormRef={formRef}>
|
|
76
|
-
<IsPepRadioGroup
|
|
77
|
-
entityType={pepContext.state.legalEntityType || EntityType.PERSON}
|
|
78
|
-
ownerName={pepContext.state.ownerName || ""}
|
|
79
|
-
type={pepContext.state.type}
|
|
80
|
-
onChange={type => {
|
|
81
|
-
pepContext.setState({ type });
|
|
82
|
-
}}
|
|
83
|
-
/>
|
|
84
|
-
|
|
85
|
-
<PrimaryButton type="submit">
|
|
86
|
-
<FormattedMessage
|
|
87
|
-
id="pep.ispep.next"
|
|
88
|
-
description="Next button"
|
|
89
|
-
defaultMessage='Gå vidare'
|
|
90
|
-
/>
|
|
91
|
-
</PrimaryButton>
|
|
92
|
-
</Form>
|
|
93
|
-
);
|
|
94
|
-
};
|
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from "react-intl";
|
|
2
|
-
import { BusinessRelation, Relation } from "../PepContext";
|
|
3
|
-
|
|
4
|
-
export const relationMessages = defineMessages({
|
|
5
|
-
header: {
|
|
6
|
-
id: "pep.relation.relation.header",
|
|
7
|
-
description: "Relation header",
|
|
8
|
-
defaultMessage: `{
|
|
9
|
-
entityType, select,
|
|
10
|
-
PERSON {
|
|
11
|
-
Vilken relation har du till personen i politiskt utsatt ställning?
|
|
12
|
-
}
|
|
13
|
-
CORPORATION {
|
|
14
|
-
Vilken relation har {name} till personen i politiskt utsatt ställning?
|
|
15
|
-
}
|
|
16
|
-
}`
|
|
17
|
-
},
|
|
18
|
-
required: {
|
|
19
|
-
id: "pep.relation.relation.required",
|
|
20
|
-
description: "Required error message",
|
|
21
|
-
defaultMessage: `Du måste välja ett alternativ`
|
|
22
|
-
},
|
|
23
|
-
[Relation.MARRIED_PARTNER]: {
|
|
24
|
-
id: "pep.relation.relation.MARRIED_PARTNER",
|
|
25
|
-
description: "The person is married to someone who is pep",
|
|
26
|
-
defaultMessage: `Make/Maka till PEP`
|
|
27
|
-
},
|
|
28
|
-
[Relation.COLIVING_PARTNER]: {
|
|
29
|
-
id: "pep.relation.relation.COLIVING_PARTNER",
|
|
30
|
-
description: "The person is married to someone who is pep",
|
|
31
|
-
defaultMessage: `Sambo till PEP`
|
|
32
|
-
},
|
|
33
|
-
[Relation.CHILD]: {
|
|
34
|
-
id: "pep.relation.relation.CHILD",
|
|
35
|
-
description: "The person is married to someone who is pep",
|
|
36
|
-
defaultMessage: `Barn till PEP`
|
|
37
|
-
},
|
|
38
|
-
[Relation.PARENT]: {
|
|
39
|
-
id: "pep.relation.relation.PARENT",
|
|
40
|
-
description: "The person is married to someone who is pep",
|
|
41
|
-
defaultMessage: `Förälder till PEP`
|
|
42
|
-
},
|
|
43
|
-
[Relation.CHILD_MARRIED_PARTNER]: {
|
|
44
|
-
id: "pep.relation.relation.CHILD_MARRIED_PARTNER",
|
|
45
|
-
description: "The person is married to someone who is pep",
|
|
46
|
-
defaultMessage: `Make/Maka till barn till PEP`
|
|
47
|
-
},
|
|
48
|
-
[Relation.CHILD_COLIVING_PARTNER]: {
|
|
49
|
-
id: "pep.relation.relation.CHILD_COLIVING_PARTNER",
|
|
50
|
-
description: "The person is married to someone who is pep",
|
|
51
|
-
defaultMessage: `Sambo till barn till PEP`
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export const businessRelationMessages = defineMessages({
|
|
56
|
-
header: {
|
|
57
|
-
id: "pep.relation.businessrelation.header",
|
|
58
|
-
description: "Business relation header",
|
|
59
|
-
defaultMessage: `{
|
|
60
|
-
entityType, select,
|
|
61
|
-
PERSON {
|
|
62
|
-
Vilken relation har du till personen i politisk utsatt ställning?
|
|
63
|
-
}
|
|
64
|
-
CORPORATION {
|
|
65
|
-
Vilken relation har {name} till personen i politisk utsatt ställning?
|
|
66
|
-
}
|
|
67
|
-
}`
|
|
68
|
-
},
|
|
69
|
-
required: {
|
|
70
|
-
id: "pep.relation.businessrelation.required",
|
|
71
|
-
description: "Required error message",
|
|
72
|
-
defaultMessage: `Du måste välja ett alternativ`
|
|
73
|
-
},
|
|
74
|
-
[BusinessRelation.CO_OWNERSHIP]: {
|
|
75
|
-
id: "pep.relation.businessrelation.alt.CO_OWNERSHIP",
|
|
76
|
-
description: "Co-ownership alternative",
|
|
77
|
-
defaultMessage: `{
|
|
78
|
-
entityType, select,
|
|
79
|
-
PERSON {
|
|
80
|
-
Jag är verklig huvudman till en juridisk person, eller juridiska konstruktioner, tillsammans med en PEP
|
|
81
|
-
}
|
|
82
|
-
CORPORATION {
|
|
83
|
-
Vilken relation har {name} till personen i politisk utsatt ställning?
|
|
84
|
-
}
|
|
85
|
-
}`
|
|
86
|
-
},
|
|
87
|
-
[BusinessRelation.CLOSE_CONNECTION]: {
|
|
88
|
-
id: "pep.relation.businessrelation.alt.CLOSE_CONNECTION",
|
|
89
|
-
description: "The person is married to someone who is pep",
|
|
90
|
-
defaultMessage: `{
|
|
91
|
-
entityType, select,
|
|
92
|
-
PERSON {
|
|
93
|
-
Jag är en person som på annat sätt har eller har haft nära förbindelser med en PEP
|
|
94
|
-
}
|
|
95
|
-
CORPORATION {
|
|
96
|
-
Vilken relation har {name} till personen i politisk utsatt ställning?
|
|
97
|
-
}
|
|
98
|
-
}`
|
|
99
|
-
},
|
|
100
|
-
[BusinessRelation.COMPANY_FOR_PEP]: {
|
|
101
|
-
id: "pep.relation.businessrelation.alt.COMPANY_FOR_PEP",
|
|
102
|
-
description: "The person is married to someone who is pep",
|
|
103
|
-
defaultMessage: `{
|
|
104
|
-
entityType, select,
|
|
105
|
-
PERSON {
|
|
106
|
-
Jag är verklig huvudman till en juridisk person, eller juridiska konstruktioner, tillsammans med en PEP
|
|
107
|
-
}
|
|
108
|
-
CORPORATION {
|
|
109
|
-
Vilken relation har {name} till personen i politisk utsatt ställning?
|
|
110
|
-
}
|
|
111
|
-
}`
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
export const relativeNameMessages = defineMessages({
|
|
116
|
-
header: {
|
|
117
|
-
id: "pep.relation.relative.name.header",
|
|
118
|
-
description: "Relative name",
|
|
119
|
-
defaultMessage: `{
|
|
120
|
-
entityType, select,
|
|
121
|
-
PERSON {
|
|
122
|
-
{
|
|
123
|
-
relation, select,
|
|
124
|
-
MARRIED_PARTNER {
|
|
125
|
-
Vad heter din make/maka?
|
|
126
|
-
}
|
|
127
|
-
COLIVING_PARTNER {
|
|
128
|
-
Vad heter din sambo?
|
|
129
|
-
}
|
|
130
|
-
CHILD {
|
|
131
|
-
Vad heter din förälder?
|
|
132
|
-
}
|
|
133
|
-
PARENT {
|
|
134
|
-
Vad heter ditt barn?
|
|
135
|
-
}
|
|
136
|
-
CHILD_MARRIED_PARTNER {
|
|
137
|
-
Vad heter föräldern till din make/maka?
|
|
138
|
-
}
|
|
139
|
-
CHILD_COLIVING_PARTNER {
|
|
140
|
-
Vad heter föräldern till din sambo?
|
|
141
|
-
}
|
|
142
|
-
other {}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
CORPORATION {
|
|
146
|
-
{
|
|
147
|
-
relation, select,
|
|
148
|
-
MARRIED_PARTNER {
|
|
149
|
-
Vad heter {name} make/maka?
|
|
150
|
-
}
|
|
151
|
-
COLIVING_PARTNER {
|
|
152
|
-
Vad heter {name} sambo?
|
|
153
|
-
}
|
|
154
|
-
CHILD {
|
|
155
|
-
Vad heter {name} förälder?
|
|
156
|
-
}
|
|
157
|
-
PARENT {
|
|
158
|
-
Vad heter {name} barn?
|
|
159
|
-
}
|
|
160
|
-
CHILD_MARRIED_PARTNER {
|
|
161
|
-
Vad heter föräldern till {name} make/maka?
|
|
162
|
-
}
|
|
163
|
-
CHILD_COLIVING_PARTNER {
|
|
164
|
-
Vad heter föräldern till {name} sambo?
|
|
165
|
-
}
|
|
166
|
-
other {}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
other {}
|
|
170
|
-
}`
|
|
171
|
-
},
|
|
172
|
-
required: {
|
|
173
|
-
id: "pep.relation.relative.name.required",
|
|
174
|
-
description: "Required error message",
|
|
175
|
-
defaultMessage: `Du måste välja ett alternativ`
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
|
|
179
|
-
export const birthdayMessages = defineMessages({
|
|
180
|
-
header: {
|
|
181
|
-
id: "pep.relation.birthday.header",
|
|
182
|
-
description: "Relative birthday",
|
|
183
|
-
defaultMessage: `{
|
|
184
|
-
entityType, select,
|
|
185
|
-
PERSON {
|
|
186
|
-
{
|
|
187
|
-
relation, select,
|
|
188
|
-
MARRIED_PARTNER {
|
|
189
|
-
När är din make/maka född?
|
|
190
|
-
}
|
|
191
|
-
COLIVING_PARTNER {
|
|
192
|
-
När är din sambo född?
|
|
193
|
-
}
|
|
194
|
-
CHILD {
|
|
195
|
-
När är din förälder född?
|
|
196
|
-
}
|
|
197
|
-
PARENT {
|
|
198
|
-
När är ditt barn fött?
|
|
199
|
-
}
|
|
200
|
-
CHILD_MARRIED_PARTNER {
|
|
201
|
-
När är föräldern till din make/maka född?
|
|
202
|
-
}
|
|
203
|
-
CHILD_COLIVING_PARTNER {
|
|
204
|
-
När är föräldern till din sambo född?
|
|
205
|
-
}
|
|
206
|
-
other {}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
CORPORATION {
|
|
210
|
-
{
|
|
211
|
-
relation, select,
|
|
212
|
-
MARRIED_PARTNER {
|
|
213
|
-
När är {name} make/maka född?
|
|
214
|
-
}
|
|
215
|
-
COLIVING_PARTNER {
|
|
216
|
-
När är {name} sambo född?
|
|
217
|
-
}
|
|
218
|
-
CHILD {
|
|
219
|
-
När är {name} förälder född?
|
|
220
|
-
}
|
|
221
|
-
PARENT {
|
|
222
|
-
När är {name} barn fött?
|
|
223
|
-
}
|
|
224
|
-
CHILD_MARRIED_PARTNER {
|
|
225
|
-
När är föräldern till {name} make/maka född?
|
|
226
|
-
}
|
|
227
|
-
CHILD_COLIVING_PARTNER {
|
|
228
|
-
När är föräldern till {name} sambo född?
|
|
229
|
-
}
|
|
230
|
-
other {}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
other {}
|
|
234
|
-
}`
|
|
235
|
-
},
|
|
236
|
-
required: {
|
|
237
|
-
id: "pep.relation.birthday.required",
|
|
238
|
-
description: "Required error message",
|
|
239
|
-
defaultMessage: `Ange datum`
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
|
|
243
|
-
export const colleagueNameMessages = defineMessages({
|
|
244
|
-
header: {
|
|
245
|
-
id: "pep.relation.colleague.name.header",
|
|
246
|
-
description: "Colleague name",
|
|
247
|
-
defaultMessage: `{
|
|
248
|
-
entityType, select,
|
|
249
|
-
PERSON {
|
|
250
|
-
{
|
|
251
|
-
relation, select,
|
|
252
|
-
CO_OWNERSHIP {
|
|
253
|
-
Vad heter personen i politisk utsatt ställning som du har en relation till?
|
|
254
|
-
}
|
|
255
|
-
CLOSE_CONNECTION {
|
|
256
|
-
Vad heter personen i politisk utsatt ställning som du har en relation till?
|
|
257
|
-
}
|
|
258
|
-
COMPANY_FOR_PEP {
|
|
259
|
-
Vad heter personen i politisk utsatt ställning som den juridiska personen eller konstruktionen har upprättats till förmån till?
|
|
260
|
-
}
|
|
261
|
-
other {}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
CORPORATION {
|
|
265
|
-
{
|
|
266
|
-
relation, select,
|
|
267
|
-
CO_OWNERSHIP {
|
|
268
|
-
Vad heter personen i politisk utsatt ställning som {name} har en relation till?
|
|
269
|
-
}
|
|
270
|
-
CLOSE_CONNECTION {
|
|
271
|
-
Vad heter personen i politisk utsatt ställning som {name} har en relation till?
|
|
272
|
-
}
|
|
273
|
-
COMPANY_FOR_PEP {
|
|
274
|
-
Vad heter personen i politisk utsatt ställning som den juridiska personen eller konstruktionen har upprättats till förmån till?
|
|
275
|
-
}
|
|
276
|
-
other {}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
other {}
|
|
280
|
-
}`
|
|
281
|
-
},
|
|
282
|
-
required: {
|
|
283
|
-
id: "pep.relation.colleague.name.required",
|
|
284
|
-
description: "Required error message",
|
|
285
|
-
defaultMessage: `Du måste välja ett alternativ`
|
|
286
|
-
}
|
|
287
|
-
});
|