@redneckz/wildless-cms-uni-blocks 0.14.897 → 0.14.899
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 +84 -21
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +6 -0
- package/bundle/components/OfficesAtmsMap/filters.d.ts +18 -0
- package/bundle/retail/components/DraftDialog/utils.d.ts +0 -6
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/OfficesAtmsMap/FiltrationForm.js +58 -7
- package/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +6 -0
- package/dist/components/OfficesAtmsMap/filters.d.ts +18 -0
- package/dist/components/OfficesAtmsMap/filters.js +18 -0
- package/dist/components/OfficesAtmsMap/filters.js.map +1 -1
- package/dist/retail/api/esiaRequestProfile.js +4 -2
- package/dist/retail/api/esiaRequestProfile.js.map +1 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js +1 -3
- package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/dist/retail/components/DraftDialog/utils.d.ts +0 -6
- package/dist/retail/components/DraftDialog/utils.js +1 -7
- package/dist/retail/components/DraftDialog/utils.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/OfficesAtmsMap/FiltrationForm.js +58 -7
- package/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +6 -0
- package/lib/components/OfficesAtmsMap/filters.d.ts +18 -0
- package/lib/components/OfficesAtmsMap/filters.js +18 -0
- package/lib/components/OfficesAtmsMap/filters.js.map +1 -1
- package/lib/retail/api/esiaRequestProfile.js +4 -2
- package/lib/retail/api/esiaRequestProfile.js.map +1 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js +2 -4
- package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/lib/retail/components/DraftDialog/utils.d.ts +0 -6
- package/lib/retail/components/DraftDialog/utils.js +0 -6
- package/lib/retail/components/DraftDialog/utils.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +84 -21
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +6 -0
- package/mobile/bundle/components/OfficesAtmsMap/filters.d.ts +18 -0
- package/mobile/bundle/retail/components/DraftDialog/utils.d.ts +0 -6
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js +58 -7
- package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +6 -0
- package/mobile/dist/components/OfficesAtmsMap/filters.d.ts +18 -0
- package/mobile/dist/components/OfficesAtmsMap/filters.js +18 -0
- package/mobile/dist/components/OfficesAtmsMap/filters.js.map +1 -1
- package/mobile/dist/retail/api/esiaRequestProfile.js +4 -2
- package/mobile/dist/retail/api/esiaRequestProfile.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +1 -3
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/utils.d.ts +0 -6
- package/mobile/dist/retail/components/DraftDialog/utils.js +1 -7
- package/mobile/dist/retail/components/DraftDialog/utils.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js +58 -7
- package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +6 -0
- package/mobile/lib/components/OfficesAtmsMap/filters.d.ts +18 -0
- package/mobile/lib/components/OfficesAtmsMap/filters.js +18 -0
- package/mobile/lib/components/OfficesAtmsMap/filters.js.map +1 -1
- package/mobile/lib/retail/api/esiaRequestProfile.js +4 -2
- package/mobile/lib/retail/api/esiaRequestProfile.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +2 -4
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/utils.d.ts +0 -6
- package/mobile/lib/retail/components/DraftDialog/utils.js +0 -6
- package/mobile/lib/retail/components/DraftDialog/utils.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +3 -2
- package/mobile/src/components/OfficesAtmsMap/FiltrationForm.tsx +91 -12
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +6 -0
- package/mobile/src/components/OfficesAtmsMap/filters.ts +24 -0
- package/mobile/src/retail/api/esiaRequestProfile.ts +4 -2
- package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +0 -5
- package/mobile/src/retail/components/DraftDialog/utils.ts +0 -7
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +3 -2
- package/src/components/OfficesAtmsMap/FiltrationForm.tsx +91 -12
- package/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +6 -0
- package/src/components/OfficesAtmsMap/filters.ts +24 -0
- package/src/retail/api/esiaRequestProfile.ts +4 -2
- package/src/retail/components/DraftDialog/parseDraftTask.ts +0 -5
- package/src/retail/components/DraftDialog/utils.ts +0 -7
package/bundle/bundle.umd.js
CHANGED
|
@@ -4038,6 +4038,12 @@
|
|
|
4038
4038
|
bullionOperations: false,
|
|
4039
4039
|
preciousMetalsOperations: false,
|
|
4040
4040
|
transferringDataToBiometricSystem: false,
|
|
4041
|
+
hasAccessibilitySign: false,
|
|
4042
|
+
equippedWithRamp: false,
|
|
4043
|
+
equippedWithLift: false,
|
|
4044
|
+
equippedWithElevator: false,
|
|
4045
|
+
equippedWithStairclimber: false,
|
|
4046
|
+
hasHelpMeButton: false,
|
|
4041
4047
|
...ATMS_INITIAL_FILTRATION_STATE,
|
|
4042
4048
|
};
|
|
4043
4049
|
const FILTRATION_LABELS = {
|
|
@@ -4058,6 +4064,12 @@
|
|
|
4058
4064
|
serviceDisabledPeople: 'Для маломобильных граждан',
|
|
4059
4065
|
workAllTime: 'Круглосуточно',
|
|
4060
4066
|
workingSaturday: 'Открыты по субботам',
|
|
4067
|
+
hasAccessibilitySign: 'Без барьеров',
|
|
4068
|
+
equippedWithRamp: 'Есть пандус',
|
|
4069
|
+
equippedWithLift: 'Есть подъёмник',
|
|
4070
|
+
equippedWithElevator: 'Есть лифт',
|
|
4071
|
+
equippedWithStairclimber: 'Есть лестницеход',
|
|
4072
|
+
hasHelpMeButton: 'Есть кнопка «HELP ME»',
|
|
4061
4073
|
};
|
|
4062
4074
|
const FILTRATION_PREDICATES_ATMS = {
|
|
4063
4075
|
terminalTypeTerm: (item) => item.terminalType?.toLowerCase() === 'терминал',
|
|
@@ -4079,6 +4091,12 @@
|
|
|
4079
4091
|
bullionOperations: (item) => Boolean('bullionOperations' in item && item.bullionOperations),
|
|
4080
4092
|
preciousMetalsOperations: (item) => Boolean('preciousMetalsOperations' in item && item.preciousMetalsOperations),
|
|
4081
4093
|
transferringDataToBiometricSystem: (item) => Boolean('transferringDataToBiometricSystem' in item && item.transferringDataToBiometricSystem),
|
|
4094
|
+
hasAccessibilitySign: (item) => Boolean('hasAccessibilitySign' in item && item.hasAccessibilitySign),
|
|
4095
|
+
equippedWithRamp: (item) => Boolean('equippedWithRamp' in item && item.equippedWithRamp),
|
|
4096
|
+
equippedWithLift: (item) => Boolean('equippedWithLift' in item && item.equippedWithLift),
|
|
4097
|
+
equippedWithElevator: (item) => Boolean('equippedWithElevator' in item && item.equippedWithElevator),
|
|
4098
|
+
equippedWithStairclimber: (item) => Boolean('equippedWithStairclimber' in item && item.equippedWithStairclimber),
|
|
4099
|
+
hasHelpMeButton: (item) => Boolean('hasHelpMeButton' in item && item.hasHelpMeButton),
|
|
4082
4100
|
};
|
|
4083
4101
|
|
|
4084
4102
|
const filterItems = (data, filtrationState) => {
|
|
@@ -5851,12 +5869,6 @@
|
|
|
5851
5869
|
WORK: 'Работаю',
|
|
5852
5870
|
RETIREE: 'Пенсионер',
|
|
5853
5871
|
};
|
|
5854
|
-
const INCOME_CERTIFICATE = {
|
|
5855
|
-
BANK_STATEMENT: 'Получаю зарплату на счет/карту в РСХБ',
|
|
5856
|
-
BANK_STATEMENT_PENS: 'Получаю пенсию на счет/карту в РСХБ',
|
|
5857
|
-
PFR_CERTIFICATE: 'Получаю зарплату на счет/карту в другом банке',
|
|
5858
|
-
OTHER: 'Другое',
|
|
5859
|
-
};
|
|
5860
5872
|
const getParticipantIncomes = (participantIncomes) => {
|
|
5861
5873
|
const wages = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "WAGES" /* EIncomesType.WAGES */)?.value;
|
|
5862
5874
|
const mandatoryPayments = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "MANDATORY_PAYMENTS" /* EIncomesType.MANDATORY_PAYMENTS */)?.value;
|
|
@@ -5938,7 +5950,7 @@
|
|
|
5938
5950
|
const participant = task.participants[0];
|
|
5939
5951
|
const { classCard: cardCategory, codeWord, paymentSystemTypeCd: paymentSystem, currencyCode: currency, } = task;
|
|
5940
5952
|
const { loanAmount: moneyValue, creditPeriod: monthsValue, paymentTypeCd } = task;
|
|
5941
|
-
const { birthDate: limitedBirthday, midname: middleName, name, surname, birthPlace, dulIssueDate: dulIssueDate, dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, educationLevelCd: education, registrationDate: participantDateRegistration, houseTypeCd: housing, genderCd, participantContacts = [], participantAddresses = [], employmentContractDate: beginDate, employmentTypeCd: employment, organizationName, organizationInn: inn, organizationActivityTypeCd: employerActivities, organizationTypeCd: organization, organizationKindCd: employerOrganization, employeesNumberCd: amountWorkers, opf: legalForm, seniority: generalSeniority, generalSeniority: experience5Years, jobsNumber, lastWorkDuration: lastJobExperience, positionCd: positionOrganization, maritalStatusCd: familyStatus, childrenDependents: children, totalDependents: familyMembers, otherDependents: dependents, militaryStatusCd: conscription, participantIncomes, snils, armyIdFlg, bankruptcyFlg, shareholderFlg, nameLegalEntity: legalEntityName, creditInRshbCd, payrollCardRshbFlg: isInsurance, consentInsuranceFlg: isSalaryClient,
|
|
5953
|
+
const { birthDate: limitedBirthday, midname: middleName, name, surname, birthPlace, dulIssueDate: dulIssueDate, dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, educationLevelCd: education, registrationDate: participantDateRegistration, houseTypeCd: housing, genderCd, participantContacts = [], participantAddresses = [], employmentContractDate: beginDate, employmentTypeCd: employment, organizationName, organizationInn: inn, organizationActivityTypeCd: employerActivities, organizationTypeCd: organization, organizationKindCd: employerOrganization, employeesNumberCd: amountWorkers, opf: legalForm, seniority: generalSeniority, generalSeniority: experience5Years, jobsNumber, lastWorkDuration: lastJobExperience, positionCd: positionOrganization, maritalStatusCd: familyStatus, childrenDependents: children, totalDependents: familyMembers, otherDependents: dependents, militaryStatusCd: conscription, participantIncomes, snils, armyIdFlg, bankruptcyFlg, shareholderFlg, nameLegalEntity: legalEntityName, creditInRshbCd, payrollCardRshbFlg: isInsurance, consentInsuranceFlg: isSalaryClient, } = participant;
|
|
5942
5954
|
return {
|
|
5943
5955
|
currency: currency?.key,
|
|
5944
5956
|
paymentSystem: getSelectValue(paymentSystem),
|
|
@@ -5976,7 +5988,6 @@
|
|
|
5976
5988
|
familyMembers: familyMembers?.toString(),
|
|
5977
5989
|
dependents: dependents?.toString(),
|
|
5978
5990
|
conscription: getSelectValue(conscription),
|
|
5979
|
-
confirmationIncome: getSelectValue(incomeCertificateCd, INCOME_CERTIFICATE),
|
|
5980
5991
|
snils,
|
|
5981
5992
|
armyIdFlg,
|
|
5982
5993
|
bankruptcyFlg,
|
|
@@ -5990,7 +6001,6 @@
|
|
|
5990
6001
|
monthsValue,
|
|
5991
6002
|
isAnnuity: paymentTypeCd?.key === 'ANNUITY',
|
|
5992
6003
|
},
|
|
5993
|
-
esiaAccountTypeCd: profile?.esiaAccountTypeCd,
|
|
5994
6004
|
...getParticipantIncomes(participantIncomes),
|
|
5995
6005
|
...getParticipantAddresses(participantAddresses),
|
|
5996
6006
|
...getParticipantContacts(participantContacts),
|
|
@@ -6381,8 +6391,10 @@
|
|
|
6381
6391
|
};
|
|
6382
6392
|
|
|
6383
6393
|
const esiaRequestProfile = (body) => fetchRetailJSON('/esia/requestProfile', 'POST', body).then((res) => {
|
|
6384
|
-
|
|
6385
|
-
|
|
6394
|
+
if (res?.access_token && res?.refresh_token) {
|
|
6395
|
+
saveToken(res);
|
|
6396
|
+
updateRefreshToken(true);
|
|
6397
|
+
}
|
|
6386
6398
|
return res;
|
|
6387
6399
|
});
|
|
6388
6400
|
|
|
@@ -6642,8 +6654,9 @@
|
|
|
6642
6654
|
const referalData = sessionStore.referalData;
|
|
6643
6655
|
const marketingInfoFromStorage = sessionStore.marketingInfo;
|
|
6644
6656
|
const queryStorage = new URLSearchParams(decodeURIComponent(queryFromStorage || ''));
|
|
6645
|
-
const
|
|
6646
|
-
const
|
|
6657
|
+
const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
|
|
6658
|
+
const code = params.get('code');
|
|
6659
|
+
const state = params.get('state');
|
|
6647
6660
|
const referalCode = code ? referalData?.referalCode : queryStorage.get('referalCode');
|
|
6648
6661
|
const refererCode = code ? referalData?.refererCode : queryStorage.get('refererCode');
|
|
6649
6662
|
const productId = code ? referalData?.productId : queryStorage.get('productId');
|
|
@@ -10949,15 +10962,65 @@
|
|
|
10949
10962
|
});
|
|
10950
10963
|
|
|
10951
10964
|
const COMMON_FILTERS_STYLES = 'flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl';
|
|
10952
|
-
const
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
10957
|
-
|
|
10965
|
+
const VISIBLE_FILTERS = [
|
|
10966
|
+
'workingSaturday',
|
|
10967
|
+
'premiumService',
|
|
10968
|
+
'privateBanking',
|
|
10969
|
+
'remoteWorkplace',
|
|
10970
|
+
'serviceDisabledPeople',
|
|
10971
|
+
'transferringDataToBiometricSystem',
|
|
10972
|
+
];
|
|
10973
|
+
const PRECIOUS_METALS_FILTERS = [
|
|
10974
|
+
'sellingCoins',
|
|
10975
|
+
'buyingCoins',
|
|
10976
|
+
'bullionOperations',
|
|
10977
|
+
'preciousMetalsOperations',
|
|
10978
|
+
];
|
|
10979
|
+
const DISABLED_SERVICE_FILTERS = [
|
|
10980
|
+
'hasAccessibilitySign',
|
|
10981
|
+
'equippedWithRamp',
|
|
10982
|
+
'equippedWithLift',
|
|
10983
|
+
'equippedWithElevator',
|
|
10984
|
+
'equippedWithStairclimber',
|
|
10985
|
+
'hasHelpMeButton',
|
|
10986
|
+
];
|
|
10987
|
+
const VISIBLE_ATMS_FILTERS_NUM = 6;
|
|
10988
|
+
const FiltrationForm = JSX(({ filters = [], field: { field, reset }, onlyOffice, labels }) => {
|
|
10989
|
+
const filtersCheckbox = filters.map((key) => (jsx(Checkbox, { text: labels[key], ...field(key) }, key)));
|
|
10990
|
+
const [visibleFilters, hiddenPreciousMetalsFilters, hiddenDisabledServiceFilters] = getFilters({
|
|
10991
|
+
onlyOffice,
|
|
10992
|
+
filtersCheckbox,
|
|
10993
|
+
});
|
|
10958
10994
|
const [isUnfolded, { toggle }] = useBool(false);
|
|
10959
|
-
return (jsx("div", { children: filters?.length ? (jsx("div", { children: jsxs(Foldable, { children: [
|
|
10995
|
+
return (jsx("div", { children: filters?.length ? (jsx("div", { children: jsxs(Foldable, { children: [jsx("div", { children: jsx("div", { className: COMMON_FILTERS_STYLES, children: visibleFilters }) }), jsxs("div", { className: "flex space-x-lg pb-2xl", children: [onlyOffice ? (jsx(DefaultFoldButton, { label: isUnfolded ? 'Меньше фильтров' : 'Больше фильтров', isUnfolded: isUnfolded, embedded: true, short: true, onClick: toggle })) : null, jsxs(Button, { embedded: true, onClick: reset, children: [jsx(ButtonTitle, { children: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440" }), jsx(Icon, { name: "CloseIcon", size: "small" })] })] }), jsx("div", { children: jsxs(FoldableSection, { isUnfolded: isUnfolded, children: [renderFoldableSubsection('Драгоценные металлы', hiddenPreciousMetalsFilters), renderFoldableSubsection('Специальные возможности', hiddenDisabledServiceFilters)] }) })] }) })) : null }));
|
|
10960
10996
|
});
|
|
10997
|
+
const getFilters = ({ onlyOffice = false, filtersCheckbox = [] }) => {
|
|
10998
|
+
return onlyOffice ? getOfficeFilters(filtersCheckbox) : getAtmsFilters(filtersCheckbox);
|
|
10999
|
+
};
|
|
11000
|
+
const getOfficeFilters = (filtersCheckbox) => {
|
|
11001
|
+
const visibleFilters = [];
|
|
11002
|
+
const preciousMetalsFilters = [];
|
|
11003
|
+
const disabledServiceFilters = [];
|
|
11004
|
+
for (const item of filtersCheckbox) {
|
|
11005
|
+
if (VISIBLE_FILTERS.includes(item.key)) {
|
|
11006
|
+
visibleFilters.push(item);
|
|
11007
|
+
}
|
|
11008
|
+
if (PRECIOUS_METALS_FILTERS.includes(item.key)) {
|
|
11009
|
+
preciousMetalsFilters.push(item);
|
|
11010
|
+
}
|
|
11011
|
+
if (DISABLED_SERVICE_FILTERS.includes(item.key)) {
|
|
11012
|
+
disabledServiceFilters.push(item);
|
|
11013
|
+
}
|
|
11014
|
+
}
|
|
11015
|
+
return [visibleFilters, preciousMetalsFilters, disabledServiceFilters];
|
|
11016
|
+
};
|
|
11017
|
+
const getAtmsFilters = (filtersCheckbox) => [
|
|
11018
|
+
filtersCheckbox.slice(0, VISIBLE_ATMS_FILTERS_NUM),
|
|
11019
|
+
filtersCheckbox.slice(VISIBLE_ATMS_FILTERS_NUM),
|
|
11020
|
+
];
|
|
11021
|
+
const renderFoldableSubsection = (text, filters = []) => {
|
|
11022
|
+
return (jsx("div", { children: filters.length > 0 ? (jsxs("div", { className: "space-y-s", children: [jsx(Text, { children: text }), jsx("div", { className: COMMON_FILTERS_STYLES, children: filters })] })) : null }));
|
|
11023
|
+
};
|
|
10961
11024
|
|
|
10962
11025
|
const getVersion = (isPrimary, type) => isPrimary && type !== 'underlined' ? 'primary' : 'secondary';
|
|
10963
11026
|
|
|
@@ -11698,7 +11761,7 @@
|
|
|
11698
11761
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
11699
11762
|
});
|
|
11700
11763
|
|
|
11701
|
-
const packageVersion = "0.14.
|
|
11764
|
+
const packageVersion = "0.14.898";
|
|
11702
11765
|
|
|
11703
11766
|
exports.Blocks = Blocks;
|
|
11704
11767
|
exports.ContentPage = ContentPage;
|