@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,80 +1,80 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare enum EntityType {
|
|
3
|
-
PERSON = "PERSON",
|
|
4
|
-
CORPORATION = "CORPORATION"
|
|
5
|
-
}
|
|
6
|
-
export declare enum PepType {
|
|
7
|
-
NOT_PEP = "NOT_PEP",
|
|
8
|
-
ME = "ME",
|
|
9
|
-
RELATIVE = "RELATIVE",
|
|
10
|
-
COLLEAGUE = "COLLEAGUE"
|
|
11
|
-
}
|
|
12
|
-
export declare enum PepStatus {
|
|
13
|
-
ONGOING = "ONGOING",
|
|
14
|
-
ENDED = "ENDED"
|
|
15
|
-
}
|
|
16
|
-
export declare enum Role {
|
|
17
|
-
HEAD_OF_GOVERNMENT = "HEAD_OF_GOVERNMENT",
|
|
18
|
-
MINISTER = "MINISTER",
|
|
19
|
-
PARLIMENT_MEMBER = "PARLIMENT_MEMBER",
|
|
20
|
-
CENTRAL_BANK_MEMBER = "CENTRAL_BANK_MEMBER",
|
|
21
|
-
BOARD_MEMBER_POLITICAL_PARTY = "BOARD_MEMBER_POLITICAL_PARTY",
|
|
22
|
-
JUDGE_SUPREME_COURT = "JUDGE_SUPREME_COURT",
|
|
23
|
-
JUDGE_OTHER_HIGH_COURT = "JUDGE_OTHER_HIGH_COURT",
|
|
24
|
-
REVISION_INSTITUTE = "REVISION_INSTITUTE",
|
|
25
|
-
AMBASSADOR = "AMBASSADOR",
|
|
26
|
-
MILITARY_OFFICER = "MILITARY_OFFICER",
|
|
27
|
-
GOVERNMENT_COMPANY = "GOVERNMENT_COMPANY",
|
|
28
|
-
EU_HIGH_RANKING_POSITION = "EU_HIGH_RANKING_POSITION",
|
|
29
|
-
HIGH_RANKING_POSITION_INTERNALTIONAL_CORP = "HIGH_RANKING_POSITION_INTERNALTIONAL_CORP"
|
|
30
|
-
}
|
|
31
|
-
export declare enum Relation {
|
|
32
|
-
MARRIED_PARTNER = "MARRIED_PARTNER",
|
|
33
|
-
COLIVING_PARTNER = "COLIVING_PARTNER",
|
|
34
|
-
CHILD = "CHILD",
|
|
35
|
-
PARENT = "PARENT",
|
|
36
|
-
CHILD_MARRIED_PARTNER = "CHILD_MARRIED_PARTNER",
|
|
37
|
-
CHILD_COLIVING_PARTNER = "CHILD_COLIVING_PARTNER"
|
|
38
|
-
}
|
|
39
|
-
export declare enum BusinessRelation {
|
|
40
|
-
CO_OWNERSHIP = "CO_OWNERSHIP",
|
|
41
|
-
CLOSE_CONNECTION = "CLOSE_CONNECTION",
|
|
42
|
-
COMPANY_FOR_PEP = "COMPANY_FOR_PEP"
|
|
43
|
-
}
|
|
44
|
-
export declare enum MilitaryRank {
|
|
45
|
-
GENERAL = "GENERAL",
|
|
46
|
-
LIEUTENANT_GENERAL = "LIEUTENANT_GENERAL",
|
|
47
|
-
MAJOR_GENERAL = "MAJOR_GENERAL",
|
|
48
|
-
ADMIRAL = "ADMIRAL",
|
|
49
|
-
VICE_ADMIRAL = "VICE_ADMIRAL",
|
|
50
|
-
REAR_ADMIRAL = "REAR_ADMIRAL"
|
|
51
|
-
}
|
|
52
|
-
export interface PepState {
|
|
53
|
-
legalEntityType?: EntityType;
|
|
54
|
-
type?: PepType;
|
|
55
|
-
role?: Role;
|
|
56
|
-
country?: string;
|
|
57
|
-
ended?: Date;
|
|
58
|
-
ambassadorCountry?: string;
|
|
59
|
-
militaryRank?: MilitaryRank;
|
|
60
|
-
governmentCompany?: string;
|
|
61
|
-
governmentCompanyRole?: string;
|
|
62
|
-
internationalOrganisation?: string;
|
|
63
|
-
internationalOrganisationRole?: string;
|
|
64
|
-
relationToPEP?: Relation;
|
|
65
|
-
nameOfPEP?: string;
|
|
66
|
-
birthdayOfPEP?: Date;
|
|
67
|
-
tin?: string;
|
|
68
|
-
businessRelation?: BusinessRelation;
|
|
69
|
-
isOngoing?: PepStatus;
|
|
70
|
-
isSweden?: string;
|
|
71
|
-
ownerName?: string;
|
|
72
|
-
}
|
|
73
|
-
export declare const EMPTY_PEP_STATE: PepState;
|
|
74
|
-
export interface PepContextProps {
|
|
75
|
-
state: PepState;
|
|
76
|
-
setState: (newState: Partial<PepState>) => void;
|
|
77
|
-
}
|
|
78
|
-
export declare const PepContext: React.Context<PepContextProps>;
|
|
79
|
-
export declare const withPep: <P extends object>(Component: React.ComponentType<P>) => React.FC<Pick<P, Exclude<keyof P, "state" | "setState">>>;
|
|
80
|
-
export declare const PepContextProvider: React.FC;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare enum EntityType {
|
|
3
|
+
PERSON = "PERSON",
|
|
4
|
+
CORPORATION = "CORPORATION"
|
|
5
|
+
}
|
|
6
|
+
export declare enum PepType {
|
|
7
|
+
NOT_PEP = "NOT_PEP",
|
|
8
|
+
ME = "ME",
|
|
9
|
+
RELATIVE = "RELATIVE",
|
|
10
|
+
COLLEAGUE = "COLLEAGUE"
|
|
11
|
+
}
|
|
12
|
+
export declare enum PepStatus {
|
|
13
|
+
ONGOING = "ONGOING",
|
|
14
|
+
ENDED = "ENDED"
|
|
15
|
+
}
|
|
16
|
+
export declare enum Role {
|
|
17
|
+
HEAD_OF_GOVERNMENT = "HEAD_OF_GOVERNMENT",
|
|
18
|
+
MINISTER = "MINISTER",
|
|
19
|
+
PARLIMENT_MEMBER = "PARLIMENT_MEMBER",
|
|
20
|
+
CENTRAL_BANK_MEMBER = "CENTRAL_BANK_MEMBER",
|
|
21
|
+
BOARD_MEMBER_POLITICAL_PARTY = "BOARD_MEMBER_POLITICAL_PARTY",
|
|
22
|
+
JUDGE_SUPREME_COURT = "JUDGE_SUPREME_COURT",
|
|
23
|
+
JUDGE_OTHER_HIGH_COURT = "JUDGE_OTHER_HIGH_COURT",
|
|
24
|
+
REVISION_INSTITUTE = "REVISION_INSTITUTE",
|
|
25
|
+
AMBASSADOR = "AMBASSADOR",
|
|
26
|
+
MILITARY_OFFICER = "MILITARY_OFFICER",
|
|
27
|
+
GOVERNMENT_COMPANY = "GOVERNMENT_COMPANY",
|
|
28
|
+
EU_HIGH_RANKING_POSITION = "EU_HIGH_RANKING_POSITION",
|
|
29
|
+
HIGH_RANKING_POSITION_INTERNALTIONAL_CORP = "HIGH_RANKING_POSITION_INTERNALTIONAL_CORP"
|
|
30
|
+
}
|
|
31
|
+
export declare enum Relation {
|
|
32
|
+
MARRIED_PARTNER = "MARRIED_PARTNER",
|
|
33
|
+
COLIVING_PARTNER = "COLIVING_PARTNER",
|
|
34
|
+
CHILD = "CHILD",
|
|
35
|
+
PARENT = "PARENT",
|
|
36
|
+
CHILD_MARRIED_PARTNER = "CHILD_MARRIED_PARTNER",
|
|
37
|
+
CHILD_COLIVING_PARTNER = "CHILD_COLIVING_PARTNER"
|
|
38
|
+
}
|
|
39
|
+
export declare enum BusinessRelation {
|
|
40
|
+
CO_OWNERSHIP = "CO_OWNERSHIP",
|
|
41
|
+
CLOSE_CONNECTION = "CLOSE_CONNECTION",
|
|
42
|
+
COMPANY_FOR_PEP = "COMPANY_FOR_PEP"
|
|
43
|
+
}
|
|
44
|
+
export declare enum MilitaryRank {
|
|
45
|
+
GENERAL = "GENERAL",
|
|
46
|
+
LIEUTENANT_GENERAL = "LIEUTENANT_GENERAL",
|
|
47
|
+
MAJOR_GENERAL = "MAJOR_GENERAL",
|
|
48
|
+
ADMIRAL = "ADMIRAL",
|
|
49
|
+
VICE_ADMIRAL = "VICE_ADMIRAL",
|
|
50
|
+
REAR_ADMIRAL = "REAR_ADMIRAL"
|
|
51
|
+
}
|
|
52
|
+
export interface PepState {
|
|
53
|
+
legalEntityType?: EntityType;
|
|
54
|
+
type?: PepType;
|
|
55
|
+
role?: Role;
|
|
56
|
+
country?: string;
|
|
57
|
+
ended?: Date;
|
|
58
|
+
ambassadorCountry?: string;
|
|
59
|
+
militaryRank?: MilitaryRank;
|
|
60
|
+
governmentCompany?: string;
|
|
61
|
+
governmentCompanyRole?: string;
|
|
62
|
+
internationalOrganisation?: string;
|
|
63
|
+
internationalOrganisationRole?: string;
|
|
64
|
+
relationToPEP?: Relation;
|
|
65
|
+
nameOfPEP?: string;
|
|
66
|
+
birthdayOfPEP?: Date;
|
|
67
|
+
tin?: string;
|
|
68
|
+
businessRelation?: BusinessRelation;
|
|
69
|
+
isOngoing?: PepStatus;
|
|
70
|
+
isSweden?: string;
|
|
71
|
+
ownerName?: string;
|
|
72
|
+
}
|
|
73
|
+
export declare const EMPTY_PEP_STATE: PepState;
|
|
74
|
+
export interface PepContextProps {
|
|
75
|
+
state: PepState;
|
|
76
|
+
setState: (newState: Partial<PepState>) => void;
|
|
77
|
+
}
|
|
78
|
+
export declare const PepContext: React.Context<PepContextProps>;
|
|
79
|
+
export declare const withPep: <P extends object>(Component: React.ComponentType<P>) => React.FC<Pick<P, Exclude<keyof P, "state" | "setState">>>;
|
|
80
|
+
export declare const PepContextProvider: React.FC;
|
package/lib/pages/PepContext.js
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import React, { useReducer } from "react";
|
|
2
|
-
export var EntityType;
|
|
3
|
-
(function (EntityType) {
|
|
4
|
-
EntityType["PERSON"] = "PERSON";
|
|
5
|
-
EntityType["CORPORATION"] = "CORPORATION";
|
|
6
|
-
})(EntityType || (EntityType = {}));
|
|
7
|
-
export var PepType;
|
|
8
|
-
(function (PepType) {
|
|
9
|
-
PepType["NOT_PEP"] = "NOT_PEP";
|
|
10
|
-
PepType["ME"] = "ME";
|
|
11
|
-
PepType["RELATIVE"] = "RELATIVE";
|
|
12
|
-
PepType["COLLEAGUE"] = "COLLEAGUE";
|
|
13
|
-
})(PepType || (PepType = {}));
|
|
14
|
-
export var PepStatus;
|
|
15
|
-
(function (PepStatus) {
|
|
16
|
-
PepStatus["ONGOING"] = "ONGOING";
|
|
17
|
-
PepStatus["ENDED"] = "ENDED";
|
|
18
|
-
})(PepStatus || (PepStatus = {}));
|
|
19
|
-
export var Role;
|
|
20
|
-
(function (Role) {
|
|
21
|
-
Role["HEAD_OF_GOVERNMENT"] = "HEAD_OF_GOVERNMENT";
|
|
22
|
-
Role["MINISTER"] = "MINISTER";
|
|
23
|
-
Role["PARLIMENT_MEMBER"] = "PARLIMENT_MEMBER";
|
|
24
|
-
Role["CENTRAL_BANK_MEMBER"] = "CENTRAL_BANK_MEMBER";
|
|
25
|
-
Role["BOARD_MEMBER_POLITICAL_PARTY"] = "BOARD_MEMBER_POLITICAL_PARTY";
|
|
26
|
-
Role["JUDGE_SUPREME_COURT"] = "JUDGE_SUPREME_COURT";
|
|
27
|
-
Role["JUDGE_OTHER_HIGH_COURT"] = "JUDGE_OTHER_HIGH_COURT";
|
|
28
|
-
Role["REVISION_INSTITUTE"] = "REVISION_INSTITUTE";
|
|
29
|
-
Role["AMBASSADOR"] = "AMBASSADOR";
|
|
30
|
-
Role["MILITARY_OFFICER"] = "MILITARY_OFFICER";
|
|
31
|
-
Role["GOVERNMENT_COMPANY"] = "GOVERNMENT_COMPANY";
|
|
32
|
-
Role["EU_HIGH_RANKING_POSITION"] = "EU_HIGH_RANKING_POSITION";
|
|
33
|
-
Role["HIGH_RANKING_POSITION_INTERNALTIONAL_CORP"] = "HIGH_RANKING_POSITION_INTERNALTIONAL_CORP";
|
|
34
|
-
})(Role || (Role = {}));
|
|
35
|
-
export var Relation;
|
|
36
|
-
(function (Relation) {
|
|
37
|
-
Relation["MARRIED_PARTNER"] = "MARRIED_PARTNER";
|
|
38
|
-
Relation["COLIVING_PARTNER"] = "COLIVING_PARTNER";
|
|
39
|
-
Relation["CHILD"] = "CHILD";
|
|
40
|
-
Relation["PARENT"] = "PARENT";
|
|
41
|
-
Relation["CHILD_MARRIED_PARTNER"] = "CHILD_MARRIED_PARTNER";
|
|
42
|
-
Relation["CHILD_COLIVING_PARTNER"] = "CHILD_COLIVING_PARTNER";
|
|
43
|
-
})(Relation || (Relation = {}));
|
|
44
|
-
export var BusinessRelation;
|
|
45
|
-
(function (BusinessRelation) {
|
|
46
|
-
BusinessRelation["CO_OWNERSHIP"] = "CO_OWNERSHIP";
|
|
47
|
-
BusinessRelation["CLOSE_CONNECTION"] = "CLOSE_CONNECTION";
|
|
48
|
-
BusinessRelation["COMPANY_FOR_PEP"] = "COMPANY_FOR_PEP";
|
|
49
|
-
})(BusinessRelation || (BusinessRelation = {}));
|
|
50
|
-
export var MilitaryRank;
|
|
51
|
-
(function (MilitaryRank) {
|
|
52
|
-
MilitaryRank["GENERAL"] = "GENERAL";
|
|
53
|
-
MilitaryRank["LIEUTENANT_GENERAL"] = "LIEUTENANT_GENERAL";
|
|
54
|
-
MilitaryRank["MAJOR_GENERAL"] = "MAJOR_GENERAL";
|
|
55
|
-
MilitaryRank["ADMIRAL"] = "ADMIRAL";
|
|
56
|
-
MilitaryRank["VICE_ADMIRAL"] = "VICE_ADMIRAL";
|
|
57
|
-
MilitaryRank["REAR_ADMIRAL"] = "REAR_ADMIRAL";
|
|
58
|
-
})(MilitaryRank || (MilitaryRank = {}));
|
|
59
|
-
export const EMPTY_PEP_STATE = {
|
|
60
|
-
legalEntityType: undefined,
|
|
61
|
-
type: undefined,
|
|
62
|
-
role: undefined,
|
|
63
|
-
country: undefined,
|
|
64
|
-
ended: undefined,
|
|
65
|
-
ambassadorCountry: undefined,
|
|
66
|
-
militaryRank: undefined,
|
|
67
|
-
governmentCompany: undefined,
|
|
68
|
-
governmentCompanyRole: undefined,
|
|
69
|
-
internationalOrganisation: undefined,
|
|
70
|
-
internationalOrganisationRole: undefined,
|
|
71
|
-
relationToPEP: undefined,
|
|
72
|
-
nameOfPEP: undefined,
|
|
73
|
-
birthdayOfPEP: undefined,
|
|
74
|
-
tin: undefined,
|
|
75
|
-
businessRelation: undefined,
|
|
76
|
-
isOngoing: undefined,
|
|
77
|
-
isSweden: undefined,
|
|
78
|
-
ownerName: undefined,
|
|
79
|
-
};
|
|
80
|
-
export const PepContext = React.createContext({});
|
|
81
|
-
export const withPep = (Component) => props => (React.createElement(PepContext.Consumer, null, contextProps => React.createElement(Component, Object.assign({}, props, contextProps))));
|
|
82
|
-
function stateReducer(state, newState) {
|
|
83
|
-
return Object.assign(Object.assign({}, state), newState);
|
|
84
|
-
}
|
|
85
|
-
export const PepContextProvider = ({ children }) => {
|
|
86
|
-
const [pep, setPep] = useReducer(stateReducer, {});
|
|
87
|
-
return (React.createElement(PepContext.Provider, { value: { state: pep, setState: setPep } }, children));
|
|
88
|
-
};
|
|
1
|
+
import React, { useReducer } from "react";
|
|
2
|
+
export var EntityType;
|
|
3
|
+
(function (EntityType) {
|
|
4
|
+
EntityType["PERSON"] = "PERSON";
|
|
5
|
+
EntityType["CORPORATION"] = "CORPORATION";
|
|
6
|
+
})(EntityType || (EntityType = {}));
|
|
7
|
+
export var PepType;
|
|
8
|
+
(function (PepType) {
|
|
9
|
+
PepType["NOT_PEP"] = "NOT_PEP";
|
|
10
|
+
PepType["ME"] = "ME";
|
|
11
|
+
PepType["RELATIVE"] = "RELATIVE";
|
|
12
|
+
PepType["COLLEAGUE"] = "COLLEAGUE";
|
|
13
|
+
})(PepType || (PepType = {}));
|
|
14
|
+
export var PepStatus;
|
|
15
|
+
(function (PepStatus) {
|
|
16
|
+
PepStatus["ONGOING"] = "ONGOING";
|
|
17
|
+
PepStatus["ENDED"] = "ENDED";
|
|
18
|
+
})(PepStatus || (PepStatus = {}));
|
|
19
|
+
export var Role;
|
|
20
|
+
(function (Role) {
|
|
21
|
+
Role["HEAD_OF_GOVERNMENT"] = "HEAD_OF_GOVERNMENT";
|
|
22
|
+
Role["MINISTER"] = "MINISTER";
|
|
23
|
+
Role["PARLIMENT_MEMBER"] = "PARLIMENT_MEMBER";
|
|
24
|
+
Role["CENTRAL_BANK_MEMBER"] = "CENTRAL_BANK_MEMBER";
|
|
25
|
+
Role["BOARD_MEMBER_POLITICAL_PARTY"] = "BOARD_MEMBER_POLITICAL_PARTY";
|
|
26
|
+
Role["JUDGE_SUPREME_COURT"] = "JUDGE_SUPREME_COURT";
|
|
27
|
+
Role["JUDGE_OTHER_HIGH_COURT"] = "JUDGE_OTHER_HIGH_COURT";
|
|
28
|
+
Role["REVISION_INSTITUTE"] = "REVISION_INSTITUTE";
|
|
29
|
+
Role["AMBASSADOR"] = "AMBASSADOR";
|
|
30
|
+
Role["MILITARY_OFFICER"] = "MILITARY_OFFICER";
|
|
31
|
+
Role["GOVERNMENT_COMPANY"] = "GOVERNMENT_COMPANY";
|
|
32
|
+
Role["EU_HIGH_RANKING_POSITION"] = "EU_HIGH_RANKING_POSITION";
|
|
33
|
+
Role["HIGH_RANKING_POSITION_INTERNALTIONAL_CORP"] = "HIGH_RANKING_POSITION_INTERNALTIONAL_CORP";
|
|
34
|
+
})(Role || (Role = {}));
|
|
35
|
+
export var Relation;
|
|
36
|
+
(function (Relation) {
|
|
37
|
+
Relation["MARRIED_PARTNER"] = "MARRIED_PARTNER";
|
|
38
|
+
Relation["COLIVING_PARTNER"] = "COLIVING_PARTNER";
|
|
39
|
+
Relation["CHILD"] = "CHILD";
|
|
40
|
+
Relation["PARENT"] = "PARENT";
|
|
41
|
+
Relation["CHILD_MARRIED_PARTNER"] = "CHILD_MARRIED_PARTNER";
|
|
42
|
+
Relation["CHILD_COLIVING_PARTNER"] = "CHILD_COLIVING_PARTNER";
|
|
43
|
+
})(Relation || (Relation = {}));
|
|
44
|
+
export var BusinessRelation;
|
|
45
|
+
(function (BusinessRelation) {
|
|
46
|
+
BusinessRelation["CO_OWNERSHIP"] = "CO_OWNERSHIP";
|
|
47
|
+
BusinessRelation["CLOSE_CONNECTION"] = "CLOSE_CONNECTION";
|
|
48
|
+
BusinessRelation["COMPANY_FOR_PEP"] = "COMPANY_FOR_PEP";
|
|
49
|
+
})(BusinessRelation || (BusinessRelation = {}));
|
|
50
|
+
export var MilitaryRank;
|
|
51
|
+
(function (MilitaryRank) {
|
|
52
|
+
MilitaryRank["GENERAL"] = "GENERAL";
|
|
53
|
+
MilitaryRank["LIEUTENANT_GENERAL"] = "LIEUTENANT_GENERAL";
|
|
54
|
+
MilitaryRank["MAJOR_GENERAL"] = "MAJOR_GENERAL";
|
|
55
|
+
MilitaryRank["ADMIRAL"] = "ADMIRAL";
|
|
56
|
+
MilitaryRank["VICE_ADMIRAL"] = "VICE_ADMIRAL";
|
|
57
|
+
MilitaryRank["REAR_ADMIRAL"] = "REAR_ADMIRAL";
|
|
58
|
+
})(MilitaryRank || (MilitaryRank = {}));
|
|
59
|
+
export const EMPTY_PEP_STATE = {
|
|
60
|
+
legalEntityType: undefined,
|
|
61
|
+
type: undefined,
|
|
62
|
+
role: undefined,
|
|
63
|
+
country: undefined,
|
|
64
|
+
ended: undefined,
|
|
65
|
+
ambassadorCountry: undefined,
|
|
66
|
+
militaryRank: undefined,
|
|
67
|
+
governmentCompany: undefined,
|
|
68
|
+
governmentCompanyRole: undefined,
|
|
69
|
+
internationalOrganisation: undefined,
|
|
70
|
+
internationalOrganisationRole: undefined,
|
|
71
|
+
relationToPEP: undefined,
|
|
72
|
+
nameOfPEP: undefined,
|
|
73
|
+
birthdayOfPEP: undefined,
|
|
74
|
+
tin: undefined,
|
|
75
|
+
businessRelation: undefined,
|
|
76
|
+
isOngoing: undefined,
|
|
77
|
+
isSweden: undefined,
|
|
78
|
+
ownerName: undefined,
|
|
79
|
+
};
|
|
80
|
+
export const PepContext = React.createContext({});
|
|
81
|
+
export const withPep = (Component) => props => (React.createElement(PepContext.Consumer, null, contextProps => React.createElement(Component, Object.assign({}, props, contextProps))));
|
|
82
|
+
function stateReducer(state, newState) {
|
|
83
|
+
return Object.assign(Object.assign({}, state), newState);
|
|
84
|
+
}
|
|
85
|
+
export const PepContextProvider = ({ children }) => {
|
|
86
|
+
const [pep, setPep] = useReducer(stateReducer, {});
|
|
87
|
+
return (React.createElement(PepContext.Provider, { value: { state: pep, setState: setPep } }, children));
|
|
88
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PepType, EntityType } from "./PepContext";
|
|
3
|
+
interface QuestionsProps {
|
|
4
|
+
ownerName?: string;
|
|
5
|
+
legalEntityType?: EntityType;
|
|
6
|
+
type?: PepType;
|
|
7
|
+
onChange: (type: PepType) => void;
|
|
8
|
+
resetValues?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const PepIsPepQuestions: React.FC<QuestionsProps>;
|
|
11
|
+
interface Props {
|
|
12
|
+
next: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const PepIsPepPage: React.FC<Props>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React, { useRef, useCallback, useContext } from "react";
|
|
2
|
+
import { Form, RadioGroup, RequiredValidator, PrimaryButton, } from "@lysaab/ui-2";
|
|
3
|
+
import { PepType, PepContext, EntityType } from "./PepContext";
|
|
4
|
+
import { LABELS } from "../model/PepTexts";
|
|
5
|
+
export const PepIsPepQuestions = ({ ownerName, legalEntityType, type, onChange, resetValues, }) => {
|
|
6
|
+
const labels = LABELS(ownerName);
|
|
7
|
+
const entityType = legalEntityType || EntityType.PERSON;
|
|
8
|
+
const IsPepAlternatives = [
|
|
9
|
+
{
|
|
10
|
+
text: labels[entityType].GENERIC.IS_PEP[PepType.NOT_PEP],
|
|
11
|
+
value: PepType.NOT_PEP,
|
|
12
|
+
},
|
|
13
|
+
{ text: labels[entityType].GENERIC.IS_PEP[PepType.ME], value: PepType.ME },
|
|
14
|
+
{
|
|
15
|
+
text: labels[entityType].GENERIC.IS_PEP[PepType.RELATIVE],
|
|
16
|
+
value: PepType.RELATIVE,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
text: labels[entityType].GENERIC.IS_PEP[PepType.COLLEAGUE],
|
|
20
|
+
value: PepType.COLLEAGUE,
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
return (React.createElement(RadioGroup, { alternatives: IsPepAlternatives, onChange: (alternative) => {
|
|
24
|
+
var _a;
|
|
25
|
+
onChange(alternative.value);
|
|
26
|
+
(_a = resetValues) === null || _a === void 0 ? void 0 : _a();
|
|
27
|
+
}, value: IsPepAlternatives.find((alt) => alt.value === type), header: labels[entityType].GENERIC.IS_PEP_HEADER, validators: [new RequiredValidator("Du måste välja ett alternativ")] }));
|
|
28
|
+
};
|
|
29
|
+
export const PepIsPepPage = ({ next }) => {
|
|
30
|
+
const pepContext = useContext(PepContext);
|
|
31
|
+
const formRef = useRef();
|
|
32
|
+
const nextPage = useCallback(() => {
|
|
33
|
+
if (formRef.current && formRef.current.isValid) {
|
|
34
|
+
next();
|
|
35
|
+
}
|
|
36
|
+
}, [formRef, next]);
|
|
37
|
+
const resetValues = useCallback(() => {
|
|
38
|
+
pepContext.setState({
|
|
39
|
+
ambassadorCountry: undefined,
|
|
40
|
+
birthdayOfPEP: undefined,
|
|
41
|
+
businessRelation: undefined,
|
|
42
|
+
country: undefined,
|
|
43
|
+
ended: undefined,
|
|
44
|
+
governmentCompany: undefined,
|
|
45
|
+
governmentCompanyRole: undefined,
|
|
46
|
+
internationalOrganisation: undefined,
|
|
47
|
+
internationalOrganisationRole: undefined,
|
|
48
|
+
isOngoing: undefined,
|
|
49
|
+
isSweden: undefined,
|
|
50
|
+
militaryRank: undefined,
|
|
51
|
+
nameOfPEP: undefined,
|
|
52
|
+
relationToPEP: undefined,
|
|
53
|
+
role: undefined,
|
|
54
|
+
});
|
|
55
|
+
}, [pepContext]);
|
|
56
|
+
return (React.createElement(Form, { onSubmit: nextPage, lysaFormRef: formRef },
|
|
57
|
+
React.createElement(PepIsPepQuestions, { ownerName: pepContext.state.ownerName, legalEntityType: pepContext.state.legalEntityType, type: pepContext.state.type, onChange: (type) => pepContext.setState({ type }), resetValues: resetValues }),
|
|
58
|
+
React.createElement(PrimaryButton, { type: "submit" }, "N\u00E4sta")));
|
|
59
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FunctionComponent } from "react";
|
|
2
|
-
interface Props {
|
|
3
|
-
next: () => void;
|
|
4
|
-
}
|
|
5
|
-
export declare const
|
|
6
|
-
export {};
|
|
1
|
+
import { FunctionComponent } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
next: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const PepRelationPage: FunctionComponent<Props>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import React, { useContext, useRef, useCallback, } from "react";
|
|
2
|
+
import { PepContext, PepType, BusinessRelation, Relation, EntityType, } from "./PepContext";
|
|
3
|
+
import { RadioGroup, Form, RequiredValidator, TextInput, Datepicker, PrimaryButton, } from "@lysaab/ui-2";
|
|
4
|
+
import { LABELS } from "../model/PepTexts";
|
|
5
|
+
import { DateTime } from "luxon";
|
|
6
|
+
const DATEPICKER_START_DATE = DateTime.fromISO("1970-01-01").toJSDate();
|
|
7
|
+
export const PepRelationPage = ({ next }) => {
|
|
8
|
+
const pepContext = useContext(PepContext);
|
|
9
|
+
const formRef = useRef();
|
|
10
|
+
const entityType = pepContext.state.legalEntityType || EntityType.PERSON;
|
|
11
|
+
const type = pepContext.state.type;
|
|
12
|
+
const labels = LABELS(pepContext.state.ownerName);
|
|
13
|
+
const businessRelationAlternatives = [
|
|
14
|
+
{
|
|
15
|
+
text: labels[entityType][PepType.COLLEAGUE].BUSINESS_RELATION[BusinessRelation.CO_OWNERSHIP],
|
|
16
|
+
value: BusinessRelation.CO_OWNERSHIP,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
text: labels[entityType][PepType.COLLEAGUE].BUSINESS_RELATION[BusinessRelation.CLOSE_CONNECTION],
|
|
20
|
+
value: BusinessRelation.CLOSE_CONNECTION,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
text: labels[entityType][PepType.COLLEAGUE].BUSINESS_RELATION[BusinessRelation.COMPANY_FOR_PEP],
|
|
24
|
+
value: BusinessRelation.COMPANY_FOR_PEP,
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
const relationAlternatives = [
|
|
28
|
+
{
|
|
29
|
+
text: labels[entityType][PepType.RELATIVE].RELATION[Relation.MARRIED_PARTNER],
|
|
30
|
+
value: Relation.MARRIED_PARTNER,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
text: labels[entityType][PepType.RELATIVE].RELATION[Relation.COLIVING_PARTNER],
|
|
34
|
+
value: Relation.COLIVING_PARTNER,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
text: labels[entityType][PepType.RELATIVE].RELATION[Relation.CHILD],
|
|
38
|
+
value: Relation.CHILD,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
text: labels[entityType][PepType.RELATIVE].RELATION[Relation.PARENT],
|
|
42
|
+
value: Relation.PARENT,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
text: labels[entityType][PepType.RELATIVE].RELATION[Relation.CHILD_MARRIED_PARTNER],
|
|
46
|
+
value: Relation.CHILD_MARRIED_PARTNER,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
text: labels[entityType][PepType.RELATIVE].RELATION[Relation.CHILD_COLIVING_PARTNER],
|
|
50
|
+
value: Relation.CHILD_COLIVING_PARTNER,
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
const nextPage = useCallback(() => {
|
|
54
|
+
if (formRef.current && formRef.current.isValid) {
|
|
55
|
+
next();
|
|
56
|
+
}
|
|
57
|
+
}, [formRef, next]);
|
|
58
|
+
return (React.createElement(Form, { onSubmit: () => nextPage(), lysaFormRef: formRef },
|
|
59
|
+
type === PepType.RELATIVE ? (React.createElement(RadioGroup, { alternatives: relationAlternatives, onChange: alternative => {
|
|
60
|
+
pepContext.setState({
|
|
61
|
+
relationToPEP: alternative.value,
|
|
62
|
+
});
|
|
63
|
+
}, value: relationAlternatives.find(alt => alt.value === pepContext.state.relationToPEP), header: labels[entityType][PepType.RELATIVE].RELATION_LABEL, validators: [new RequiredValidator("Du måste välja ett alternativ")] })) : null,
|
|
64
|
+
type === PepType.COLLEAGUE ? (React.createElement(RadioGroup, { alternatives: businessRelationAlternatives, onChange: alternative => {
|
|
65
|
+
pepContext.setState({
|
|
66
|
+
businessRelation: alternative.value,
|
|
67
|
+
});
|
|
68
|
+
}, value: businessRelationAlternatives.find(alt => alt.value === pepContext.state.businessRelation), header: labels[entityType][PepType.COLLEAGUE].BUSINESS_RELATION_LABEL, validators: [new RequiredValidator("Du måste välja ett alternativ")] })) : null,
|
|
69
|
+
pepContext.state.relationToPEP && type === PepType.RELATIVE ? (React.createElement(React.Fragment, null,
|
|
70
|
+
React.createElement(TextInput, { label: labels[entityType][type].NAME_LABEL[pepContext.state.relationToPEP], value: pepContext.state.nameOfPEP || "", onChange: value => {
|
|
71
|
+
pepContext.setState({ nameOfPEP: value });
|
|
72
|
+
}, validators: [new RequiredValidator("Du måste ange namn")] }),
|
|
73
|
+
React.createElement(Datepicker, { label: labels[entityType][type].BIRTH_LABEL[pepContext.state.relationToPEP], selected: pepContext.state.birthdayOfPEP, onChange: event => pepContext.setState({ birthdayOfPEP: event || undefined }), validators: [new RequiredValidator("Ange datum")], maxDate: new Date(), openToDate: pepContext.state.birthdayOfPEP || DATEPICKER_START_DATE }))) : null,
|
|
74
|
+
pepContext.state.businessRelation && type === PepType.COLLEAGUE ? (React.createElement(React.Fragment, null,
|
|
75
|
+
React.createElement(TextInput, { label: labels[entityType][type].NAME_LABEL[pepContext.state.businessRelation], value: pepContext.state.nameOfPEP || "", onChange: value => {
|
|
76
|
+
pepContext.setState({ nameOfPEP: value });
|
|
77
|
+
}, validators: [new RequiredValidator("Du måste ange namn")] }))) : null,
|
|
78
|
+
React.createElement(PrimaryButton, { type: "submit" }, "N\u00E4sta")));
|
|
79
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FunctionComponent } from "react";
|
|
2
|
+
import { Alternative } from "@lysaab/ui-2/components/input/InputAPI";
|
|
3
|
+
import { Role, MilitaryRank } from "./PepContext";
|
|
4
|
+
interface Props {
|
|
5
|
+
next: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const roleAlternatives: Alternative<Role>[];
|
|
8
|
+
export declare const militaryAlternatives: Alternative<MilitaryRank>[];
|
|
9
|
+
export declare const PepRolePage: FunctionComponent<Props>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import React, { useRef, useCallback, useContext, } from "react";
|
|
2
|
+
import { Form, PrimaryButton, RequiredValidator, TextInput, Select, } from "@lysaab/ui-2";
|
|
3
|
+
import { PepContext, Role, MilitaryRank, EntityType, PepType, } from "./PepContext";
|
|
4
|
+
import { CountrySelect } from "../components/CountrySelect";
|
|
5
|
+
import { getGovernmentCompanyNameLabel, getGovernmentCompanyRoleLabel, getHighRankingPositionIntCorpNameLabel, getHighRankingPositionIntCorpRoleLabel, getMilitaryRankLabel, getRoleLabel, getAmbassadorLabel, } from "../model/PepTexts";
|
|
6
|
+
export const roleAlternatives = [
|
|
7
|
+
{ text: "Stats eller regeringschef", value: Role.HEAD_OF_GOVERNMENT },
|
|
8
|
+
{ text: "Minister eller Vice/Biträdande minister", value: Role.MINISTER },
|
|
9
|
+
{ text: "Ledamot i parlament eller riksdag", value: Role.PARLIMENT_MEMBER },
|
|
10
|
+
{
|
|
11
|
+
text: "Ledamot i centralbanks styrande organ",
|
|
12
|
+
value: Role.CENTRAL_BANK_MEMBER,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
text: "Ledamot för styrelsen i politiskt parti representerade i riksdagen",
|
|
16
|
+
value: Role.BOARD_MEMBER_POLITICAL_PARTY,
|
|
17
|
+
},
|
|
18
|
+
{ text: "Domare i högsta domstolen", value: Role.JUDGE_SUPREME_COURT },
|
|
19
|
+
{
|
|
20
|
+
text: "Domare i konstitutionell domstol eller annat rättsligt organ på hög nivå vars beslut endast undantagsvis kan överklagas",
|
|
21
|
+
value: Role.JUDGE_OTHER_HIGH_COURT,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
text: "Högre tjänsteman vid revisionsmyndighet",
|
|
25
|
+
value: Role.REVISION_INSTITUTE,
|
|
26
|
+
},
|
|
27
|
+
{ text: "Ambassadör eller bestickningschef", value: Role.AMBASSADOR },
|
|
28
|
+
{ text: "Högre officer i försvarsmakt", value: Role.MILITARY_OFFICER },
|
|
29
|
+
{
|
|
30
|
+
text: "Person som ingår i statsägt företags förvaltnings-, lednings eller kontrollorgan",
|
|
31
|
+
value: Role.GOVERNMENT_COMPANY,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
text: "EU-parlamentariker",
|
|
35
|
+
value: Role.EU_HIGH_RANKING_POSITION,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
text: "Befattning på hög nivå i en internationell organisation",
|
|
39
|
+
value: Role.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP,
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
export const militaryAlternatives = [
|
|
43
|
+
{
|
|
44
|
+
text: "General",
|
|
45
|
+
value: MilitaryRank.GENERAL,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
text: "Generallöjtnant",
|
|
49
|
+
value: MilitaryRank.LIEUTENANT_GENERAL,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
text: "Generalmajor",
|
|
53
|
+
value: MilitaryRank.MAJOR_GENERAL,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
text: "Amiral",
|
|
57
|
+
value: MilitaryRank.ADMIRAL,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
text: "Viceamiral",
|
|
61
|
+
value: MilitaryRank.VICE_ADMIRAL,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
text: "Konteramiral",
|
|
65
|
+
value: MilitaryRank.REAR_ADMIRAL,
|
|
66
|
+
},
|
|
67
|
+
];
|
|
68
|
+
export const PepRolePage = ({ next }) => {
|
|
69
|
+
const pepContext = useContext(PepContext);
|
|
70
|
+
const formRef = useRef();
|
|
71
|
+
const entityType = pepContext.state.legalEntityType || EntityType.PERSON;
|
|
72
|
+
const type = pepContext.state.type;
|
|
73
|
+
const nextPage = useCallback(() => {
|
|
74
|
+
if (formRef.current && formRef.current.isValid) {
|
|
75
|
+
next();
|
|
76
|
+
}
|
|
77
|
+
}, [formRef, next]);
|
|
78
|
+
const resetRoleFields = useCallback(() => {
|
|
79
|
+
pepContext.setState({
|
|
80
|
+
ambassadorCountry: undefined,
|
|
81
|
+
governmentCompany: undefined,
|
|
82
|
+
governmentCompanyRole: undefined,
|
|
83
|
+
internationalOrganisation: undefined,
|
|
84
|
+
internationalOrganisationRole: undefined,
|
|
85
|
+
militaryRank: undefined,
|
|
86
|
+
});
|
|
87
|
+
}, [pepContext]);
|
|
88
|
+
if (!type || type === PepType.NOT_PEP) {
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
return (React.createElement(Form, { onSubmit: () => nextPage(), lysaFormRef: formRef },
|
|
92
|
+
React.createElement(Select, { label: getRoleLabel(entityType, type, pepContext.state.relationToPEP, pepContext.state.businessRelation, pepContext.state.ownerName), placeholder: "V\u00E4lj en roll", alternatives: roleAlternatives, value: roleAlternatives.find(alt => alt.value === pepContext.state.role), onChange: event => {
|
|
93
|
+
pepContext.setState({ role: event.value });
|
|
94
|
+
resetRoleFields();
|
|
95
|
+
}, validators: [new RequiredValidator("Du måste välja roll")] }),
|
|
96
|
+
pepContext.state.role && pepContext.state.role === Role.AMBASSADOR ? (React.createElement(CountrySelect, { label: getAmbassadorLabel(entityType, type, pepContext.state.relationToPEP, pepContext.state.businessRelation, pepContext.state.ownerName), onChange: event => pepContext.setState({
|
|
97
|
+
ambassadorCountry: event.value
|
|
98
|
+
? event.value.toString()
|
|
99
|
+
: undefined,
|
|
100
|
+
}), value: pepContext.state.ambassadorCountry, validators: [new RequiredValidator("Du måste välja land")] })) : null,
|
|
101
|
+
pepContext.state.role &&
|
|
102
|
+
pepContext.state.role === Role.GOVERNMENT_COMPANY ? (React.createElement(React.Fragment, null,
|
|
103
|
+
React.createElement(TextInput, { label: getGovernmentCompanyNameLabel(entityType, type, pepContext.state.relationToPEP, pepContext.state.businessRelation, pepContext.state.ownerName), value: pepContext.state.governmentCompany || "", onChange: value => {
|
|
104
|
+
pepContext.setState({ governmentCompany: value });
|
|
105
|
+
}, validators: [new RequiredValidator("Du måste ange ett namn")] }),
|
|
106
|
+
React.createElement(TextInput, { label: getGovernmentCompanyRoleLabel(entityType, type, pepContext.state.relationToPEP, pepContext.state.businessRelation, pepContext.state.ownerName), value: pepContext.state.governmentCompanyRole || "", onChange: value => {
|
|
107
|
+
pepContext.setState({
|
|
108
|
+
governmentCompanyRole: value,
|
|
109
|
+
});
|
|
110
|
+
}, validators: [new RequiredValidator("Du måste ange roll")] }))) : null,
|
|
111
|
+
pepContext.state.role &&
|
|
112
|
+
pepContext.state.role ===
|
|
113
|
+
Role.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP ? (React.createElement(React.Fragment, null,
|
|
114
|
+
React.createElement(TextInput, { label: getHighRankingPositionIntCorpNameLabel(entityType, type, pepContext.state.relationToPEP, pepContext.state.businessRelation, pepContext.state.ownerName), value: pepContext.state.internationalOrganisation || "", onChange: value => {
|
|
115
|
+
pepContext.setState({ internationalOrganisation: value });
|
|
116
|
+
}, validators: [new RequiredValidator("Du måste ange ett namn")] }),
|
|
117
|
+
React.createElement(TextInput, { label: getHighRankingPositionIntCorpRoleLabel(entityType, type, pepContext.state.relationToPEP, pepContext.state.businessRelation, pepContext.state.ownerName), value: pepContext.state.internationalOrganisationRole || "", onChange: value => {
|
|
118
|
+
pepContext.setState({
|
|
119
|
+
internationalOrganisationRole: value,
|
|
120
|
+
});
|
|
121
|
+
}, validators: [new RequiredValidator("Du måste ange roll")] }))) : null,
|
|
122
|
+
pepContext.state.role &&
|
|
123
|
+
pepContext.state.role === Role.MILITARY_OFFICER ? (React.createElement(Select, { label: getMilitaryRankLabel(entityType, type, pepContext.state.relationToPEP, pepContext.state.businessRelation, pepContext.state.ownerName), placeholder: "V\u00E4lj grad", alternatives: militaryAlternatives, value: militaryAlternatives.find(alt => alt.value === pepContext.state.militaryRank), onChange: event => {
|
|
124
|
+
pepContext.setState({ militaryRank: event.value });
|
|
125
|
+
}, validators: [new RequiredValidator("Du måste ange en grad")] })) : null,
|
|
126
|
+
React.createElement(PrimaryButton, { type: "submit" }, "N\u00E4sta")));
|
|
127
|
+
};
|