@pagopa/selfcare-common-frontend 1.11.14 → 1.12.2
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/CHANGELOG.md +20 -0
- package/build.info +2 -2
- package/components/Footer/Footer.js +163 -1
- package/components/Footer/Footer.js.map +1 -1
- package/components/Footer/FooterConfig.d.ts +1 -5
- package/components/Footer/FooterConfig.js +1 -162
- package/components/Footer/FooterConfig.js.map +1 -1
- package/config/env.js +1 -1
- package/locale/it.d.ts +31 -0
- package/locale/it.js +32 -4
- package/locale/it.js.map +1 -1
- package/package.json +2 -2
- package/utils/verifyNameMatchWithTaxCode.d.ts +6 -0
- package/utils/verifyNameMatchWithTaxCode.js +39 -0
- package/utils/verifyNameMatchWithTaxCode.js.map +1 -0
- package/utils/verifySurnameMatchWithTaxCode.d.ts +6 -0
- package/utils/verifySurnameMatchWithTaxCode.js +29 -0
- package/utils/verifySurnameMatchWithTaxCode.js.map +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,28 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [v1.12.2](https://github.com/pagopa/selfcare-common-frontend/compare/v1.12.1...v1.12.2)
|
|
8
|
+
|
|
9
|
+
- SELC-1509 Creation of utilities functions with description for easily usage in other repos [`#101`](https://github.com/pagopa/selfcare-common-frontend/pull/101)
|
|
10
|
+
- SELC-1509 Creation of utilities functions with description for easily usage in other repos (#101) [`#1509`](https://pagopa.atlassian.net/browse/1509)
|
|
11
|
+
|
|
12
|
+
#### [v1.12.1](https://github.com/pagopa/selfcare-common-frontend/compare/v1.12.0...v1.12.1)
|
|
13
|
+
|
|
14
|
+
> 5 September 2022
|
|
15
|
+
|
|
16
|
+
- Change configuration in order to rehabilitate mixpanel [`cbcdb88`](https://github.com/pagopa/selfcare-common-frontend/commit/cbcdb88aad8b71c8b9d115adc91085b378fd182c)
|
|
17
|
+
|
|
18
|
+
#### [v1.12.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.11.14...v1.12.0)
|
|
19
|
+
|
|
20
|
+
> 23 August 2022
|
|
21
|
+
|
|
22
|
+
- SELC-1471 - added localization in footer [`#99`](https://github.com/pagopa/selfcare-common-frontend/pull/99)
|
|
23
|
+
- SELC-1471 - added localization in footer (#99) [`#1471`](https://pagopa.atlassian.net/browse/1471) [`#1471`](https://pagopa.atlassian.net/browse/1471)
|
|
24
|
+
|
|
7
25
|
#### [v1.11.14](https://github.com/pagopa/selfcare-common-frontend/compare/v1.11.13...v1.11.14)
|
|
8
26
|
|
|
27
|
+
> 10 August 2022
|
|
28
|
+
|
|
9
29
|
- SELC-1407 revert pipeline configuration for default branch var [`#98`](https://github.com/pagopa/selfcare-common-frontend/pull/98)
|
|
10
30
|
- SELC-1407 using new enableAssistance prop in header [`#97`](https://github.com/pagopa/selfcare-common-frontend/pull/97)
|
|
11
31
|
- Bump terser from 5.12.1 to 5.14.2 [`#96`](https://github.com/pagopa/selfcare-common-frontend/pull/96)
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
remotes/origin/SELC-1407_usingEnableAssistanceProp
|
|
1
|
+
20220908.1 - selfcare-common-frontend.deploy(46435)
|
|
2
|
+
remotes/origin/SELC-1407_usingEnableAssistanceProp f91440f30a56761556c55bd0a3ecfa1ecd004cc1
|
|
@@ -3,11 +3,173 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Footer_1 = require("@pagopa/mui-italia/dist/components/Footer/Footer");
|
|
6
|
+
const react_i18next_1 = require("react-i18next");
|
|
6
7
|
const locale_utils_1 = tslib_1.__importDefault(require("../../locale/locale-utils"));
|
|
7
8
|
const env_1 = require("../../config/env");
|
|
8
9
|
const FooterConfig_1 = require("./FooterConfig");
|
|
9
10
|
function Footer({ loggedUser, onExit = (exitAction) => exitAction() }) {
|
|
10
|
-
|
|
11
|
+
const { t } = (0, react_i18next_1.useTranslation)();
|
|
12
|
+
const preLoginLinks = {
|
|
13
|
+
// First column
|
|
14
|
+
aboutUs: {
|
|
15
|
+
title: undefined,
|
|
16
|
+
links: [
|
|
17
|
+
// TODO
|
|
18
|
+
// {
|
|
19
|
+
// label: 'PNRR',
|
|
20
|
+
// href: 'CONFIG.FOOTER.LINK.PNRR',
|
|
21
|
+
// ariaLabel: 'Vai al link: PNRR',
|
|
22
|
+
// linkType: 'internal',
|
|
23
|
+
// },
|
|
24
|
+
{
|
|
25
|
+
label: t('common.footer.preLoginLinks.aboutUs.links.aboutUs'),
|
|
26
|
+
href: env_1.CONFIG.FOOTER.LINK.ABOUTUS,
|
|
27
|
+
ariaLabel: 'Vai al link: Chi siamo',
|
|
28
|
+
linkType: 'internal',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: t('common.footer.preLoginLinks.aboutUs.links.media'),
|
|
32
|
+
href: env_1.CONFIG.FOOTER.LINK.MEDIA,
|
|
33
|
+
ariaLabel: 'Vai al link: Media',
|
|
34
|
+
linkType: 'internal',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: t('common.footer.preLoginLinks.aboutUs.links.workwithud'),
|
|
38
|
+
href: env_1.CONFIG.FOOTER.LINK.WORKWITHUS,
|
|
39
|
+
ariaLabel: 'Vai al link: Lavora con noi',
|
|
40
|
+
linkType: 'internal',
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
// Third column
|
|
45
|
+
resources: {
|
|
46
|
+
title: t('common.footer.preLoginLinks.resources.title'),
|
|
47
|
+
links: [
|
|
48
|
+
{
|
|
49
|
+
label: t('common.footer.preLoginLinks.resources.links.privacyPolicy'),
|
|
50
|
+
href: env_1.CONFIG.FOOTER.LINK.PRIVACYPOLICY,
|
|
51
|
+
ariaLabel: 'Vai al link: Privacy Policy',
|
|
52
|
+
linkType: 'internal',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: t('common.footer.preLoginLinks.resources.links.certifications'),
|
|
56
|
+
href: env_1.CONFIG.FOOTER.LINK.CERTIFICATIONS,
|
|
57
|
+
ariaLabel: 'Vai al link: Certificazioni',
|
|
58
|
+
linkType: 'internal',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: t('common.footer.preLoginLinks.resources.links.informationsecurity'),
|
|
62
|
+
href: env_1.CONFIG.FOOTER.LINK.INFORMATIONSECURITY,
|
|
63
|
+
ariaLabel: 'Vai al link: Sicurezza delle informazioni',
|
|
64
|
+
linkType: 'internal',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: t('common.footer.preLoginLinks.resources.links.protectionofpersonaldata'),
|
|
68
|
+
href: env_1.CONFIG.FOOTER.LINK.PROTECTIONOFPERSONALDATA,
|
|
69
|
+
ariaLabel: 'Vai al link: Diritto alla protezione dei dati personali',
|
|
70
|
+
linkType: 'internal',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: t('common.footer.preLoginLinks.resources.links.cookie'),
|
|
74
|
+
onClick: () => window.OneTrust.ToggleInfoDisplay(),
|
|
75
|
+
ariaLabel: 'Vai al link: Preferenze Cookie',
|
|
76
|
+
linkType: 'internal',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: t('common.footer.preLoginLinks.resources.links.termsandconditions'),
|
|
80
|
+
href: env_1.CONFIG.FOOTER.LINK.TERMSANDCONDITIONS,
|
|
81
|
+
ariaLabel: 'Vai al link: Termini e Condizioni',
|
|
82
|
+
linkType: 'internal',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
label: t('common.footer.preLoginLinks.resources.links.transparentcompany'),
|
|
86
|
+
href: env_1.CONFIG.FOOTER.LINK.TRANSPARENTCOMPANY,
|
|
87
|
+
ariaLabel: 'Vai al link: Società trasparente',
|
|
88
|
+
linkType: 'internal',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: t('common.footer.preLoginLinks.resources.links.disclosurePolicy'),
|
|
92
|
+
href: env_1.CONFIG.FOOTER.LINK.DISCLOSUREPOLICY,
|
|
93
|
+
ariaLabel: 'Vai al link: Responsible Disclosure Policy',
|
|
94
|
+
linkType: 'internal',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
label: t('common.footer.preLoginLinks.resources.links.Model321'),
|
|
98
|
+
href: env_1.CONFIG.FOOTER.LINK.MODEL321,
|
|
99
|
+
ariaLabel: 'Vai al link: Modello 321',
|
|
100
|
+
linkType: 'internal',
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
},
|
|
104
|
+
// Fourth column
|
|
105
|
+
followUs: {
|
|
106
|
+
title: t('common.footer.preLoginLinks.followUs.title'),
|
|
107
|
+
socialLinks: [
|
|
108
|
+
{
|
|
109
|
+
icon: 'linkedin',
|
|
110
|
+
title: 'LinkedIn',
|
|
111
|
+
href: env_1.CONFIG.FOOTER.LINK.LINKEDIN,
|
|
112
|
+
ariaLabel: 'Link: vai al sito LinkedIn di PagoPA S.p.A.',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
title: 'Twitter',
|
|
116
|
+
icon: 'twitter',
|
|
117
|
+
href: env_1.CONFIG.FOOTER.LINK.TWITTER,
|
|
118
|
+
ariaLabel: 'Link: vai al sito Twitter di PagoPA S.p.A.',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
icon: 'instagram',
|
|
122
|
+
title: 'Instagram',
|
|
123
|
+
href: env_1.CONFIG.FOOTER.LINK.INSTAGRAM,
|
|
124
|
+
ariaLabel: 'Link: vai al sito Instagram di PagoPA S.p.A.',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
icon: 'medium',
|
|
128
|
+
title: 'Medium',
|
|
129
|
+
href: env_1.CONFIG.FOOTER.LINK.MEDIUM,
|
|
130
|
+
ariaLabel: 'Link: vai al sito Medium di PagoPA S.p.A.',
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
links: [
|
|
134
|
+
// TODO
|
|
135
|
+
// {
|
|
136
|
+
// label: 'Accessibilità',
|
|
137
|
+
// href: CONFIG.FOOTER.LINK.ACCESSIBILITY,
|
|
138
|
+
// ariaLabel: 'Vai al link: Accessibilità',
|
|
139
|
+
// linkType: 'internal',
|
|
140
|
+
// },
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
const postLoginLinks = [
|
|
145
|
+
{
|
|
146
|
+
label: t('common.footer.postLoginLinks.privacyPolicy'),
|
|
147
|
+
href: env_1.CONFIG.FOOTER.LINK.PRIVACYPOLICY,
|
|
148
|
+
ariaLabel: 'Vai al link: Privacy policy',
|
|
149
|
+
linkType: 'internal',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
label: t('common.footer.postLoginLinks.protectionofpersonaldata'),
|
|
153
|
+
href: env_1.CONFIG.FOOTER.LINK.PROTECTIONOFPERSONALDATA,
|
|
154
|
+
ariaLabel: 'Vai al link: Diritto alla protezione dei dati personali',
|
|
155
|
+
linkType: 'internal',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
label: t('common.footer.postLoginLinks.termsandconditions'),
|
|
159
|
+
href: env_1.CONFIG.FOOTER.LINK.TERMSANDCONDITIONS,
|
|
160
|
+
ariaLabel: 'Vai al link: Termini e condizioni',
|
|
161
|
+
linkType: 'internal',
|
|
162
|
+
},
|
|
163
|
+
// TODO
|
|
164
|
+
// {
|
|
165
|
+
// label: 'Accessibilità',
|
|
166
|
+
// href: CONFIG.FOOTER.LINK.ACCESSIBILITY,
|
|
167
|
+
// ariaLabel: 'Vai al link: Accessibilità',
|
|
168
|
+
// linkType: 'internal',
|
|
169
|
+
// },
|
|
170
|
+
];
|
|
171
|
+
const companyLegalInfo = ((0, jsx_runtime_1.jsxs)(react_i18next_1.Trans, { i18nKey: "common.footer.legalInfoText", children: [(0, jsx_runtime_1.jsx)("strong", { children: "PagoPA S.p.A." }), " - Societ\u00E0 per azioni con socio unico - Capitale sociale di euro 1,000,000 interamente versato - Sede legale in Roma, Piazza Colonna 370, ", (0, jsx_runtime_1.jsx)("br", {}), "CAP 00187 - N. di iscrizione a Registro Imprese di Roma, CF e P.IVA 15376371009"] }));
|
|
172
|
+
return ((0, jsx_runtime_1.jsx)(Footer_1.Footer, { companyLink: FooterConfig_1.pagoPALink, postLoginLinks: postLoginLinks, preLoginLinks: preLoginLinks, legalInfo: companyLegalInfo, loggedUser: loggedUser, onExit: onExit, languages: FooterConfig_1.LANGUAGES, onLanguageChanged: (language) => locale_utils_1.default.changeLanguage(language), currentLangCode: "it", productsJsonUrl: env_1.CONFIG.JSON_URL.PRODUCTS }));
|
|
11
173
|
}
|
|
12
174
|
exports.default = Footer;
|
|
13
175
|
//# sourceMappingURL=Footer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/lib/components/Footer/Footer.tsx"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/lib/components/Footer/Footer.tsx"],"names":[],"mappings":";;;;AAAA,6EAI0D;AAC1D,iDAAsD;AACtD,qFAA6C;AAC7C,0CAA0C;AAC1C,iDAAuD;AAOvD,SAAwB,MAAM,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,EAAe;IAC/F,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAE/B,MAAM,aAAa,GAA4B;QAC7C,eAAe;QACf,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE;gBACL,OAAO;gBACP,IAAI;gBACJ,mBAAmB;gBACnB,qCAAqC;gBACrC,oCAAoC;gBACpC,0BAA0B;gBAC1B,KAAK;gB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AAK;KACN,CAAC;IACF,MAAM,gBAAgB,GAAG,CACvB,wBAAC,qBAAK,IAAC,OAAO,EAAC,6BAA6B,aAC1C,+DAA8B,qJAC2C,gCAAM,uFAEzE,CACT,CAAC;IAEF,OAAO,CACL,uBAAC,eAAe,IACd,WAAW,EAAE,yBAAU,EACvB,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,SAAS,EAAE,gBAAgB,EAC3B,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,wBAAgB,EAC3B,iBAAiB,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,sBAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EACtE,eAAe,EAAC,IAAI,EACpB,eAAe,EAAE,YAAM,CAAC,QAAQ,CAAC,QAAQ,GACzC,CACH,CAAC;AACJ,CAAC;AAxLD,yBAwLC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import { PreLoginFooterLinksType, FooterLinksType, CompanyLinkType } from '@pagopa/mui-italia';
|
|
1
|
+
import { CompanyLinkType } from '@pagopa/mui-italia';
|
|
3
2
|
export declare type LangCode = 'it' | 'en';
|
|
4
|
-
export declare const companyLegalInfo: JSX.Element;
|
|
5
3
|
export declare const pagoPALink: CompanyLinkType;
|
|
6
|
-
export declare const postLoginLinks: Array<FooterLinksType>;
|
|
7
|
-
export declare const preLoginLinks: PreLoginFooterLinksType;
|
|
8
4
|
export declare const LANGUAGES: {
|
|
9
5
|
it: {
|
|
10
6
|
it: string;
|
|
@@ -1,172 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LANGUAGES = exports.
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
3
|
+
exports.LANGUAGES = exports.pagoPALink = void 0;
|
|
5
4
|
const env_1 = require("../../config/env");
|
|
6
|
-
exports.companyLegalInfo = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("strong", { children: "PagoPA S.p.A." }), " \u2014 societ\u00E0 per azioni con socio unico - capitale sociale di euro 1,000,000 interamente versato - sede legale in Roma, Piazza Colonna 370,", (0, jsx_runtime_1.jsx)("br", {}), "CAP 00187 - n. di iscrizione a Registro Imprese di Roma, CF e P.IVA 15376371009"] }));
|
|
7
5
|
exports.pagoPALink = {
|
|
8
6
|
href: env_1.CONFIG.FOOTER.LINK.PAGOPALINK,
|
|
9
7
|
ariaLabel: 'Link: vai al sito di PagoPA S.p.A.',
|
|
10
8
|
};
|
|
11
|
-
exports.postLoginLinks = [
|
|
12
|
-
{
|
|
13
|
-
label: 'Privacy policy',
|
|
14
|
-
href: env_1.CONFIG.FOOTER.LINK.PRIVACYPOLICY,
|
|
15
|
-
ariaLabel: 'Vai al link: Privacy policy',
|
|
16
|
-
linkType: 'internal',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
label: 'Diritto alla protezione dei dati personali',
|
|
20
|
-
href: env_1.CONFIG.FOOTER.LINK.PROTECTIONOFPERSONALDATA,
|
|
21
|
-
ariaLabel: 'Vai al link: Diritto alla protezione dei dati personali',
|
|
22
|
-
linkType: 'internal',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
label: 'Termini e condizioni',
|
|
26
|
-
href: env_1.CONFIG.FOOTER.LINK.TERMSANDCONDITIONS,
|
|
27
|
-
ariaLabel: 'Vai al link: Termini e condizioni',
|
|
28
|
-
linkType: 'internal',
|
|
29
|
-
},
|
|
30
|
-
// TODO
|
|
31
|
-
// {
|
|
32
|
-
// label: 'Accessibilità',
|
|
33
|
-
// href: CONFIG.FOOTER.LINK.ACCESSIBILITY,
|
|
34
|
-
// ariaLabel: 'Vai al link: Accessibilità',
|
|
35
|
-
// linkType: 'internal',
|
|
36
|
-
// },
|
|
37
|
-
];
|
|
38
|
-
exports.preLoginLinks = {
|
|
39
|
-
// First column
|
|
40
|
-
aboutUs: {
|
|
41
|
-
title: undefined,
|
|
42
|
-
links: [
|
|
43
|
-
// TODO
|
|
44
|
-
// {
|
|
45
|
-
// label: 'PNRR',
|
|
46
|
-
// href: 'CONFIG.FOOTER.LINK.PNRR',
|
|
47
|
-
// ariaLabel: 'Vai al link: PNRR',
|
|
48
|
-
// linkType: 'internal',
|
|
49
|
-
// },
|
|
50
|
-
{
|
|
51
|
-
label: 'PagoPA S.p.A.',
|
|
52
|
-
href: env_1.CONFIG.FOOTER.LINK.ABOUTUS,
|
|
53
|
-
ariaLabel: 'Vai al link: Chi siamo',
|
|
54
|
-
linkType: 'internal',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
label: 'Media',
|
|
58
|
-
href: env_1.CONFIG.FOOTER.LINK.MEDIA,
|
|
59
|
-
ariaLabel: 'Vai al link: Media',
|
|
60
|
-
linkType: 'internal',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
label: 'Lavora con noi',
|
|
64
|
-
href: env_1.CONFIG.FOOTER.LINK.WORKWITHUS,
|
|
65
|
-
ariaLabel: 'Vai al link: Lavora con noi',
|
|
66
|
-
linkType: 'internal',
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
},
|
|
70
|
-
// Third column
|
|
71
|
-
resources: {
|
|
72
|
-
title: 'Risorse',
|
|
73
|
-
links: [
|
|
74
|
-
{
|
|
75
|
-
label: 'Privacy Policy',
|
|
76
|
-
href: env_1.CONFIG.FOOTER.LINK.PRIVACYPOLICY,
|
|
77
|
-
ariaLabel: 'Vai al link: Privacy Policy',
|
|
78
|
-
linkType: 'internal',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
label: 'Certificazioni',
|
|
82
|
-
href: env_1.CONFIG.FOOTER.LINK.CERTIFICATIONS,
|
|
83
|
-
ariaLabel: 'Vai al link: Certificazioni',
|
|
84
|
-
linkType: 'internal',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
label: 'Sicurezza delle informazioni',
|
|
88
|
-
href: env_1.CONFIG.FOOTER.LINK.INFORMATIONSECURITY,
|
|
89
|
-
ariaLabel: 'Vai al link: Sicurezza delle informazioni',
|
|
90
|
-
linkType: 'internal',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
label: 'Diritto alla protezione dei dati personali',
|
|
94
|
-
href: env_1.CONFIG.FOOTER.LINK.PROTECTIONOFPERSONALDATA,
|
|
95
|
-
ariaLabel: 'Vai al link: Diritto alla protezione dei dati personali',
|
|
96
|
-
linkType: 'internal',
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
label: 'Preferenze Cookie',
|
|
100
|
-
onClick: () => window.OneTrust.ToggleInfoDisplay(),
|
|
101
|
-
ariaLabel: 'Vai al link: Preferenze Cookie',
|
|
102
|
-
linkType: 'internal',
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
label: 'Termini e Condizioni',
|
|
106
|
-
href: env_1.CONFIG.FOOTER.LINK.TERMSANDCONDITIONS,
|
|
107
|
-
ariaLabel: 'Vai al link: Termini e Condizioni',
|
|
108
|
-
linkType: 'internal',
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
label: 'Società trasparente',
|
|
112
|
-
href: env_1.CONFIG.FOOTER.LINK.TRANSPARENTCOMPANY,
|
|
113
|
-
ariaLabel: 'Vai al link: Società trasparente',
|
|
114
|
-
linkType: 'internal',
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
label: 'Responsible Disclosure Policy',
|
|
118
|
-
href: env_1.CONFIG.FOOTER.LINK.DISCLOSUREPOLICY,
|
|
119
|
-
ariaLabel: 'Vai al link: Responsible Disclosure Policy',
|
|
120
|
-
linkType: 'internal',
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
label: 'Modello 321',
|
|
124
|
-
href: env_1.CONFIG.FOOTER.LINK.MODEL321,
|
|
125
|
-
ariaLabel: 'Vai al link: Modello 321',
|
|
126
|
-
linkType: 'internal',
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
},
|
|
130
|
-
// Fourth column
|
|
131
|
-
followUs: {
|
|
132
|
-
title: 'Seguici su',
|
|
133
|
-
socialLinks: [
|
|
134
|
-
{
|
|
135
|
-
icon: 'linkedin',
|
|
136
|
-
title: 'LinkedIn',
|
|
137
|
-
href: env_1.CONFIG.FOOTER.LINK.LINKEDIN,
|
|
138
|
-
ariaLabel: 'Link: vai al sito LinkedIn di PagoPA S.p.A.',
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
title: 'Twitter',
|
|
142
|
-
icon: 'twitter',
|
|
143
|
-
href: env_1.CONFIG.FOOTER.LINK.TWITTER,
|
|
144
|
-
ariaLabel: 'Link: vai al sito Twitter di PagoPA S.p.A.',
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
icon: 'instagram',
|
|
148
|
-
title: 'Instagram',
|
|
149
|
-
href: env_1.CONFIG.FOOTER.LINK.INSTAGRAM,
|
|
150
|
-
ariaLabel: 'Link: vai al sito Instagram di PagoPA S.p.A.',
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
icon: 'medium',
|
|
154
|
-
title: 'Medium',
|
|
155
|
-
href: env_1.CONFIG.FOOTER.LINK.MEDIUM,
|
|
156
|
-
ariaLabel: 'Link: vai al sito Medium di PagoPA S.p.A.',
|
|
157
|
-
},
|
|
158
|
-
],
|
|
159
|
-
links: [
|
|
160
|
-
// TODO
|
|
161
|
-
// {
|
|
162
|
-
// label: 'Accessibilità',
|
|
163
|
-
// href: CONFIG.FOOTER.LINK.ACCESSIBILITY,
|
|
164
|
-
// ariaLabel: 'Vai al link: Accessibilità',
|
|
165
|
-
// linkType: 'internal',
|
|
166
|
-
// },
|
|
167
|
-
],
|
|
168
|
-
},
|
|
169
|
-
};
|
|
170
9
|
exports.LANGUAGES = {
|
|
171
10
|
it: { it: 'Italiano' },
|
|
172
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FooterConfig.js","sourceRoot":"","sources":["../../../src/lib/components/Footer/FooterConfig.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FooterConfig.js","sourceRoot":"","sources":["../../../src/lib/components/Footer/FooterConfig.tsx"],"names":[],"mappings":";;;AACA,0CAA0C;AAI7B,QAAA,UAAU,GAAoB;IACzC,IAAI,EAAE,YAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU;IACnC,SAAS,EAAE,oCAAoC;CAChD,CAAC;AAIW,QAAA,SAAS,GAAG;IACvB,EAAE,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE;CACvB,CAAC"}
|
package/config/env.js
CHANGED
package/locale/it.d.ts
CHANGED
|
@@ -17,6 +17,37 @@ declare const _default: {
|
|
|
17
17
|
termsAndConditionLink: string;
|
|
18
18
|
informationSecurityLink: string;
|
|
19
19
|
assistanceLink: string;
|
|
20
|
+
preLoginLinks: {
|
|
21
|
+
aboutUs: {
|
|
22
|
+
links: {
|
|
23
|
+
aboutUs: string;
|
|
24
|
+
media: string;
|
|
25
|
+
workwithud: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
resources: {
|
|
29
|
+
title: string;
|
|
30
|
+
links: {
|
|
31
|
+
privacyPolicy: string;
|
|
32
|
+
certifications: string;
|
|
33
|
+
informationsecurity: string;
|
|
34
|
+
protectionofpersonaldata: string;
|
|
35
|
+
cookie: string;
|
|
36
|
+
termsandconditions: string;
|
|
37
|
+
transparentcompany: string;
|
|
38
|
+
disclosurePolicy: string;
|
|
39
|
+
Model321: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
followUs: {
|
|
43
|
+
title: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
postLoginLinks: {
|
|
47
|
+
privacyPolicy: string;
|
|
48
|
+
protectionofpersonaldata: string;
|
|
49
|
+
termsandconditions: string;
|
|
50
|
+
};
|
|
20
51
|
};
|
|
21
52
|
header: {
|
|
22
53
|
exitButton: string;
|
package/locale/it.js
CHANGED
|
@@ -14,14 +14,42 @@ exports.default = {
|
|
|
14
14
|
buttonLabel: "Contatta l'assistenza",
|
|
15
15
|
},
|
|
16
16
|
footer: {
|
|
17
|
-
legalInfoText:
|
|
18
|
-
interamente versato - sede legale in Roma, Piazza Colonna 370, CAP 00187 -
|
|
19
|
-
<1/>
|
|
20
|
-
n. di iscrizione a Registro Imprese di Roma, CF e P.IVA 15376371009`,
|
|
17
|
+
legalInfoText: `<0>PagoPA S.p.A.</0> - Società per azioni con socio unico - Capitale sociale di euro 1,000,000 interamente versato - Sede legale in Roma, Piazza Colonna 370, <2/> CAP 00187 - N. di iscrizione a Registro Imprese di Roma, CF e P.IVA 15376371009`,
|
|
21
18
|
privacyPolicyLink: 'Privacy Policy ',
|
|
22
19
|
termsAndConditionLink: 'Termini e condizioni d’uso del sito ',
|
|
23
20
|
informationSecurityLink: 'Sicurezza delle informazioni ',
|
|
24
21
|
assistanceLink: 'Assistenza ',
|
|
22
|
+
preLoginLinks: {
|
|
23
|
+
aboutUs: {
|
|
24
|
+
links: {
|
|
25
|
+
aboutUs: 'PagoPA S.p.A.',
|
|
26
|
+
media: 'Media',
|
|
27
|
+
workwithud: 'Lavora con noi',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
resources: {
|
|
31
|
+
title: 'Risorse',
|
|
32
|
+
links: {
|
|
33
|
+
privacyPolicy: 'Privacy Policy',
|
|
34
|
+
certifications: 'Certificazioni',
|
|
35
|
+
informationsecurity: 'Sicurezza delle informazioni',
|
|
36
|
+
protectionofpersonaldata: 'Diritto alla protezione dei dati personali',
|
|
37
|
+
cookie: 'Preferenze Cookie',
|
|
38
|
+
termsandconditions: 'Termini e Condizioni',
|
|
39
|
+
transparentcompany: 'Società trasparente',
|
|
40
|
+
disclosurePolicy: 'Responsible Disclosure Policy',
|
|
41
|
+
Model321: 'Modello 321',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
followUs: {
|
|
45
|
+
title: 'Seguici su',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
postLoginLinks: {
|
|
49
|
+
privacyPolicy: 'Privacy policy',
|
|
50
|
+
protectionofpersonaldata: 'Diritto alla protezione dei dati personali',
|
|
51
|
+
termsandconditions: 'Termini e Condizioni',
|
|
52
|
+
},
|
|
25
53
|
},
|
|
26
54
|
header: {
|
|
27
55
|
exitButton: 'Esci',
|
package/locale/it.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it.js","sourceRoot":"","sources":["../../src/lib/locale/it.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,MAAM,EAAE;QACN,aAAa,EAAE;YACb,iBAAiB,EAAE,QAAQ;YAC3B,mBAAmB,EAAE,sCAAsC;YAC3D,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,sCAAsC;SACrD;QACD,iBAAiB,EAAE;YACjB,KAAK,EAAE,sCAAsC;YAC7C,WAAW,EAAE,2EAA2E;YACxF,WAAW,EAAE,uBAAuB;SACrC;QACD,MAAM,EAAE;YACN,aAAa,EAAE
|
|
1
|
+
{"version":3,"file":"it.js","sourceRoot":"","sources":["../../src/lib/locale/it.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,MAAM,EAAE;QACN,aAAa,EAAE;YACb,iBAAiB,EAAE,QAAQ;YAC3B,mBAAmB,EAAE,sCAAsC;YAC3D,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,sCAAsC;SACrD;QACD,iBAAiB,EAAE;YACjB,KAAK,EAAE,sCAAsC;YAC7C,WAAW,EAAE,2EAA2E;YACxF,WAAW,EAAE,uBAAuB;SACrC;QACD,MAAM,EAAE;YACN,aAAa,EAAE,oPAAoP;YACnQ,iBAAiB,EAAE,iBAAiB;YACpC,qBAAqB,EAAE,sCAAsC;YAC7D,uBAAuB,EAAE,+BAA+B;YACxD,cAAc,EAAE,aAAa;YAC7B,aAAa,EAAE;gBACb,OAAO,EAAE;oBACP,KAAK,EAAE;wBACL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|
{
|
|
2
2
|
"name": "@pagopa/selfcare-common-frontend",
|
|
3
3
|
"description": "Shared React components for the pagopa selfcare project",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.12.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@mui/lab": "^5.0.0-alpha.80",
|
|
16
16
|
"@mui/material": "^5.8.2",
|
|
17
17
|
"@mui/system": "^5.8.1",
|
|
18
|
-
"@pagopa/mui-italia": "^0.
|
|
18
|
+
"@pagopa/mui-italia": "^0.7.0",
|
|
19
19
|
"@pagopa/ts-commons": "^10.2.1",
|
|
20
20
|
"@reduxjs/toolkit": "^1.6.2",
|
|
21
21
|
"@types/lodash": "^4.14.172",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** It allows you to verify that the name that the user would be entering corresponds or not with the
|
|
2
|
+
* characters given to the name in the taxcode.
|
|
3
|
+
* It covers the possible cases and return: TRUE, when the three letters of name in taxCode doesn't match
|
|
4
|
+
* with the name entered by the user, otherwise FALSE when they match.
|
|
5
|
+
* */
|
|
6
|
+
export declare const verifyNameMatchWithTaxCode: (name: string, fiscalCode?: string | undefined) => string | boolean | undefined;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** It allows you to verify that the name that the user would be entering corresponds or not with the
|
|
3
|
+
* characters given to the name in the taxcode.
|
|
4
|
+
* It covers the possible cases and return: TRUE, when the three letters of name in taxCode doesn't match
|
|
5
|
+
* with the name entered by the user, otherwise FALSE when they match.
|
|
6
|
+
* */
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.verifyNameMatchWithTaxCode = void 0;
|
|
9
|
+
const verifyNameMatchWithTaxCode = (name, fiscalCode) => {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const fiscalCodeName = fiscalCode === null || fiscalCode === void 0 ? void 0 : fiscalCode.substring(3, 6).toLocaleUpperCase();
|
|
12
|
+
const consonantsName = (_a = name
|
|
13
|
+
.match(/[^aeiou]/gi)) === null || _a === void 0 ? void 0 : _a.join('').replace(/\s/g, '').toLocaleUpperCase();
|
|
14
|
+
if ((consonantsName === null || consonantsName === void 0 ? void 0 : consonantsName.length) === 3 && fiscalCodeName === consonantsName) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
else if (consonantsName && (consonantsName === null || consonantsName === void 0 ? void 0 : consonantsName.length) > 3) {
|
|
18
|
+
const threeNameLetters = (consonantsName === null || consonantsName === void 0 ? void 0 : consonantsName.slice(0, 1)) + (consonantsName === null || consonantsName === void 0 ? void 0 : consonantsName.slice(2, 4));
|
|
19
|
+
if (fiscalCodeName === threeNameLetters) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else if (consonantsName && (consonantsName === null || consonantsName === void 0 ? void 0 : consonantsName.length) < 3) {
|
|
24
|
+
const firstVocalFound = (_b = name
|
|
25
|
+
.match(/[aeiou]/gi)) === null || _b === void 0 ? void 0 : _b.join('').substring(0, 1).toLocaleUpperCase();
|
|
26
|
+
if (firstVocalFound) {
|
|
27
|
+
const threeNameLetters = consonantsName === null || consonantsName === void 0 ? void 0 : consonantsName.concat(firstVocalFound);
|
|
28
|
+
if (fiscalCodeName === threeNameLetters) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
return fiscalCode;
|
|
37
|
+
};
|
|
38
|
+
exports.verifyNameMatchWithTaxCode = verifyNameMatchWithTaxCode;
|
|
39
|
+
//# sourceMappingURL=verifyNameMatchWithTaxCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifyNameMatchWithTaxCode.js","sourceRoot":"","sources":["../../src/l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AC,eAAe,CAAC,CAAC;YACjE,IAAI,cAAc,KAAK,gBAAgB,EAAE;gBACvC,OAAO,KAAK,CAAC;aACd;SACF;KACF;SAAM;QACL,OAAO,IAAI,CAAC;KACb;IACD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AA9BW,QAAA,0BAA0B,8BA8BrC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** It allows you to verify that the surname that the user would be entering corresponds or not with the
|
|
2
|
+
* characters given to the surname in the taxcode.
|
|
3
|
+
* It covers the possible cases and return: TRUE, when the three letters of surname in taxCode doesn't match
|
|
4
|
+
* with the surname entered by the user, otherwise FALSE when they match.
|
|
5
|
+
* */
|
|
6
|
+
export declare const verifySurnameMatchWithTaxCode: (surname: string, fiscalCode?: string | undefined) => string | boolean | undefined;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** It allows you to verify that the surname that the user would be entering corresponds or not with the
|
|
3
|
+
* characters given to the surname in the taxcode.
|
|
4
|
+
* It covers the possible cases and return: TRUE, when the three letters of surname in taxCode doesn't match
|
|
5
|
+
* with the surname entered by the user, otherwise FALSE when they match.
|
|
6
|
+
* */
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.verifySurnameMatchWithTaxCode = void 0;
|
|
9
|
+
const verifySurnameMatchWithTaxCode = (surname, fiscalCode) => {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const fiscalCodeSurname = fiscalCode === null || fiscalCode === void 0 ? void 0 : fiscalCode.substring(0, 3).toLocaleUpperCase();
|
|
12
|
+
const consonantsSurname = (_a = surname
|
|
13
|
+
.match(/[^aeiou]/gi)) === null || _a === void 0 ? void 0 : _a.join('').replace(/\s/g, '').toLocaleUpperCase();
|
|
14
|
+
if (consonantsSurname && (consonantsSurname === null || consonantsSurname === void 0 ? void 0 : consonantsSurname.length) >= 3) {
|
|
15
|
+
const threeSurnameLetters = consonantsSurname === null || consonantsSurname === void 0 ? void 0 : consonantsSurname.substring(0, 3);
|
|
16
|
+
return fiscalCodeSurname !== threeSurnameLetters;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
const firstVocalFound = (_b = surname
|
|
20
|
+
.match(/[aeiou]/gi)) === null || _b === void 0 ? void 0 : _b.join('').substring(0, 1).toLocaleUpperCase();
|
|
21
|
+
if (firstVocalFound) {
|
|
22
|
+
const threeSurnameLetters = consonantsSurname === null || consonantsSurname === void 0 ? void 0 : consonantsSurname.concat(firstVocalFound);
|
|
23
|
+
return fiscalCodeSurname !== threeSurnameLetters;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return fiscalCode;
|
|
27
|
+
};
|
|
28
|
+
exports.verifySurnameMatchWithTaxCode = verifySurnameMatchWithTaxCode;
|
|
29
|
+
//# sourceMappingURL=verifySurnameMatchWithTaxCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifySurnameMatchWithTaxCode.js","sourceRoot":"","sources":["../../src/lib/utils/verifySurnameMatchWithTaxCode.tsx"],"names":[],"mappings":";AAAA;;;;KAIK;;;AAEE,MAAM,6BAA6B,GAAG,CAAC,OAAe,EAAE,UAAmB,EAAE,EAAE;;IACpF,MAAM,iBAAiB,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC1E,MAAM,iBAAiB,GAAG,MAAA,OAAO;SAC9B,KAAK,CAAC,YAAY,CAAC,0CAClB,IAAI,CAAC,EAAE,EACR,OAAO,CAAC,KAAK,EAAE,EAAE,EACjB,iBAAiB,EAAE,CAAC;IACvB,IAAI,iBAAiB,IAAI,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,MAAM,KAAI,CAAC,EAAE;QACvD,MAAM,mBAAmB,GAAG,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC/D,OAAO,iBAAiB,KAAK,mBAAmB,CAAC;KAClD;SAAM;QACL,MAAM,eAAe,GAAG,MAAA,OAAO;aAC5B,KAAK,CAAC,WAAW,CAAC,0CACjB,IAAI,CAAC,EAAE,EACR,SAAS,CAAC,CAAC,EAAE,CAAC,EACd,iBAAiB,EAAE,CAAC;QACvB,IAAI,eAAe,EAAE;YACnB,MAAM,mBAAmB,GAAG,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,MAAM,CAAC,eAAe,CAAC,CAAC;YACvE,OAAO,iBAAiB,KAAK,mBAAmB,CAAC;SAClD;KACF;IACD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAtBW,QAAA,6BAA6B,iCAsBxC"}
|