@redneckz/wildless-cms-uni-blocks 0.14.835 → 0.14.837
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/bundle/bundle.umd.js +41 -43
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/bundle/components/GalleryLayout/utils.d.ts +29 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +12 -6
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.js +3 -13
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/dist/components/GalleryLayout/GalleryLayout.js +3 -24
- package/dist/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/dist/components/GalleryLayout/utils.d.ts +29 -0
- package/dist/components/GalleryLayout/utils.js +29 -0
- package/dist/components/GalleryLayout/utils.js.map +1 -0
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +12 -6
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.js +3 -13
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/lib/components/GalleryLayout/GalleryLayout.js +1 -22
- package/lib/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/lib/components/GalleryLayout/utils.d.ts +29 -0
- package/lib/components/GalleryLayout/utils.js +25 -0
- package/lib/components/GalleryLayout/utils.js.map +1 -0
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +41 -43
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/mobile/bundle/components/GalleryLayout/utils.d.ts +29 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +12 -6
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js +3 -13
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/mobile/dist/components/GalleryLayout/GalleryLayout.js +3 -24
- package/mobile/dist/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/mobile/dist/components/GalleryLayout/utils.d.ts +29 -0
- package/mobile/dist/components/GalleryLayout/utils.js +29 -0
- package/mobile/dist/components/GalleryLayout/utils.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +12 -6
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js +3 -13
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/mobile/lib/components/GalleryLayout/GalleryLayout.js +1 -22
- package/mobile/lib/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/mobile/lib/components/GalleryLayout/utils.d.ts +29 -0
- package/mobile/lib/components/GalleryLayout/utils.js +25 -0
- package/mobile/lib/components/GalleryLayout/utils.js.map +1 -0
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
- package/mobile/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +12 -7
- package/mobile/src/components/ApplicationLeadForm/parseEsiaProfile.ts +3 -13
- package/mobile/src/components/GalleryLayout/GalleryLayout.tsx +1 -32
- package/mobile/src/components/GalleryLayout/utils.ts +35 -0
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
- package/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +12 -7
- package/src/components/ApplicationLeadForm/parseEsiaProfile.ts +3 -13
- package/src/components/GalleryLayout/GalleryLayout.tsx +1 -32
- package/src/components/GalleryLayout/utils.ts +35 -0
- package/src/icons/IconName.ts +4 -4
package/bundle/bundle.umd.js
CHANGED
|
@@ -2725,14 +2725,19 @@
|
|
|
2725
2725
|
|
|
2726
2726
|
const getLink = (body) => fetchRetailJSON('/esia/getLink', 'POST', body);
|
|
2727
2727
|
|
|
2728
|
-
const EsiaLoginBanner = JSX(() => {
|
|
2728
|
+
const EsiaLoginBanner = JSX(({ setEsiaStatus }) => {
|
|
2729
2729
|
const navigator = locationNavigator();
|
|
2730
2730
|
const handleAuth = useCallback(async () => {
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2731
|
+
try {
|
|
2732
|
+
const resp = await getLink({
|
|
2733
|
+
redirectUri: globalThis.location.origin + globalThis.location.pathname,
|
|
2734
|
+
});
|
|
2735
|
+
if (resp?.link) {
|
|
2736
|
+
navigator.assign(resp.link);
|
|
2737
|
+
}
|
|
2738
|
+
}
|
|
2739
|
+
catch {
|
|
2740
|
+
setEsiaStatus(EsiaStatuses.Error);
|
|
2736
2741
|
}
|
|
2737
2742
|
}, []);
|
|
2738
2743
|
return (jsxs("div", { className: "flex gap-lg items-center rounded-md bg-main-gray p-4xl", children: [jsxs("div", { className: "flex flex-col justify-around w-full", children: [jsx("p", { className: "mb-m text-xl", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), jsxs("ul", { className: "list-disc list-inside mb-4xl", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(Img, { className: "block mb-xl self-center @md:hidden", image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "80", width: "80" }), jsx(Button, { type: "button", onClick: handleAuth, className: "w-full @md:w-fit", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C" })] }), jsx(Img, { className: "hidden @md:block", image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "164" })] }));
|
|
@@ -5982,8 +5987,10 @@
|
|
|
5982
5987
|
dulSubdivisionCode: document.dulSubdivisionCode,
|
|
5983
5988
|
birthPlace: addInfo.birthPlace,
|
|
5984
5989
|
addressRegistration: buildAddress(addressRegistration),
|
|
5985
|
-
addressFact: buildAddress(addressFact),
|
|
5986
5990
|
esiaAccountTypeCd: isDebit ? profile.esiaAccountType : { key: '' },
|
|
5991
|
+
...(addressFact && {
|
|
5992
|
+
addressFact: buildAddress(addressFact),
|
|
5993
|
+
}),
|
|
5987
5994
|
};
|
|
5988
5995
|
return {
|
|
5989
5996
|
...mainData,
|
|
@@ -6062,16 +6069,6 @@
|
|
|
6062
6069
|
category: 'CONFIRMING_INCOME_DOC',
|
|
6063
6070
|
isPDF: false,
|
|
6064
6071
|
},
|
|
6065
|
-
{
|
|
6066
|
-
file: esiaAdditionalDocument.pdfFileSigWorkbook,
|
|
6067
|
-
category: 'CONFIRMING_INCOME_DOC',
|
|
6068
|
-
isPDF: true,
|
|
6069
|
-
},
|
|
6070
|
-
{
|
|
6071
|
-
file: esiaAdditionalDocument.xmlFileSigWorkbook,
|
|
6072
|
-
category: 'CONFIRMING_INCOME_DOC',
|
|
6073
|
-
isPDF: false,
|
|
6074
|
-
},
|
|
6075
6072
|
];
|
|
6076
6073
|
for (const doc of documents) {
|
|
6077
6074
|
const contentType = doc.isPDF ? 'data:application/pdf;base64' : 'data:application/xml;base64';
|
|
@@ -6118,8 +6115,6 @@
|
|
|
6118
6115
|
esiaAdditionalDocument?.xmlFilePayout,
|
|
6119
6116
|
esiaAdditionalDocument?.xmlFileSigPayout,
|
|
6120
6117
|
esiaAdditionalDocument?.xmlFileWorkbook,
|
|
6121
|
-
esiaAdditionalDocument?.pdfFileSigWorkbook,
|
|
6122
|
-
esiaAdditionalDocument?.xmlFileSigWorkbook,
|
|
6123
6118
|
];
|
|
6124
6119
|
return data.every(Boolean);
|
|
6125
6120
|
};
|
|
@@ -6206,7 +6201,7 @@
|
|
|
6206
6201
|
reset();
|
|
6207
6202
|
}
|
|
6208
6203
|
}, [leadForm?.current, esiaStatus]);
|
|
6209
|
-
return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [!esiaStatus ? jsx(EsiaLoginBanner, {}) : null, jsxs("form", { onSubmit: onSubmit, className: "space-y-m relative", ref: leadForm, children: [esiaStatus === EsiaStatuses.Pending ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$1({ field, inputs: _?.inputs }, productType)] }, `section-${i}`))), renderSubmitButton(button, isSending), esiaStatus === EsiaStatuses.Error ? (jsx(Text, { size: "text-m", font: "font-medium", color: "text-error", children: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438 \u0434\u043B\u044F \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0437\u0430\u044F\u0432\u043A\u0438 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u043E\u043B\u044F \u0432\u0440\u0443\u0447\u043D\u0443\u044E." })) : null] })] }));
|
|
6204
|
+
return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [!esiaStatus ? jsx(EsiaLoginBanner, { setEsiaStatus: setEsiaStatus }) : null, jsxs("form", { onSubmit: onSubmit, className: "space-y-m relative", ref: leadForm, children: [esiaStatus === EsiaStatuses.Pending ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$1({ field, inputs: _?.inputs }, productType)] }, `section-${i}`))), renderSubmitButton(button, isSending), esiaStatus === EsiaStatuses.Error ? (jsx(Text, { size: "text-m", font: "font-medium", color: "text-error", children: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438 \u0434\u043B\u044F \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0437\u0430\u044F\u0432\u043A\u0438 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u043E\u043B\u044F \u0432\u0440\u0443\u0447\u043D\u0443\u044E." })) : null] })] }));
|
|
6210
6205
|
});
|
|
6211
6206
|
const getInputs = (applicationFormData) => (applicationFormData?.flatMap((_) => _?.inputs) || []);
|
|
6212
6207
|
const getExtendedValidatorObj = (productType) => ({
|
|
@@ -10043,8 +10038,32 @@
|
|
|
10043
10038
|
return blocks;
|
|
10044
10039
|
};
|
|
10045
10040
|
|
|
10046
|
-
const MIN_LENGTH_CHILD = 5;
|
|
10047
10041
|
const SHORT_TILE_INDEXES = [1, 2, 3, 4];
|
|
10042
|
+
const getChildStyle = (index) => SHORT_TILE_INDEXES.includes(index)
|
|
10043
|
+
? 'lg:col-span-1 lg:row-span-1'
|
|
10044
|
+
: 'lg:col-span-2 lg:row-span-2';
|
|
10045
|
+
const modifyBlock = (block, i) => {
|
|
10046
|
+
const content = { ...block.content };
|
|
10047
|
+
const isSmallTile = SHORT_TILE_INDEXES.includes(i);
|
|
10048
|
+
if (isSmallTile) {
|
|
10049
|
+
delete content.description;
|
|
10050
|
+
delete content.benefits;
|
|
10051
|
+
if (content.link?.href) {
|
|
10052
|
+
delete content.buttons;
|
|
10053
|
+
}
|
|
10054
|
+
content.imageOptions = { ...content.imageOptions, className: 'max-w-max !h-auto' };
|
|
10055
|
+
content.headlineVersion = 'S';
|
|
10056
|
+
}
|
|
10057
|
+
else {
|
|
10058
|
+
if ((content.buttons ?? []).length) {
|
|
10059
|
+
delete content.link;
|
|
10060
|
+
}
|
|
10061
|
+
content.headlineVersion = 'L';
|
|
10062
|
+
}
|
|
10063
|
+
return { ...block, content };
|
|
10064
|
+
};
|
|
10065
|
+
|
|
10066
|
+
const MIN_LENGTH_CHILD = 5;
|
|
10048
10067
|
const LINK_SCHEMA = {
|
|
10049
10068
|
link: {
|
|
10050
10069
|
allOf: [
|
|
@@ -10095,27 +10114,6 @@
|
|
|
10095
10114
|
block: modifiedBlock,
|
|
10096
10115
|
}) }, String(i)));
|
|
10097
10116
|
};
|
|
10098
|
-
const getChildStyle = (index) => SHORT_TILE_INDEXES.includes(index)
|
|
10099
|
-
? 'lg:col-span-1 lg:row-span-1'
|
|
10100
|
-
: 'lg:col-span-2 lg:row-span-2';
|
|
10101
|
-
const modifyBlock = (block, i) => {
|
|
10102
|
-
const content = { ...block.content };
|
|
10103
|
-
const isSmallTile = SHORT_TILE_INDEXES.includes(i);
|
|
10104
|
-
if (isSmallTile) {
|
|
10105
|
-
delete content.description;
|
|
10106
|
-
delete content.benefits;
|
|
10107
|
-
if (content.link?.href) {
|
|
10108
|
-
delete content.buttons;
|
|
10109
|
-
}
|
|
10110
|
-
content.imageOptions = { ...content.imageOptions, className: 'max-w-max !h-auto' };
|
|
10111
|
-
}
|
|
10112
|
-
else {
|
|
10113
|
-
if ((content.buttons ?? []).length) {
|
|
10114
|
-
delete content.link;
|
|
10115
|
-
}
|
|
10116
|
-
}
|
|
10117
|
-
return { ...block, content };
|
|
10118
|
-
};
|
|
10119
10117
|
|
|
10120
10118
|
const GrantSupport = UniBlock(({ className, title, button, regionSource, data, ...rest }) => {
|
|
10121
10119
|
const [region, setRegion] = useState({ key: '' });
|
|
@@ -11436,7 +11434,7 @@
|
|
|
11436
11434
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
11437
11435
|
});
|
|
11438
11436
|
|
|
11439
|
-
const packageVersion = "0.14.
|
|
11437
|
+
const packageVersion = "0.14.836";
|
|
11440
11438
|
|
|
11441
11439
|
exports.Blocks = Blocks;
|
|
11442
11440
|
exports.ContentPage = ContentPage;
|