@lysaab/lysa-pep 1.0.3-0 → 1.0.5-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/messages/src/components/CountrySelect.json +1 -0
- package/messages/src/components/PepAnswers.json +1 -0
- package/messages/src/pages/IsPep/IsPepMessages.json +1 -0
- package/messages/src/pages/IsPep/IsPepPage.json +1 -0
- package/messages/src/pages/RelationPage/RelationMessages.json +1 -0
- package/messages/src/pages/RelationPage/RelationPage.json +1 -0
- package/messages/src/pages/RolePage/RoleMessages.json +1 -0
- package/messages/src/pages/RolePage/RolePage.json +1 -0
- package/messages/src/pages/StatusPage/StatusMessages.json +1 -0
- package/messages/src/pages/StatusPage/StatusPage.json +1 -0
- package/package.json +25 -13
- package/{lib/pages → pages}/IsPep/IsPepMessages.js +13 -13
- package/{lib/pages → pages}/IsPep/IsPepPage.js +7 -6
- package/pages/RelationPage/RelationPage.js +154 -0
- package/pages/RolePage/RolePage.js +223 -0
- package/pages/StatusPage/StatusPage.js +98 -0
- package/lib/pages/RelationPage/RelationPage.js +0 -153
- package/lib/pages/RolePage/RolePage.js +0 -220
- package/lib/pages/StatusPage/StatusPage.js +0 -95
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -2
- package/src/App.css +0 -3
- package/src/App.test.tsx +0 -9
- package/src/App.tsx +0 -25
- package/src/Exports.ts +0 -12
- package/src/components/CountrySelect.tsx +0 -47
- package/src/components/PepAnswers.scss +0 -7
- package/src/components/PepAnswers.tsx +0 -252
- package/src/demo/Done.tsx +0 -16
- package/src/demo/Pep.tsx +0 -112
- package/src/index.css +0 -13
- package/src/index.tsx +0 -12
- package/src/logo.svg +0 -1
- package/src/model/Countries.ts +0 -1002
- package/src/model/PepModel.ts +0 -52
- package/src/pages/IsPep/IsPepMessages.ts +0 -67
- package/src/pages/IsPep/IsPepPage.tsx +0 -115
- package/src/pages/PepContext.tsx +0 -144
- package/src/pages/RelationPage/RelationMessages.ts +0 -288
- package/src/pages/RelationPage/RelationPage.tsx +0 -299
- package/src/pages/RolePage/RoleMessages.ts +0 -393
- package/src/pages/RolePage/RolePage.tsx +0 -356
- package/src/pages/StatusPage/StatusMessages.ts +0 -272
- package/src/pages/StatusPage/StatusPage.tsx +0 -207
- package/src/react-app-env.d.ts +0 -1
- package/src/serviceWorker.ts +0 -143
- package/src/utils/Possession.ts +0 -21
- package/tsconfig.json +0 -25
- package/tsconfig_build.json +0 -19
- /package/{lib/Exports.d.ts → Exports.d.ts} +0 -0
- /package/{lib/Exports.js → Exports.js} +0 -0
- /package/{lib/components → components}/CountrySelect.d.ts +0 -0
- /package/{lib/components → components}/CountrySelect.js +0 -0
- /package/{lib/components → components}/PepAnswers.d.ts +0 -0
- /package/{lib/components → components}/PepAnswers.js +0 -0
- /package/{lib/components → components}/PepAnswers.scss +0 -0
- /package/{lib/model → model}/Countries.d.ts +0 -0
- /package/{lib/model → model}/Countries.js +0 -0
- /package/{lib/model → model}/PepModel.d.ts +0 -0
- /package/{lib/model → model}/PepModel.js +0 -0
- /package/{lib/model → model}/PepTexts.d.ts +0 -0
- /package/{lib/model → model}/PepTexts.js +0 -0
- /package/{lib/pages → pages}/IsPep/IsPepMessages.d.ts +0 -0
- /package/{lib/pages → pages}/IsPep/IsPepPage.d.ts +0 -0
- /package/{lib/pages → pages}/PepContext.d.ts +0 -0
- /package/{lib/pages → pages}/PepContext.js +0 -0
- /package/{lib/pages → pages}/PepIsPepPage.d.ts +0 -0
- /package/{lib/pages → pages}/PepIsPepPage.js +0 -0
- /package/{lib/pages → pages}/PepRelationPage.d.ts +0 -0
- /package/{lib/pages → pages}/PepRelationPage.js +0 -0
- /package/{lib/pages → pages}/PepRolePage.d.ts +0 -0
- /package/{lib/pages → pages}/PepRolePage.js +0 -0
- /package/{lib/pages → pages}/PepStatusPage.d.ts +0 -0
- /package/{lib/pages → pages}/PepStatusPage.js +0 -0
- /package/{lib/pages → pages}/RelationPage/RelationMessages.d.ts +0 -0
- /package/{lib/pages → pages}/RelationPage/RelationMessages.js +0 -0
- /package/{lib/pages → pages}/RelationPage/RelationPage.d.ts +0 -0
- /package/{lib/pages → pages}/RolePage/RoleMessages.d.ts +0 -0
- /package/{lib/pages → pages}/RolePage/RoleMessages.js +0 -0
- /package/{lib/pages → pages}/RolePage/RolePage.d.ts +0 -0
- /package/{lib/pages → pages}/StatusPage/StatusMessages.d.ts +0 -0
- /package/{lib/pages → pages}/StatusPage/StatusMessages.js +0 -0
- /package/{lib/pages → pages}/StatusPage/StatusPage.d.ts +0 -0
- /package/{lib/utils → utils}/Possession.d.ts +0 -0
- /package/{lib/utils → utils}/Possession.js +0 -0
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from "react";
|
|
2
|
-
import "./PepAnswers.scss";
|
|
3
|
-
import { PepRequest } from "../model/PepModel";
|
|
4
|
-
import { countries } from "../model/Countries";
|
|
5
|
-
import { getRoleAlts, getMilitaryAlts } from "../pages/RolePage/RolePage";
|
|
6
|
-
import { EntityType, PepType } from "../pages/PepContext";
|
|
7
|
-
import { useIntl, defineMessages, FormattedMessage } from "react-intl";
|
|
8
|
-
import { messages as isPepMessages } from "../pages/IsPep/IsPepMessages";
|
|
9
|
-
import {
|
|
10
|
-
relationMessages,
|
|
11
|
-
businessRelationMessages
|
|
12
|
-
} from "../pages/RelationPage/RelationMessages";
|
|
13
|
-
|
|
14
|
-
interface Props {
|
|
15
|
-
answer: PepRequest;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const messages = defineMessages({
|
|
19
|
-
whoIsPepLabel: {
|
|
20
|
-
id: "pep.anwers.who.label",
|
|
21
|
-
description: "Who is pep label",
|
|
22
|
-
defaultMessage: "Vem är pep"
|
|
23
|
-
},
|
|
24
|
-
relationLabel: {
|
|
25
|
-
id: "pep.anwers.relation.label",
|
|
26
|
-
description: "Relation label",
|
|
27
|
-
defaultMessage: "Relation"
|
|
28
|
-
},
|
|
29
|
-
businessRelationLabel: {
|
|
30
|
-
id: "pep.anwers.businessRelation.label",
|
|
31
|
-
description: "Business relation label",
|
|
32
|
-
defaultMessage: "Vem är pep"
|
|
33
|
-
},
|
|
34
|
-
nameOfPepLabel: {
|
|
35
|
-
id: "pep.anwers.nameOfPep.label",
|
|
36
|
-
description: "Name of pep label",
|
|
37
|
-
defaultMessage: "Namn på personen"
|
|
38
|
-
},
|
|
39
|
-
birthdayOfPEPLabel: {
|
|
40
|
-
id: "pep.anwers.birthdayOfPEP.label",
|
|
41
|
-
description: "Birthday of pep label",
|
|
42
|
-
defaultMessage: "Födelsedag för personen"
|
|
43
|
-
},
|
|
44
|
-
statusLabel: {
|
|
45
|
-
id: "pep.anwers.status.label",
|
|
46
|
-
description: "Status label",
|
|
47
|
-
defaultMessage: "Status"
|
|
48
|
-
},
|
|
49
|
-
statusEndedValue: {
|
|
50
|
-
id: "pep.anwers.statusEnded.value",
|
|
51
|
-
description: "Status ended value",
|
|
52
|
-
defaultMessage: "Avslutad"
|
|
53
|
-
},
|
|
54
|
-
statusOngoingValue: {
|
|
55
|
-
id: "pep.anwers.statusOngoing.value",
|
|
56
|
-
description: "Status ongoing value",
|
|
57
|
-
defaultMessage: "Pågående"
|
|
58
|
-
},
|
|
59
|
-
endedLabel: {
|
|
60
|
-
id: "pep.anwers.endedStatus.label",
|
|
61
|
-
description: "Ended label",
|
|
62
|
-
defaultMessage: "Avslutades"
|
|
63
|
-
},
|
|
64
|
-
roleLabel: {
|
|
65
|
-
id: "pep.anwers.role.label",
|
|
66
|
-
description: "Role label",
|
|
67
|
-
defaultMessage: "Roll"
|
|
68
|
-
},
|
|
69
|
-
countryLabel: {
|
|
70
|
-
id: "pep.anwers.country.label",
|
|
71
|
-
description: "Country label",
|
|
72
|
-
defaultMessage: "Land"
|
|
73
|
-
},
|
|
74
|
-
ambassadorCountryLabel: {
|
|
75
|
-
id: "pep.anwers.ambassadorCountry.label",
|
|
76
|
-
description: "Ambassador country label",
|
|
77
|
-
defaultMessage: "Ambassadörsland"
|
|
78
|
-
},
|
|
79
|
-
governmentCompanyNameLabel: {
|
|
80
|
-
id: "pep.anwers.governmentCompanyName.label",
|
|
81
|
-
description: "Government company name label",
|
|
82
|
-
defaultMessage: "Företags namn"
|
|
83
|
-
},
|
|
84
|
-
governmentCompanyRoleLabel: {
|
|
85
|
-
id: "pep.anwers.governmentCompanyRole.label",
|
|
86
|
-
description: "Government company role label",
|
|
87
|
-
defaultMessage: "Roll på företaget"
|
|
88
|
-
},
|
|
89
|
-
internationalOrganisationNameLabel: {
|
|
90
|
-
id: "pep.anwers.companyName.label",
|
|
91
|
-
description: "International organisation name label",
|
|
92
|
-
defaultMessage: "Organisationens namn"
|
|
93
|
-
},
|
|
94
|
-
internationalOrganisationRoleLabel: {
|
|
95
|
-
id: "pep.anwers.companyRole.label",
|
|
96
|
-
description: "International organisation role label",
|
|
97
|
-
defaultMessage: "Roll i organisationen"
|
|
98
|
-
},
|
|
99
|
-
militaryGradeLabel: {
|
|
100
|
-
id: "pep.anwers.militaryRank.label",
|
|
101
|
-
description: "Military rank label",
|
|
102
|
-
defaultMessage: "Roll i organisationen"
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
export const PepAnswers: FunctionComponent<Props> = ({ answer }) => {
|
|
107
|
-
const intl = useIntl();
|
|
108
|
-
if (!answer.type || answer.type === PepType.NOT_PEP) {
|
|
109
|
-
return (
|
|
110
|
-
<div>
|
|
111
|
-
<p>
|
|
112
|
-
<FormattedMessage
|
|
113
|
-
id="pep.anwers.notpep"
|
|
114
|
-
description="Not pep"
|
|
115
|
-
defaultMessage="Personen är inte PEP"
|
|
116
|
-
/>
|
|
117
|
-
</p>
|
|
118
|
-
</div>
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
const country = countries.find(country => country.value === answer.country);
|
|
123
|
-
const role = getRoleAlts(intl).find(alt => alt.value === answer.role);
|
|
124
|
-
const militaryRank = getMilitaryAlts(intl).find(
|
|
125
|
-
alt => alt.value === answer.militaryRank
|
|
126
|
-
);
|
|
127
|
-
return (
|
|
128
|
-
<div>
|
|
129
|
-
{answer.type && (
|
|
130
|
-
<StaticInput
|
|
131
|
-
label={intl.formatMessage(messages.whoIsPepLabel)}
|
|
132
|
-
value={intl.formatMessage(isPepMessages[answer.type], {
|
|
133
|
-
entityType: EntityType.PERSON
|
|
134
|
-
})}
|
|
135
|
-
/>
|
|
136
|
-
)}
|
|
137
|
-
{answer.relationToPEP && (
|
|
138
|
-
<StaticInput
|
|
139
|
-
label={intl.formatMessage(messages.relationLabel)}
|
|
140
|
-
value={intl.formatMessage(relationMessages[answer.relationToPEP])}
|
|
141
|
-
/>
|
|
142
|
-
)}
|
|
143
|
-
{answer.businessRelation && (
|
|
144
|
-
<StaticInput
|
|
145
|
-
label={intl.formatMessage(messages.businessRelationLabel)}
|
|
146
|
-
value={intl.formatMessage(
|
|
147
|
-
businessRelationMessages[answer.businessRelation]
|
|
148
|
-
)}
|
|
149
|
-
/>
|
|
150
|
-
)}
|
|
151
|
-
{answer.nameOfPEP && (
|
|
152
|
-
<StaticInput
|
|
153
|
-
label={intl.formatMessage(messages.nameOfPepLabel)}
|
|
154
|
-
value={answer.nameOfPEP}
|
|
155
|
-
/>
|
|
156
|
-
)}
|
|
157
|
-
{answer.birthdayOfPEP && (
|
|
158
|
-
<StaticInput
|
|
159
|
-
label={intl.formatMessage(messages.birthdayOfPEPLabel)}
|
|
160
|
-
value={answer.birthdayOfPEP}
|
|
161
|
-
/>
|
|
162
|
-
)}
|
|
163
|
-
{answer.ended ? (
|
|
164
|
-
<React.Fragment>
|
|
165
|
-
<StaticInput
|
|
166
|
-
label={intl.formatMessage(messages.statusLabel)}
|
|
167
|
-
value={intl.formatMessage(messages.statusEndedValue)}
|
|
168
|
-
/>
|
|
169
|
-
<StaticInput
|
|
170
|
-
label={intl.formatMessage(messages.endedLabel)}
|
|
171
|
-
value={answer.ended}
|
|
172
|
-
/>
|
|
173
|
-
</React.Fragment>
|
|
174
|
-
) : (
|
|
175
|
-
<StaticInput
|
|
176
|
-
label={intl.formatMessage(messages.statusLabel)}
|
|
177
|
-
value={intl.formatMessage(messages.statusOngoingValue)}
|
|
178
|
-
/>
|
|
179
|
-
)}
|
|
180
|
-
{answer.country && (
|
|
181
|
-
<StaticInput
|
|
182
|
-
label={intl.formatMessage(messages.countryLabel)}
|
|
183
|
-
value={country ? country.label : answer.country}
|
|
184
|
-
/>
|
|
185
|
-
)}
|
|
186
|
-
{role && (
|
|
187
|
-
<StaticInput
|
|
188
|
-
label={intl.formatMessage(messages.roleLabel)}
|
|
189
|
-
value={role.text}
|
|
190
|
-
/>
|
|
191
|
-
)}
|
|
192
|
-
{answer.ambassadorCountry && (
|
|
193
|
-
<StaticInput
|
|
194
|
-
label={intl.formatMessage(messages.ambassadorCountryLabel)}
|
|
195
|
-
value={
|
|
196
|
-
countries.find(
|
|
197
|
-
country => country.value === answer.ambassadorCountry
|
|
198
|
-
)?.label || answer.ambassadorCountry
|
|
199
|
-
}
|
|
200
|
-
/>
|
|
201
|
-
)}
|
|
202
|
-
{answer.governmentCompany && (
|
|
203
|
-
<StaticInput
|
|
204
|
-
label={intl.formatMessage(messages.governmentCompanyNameLabel)}
|
|
205
|
-
value={answer.governmentCompany}
|
|
206
|
-
/>
|
|
207
|
-
)}
|
|
208
|
-
{answer.governmentCompanyRole && (
|
|
209
|
-
<StaticInput
|
|
210
|
-
label={intl.formatMessage(messages.governmentCompanyRoleLabel)}
|
|
211
|
-
value={answer.governmentCompanyRole}
|
|
212
|
-
/>
|
|
213
|
-
)}
|
|
214
|
-
{answer.internationalOrganisation && (
|
|
215
|
-
<StaticInput
|
|
216
|
-
label={intl.formatMessage(
|
|
217
|
-
messages.internationalOrganisationNameLabel
|
|
218
|
-
)}
|
|
219
|
-
value={answer.internationalOrganisation}
|
|
220
|
-
/>
|
|
221
|
-
)}
|
|
222
|
-
{answer.internationalOrganisationRole && (
|
|
223
|
-
<StaticInput
|
|
224
|
-
label={intl.formatMessage(
|
|
225
|
-
messages.internationalOrganisationRoleLabel
|
|
226
|
-
)}
|
|
227
|
-
value={answer.internationalOrganisationRole}
|
|
228
|
-
/>
|
|
229
|
-
)}
|
|
230
|
-
{militaryRank && (
|
|
231
|
-
<StaticInput
|
|
232
|
-
label={intl.formatMessage(messages.militaryGradeLabel)}
|
|
233
|
-
value={militaryRank.value}
|
|
234
|
-
/>
|
|
235
|
-
)}
|
|
236
|
-
</div>
|
|
237
|
-
);
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
interface StaticInputProps {
|
|
241
|
-
label: string;
|
|
242
|
-
value: string | React.ReactNode;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
const StaticInput: FunctionComponent<StaticInputProps> = ({ label, value }) => {
|
|
246
|
-
return (
|
|
247
|
-
<div className="static-input">
|
|
248
|
-
<div className="label">{label}</div>
|
|
249
|
-
<div className="value">{value}</div>
|
|
250
|
-
</div>
|
|
251
|
-
);
|
|
252
|
-
};
|
package/src/demo/Done.tsx
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { useContext } from "react";
|
|
2
|
-
import { PepContext } from "../pages/PepContext";
|
|
3
|
-
import { stateToRequest } from "../model/PepModel";
|
|
4
|
-
import { PepAnswers } from "../components/PepAnswers";
|
|
5
|
-
|
|
6
|
-
export function Done() {
|
|
7
|
-
const pepContext = useContext(PepContext);
|
|
8
|
-
return (
|
|
9
|
-
<div>
|
|
10
|
-
<h2>Taco hej!</h2>
|
|
11
|
-
<p>Leverpastej!</p>
|
|
12
|
-
<PepAnswers answer={stateToRequest(pepContext.state)} />
|
|
13
|
-
<pre>{JSON.stringify(stateToRequest(pepContext.state), null, 2)}</pre>
|
|
14
|
-
</div>
|
|
15
|
-
);
|
|
16
|
-
}
|
package/src/demo/Pep.tsx
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import React, { useState, useContext, useEffect, useRef } from "react";
|
|
2
|
-
import { Story } from "@lysaab/ui-2";
|
|
3
|
-
import { IntlProvider } from "react-intl";
|
|
4
|
-
import { IsPepPage } from "../pages/IsPep/IsPepPage";
|
|
5
|
-
import { StatusPage } from "../pages/StatusPage/StatusPage";
|
|
6
|
-
import { RolePage } from "../pages/RolePage/RolePage";
|
|
7
|
-
import { PepContext, PepType, EntityType } from "../pages/PepContext";
|
|
8
|
-
import { Done } from "./Done";
|
|
9
|
-
import { RelationPage } from "../pages/RelationPage/RelationPage";
|
|
10
|
-
|
|
11
|
-
export function Pep() {
|
|
12
|
-
const [page, setPage] = useState(0);
|
|
13
|
-
const pepContext = useContext(PepContext);
|
|
14
|
-
const type = pepContext.state.type;
|
|
15
|
-
const loaded = useRef(false);
|
|
16
|
-
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
if (!loaded.current) {
|
|
19
|
-
pepContext.setState({
|
|
20
|
-
ownerName: "Sean Banan",
|
|
21
|
-
tin: "191212121212",
|
|
22
|
-
legalEntityType: EntityType.PERSON,
|
|
23
|
-
});
|
|
24
|
-
loaded.current = true;
|
|
25
|
-
}
|
|
26
|
-
}, [loaded, pepContext]);
|
|
27
|
-
|
|
28
|
-
return (
|
|
29
|
-
<div style={{ maxWidth: "1000px", margin: "0 auto" }}>
|
|
30
|
-
<IntlProvider locale="sv">
|
|
31
|
-
<Story
|
|
32
|
-
header="PEP Lib"
|
|
33
|
-
showBack={page > 0}
|
|
34
|
-
showClose={false}
|
|
35
|
-
onBack={() => {
|
|
36
|
-
if (page === 4 && type === PepType.NOT_PEP) {
|
|
37
|
-
setPage(0);
|
|
38
|
-
} else if (page === 2 && type === PepType.ME) {
|
|
39
|
-
setPage(0);
|
|
40
|
-
} else {
|
|
41
|
-
setPage(page - 1);
|
|
42
|
-
}
|
|
43
|
-
}}
|
|
44
|
-
transitionKey={page.toString()}
|
|
45
|
-
onExit={() => {}}
|
|
46
|
-
>
|
|
47
|
-
{page === 0 ? (
|
|
48
|
-
<IsPepPage
|
|
49
|
-
next={() => {
|
|
50
|
-
if (type === PepType.NOT_PEP) {
|
|
51
|
-
setPage(4);
|
|
52
|
-
} else if (type === PepType.ME) {
|
|
53
|
-
setPage(page + 2);
|
|
54
|
-
} else {
|
|
55
|
-
setPage(page + 1);
|
|
56
|
-
}
|
|
57
|
-
}}
|
|
58
|
-
/>
|
|
59
|
-
) : null}
|
|
60
|
-
{page === 1 ? <RelationPage next={() => setPage(page + 1)} /> : null}
|
|
61
|
-
{page === 2 ? <StatusPage next={() => setPage(page + 1)} /> : null}
|
|
62
|
-
{page === 3 ? <RolePage next={() => setPage(page + 1)} /> : null}
|
|
63
|
-
{page === 4 ? <Done /> : null}
|
|
64
|
-
</Story>
|
|
65
|
-
<hr />
|
|
66
|
-
<fieldset>
|
|
67
|
-
<legend>Konfig</legend>
|
|
68
|
-
<div>
|
|
69
|
-
<label>
|
|
70
|
-
Verkligen huvudman
|
|
71
|
-
<input
|
|
72
|
-
type="checkbox"
|
|
73
|
-
value={"true"}
|
|
74
|
-
onChange={(event) =>
|
|
75
|
-
pepContext.setState({
|
|
76
|
-
legalEntityType: event.currentTarget.checked
|
|
77
|
-
? EntityType.CORPORATION
|
|
78
|
-
: EntityType.PERSON,
|
|
79
|
-
})
|
|
80
|
-
}
|
|
81
|
-
/>
|
|
82
|
-
</label>
|
|
83
|
-
</div>
|
|
84
|
-
<div>
|
|
85
|
-
<label>
|
|
86
|
-
Namnet på den verkliga huvudmannen
|
|
87
|
-
<input
|
|
88
|
-
type="text"
|
|
89
|
-
value={pepContext.state.ownerName || ""}
|
|
90
|
-
onChange={(event) =>
|
|
91
|
-
pepContext.setState({ ownerName: event.currentTarget.value })
|
|
92
|
-
}
|
|
93
|
-
/>
|
|
94
|
-
</label>
|
|
95
|
-
</div>
|
|
96
|
-
<div>
|
|
97
|
-
<label>
|
|
98
|
-
Personnummer på huvudmannen
|
|
99
|
-
<input
|
|
100
|
-
type="text"
|
|
101
|
-
value={pepContext.state.tin || ""}
|
|
102
|
-
onChange={(event) =>
|
|
103
|
-
pepContext.setState({ tin: event.currentTarget.value })
|
|
104
|
-
}
|
|
105
|
-
/>
|
|
106
|
-
</label>
|
|
107
|
-
</div>
|
|
108
|
-
</fieldset>
|
|
109
|
-
</IntlProvider>
|
|
110
|
-
</div>
|
|
111
|
-
);
|
|
112
|
-
}
|
package/src/index.css
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
margin: 0;
|
|
3
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
4
|
-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
5
|
-
sans-serif;
|
|
6
|
-
-webkit-font-smoothing: antialiased;
|
|
7
|
-
-moz-osx-font-smoothing: grayscale;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
code {
|
|
11
|
-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
|
12
|
-
monospace;
|
|
13
|
-
}
|
package/src/index.tsx
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import ReactDOM from 'react-dom';
|
|
3
|
-
import './index.css';
|
|
4
|
-
import App from './App';
|
|
5
|
-
import * as serviceWorker from './serviceWorker';
|
|
6
|
-
|
|
7
|
-
ReactDOM.render(<App />, document.getElementById('root'));
|
|
8
|
-
|
|
9
|
-
// If you want your app to work offline and load faster, you can change
|
|
10
|
-
// unregister() to register() below. Note this comes with some pitfalls.
|
|
11
|
-
// Learn more about service workers: https://bit.ly/CRA-PWA
|
|
12
|
-
serviceWorker.unregister();
|
package/src/logo.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 170.96 159.93"><defs><style>.cls-1{fill:#09d3ac;}</style></defs><path class="cls-1" d="M141.35,73.27c0-6.89-8.11-13-20.58-16.73,3-12.67,1.69-22.75-4.28-26.16a9.55,9.55,0,0,0-4.79-1.2c-5.57,0-12.61,3.89-19.72,10.62-7.11-6.68-14.13-10.55-19.69-10.55a9.46,9.46,0,0,0-4.86,1.22c-5.94,3.42-7.17,13.44-4.21,26.05-12.41,3.71-20.48,9.77-20.5,16.63s8.12,13,20.59,16.72c-3,12.68-1.7,22.75,4.28,26.16a9.41,9.41,0,0,0,4.78,1.2c5.58,0,12.62-3.89,19.73-10.62,7.1,6.68,14.12,10.55,19.69,10.55a9.59,9.59,0,0,0,4.86-1.22c5.94-3.42,7.16-13.44,4.21-26C133.27,86.18,141.34,80.12,141.35,73.27ZM96.56,42.06c8.19-7.33,13.31-8.12,15.13-8.12h0a4.71,4.71,0,0,1,2.42.58c2.86,1.63,4,7.38,3.09,15a56.73,56.73,0,0,1-1,5.79,97.7,97.7,0,0,0-12.58-2.07,98.47,98.47,0,0,0-8.24-10.08C95.75,42.79,96.15,42.42,96.56,42.06ZM71.77,78.94c.78,1.5,1.61,3,2.47,4.51S76,86.49,77,88c-2.71-.39-5.34-.88-7.84-1.46C69.86,84,70.75,81.5,71.77,78.94ZM69,59.9c2.53-.59,5.18-1.08,7.93-1.46-1,1.48-1.86,3-2.76,4.59s-1.69,3-2.46,4.52Q70.18,63.65,69,59.9Zm5.21,13.34q1.86-3.93,4.09-7.86c1.5-2.62,3.11-5.17,4.77-7.61,2.91-.22,5.91-.34,9-.33s6,.12,8.89.35c1.66,2.42,3.25,5,4.75,7.55s2.88,5.22,4.12,7.83c-1.23,2.62-2.6,5.25-4.08,7.85s-3.11,5.18-4.77,7.62c-2.91.23-5.91.34-9,.34s-6-.13-8.89-.36c-1.66-2.42-3.26-4.94-4.76-7.55S75.5,75.85,74.25,73.24Zm32.86-14.77c2.72.38,5.35.87,7.84,1.45-.74,2.47-1.62,5-2.64,7.55-.79-1.5-1.61-3-2.48-4.51S108,59.93,107.11,58.47Zm2.76,24.92q1.29-2.27,2.46-4.53c1,2.6,2,5.16,2.7,7.66-2.52.59-5.17,1.07-7.92,1.45Q108.52,85.75,109.87,83.39ZM92,46.56c1.8,1.92,3.57,4,5.3,6.23-1.71-.07-3.46-.12-5.23-.12s-3.58,0-5.33.12C88.45,50.57,90.2,48.48,92,46.56Zm-22.18-12A4.82,4.82,0,0,1,72.29,34a13.11,13.11,0,0,1,5.19,1.31,39.07,39.07,0,0,1,10,6.78l1.17,1.07a98.49,98.49,0,0,0-8.16,10,98.88,98.88,0,0,0-12.65,2.06c-.44-1.94-.8-3.84-1-5.67C65.8,42,67,36.24,69.81,34.6ZM64.53,85.26a58.75,58.75,0,0,1-5.54-2c-7.1-3-11.5-6.85-11.5-10.14S51.91,66,59,63.05a57.63,57.63,0,0,1,5.44-1.94A97.93,97.93,0,0,0,69,73.25,98.72,98.72,0,0,0,64.53,85.26Zm23,19.1c-8.19,7.33-13.31,8.11-15.14,8.11a4.69,4.69,0,0,1-2.42-.58c-2.86-1.63-4-7.38-3.09-15a56.07,56.07,0,0,1,1-5.78,99.51,99.51,0,0,0,12.58,2.06,97.17,97.17,0,0,0,8.24,10.08Zm4.57-4.51c-1.8-1.92-3.57-4-5.31-6.23,1.72.08,3.47.12,5.24.12s3.58,0,5.33-.11C95.63,95.85,93.87,97.93,92.09,99.85Zm22.18,12a4.82,4.82,0,0,1-2.48.59c-1.82,0-7-.8-15.16-8.1l-1.17-1.07a98.44,98.44,0,0,0,8.15-10,97,97,0,0,0,12.66-2.06c.44,1.94.79,3.84,1,5.67C118.27,104.42,117.12,110.18,114.27,111.81Zm10.8-28.44c-1.71.7-3.52,1.35-5.44,1.93a98.54,98.54,0,0,0-4.57-12.14,98.1,98.1,0,0,0,4.49-12,58.75,58.75,0,0,1,5.54,2c7.09,3,11.5,6.85,11.49,10.14S132.17,80.42,125.07,83.37ZM92,82.39a9.18,9.18,0,1,0-9.17-9.19A9.17,9.17,0,0,0,92,82.39ZM31,17.88V128.53H153.07V17.88ZM148.3,123.77H35.78V22.65H148.3Zm-85-33.9c-3,12.68-1.7,22.75,4.28,26.16a9.41,9.41,0,0,0,4.78,1.2c5.58,0,12.62-3.89,19.73-10.62,7.1,6.68,14.12,10.55,19.69,10.55a9.59,9.59,0,0,0,4.86-1.22c5.94-3.42,7.16-13.44,4.21-26,12.41-3.72,20.48-9.78,20.49-16.63s-8.11-13-20.58-16.73c3-12.67,1.69-22.75-4.28-26.16a9.55,9.55,0,0,0-4.79-1.2c-5.57,0-12.61,3.89-19.72,10.62-7.11-6.68-14.13-10.55-19.69-10.55a9.46,9.46,0,0,0-4.86,1.22c-5.94,3.42-7.17,13.44-4.21,26.05-12.41,3.71-20.48,9.77-20.5,16.63S50.84,86.13,63.31,89.87Zm24.21,14.49c-8.19,7.33-13.31,8.11-15.14,8.11a4.69,4.69,0,0,1-2.42-.58c-2.86-1.63-4-7.38-3.09-15a56.07,56.07,0,0,1,1-5.78,99.51,99.51,0,0,0,12.58,2.06,97.17,97.17,0,0,0,8.24,10.08Zm24.79-36.89c-.79-1.5-1.61-3-2.48-4.51s-1.8-3-2.72-4.49c2.72.38,5.35.87,7.84,1.45C114.21,62.39,113.33,64.92,112.31,67.47Zm2.72,19c-2.52.59-5.17,1.07-7.92,1.45q1.41-2.22,2.76-4.58t2.46-4.53C113.37,81.46,114.28,84,115,86.52Zm-5.21-13.35c-1.23,2.62-2.6,5.25-4.08,7.85s-3.11,5.18-4.77,7.62c-2.91.23-5.91.34-9,.34s-6-.13-8.89-.36c-1.66-2.42-3.26-4.94-4.76-7.55s-2.87-5.22-4.12-7.83q1.86-3.93,4.09-7.86c1.5-2.62,3.11-5.17,4.77-7.61,2.91-.22,5.91-.34,9-.33s6,.12,8.89.35c1.66,2.42,3.25,5,4.75,7.55S108.58,70.56,109.82,73.17ZM77,88c-2.71-.39-5.34-.88-7.84-1.46.74-2.46,1.63-5,2.65-7.55.78,1.5,1.61,3,2.47,4.51S76,86.49,77,88ZM74.21,63c-.87,1.5-1.69,3-2.46,4.52Q70.18,63.65,69,59.9c2.53-.59,5.18-1.08,7.93-1.46C76,59.92,75.11,61.45,74.21,63ZM92.09,99.85c-1.8-1.92-3.57-4-5.31-6.23,1.72.08,3.47.12,5.24.12s3.58,0,5.33-.11C95.63,95.85,93.87,97.93,92.09,99.85Zm22.18,12a4.82,4.82,0,0,1-2.48.59c-1.82,0-7-.8-15.16-8.1l-1.17-1.07a98.44,98.44,0,0,0,8.15-10,97,97,0,0,0,12.66-2.06c.44,1.94.79,3.84,1,5.67C118.27,104.42,117.12,110.18,114.27,111.81Zm5.28-50.66a58.75,58.75,0,0,1,5.54,2c7.09,3,11.5,6.85,11.49,10.14s-4.41,7.16-11.51,10.11c-1.71.7-3.52,1.35-5.44,1.93a98.54,98.54,0,0,0-4.57-12.14A98.1,98.1,0,0,0,119.55,61.15Zm-23-19.09c8.19-7.33,13.31-8.12,15.13-8.12h0a4.71,4.71,0,0,1,2.42.58c2.86,1.63,4,7.38,3.09,15a56.73,56.73,0,0,1-1,5.79,97.7,97.7,0,0,0-12.58-2.07,98.47,98.47,0,0,0-8.24-10.08C95.75,42.79,96.15,42.42,96.56,42.06ZM92,46.56c1.8,1.92,3.57,4,5.3,6.23-1.71-.07-3.46-.12-5.23-.12s-3.58,0-5.33.12C88.45,50.57,90.2,48.48,92,46.56Zm-22.18-12A4.82,4.82,0,0,1,72.29,34a13.11,13.11,0,0,1,5.19,1.31,39.07,39.07,0,0,1,10,6.78l1.17,1.07a98.49,98.49,0,0,0-8.16,10,98.88,98.88,0,0,0-12.65,2.06c-.44-1.94-.8-3.84-1-5.67C65.8,42,67,36.24,69.81,34.6ZM59,63.05a57.63,57.63,0,0,1,5.44-1.94A97.93,97.93,0,0,0,69,73.25a98.72,98.72,0,0,0-4.49,12,58.75,58.75,0,0,1-5.54-2c-7.1-3-11.5-6.85-11.5-10.14S51.91,66,59,63.05Zm33,1a9.18,9.18,0,1,0,9.17,9.19A9.17,9.17,0,0,0,92,64Zm0,0a9.18,9.18,0,1,0,9.17,9.19A9.17,9.17,0,0,0,92,64Zm0,0a9.18,9.18,0,1,0,9.17,9.19A9.17,9.17,0,0,0,92,64Zm49.35,9.24c0-6.89-8.11-13-20.58-16.73,3-12.67,1.69-22.75-4.28-26.16a9.55,9.55,0,0,0-4.79-1.2c-5.57,0-12.61,3.89-19.72,10.62-7.11-6.68-14.13-10.55-19.69-10.55a9.46,9.46,0,0,0-4.86,1.22c-5.94,3.42-7.17,13.44-4.21,26.05-12.41,3.71-20.48,9.77-20.5,16.63s8.12,13,20.59,16.72c-3,12.68-1.7,22.75,4.28,26.16a9.41,9.41,0,0,0,4.78,1.2c5.58,0,12.62-3.89,19.73-10.62,7.1,6.68,14.12,10.55,19.69,10.55a9.59,9.59,0,0,0,4.86-1.22c5.94-3.42,7.16-13.44,4.21-26C133.27,86.18,141.34,80.12,141.35,73.27ZM96.56,42.06c8.19-7.33,13.31-8.12,15.13-8.12h0a4.71,4.71,0,0,1,2.42.58c2.86,1.63,4,7.38,3.09,15a56.73,56.73,0,0,1-1,5.79,97.7,97.7,0,0,0-12.58-2.07,98.47,98.47,0,0,0-8.24-10.08C95.75,42.79,96.15,42.42,96.56,42.06ZM71.77,78.94c.78,1.5,1.61,3,2.47,4.51S76,86.49,77,88c-2.71-.39-5.34-.88-7.84-1.46C69.86,84,70.75,81.5,71.77,78.94ZM69,59.9c2.53-.59,5.18-1.08,7.93-1.46-1,1.48-1.86,3-2.76,4.59s-1.69,3-2.46,4.52Q70.18,63.65,69,59.9Zm5.21,13.34q1.86-3.93,4.09-7.86c1.5-2.62,3.11-5.17,4.77-7.61,2.91-.22,5.91-.34,9-.33s6,.12,8.89.35c1.66,2.42,3.25,5,4.75,7.55s2.88,5.22,4.12,7.83c-1.23,2.62-2.6,5.25-4.08,7.85s-3.11,5.18-4.77,7.62c-2.91.23-5.91.34-9,.34s-6-.13-8.89-.36c-1.66-2.42-3.26-4.94-4.76-7.55S75.5,75.85,74.25,73.24Zm32.86-14.77c2.72.38,5.35.87,7.84,1.45-.74,2.47-1.62,5-2.64,7.55-.79-1.5-1.61-3-2.48-4.51S108,59.93,107.11,58.47Zm2.76,24.92q1.29-2.27,2.46-4.53c1,2.6,2,5.16,2.7,7.66-2.52.59-5.17,1.07-7.92,1.45Q108.52,85.75,109.87,83.39ZM92,46.56c1.8,1.92,3.57,4,5.3,6.23-1.71-.07-3.46-.12-5.23-.12s-3.58,0-5.33.12C88.45,50.57,90.2,48.48,92,46.56Zm-22.18-12A4.82,4.82,0,0,1,72.29,34a13.11,13.11,0,0,1,5.19,1.31,39.07,39.07,0,0,1,10,6.78l1.17,1.07a98.49,98.49,0,0,0-8.16,10,98.88,98.88,0,0,0-12.65,2.06c-.44-1.94-.8-3.84-1-5.67C65.8,42,67,36.24,69.81,34.6ZM64.53,85.26a58.75,58.75,0,0,1-5.54-2c-7.1-3-11.5-6.85-11.5-10.14S51.91,66,59,63.05a57.63,57.63,0,0,1,5.44-1.94A97.93,97.93,0,0,0,69,73.25,98.72,98.72,0,0,0,64.53,85.26Zm23,19.1c-8.19,7.33-13.31,8.11-15.14,8.11a4.69,4.69,0,0,1-2.42-.58c-2.86-1.63-4-7.38-3.09-15a56.07,56.07,0,0,1,1-5.78,99.51,99.51,0,0,0,12.58,2.06,97.17,97.17,0,0,0,8.24,10.08Zm4.57-4.51c-1.8-1.92-3.57-4-5.31-6.23,1.72.08,3.47.12,5.24.12s3.58,0,5.33-.11C95.63,95.85,93.87,97.93,92.09,99.85Zm22.18,12a4.82,4.82,0,0,1-2.48.59c-1.82,0-7-.8-15.16-8.1l-1.17-1.07a98.44,98.44,0,0,0,8.15-10,97,97,0,0,0,12.66-2.06c.44,1.94.79,3.84,1,5.67C118.27,104.42,117.12,110.18,114.27,111.81Zm10.8-28.44c-1.71.7-3.52,1.35-5.44,1.93a98.54,98.54,0,0,0-4.57-12.14,98.1,98.1,0,0,0,4.49-12,58.75,58.75,0,0,1,5.54,2c7.09,3,11.5,6.85,11.49,10.14S132.17,80.42,125.07,83.37ZM92,82.39a9.18,9.18,0,1,0-9.17-9.19A9.17,9.17,0,0,0,92,82.39Zm-69.32,54.5V26.2L17.89,31V141.66H139.94l4.78-4.77Z"/></svg>
|