@lysaab/lysa-pep 3.0.3 → 3.0.4

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.
Files changed (41) hide show
  1. package/Exports.d.ts +7 -7
  2. package/Exports.js +7 -7
  3. package/components/CountrySelect.d.ts +11 -11
  4. package/components/CountrySelect.js +41 -41
  5. package/components/PepAnswers.d.ts +8 -8
  6. package/components/PepAnswers.js +137 -137
  7. package/model/PepModel.d.ts +7 -7
  8. package/model/PepModel.js +40 -40
  9. package/package.json +1 -1
  10. package/pages/IsPep/IsPepMessages.d.ts +32 -32
  11. package/pages/IsPep/IsPepMessages.js +34 -34
  12. package/pages/IsPep/IsPepPage.d.ts +15 -15
  13. package/pages/IsPep/IsPepPage.js +61 -61
  14. package/pages/PepContext.d.ts +81 -80
  15. package/pages/PepContext.js +89 -88
  16. package/pages/RelationPage/RelationMessages.d.ts +105 -105
  17. package/pages/RelationPage/RelationMessages.js +107 -107
  18. package/pages/RelationPage/RelationPage.d.ts +6 -6
  19. package/pages/RelationPage/RelationPage.js +156 -156
  20. package/pages/RolePage/RoleMessages.d.ts +185 -185
  21. package/pages/RolePage/RoleMessages.js +187 -187
  22. package/pages/RolePage/RolePage.d.ts +11 -11
  23. package/pages/RolePage/RolePage.js +223 -223
  24. package/pages/StatusPage/StatusMessages.d.ts +72 -72
  25. package/pages/StatusPage/StatusMessages.js +74 -74
  26. package/pages/StatusPage/StatusPage.d.ts +8 -8
  27. package/pages/StatusPage/StatusPage.js +105 -105
  28. package/utils/Possession.d.ts +1 -1
  29. package/utils/Possession.js +27 -27
  30. package/model/Countries.d.ts +0 -4
  31. package/model/Countries.js +0 -1002
  32. package/model/PepTexts.d.ts +0 -380
  33. package/model/PepTexts.js +0 -552
  34. package/pages/PepIsPepPage.d.ts +0 -15
  35. package/pages/PepIsPepPage.js +0 -59
  36. package/pages/PepRelationPage.d.ts +0 -6
  37. package/pages/PepRelationPage.js +0 -79
  38. package/pages/PepRolePage.d.ts +0 -10
  39. package/pages/PepRolePage.js +0 -127
  40. package/pages/PepStatusPage.d.ts +0 -6
  41. package/pages/PepStatusPage.js +0 -58
@@ -1,223 +1,223 @@
1
- import React, { useRef, useCallback, useContext, } from "react";
2
- import { Form, PrimaryButton, RequiredValidator, TextInput, Select, Card, } from "@lysaab/ui-2";
3
- import { PepContext, Role, MilitaryRank, PepType, EntityType, } from "../PepContext";
4
- import { CountrySelect } from "../../components/CountrySelect";
5
- import { useIntl, FormattedMessage } from "react-intl";
6
- import { roleMessages, ambassadorMessages, governmentCompanyMessages, intCompanyMessages, militaryMessages, } from "./RoleMessages";
7
- import { formatPossessive } from "../../utils/Possession";
8
- export const RolePage = ({ next }) => {
9
- const pepContext = useContext(PepContext);
10
- const formRef = useRef();
11
- const intl = useIntl();
12
- const entityType = pepContext.state.legalEntityType || EntityType.PERSON;
13
- const type = pepContext.state.type;
14
- const roleAlternatives = getRoleAlts(intl);
15
- const militaryAlternatives = getMilitaryAlts(intl);
16
- const nextPage = useCallback(() => {
17
- if (formRef.current && formRef.current.isValid) {
18
- next();
19
- }
20
- }, [formRef, next]);
21
- const resetRoleFields = useCallback(() => {
22
- pepContext.setState({
23
- ambassadorCountry: undefined,
24
- governmentCompany: undefined,
25
- governmentCompanyRole: undefined,
26
- internationalOrganisation: undefined,
27
- internationalOrganisationRole: undefined,
28
- militaryRank: undefined,
29
- });
30
- }, [pepContext]);
31
- if (!type || type === PepType.NOT_PEP) {
32
- return null;
33
- }
34
- return (React.createElement(Form, { onSubmit: () => nextPage(), lysaFormRef: formRef },
35
- React.createElement(Card, null,
36
- React.createElement(Select, { label: intl.formatMessage(roleMessages.header, {
37
- entityType,
38
- pepType: type,
39
- relation: pepContext.state.type === PepType.COLLEAGUE
40
- ? pepContext.state.businessRelation
41
- : pepContext.state.relationToPEP,
42
- name: pepContext.state.ownerName,
43
- possessiveName: formatPossessive(pepContext.state.ownerName, intl.locale),
44
- }), placeholder: intl.formatMessage(roleMessages.placeholder), alternatives: roleAlternatives, value: roleAlternatives.find((alt) => alt.value === pepContext.state.role), onChange: (event) => {
45
- pepContext.setState({ role: event.value });
46
- resetRoleFields();
47
- }, validators: [
48
- new RequiredValidator(intl.formatMessage(roleMessages.required)),
49
- ] }),
50
- pepContext.state.role && pepContext.state.role === Role.AMBASSADOR ? (React.createElement(CountrySelect, { label: intl.formatMessage(ambassadorMessages.header, {
51
- entityType,
52
- pepType: type,
53
- relation: pepContext.state.type === PepType.COLLEAGUE
54
- ? pepContext.state.businessRelation
55
- : pepContext.state.relationToPEP,
56
- name: pepContext.state.ownerName,
57
- }), onChange: (event) => pepContext.setState({
58
- ambassadorCountry: event.value
59
- ? event.value.toString()
60
- : undefined,
61
- }), value: pepContext.state.ambassadorCountry, validators: [
62
- new RequiredValidator(intl.formatMessage(ambassadorMessages.required)),
63
- ] })) : null,
64
- pepContext.state.role &&
65
- pepContext.state.role === Role.GOVERNMENT_COMPANY ? (React.createElement(React.Fragment, null,
66
- React.createElement(TextInput, { label: intl.formatMessage(governmentCompanyMessages.nameHeader, {
67
- entityType,
68
- pepType: type,
69
- relation: pepContext.state.type === PepType.COLLEAGUE
70
- ? pepContext.state.businessRelation
71
- : pepContext.state.relationToPEP,
72
- name: pepContext.state.ownerName,
73
- }), value: pepContext.state.governmentCompany || "", onChange: (value) => {
74
- pepContext.setState({ governmentCompany: value });
75
- }, validators: [
76
- new RequiredValidator(intl.formatMessage(governmentCompanyMessages.nameRequired)),
77
- ] }),
78
- React.createElement(TextInput, { label: intl.formatMessage(governmentCompanyMessages.roleHeader, {
79
- entityType,
80
- pepType: type,
81
- relation: pepContext.state.type === PepType.COLLEAGUE
82
- ? pepContext.state.businessRelation
83
- : pepContext.state.relationToPEP,
84
- name: pepContext.state.ownerName,
85
- }), value: pepContext.state.governmentCompanyRole || "", onChange: (value) => {
86
- pepContext.setState({
87
- governmentCompanyRole: value,
88
- });
89
- }, validators: [
90
- new RequiredValidator(intl.formatMessage(governmentCompanyMessages.roleRequired)),
91
- ] }))) : null,
92
- pepContext.state.role &&
93
- pepContext.state.role ===
94
- Role.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP ? (React.createElement(React.Fragment, null,
95
- React.createElement(TextInput, { label: intl.formatMessage(intCompanyMessages.nameHeader, {
96
- entityType,
97
- pepType: type,
98
- relation: pepContext.state.type === PepType.COLLEAGUE
99
- ? pepContext.state.businessRelation
100
- : pepContext.state.relationToPEP,
101
- name: pepContext.state.ownerName,
102
- }), value: pepContext.state.internationalOrganisation || "", onChange: (value) => {
103
- pepContext.setState({ internationalOrganisation: value });
104
- }, validators: [
105
- new RequiredValidator(intl.formatMessage(intCompanyMessages.nameRequired)),
106
- ] }),
107
- React.createElement(TextInput, { label: intl.formatMessage(intCompanyMessages.roleHeader, {
108
- entityType,
109
- pepType: type,
110
- relation: pepContext.state.type === PepType.COLLEAGUE
111
- ? pepContext.state.businessRelation
112
- : pepContext.state.relationToPEP,
113
- name: pepContext.state.ownerName,
114
- }), value: pepContext.state.internationalOrganisationRole || "", onChange: (value) => {
115
- pepContext.setState({
116
- internationalOrganisationRole: value,
117
- });
118
- }, validators: [
119
- new RequiredValidator(intl.formatMessage(intCompanyMessages.roleRequired)),
120
- ] }))) : null,
121
- pepContext.state.role &&
122
- pepContext.state.role === Role.MILITARY_OFFICER ? (React.createElement(Select, { label: intl.formatMessage(militaryMessages.header, {
123
- entityType,
124
- pepType: type,
125
- relation: pepContext.state.type === PepType.COLLEAGUE
126
- ? pepContext.state.businessRelation
127
- : pepContext.state.relationToPEP,
128
- name: pepContext.state.ownerName,
129
- possessiveName: formatPossessive(pepContext.state.ownerName, intl.locale),
130
- }), placeholder: intl.formatMessage(militaryMessages.placeholder), alternatives: militaryAlternatives, value: militaryAlternatives.find((alt) => alt.value === pepContext.state.militaryRank), onChange: (event) => {
131
- pepContext.setState({
132
- militaryRank: event.value,
133
- });
134
- }, validators: [
135
- new RequiredValidator(intl.formatMessage(militaryMessages.required)),
136
- ] })) : null),
137
- React.createElement(PrimaryButton, { block: true, type: "submit" },
138
- React.createElement(FormattedMessage, { id: "pep.role.next", description: "Next button", defaultMessage: "Next" }))));
139
- };
140
- export function getRoleAlts(intl) {
141
- return [
142
- {
143
- text: intl.formatMessage(roleMessages[Role.HEAD_OF_GOVERNMENT]),
144
- value: Role.HEAD_OF_GOVERNMENT,
145
- },
146
- {
147
- text: intl.formatMessage(roleMessages[Role.MINISTER]),
148
- value: Role.MINISTER,
149
- },
150
- {
151
- text: intl.formatMessage(roleMessages[Role.PARLIMENT_MEMBER]),
152
- value: Role.PARLIMENT_MEMBER,
153
- },
154
- {
155
- text: intl.formatMessage(roleMessages[Role.CENTRAL_BANK_MEMBER]),
156
- value: Role.CENTRAL_BANK_MEMBER,
157
- },
158
- {
159
- text: intl.formatMessage(roleMessages[Role.BOARD_MEMBER_POLITICAL_PARTY]),
160
- value: Role.BOARD_MEMBER_POLITICAL_PARTY,
161
- },
162
- {
163
- text: intl.formatMessage(roleMessages[Role.JUDGE_SUPREME_COURT]),
164
- value: Role.JUDGE_SUPREME_COURT,
165
- },
166
- {
167
- text: intl.formatMessage(roleMessages[Role.JUDGE_OTHER_HIGH_COURT]),
168
- value: Role.JUDGE_OTHER_HIGH_COURT,
169
- },
170
- {
171
- text: intl.formatMessage(roleMessages[Role.REVISION_INSTITUTE]),
172
- value: Role.REVISION_INSTITUTE,
173
- },
174
- {
175
- text: intl.formatMessage(roleMessages[Role.AMBASSADOR]),
176
- value: Role.AMBASSADOR,
177
- },
178
- {
179
- text: intl.formatMessage(roleMessages[Role.MILITARY_OFFICER]),
180
- value: Role.MILITARY_OFFICER,
181
- },
182
- {
183
- text: intl.formatMessage(roleMessages[Role.GOVERNMENT_COMPANY]),
184
- value: Role.GOVERNMENT_COMPANY,
185
- },
186
- {
187
- text: intl.formatMessage(roleMessages[Role.EU_HIGH_RANKING_POSITION]),
188
- value: Role.EU_HIGH_RANKING_POSITION,
189
- },
190
- {
191
- text: intl.formatMessage(roleMessages[Role.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP]),
192
- value: Role.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP,
193
- },
194
- ];
195
- }
196
- export function getMilitaryAlts(intl) {
197
- return [
198
- {
199
- text: intl.formatMessage(militaryMessages[MilitaryRank.GENERAL]),
200
- value: MilitaryRank.GENERAL,
201
- },
202
- {
203
- text: intl.formatMessage(militaryMessages[MilitaryRank.LIEUTENANT_GENERAL]),
204
- value: MilitaryRank.LIEUTENANT_GENERAL,
205
- },
206
- {
207
- text: intl.formatMessage(militaryMessages[MilitaryRank.MAJOR_GENERAL]),
208
- value: MilitaryRank.MAJOR_GENERAL,
209
- },
210
- {
211
- text: intl.formatMessage(militaryMessages[MilitaryRank.ADMIRAL]),
212
- value: MilitaryRank.ADMIRAL,
213
- },
214
- {
215
- text: intl.formatMessage(militaryMessages[MilitaryRank.VICE_ADMIRAL]),
216
- value: MilitaryRank.VICE_ADMIRAL,
217
- },
218
- {
219
- text: intl.formatMessage(militaryMessages[MilitaryRank.REAR_ADMIRAL]),
220
- value: MilitaryRank.REAR_ADMIRAL,
221
- },
222
- ];
223
- }
1
+ import React, { useRef, useCallback, useContext, } from "react";
2
+ import { Form, PrimaryButton, RequiredValidator, TextInput, Select, Card, } from "@lysaab/ui-2";
3
+ import { PepContext, Role, MilitaryRank, PepType, EntityType, } from "../PepContext";
4
+ import { CountrySelect } from "../../components/CountrySelect";
5
+ import { useIntl, FormattedMessage } from "react-intl";
6
+ import { roleMessages, ambassadorMessages, governmentCompanyMessages, intCompanyMessages, militaryMessages, } from "./RoleMessages";
7
+ import { formatPossessive } from "../../utils/Possession";
8
+ export const RolePage = ({ next }) => {
9
+ const pepContext = useContext(PepContext);
10
+ const formRef = useRef();
11
+ const intl = useIntl();
12
+ const entityType = pepContext.state.legalEntityType || EntityType.PERSON;
13
+ const type = pepContext.state.type;
14
+ const roleAlternatives = getRoleAlts(intl);
15
+ const militaryAlternatives = getMilitaryAlts(intl);
16
+ const nextPage = useCallback(() => {
17
+ if (formRef.current && formRef.current.isValid) {
18
+ next();
19
+ }
20
+ }, [formRef, next]);
21
+ const resetRoleFields = useCallback(() => {
22
+ pepContext.setState({
23
+ ambassadorCountry: undefined,
24
+ governmentCompany: undefined,
25
+ governmentCompanyRole: undefined,
26
+ internationalOrganisation: undefined,
27
+ internationalOrganisationRole: undefined,
28
+ militaryRank: undefined,
29
+ });
30
+ }, [pepContext]);
31
+ if (!type || type === PepType.NOT_PEP) {
32
+ return null;
33
+ }
34
+ return (React.createElement(Form, { onSubmit: () => nextPage(), lysaFormRef: formRef },
35
+ React.createElement(Card, null,
36
+ React.createElement(Select, { label: intl.formatMessage(roleMessages.header, {
37
+ entityType,
38
+ pepType: type,
39
+ relation: pepContext.state.type === PepType.COLLEAGUE
40
+ ? pepContext.state.businessRelation
41
+ : pepContext.state.relationToPEP,
42
+ name: pepContext.state.ownerName,
43
+ possessiveName: formatPossessive(pepContext.state.ownerName, intl.locale),
44
+ }), placeholder: intl.formatMessage(roleMessages.placeholder), alternatives: roleAlternatives, value: roleAlternatives.find((alt) => alt.value === pepContext.state.role), onChange: (event) => {
45
+ pepContext.setState({ role: event.value });
46
+ resetRoleFields();
47
+ }, validators: [
48
+ new RequiredValidator(intl.formatMessage(roleMessages.required)),
49
+ ] }),
50
+ pepContext.state.role && pepContext.state.role === Role.AMBASSADOR ? (React.createElement(CountrySelect, { label: intl.formatMessage(ambassadorMessages.header, {
51
+ entityType,
52
+ pepType: type,
53
+ relation: pepContext.state.type === PepType.COLLEAGUE
54
+ ? pepContext.state.businessRelation
55
+ : pepContext.state.relationToPEP,
56
+ name: pepContext.state.ownerName,
57
+ }), onChange: (event) => pepContext.setState({
58
+ ambassadorCountry: event.value
59
+ ? event.value.toString()
60
+ : undefined,
61
+ }), value: pepContext.state.ambassadorCountry, validators: [
62
+ new RequiredValidator(intl.formatMessage(ambassadorMessages.required)),
63
+ ] })) : null,
64
+ pepContext.state.role &&
65
+ pepContext.state.role === Role.GOVERNMENT_COMPANY ? (React.createElement(React.Fragment, null,
66
+ React.createElement(TextInput, { label: intl.formatMessage(governmentCompanyMessages.nameHeader, {
67
+ entityType,
68
+ pepType: type,
69
+ relation: pepContext.state.type === PepType.COLLEAGUE
70
+ ? pepContext.state.businessRelation
71
+ : pepContext.state.relationToPEP,
72
+ name: pepContext.state.ownerName,
73
+ }), value: pepContext.state.governmentCompany || "", onChange: (value) => {
74
+ pepContext.setState({ governmentCompany: value });
75
+ }, validators: [
76
+ new RequiredValidator(intl.formatMessage(governmentCompanyMessages.nameRequired)),
77
+ ] }),
78
+ React.createElement(TextInput, { label: intl.formatMessage(governmentCompanyMessages.roleHeader, {
79
+ entityType,
80
+ pepType: type,
81
+ relation: pepContext.state.type === PepType.COLLEAGUE
82
+ ? pepContext.state.businessRelation
83
+ : pepContext.state.relationToPEP,
84
+ name: pepContext.state.ownerName,
85
+ }), value: pepContext.state.governmentCompanyRole || "", onChange: (value) => {
86
+ pepContext.setState({
87
+ governmentCompanyRole: value,
88
+ });
89
+ }, validators: [
90
+ new RequiredValidator(intl.formatMessage(governmentCompanyMessages.roleRequired)),
91
+ ] }))) : null,
92
+ pepContext.state.role &&
93
+ pepContext.state.role ===
94
+ Role.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP ? (React.createElement(React.Fragment, null,
95
+ React.createElement(TextInput, { label: intl.formatMessage(intCompanyMessages.nameHeader, {
96
+ entityType,
97
+ pepType: type,
98
+ relation: pepContext.state.type === PepType.COLLEAGUE
99
+ ? pepContext.state.businessRelation
100
+ : pepContext.state.relationToPEP,
101
+ name: pepContext.state.ownerName,
102
+ }), value: pepContext.state.internationalOrganisation || "", onChange: (value) => {
103
+ pepContext.setState({ internationalOrganisation: value });
104
+ }, validators: [
105
+ new RequiredValidator(intl.formatMessage(intCompanyMessages.nameRequired)),
106
+ ] }),
107
+ React.createElement(TextInput, { label: intl.formatMessage(intCompanyMessages.roleHeader, {
108
+ entityType,
109
+ pepType: type,
110
+ relation: pepContext.state.type === PepType.COLLEAGUE
111
+ ? pepContext.state.businessRelation
112
+ : pepContext.state.relationToPEP,
113
+ name: pepContext.state.ownerName,
114
+ }), value: pepContext.state.internationalOrganisationRole || "", onChange: (value) => {
115
+ pepContext.setState({
116
+ internationalOrganisationRole: value,
117
+ });
118
+ }, validators: [
119
+ new RequiredValidator(intl.formatMessage(intCompanyMessages.roleRequired)),
120
+ ] }))) : null,
121
+ pepContext.state.role &&
122
+ pepContext.state.role === Role.MILITARY_OFFICER ? (React.createElement(Select, { label: intl.formatMessage(militaryMessages.header, {
123
+ entityType,
124
+ pepType: type,
125
+ relation: pepContext.state.type === PepType.COLLEAGUE
126
+ ? pepContext.state.businessRelation
127
+ : pepContext.state.relationToPEP,
128
+ name: pepContext.state.ownerName,
129
+ possessiveName: formatPossessive(pepContext.state.ownerName, intl.locale),
130
+ }), placeholder: intl.formatMessage(militaryMessages.placeholder), alternatives: militaryAlternatives, value: militaryAlternatives.find((alt) => alt.value === pepContext.state.militaryRank), onChange: (event) => {
131
+ pepContext.setState({
132
+ militaryRank: event.value,
133
+ });
134
+ }, validators: [
135
+ new RequiredValidator(intl.formatMessage(militaryMessages.required)),
136
+ ] })) : null),
137
+ React.createElement(PrimaryButton, { block: true, type: "submit" },
138
+ React.createElement(FormattedMessage, { id: "pep.role.next", description: "Next button", defaultMessage: "Next" }))));
139
+ };
140
+ export function getRoleAlts(intl) {
141
+ return [
142
+ {
143
+ text: intl.formatMessage(roleMessages[Role.HEAD_OF_GOVERNMENT]),
144
+ value: Role.HEAD_OF_GOVERNMENT,
145
+ },
146
+ {
147
+ text: intl.formatMessage(roleMessages[Role.MINISTER]),
148
+ value: Role.MINISTER,
149
+ },
150
+ {
151
+ text: intl.formatMessage(roleMessages[Role.PARLIMENT_MEMBER]),
152
+ value: Role.PARLIMENT_MEMBER,
153
+ },
154
+ {
155
+ text: intl.formatMessage(roleMessages[Role.CENTRAL_BANK_MEMBER]),
156
+ value: Role.CENTRAL_BANK_MEMBER,
157
+ },
158
+ {
159
+ text: intl.formatMessage(roleMessages[Role.BOARD_MEMBER_POLITICAL_PARTY]),
160
+ value: Role.BOARD_MEMBER_POLITICAL_PARTY,
161
+ },
162
+ {
163
+ text: intl.formatMessage(roleMessages[Role.JUDGE_SUPREME_COURT]),
164
+ value: Role.JUDGE_SUPREME_COURT,
165
+ },
166
+ {
167
+ text: intl.formatMessage(roleMessages[Role.JUDGE_OTHER_HIGH_COURT]),
168
+ value: Role.JUDGE_OTHER_HIGH_COURT,
169
+ },
170
+ {
171
+ text: intl.formatMessage(roleMessages[Role.REVISION_INSTITUTE]),
172
+ value: Role.REVISION_INSTITUTE,
173
+ },
174
+ {
175
+ text: intl.formatMessage(roleMessages[Role.AMBASSADOR]),
176
+ value: Role.AMBASSADOR,
177
+ },
178
+ {
179
+ text: intl.formatMessage(roleMessages[Role.MILITARY_OFFICER]),
180
+ value: Role.MILITARY_OFFICER,
181
+ },
182
+ {
183
+ text: intl.formatMessage(roleMessages[Role.GOVERNMENT_COMPANY]),
184
+ value: Role.GOVERNMENT_COMPANY,
185
+ },
186
+ {
187
+ text: intl.formatMessage(roleMessages[Role.EU_HIGH_RANKING_POSITION]),
188
+ value: Role.EU_HIGH_RANKING_POSITION,
189
+ },
190
+ {
191
+ text: intl.formatMessage(roleMessages[Role.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP]),
192
+ value: Role.HIGH_RANKING_POSITION_INTERNALTIONAL_CORP,
193
+ },
194
+ ];
195
+ }
196
+ export function getMilitaryAlts(intl) {
197
+ return [
198
+ {
199
+ text: intl.formatMessage(militaryMessages[MilitaryRank.GENERAL]),
200
+ value: MilitaryRank.GENERAL,
201
+ },
202
+ {
203
+ text: intl.formatMessage(militaryMessages[MilitaryRank.LIEUTENANT_GENERAL]),
204
+ value: MilitaryRank.LIEUTENANT_GENERAL,
205
+ },
206
+ {
207
+ text: intl.formatMessage(militaryMessages[MilitaryRank.MAJOR_GENERAL]),
208
+ value: MilitaryRank.MAJOR_GENERAL,
209
+ },
210
+ {
211
+ text: intl.formatMessage(militaryMessages[MilitaryRank.ADMIRAL]),
212
+ value: MilitaryRank.ADMIRAL,
213
+ },
214
+ {
215
+ text: intl.formatMessage(militaryMessages[MilitaryRank.VICE_ADMIRAL]),
216
+ value: MilitaryRank.VICE_ADMIRAL,
217
+ },
218
+ {
219
+ text: intl.formatMessage(militaryMessages[MilitaryRank.REAR_ADMIRAL]),
220
+ value: MilitaryRank.REAR_ADMIRAL,
221
+ },
222
+ ];
223
+ }
@@ -1,72 +1,72 @@
1
- export declare const isOngoingMessages: {
2
- header: {
3
- id: string;
4
- description: string;
5
- defaultMessage: string;
6
- };
7
- required: {
8
- id: string;
9
- description: string;
10
- defaultMessage: string;
11
- };
12
- };
13
- export declare const endedMessages: {
14
- header: {
15
- id: string;
16
- description: string;
17
- defaultMessage: string;
18
- };
19
- required: {
20
- id: string;
21
- description: string;
22
- defaultMessage: string;
23
- };
24
- };
25
- export declare const isLocalCountryMessages: {
26
- header: {
27
- id: string;
28
- description: string;
29
- defaultMessage: string;
30
- };
31
- required: {
32
- id: string;
33
- description: string;
34
- defaultMessage: string;
35
- };
36
- };
37
- export declare const countrySelectionMessages: {
38
- header: {
39
- id: string;
40
- description: string;
41
- defaultMessage: string;
42
- };
43
- required: {
44
- id: string;
45
- description: string;
46
- defaultMessage: string;
47
- };
48
- };
49
- export declare const localCountryAltMessages: {
50
- localCountry: {
51
- id: string;
52
- description: string;
53
- defaultMessage: string;
54
- };
55
- otherCountry: {
56
- id: string;
57
- description: string;
58
- defaultMessage: string;
59
- };
60
- };
61
- export declare const stateAltMessages: {
62
- ONGOING: {
63
- id: string;
64
- description: string;
65
- defaultMessage: string;
66
- };
67
- ENDED: {
68
- id: string;
69
- description: string;
70
- defaultMessage: string;
71
- };
72
- };
1
+ export declare const isOngoingMessages: {
2
+ header: {
3
+ id: string;
4
+ description: string;
5
+ defaultMessage: string;
6
+ };
7
+ required: {
8
+ id: string;
9
+ description: string;
10
+ defaultMessage: string;
11
+ };
12
+ };
13
+ export declare const endedMessages: {
14
+ header: {
15
+ id: string;
16
+ description: string;
17
+ defaultMessage: string;
18
+ };
19
+ required: {
20
+ id: string;
21
+ description: string;
22
+ defaultMessage: string;
23
+ };
24
+ };
25
+ export declare const isLocalCountryMessages: {
26
+ header: {
27
+ id: string;
28
+ description: string;
29
+ defaultMessage: string;
30
+ };
31
+ required: {
32
+ id: string;
33
+ description: string;
34
+ defaultMessage: string;
35
+ };
36
+ };
37
+ export declare const countrySelectionMessages: {
38
+ header: {
39
+ id: string;
40
+ description: string;
41
+ defaultMessage: string;
42
+ };
43
+ required: {
44
+ id: string;
45
+ description: string;
46
+ defaultMessage: string;
47
+ };
48
+ };
49
+ export declare const localCountryAltMessages: {
50
+ localCountry: {
51
+ id: string;
52
+ description: string;
53
+ defaultMessage: string;
54
+ };
55
+ otherCountry: {
56
+ id: string;
57
+ description: string;
58
+ defaultMessage: string;
59
+ };
60
+ };
61
+ export declare const stateAltMessages: {
62
+ ONGOING: {
63
+ id: string;
64
+ description: string;
65
+ defaultMessage: string;
66
+ };
67
+ ENDED: {
68
+ id: string;
69
+ description: string;
70
+ defaultMessage: string;
71
+ };
72
+ };