@redneckz/wildless-cms-uni-blocks 0.14.754 → 0.14.756
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/api/RetailAPI/draftTasksKZO.d.ts +1 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +21 -24
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/icons/IconName.d.ts +6 -2
- package/bundle/services/retail/inputs.d.ts +1 -1
- package/bundle/services/retail/model/LeadFormState.d.ts +1 -1
- package/bundle/services/retail/model/NameFieldDef.d.ts +1 -1
- package/cosmos-static/icons/BankColorIcon.svg +1 -0
- package/cosmos-static/icons/NewLoanIcon.svg +1 -0
- package/dist/api/RetailAPI/draftTasksKZO.d.ts +1 -0
- package/dist/api/RetailAPI/draftTasksKZO.js.map +1 -1
- package/dist/components/ApplicationLeadForm/pasreEsiaProfile.js +1 -1
- package/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/dist/components/CreditCardForm/formStateMap.js +1 -1
- package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/dist/components/CreditCardForm/getInitialFormState.js +1 -1
- package/dist/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditForm/formStateMap.js +1 -1
- package/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/dist/components/CreditForm/getInitialFormState.js +1 -1
- package/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/dist/icons/IconName.d.ts +6 -2
- package/dist/icons/IconName.js +5 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/services/retail/adaptors/getPersonalInfoData.js +2 -2
- package/dist/services/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/dist/services/retail/content.js +1 -1
- package/dist/services/retail/content.js.map +1 -1
- package/dist/services/retail/inputs.d.ts +1 -1
- package/dist/services/retail/inputs.js +1 -1
- package/dist/services/retail/inputs.js.map +1 -1
- package/dist/services/retail/model/LeadFormState.d.ts +1 -1
- package/dist/services/retail/model/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/DraftDialog/DraftActionButton.js +2 -3
- package/dist/ui-kit/DraftDialog/DraftActionButton.js.map +1 -1
- package/dist/ui-kit/DraftDialog/DraftDialog.js +4 -8
- package/dist/ui-kit/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/ui-kit/DraftDialog/parseDraftTask.js +2 -2
- package/dist/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/CardCategoryField.js +3 -1
- package/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/api/RetailAPI/draftTasksKZO.d.ts +1 -0
- package/lib/api/RetailAPI/draftTasksKZO.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/pasreEsiaProfile.js +1 -1
- package/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/lib/components/CreditCardForm/formStateMap.js +1 -1
- package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/lib/components/CreditCardForm/getInitialFormState.js +1 -1
- package/lib/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditForm/formStateMap.js +1 -1
- package/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/lib/components/CreditForm/getInitialFormState.js +1 -1
- package/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/lib/icons/IconName.d.ts +6 -2
- package/lib/icons/IconName.js +5 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/services/retail/adaptors/getPersonalInfoData.js +2 -2
- package/lib/services/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/lib/services/retail/content.js +1 -1
- package/lib/services/retail/content.js.map +1 -1
- package/lib/services/retail/inputs.d.ts +1 -1
- package/lib/services/retail/inputs.js +1 -1
- package/lib/services/retail/inputs.js.map +1 -1
- package/lib/services/retail/model/LeadFormState.d.ts +1 -1
- package/lib/services/retail/model/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/DraftDialog/DraftActionButton.js +2 -3
- package/lib/ui-kit/DraftDialog/DraftActionButton.js.map +1 -1
- package/lib/ui-kit/DraftDialog/DraftDialog.js +4 -8
- package/lib/ui-kit/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/ui-kit/DraftDialog/parseDraftTask.js +2 -2
- package/lib/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CardCategoryField.js +5 -3
- package/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/draftTasksKZO.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +21 -24
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/icons/IconName.d.ts +6 -2
- package/mobile/bundle/services/retail/inputs.d.ts +1 -1
- package/mobile/bundle/services/retail/model/LeadFormState.d.ts +1 -1
- package/mobile/bundle/services/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/draftTasksKZO.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/draftTasksKZO.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getInitialFormState.js +1 -1
- package/mobile/dist/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditForm/formStateMap.js +1 -1
- package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditForm/getInitialFormState.js +1 -1
- package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +6 -2
- package/mobile/dist/icons/IconName.js +5 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/services/retail/adaptors/getPersonalInfoData.js +2 -2
- package/mobile/dist/services/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/dist/services/retail/content.js +1 -1
- package/mobile/dist/services/retail/content.js.map +1 -1
- package/mobile/dist/services/retail/inputs.d.ts +1 -1
- package/mobile/dist/services/retail/inputs.js +1 -1
- package/mobile/dist/services/retail/inputs.js.map +1 -1
- package/mobile/dist/services/retail/model/LeadFormState.d.ts +1 -1
- package/mobile/dist/services/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/DraftDialog/DraftActionButton.js +2 -3
- package/mobile/dist/ui-kit/DraftDialog/DraftActionButton.js.map +1 -1
- package/mobile/dist/ui-kit/DraftDialog/DraftDialog.js +4 -8
- package/mobile/dist/ui-kit/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js +2 -2
- package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js +3 -1
- package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/api/RetailAPI/draftTasksKZO.d.ts +1 -0
- package/mobile/lib/api/RetailAPI/draftTasksKZO.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getInitialFormState.js +1 -1
- package/mobile/lib/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditForm/formStateMap.js +1 -1
- package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditForm/getInitialFormState.js +1 -1
- package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +6 -2
- package/mobile/lib/icons/IconName.js +5 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/services/retail/adaptors/getPersonalInfoData.js +2 -2
- package/mobile/lib/services/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/lib/services/retail/content.js +1 -1
- package/mobile/lib/services/retail/content.js.map +1 -1
- package/mobile/lib/services/retail/inputs.d.ts +1 -1
- package/mobile/lib/services/retail/inputs.js +1 -1
- package/mobile/lib/services/retail/inputs.js.map +1 -1
- package/mobile/lib/services/retail/model/LeadFormState.d.ts +1 -1
- package/mobile/lib/services/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/DraftDialog/DraftActionButton.js +2 -3
- package/mobile/lib/ui-kit/DraftDialog/DraftActionButton.js.map +1 -1
- package/mobile/lib/ui-kit/DraftDialog/DraftDialog.js +4 -8
- package/mobile/lib/ui-kit/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js +2 -2
- package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js +5 -3
- package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/src/api/RetailAPI/draftTasksKZO.ts +1 -0
- package/mobile/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +1 -1
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +1 -1
- package/mobile/src/components/CreditCardForm/getInitialFormState.tsx +1 -1
- package/mobile/src/components/CreditForm/formStateMap.tsx +1 -1
- package/mobile/src/components/CreditForm/getInitialFormState.tsx +1 -1
- package/mobile/src/icons/BankColorIcon.svg +1 -0
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/icons/NewLoanIcon.svg +1 -0
- package/mobile/src/services/retail/adaptors/getPersonalInfoData.tsx +3 -3
- package/mobile/src/services/retail/content.tsx +1 -1
- package/mobile/src/services/retail/inputs.tsx +1 -1
- package/mobile/src/services/retail/model/LeadFormState.ts +1 -1
- package/mobile/src/services/retail/model/NameFieldDef.ts +1 -1
- package/mobile/src/ui-kit/DraftDialog/DraftActionButton.tsx +9 -8
- package/mobile/src/ui-kit/DraftDialog/DraftDialog.tsx +20 -34
- package/mobile/src/ui-kit/DraftDialog/parseDraftTask.ts +2 -2
- package/mobile/src/ui-kit/FormField/Fields/CardCategoryField.tsx +17 -8
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
- package/package.json +1 -1
- package/src/api/RetailAPI/draftTasksKZO.ts +1 -0
- package/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +1 -1
- package/src/components/CreditCardForm/formStateMap.tsx +1 -1
- package/src/components/CreditCardForm/getInitialFormState.tsx +1 -1
- package/src/components/CreditForm/formStateMap.tsx +1 -1
- package/src/components/CreditForm/getInitialFormState.tsx +1 -1
- package/src/icons/BankColorIcon.svg +1 -0
- package/src/icons/IconName.ts +5 -5
- package/src/icons/NewLoanIcon.svg +1 -0
- package/src/services/retail/adaptors/getPersonalInfoData.tsx +3 -3
- package/src/services/retail/content.tsx +1 -1
- package/src/services/retail/inputs.tsx +1 -1
- package/src/services/retail/model/LeadFormState.ts +1 -1
- package/src/services/retail/model/NameFieldDef.ts +1 -1
- package/src/ui-kit/DraftDialog/DraftActionButton.tsx +9 -8
- package/src/ui-kit/DraftDialog/DraftDialog.fixture.tsx +1 -0
- package/src/ui-kit/DraftDialog/DraftDialog.tsx +20 -34
- package/src/ui-kit/DraftDialog/parseDraftTask.ts +2 -2
- package/src/ui-kit/FormField/Fields/CardCategoryField.tsx +17 -8
- package/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
|
@@ -2698,7 +2698,7 @@
|
|
|
2698
2698
|
armyIdFlg: agreementValidator,
|
|
2699
2699
|
dulSerie: serieValidator('Укажите серию паспорта'),
|
|
2700
2700
|
dulNumber: numberValidator('Укажите номер паспорта'),
|
|
2701
|
-
|
|
2701
|
+
dulIssueDate: defaultValidator('Укажите дату выдачи паспорта'),
|
|
2702
2702
|
dulSubdivisionCode: numberValidator('Укажите код подразделения'),
|
|
2703
2703
|
dulIssuedBy: defaultValidator('Укажите организацию, выдавшую паспорт'),
|
|
2704
2704
|
participantDateRegistration: defaultValidator('Укажите дату регистрации'),
|
|
@@ -3735,6 +3735,8 @@
|
|
|
3735
3735
|
return [storedValue, setValue];
|
|
3736
3736
|
}
|
|
3737
3737
|
|
|
3738
|
+
const InfoCard = JSX(({ __html, icon = 'InfoCircleIcon', iconVersion = 'black', link }) => (jsxs("div", { className: "flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m", children: [jsx("div", { className: "rounded-full bg-white p-xs", children: jsx(Icon, { name: icon, width: "24", height: "24", iconVersion: iconVersion }) }), jsxs("div", { className: "", children: [jsx(RichText, { __html: __html }), link?.text ? jsx(LinkButton, { className: "text-primary-main", children: link.text }) : null] })] })));
|
|
3739
|
+
|
|
3738
3740
|
const CardCategoryField = JSX(({ field, input }) => {
|
|
3739
3741
|
const [cardTypes, setCardTypes] = useState([]);
|
|
3740
3742
|
const [programId] = useLocalStorage('programId');
|
|
@@ -3751,7 +3753,8 @@
|
|
|
3751
3753
|
})();
|
|
3752
3754
|
}
|
|
3753
3755
|
}, [selectedPaymentSystem]);
|
|
3754
|
-
|
|
3756
|
+
const description = useMemo(() => cardTypes?.find((_) => _.key === selectedCardCategory?.key)?.description, [cardTypes, selectedCardCategory]);
|
|
3757
|
+
return (jsxs("div", { children: [jsx(SelectField, { field: field, source: cardTypes, label: "\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u044F \u043A\u0430\u0440\u0442\u044B", fieldName: "cardCategory", input: input }), description ? jsx(InfoCard, { __html: description }) : null] }));
|
|
3755
3758
|
});
|
|
3756
3759
|
const isValidCardCategory = (cardTypes, selectedCardCategory) => cardTypes.some((cardType) => cardType.key === selectedCardCategory?.key);
|
|
3757
3760
|
|
|
@@ -4230,8 +4233,6 @@
|
|
|
4230
4233
|
return (jsx(SelectField, { field: field, source: housing, label: "\u0422\u0438\u043F \u0436\u0438\u043B\u044C\u044F", fieldName: "housing", input: input }));
|
|
4231
4234
|
});
|
|
4232
4235
|
|
|
4233
|
-
const InfoCard = JSX(({ __html, icon = 'InfoCircleIcon', iconVersion = 'black', link }) => (jsxs("div", { className: "flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m", children: [jsx("div", { className: "rounded-full bg-white p-xs", children: jsx(Icon, { name: icon, width: "24", height: "24", iconVersion: iconVersion }) }), jsxs("div", { className: "", children: [jsx(RichText, { __html: __html }), link?.text ? jsx(LinkButton, { className: "text-primary-main", children: link.text }) : null] })] })));
|
|
4234
|
-
|
|
4235
4236
|
const InfoCardField = JSX(({ input }) => (jsx(InfoCard, { __html: input?.label })));
|
|
4236
4237
|
|
|
4237
4238
|
const JobsNumberField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043C\u0435\u0441\u0442 \u0440\u0430\u0431\u043E\u0442\u044B \u0437\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 5 \u043B\u0435\u0442", placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043C\u0435\u0441\u0442", isInteger: true, maxLength: 2, ...field(input?.name ?? ''), ...input })));
|
|
@@ -4439,7 +4440,7 @@
|
|
|
4439
4440
|
armyIdFlg: ArmyIdFlgField,
|
|
4440
4441
|
dulSerie: DulSerieField,
|
|
4441
4442
|
dulNumber: DulNumberField,
|
|
4442
|
-
|
|
4443
|
+
dulIssueDate: DulIssueDateField,
|
|
4443
4444
|
dulSubdivisionCode: DulSubdivisionCodeField,
|
|
4444
4445
|
dulIssuedBy: DulIssuedByField,
|
|
4445
4446
|
participantDateRegistration: ParticipantDateRegistrationField,
|
|
@@ -4816,7 +4817,7 @@
|
|
|
4816
4817
|
};
|
|
4817
4818
|
};
|
|
4818
4819
|
|
|
4819
|
-
const DraftActionButton = JSX(({ title, icon, description, onClick = noop }) => (jsxs("button", { className: "flex gap-lg items-center border border-gray rounded-
|
|
4820
|
+
const DraftActionButton = JSX(({ title, icon, description, onClick = noop }) => (jsxs("button", { className: "flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green", type: "button", onClick: onClick, children: [jsx(Img, { image: { icon, iconVersion: 'normal' }, width: "78", height: "78" }), jsxs("div", { className: "flex flex-col items-start gap-xs md:w-72 md:mr-lg", children: [jsx(Text, { font: "font-medium", size: "text-s", children: title }), description ? (jsx(Text, { color: "text-secondary-text", size: "text-xs", children: description })) : null] })] })));
|
|
4820
4821
|
|
|
4821
4822
|
const fieldsNamesToContactKeysMap = {
|
|
4822
4823
|
email: 'EMAIL',
|
|
@@ -5002,7 +5003,7 @@
|
|
|
5002
5003
|
const participant = task.participants[0];
|
|
5003
5004
|
const { classCard: cardCategory, codeWord, paymentSystemTypeCd: paymentSystem, currencyCode: currency, } = task;
|
|
5004
5005
|
const { loanAmount: moneyValue, creditPeriod: monthsValue, paymentTypeCd } = task;
|
|
5005
|
-
const { birthDate: limitedBirthday, midname: middleName, name, surname, birthPlace, dulIssueDate:
|
|
5006
|
+
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, incomeCertificateCd, } = participant;
|
|
5006
5007
|
return {
|
|
5007
5008
|
currency: currency?.key,
|
|
5008
5009
|
paymentSystem: getSelectValue(paymentSystem),
|
|
@@ -5013,7 +5014,7 @@
|
|
|
5013
5014
|
name,
|
|
5014
5015
|
surname,
|
|
5015
5016
|
birthPlace,
|
|
5016
|
-
|
|
5017
|
+
dulIssueDate,
|
|
5017
5018
|
dulIssuedBy,
|
|
5018
5019
|
dulNumber,
|
|
5019
5020
|
dulSerie,
|
|
@@ -5064,11 +5065,11 @@
|
|
|
5064
5065
|
const DraftDialog = JSX(function ({ task, isFromLead = false, onClose = noop, }) {
|
|
5065
5066
|
const retailFormStore = useRetailFormStore();
|
|
5066
5067
|
const navigator = locationNavigator();
|
|
5067
|
-
const { participants, creditProgram, id: taskId } = task;
|
|
5068
|
+
const { participants, creditProgram, createdDate = '', id: taskId } = task;
|
|
5068
5069
|
const programmId = creditProgramCodeToProductIdMap[creditProgram.code];
|
|
5069
5070
|
const isCredit = Boolean(creditCodesToProgrammIdMap[creditProgram.code]);
|
|
5070
5071
|
const nextStepLink = isCredit ? '/credit-lead' : '/credit-card-lead';
|
|
5071
|
-
const {
|
|
5072
|
+
const { id: participantId, profile } = participants[0];
|
|
5072
5073
|
const handleGoToDraft = useCallback(() => {
|
|
5073
5074
|
const taskFromDraft = parseDraftTask(task);
|
|
5074
5075
|
retailFormStore.participantId = participantId;
|
|
@@ -5081,11 +5082,7 @@
|
|
|
5081
5082
|
const handleGoToNewTask = useCallback(() => {
|
|
5082
5083
|
navigator.assign(isCredit ? '/natural/loans/all-goals' : '/natural/creditcards/svoya');
|
|
5083
5084
|
}, []);
|
|
5084
|
-
|
|
5085
|
-
navigator.assign('/');
|
|
5086
|
-
}, []);
|
|
5087
|
-
const appeal = name && midname ? `${name} ${midname}, ` : '';
|
|
5088
|
-
return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg py-0 px-5xl", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg mt-xs md:mt-0", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: `${appeal}мы нашли черновик вашей заявки.\nПродолжите заполнение?`, headingType: "h5" }), jsx(DraftActionButton, { title: "\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0443", icon: "BankIcon", description: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0439\u0442\u0435 \u0437\u0430\u043F\u043E\u043B\u043D\u044F\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443 \u0438\u0437 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", onClick: handleGoToDraft }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Заполнить новую заявку', icon: "DocIcon", onClick: isFromLead ? onClose : handleGoToNewTask }), jsx(Button, { type: "button", version: "secondary", className: "w-full text-h5", onClick: handleGoToMainPage, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" })] }) }));
|
|
5085
|
+
return (jsx(Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs md:mt-0 mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: "\u041D\u0430 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0430", onClick: isFromLead ? onClose : handleGoToNewTask })] })] }) }));
|
|
5089
5086
|
});
|
|
5090
5087
|
|
|
5091
5088
|
const EmptyDraftDialog = JSX(function ({ onClose = noop }) {
|
|
@@ -5334,7 +5331,7 @@
|
|
|
5334
5331
|
limitedBirthday: profile?.birthDate,
|
|
5335
5332
|
phone: normalizePhone(profile?.phone),
|
|
5336
5333
|
email: profile?.email,
|
|
5337
|
-
|
|
5334
|
+
dulIssueDate: document?.dulIssueDate,
|
|
5338
5335
|
dulIssuedBy: document?.dulIssuedBy,
|
|
5339
5336
|
dulNumber: document?.dulNumber,
|
|
5340
5337
|
dulSerie: document?.dulSerie,
|
|
@@ -7123,14 +7120,14 @@
|
|
|
7123
7120
|
};
|
|
7124
7121
|
|
|
7125
7122
|
const getPersonalInfoData = (formData) => {
|
|
7126
|
-
const { name, surname, middleName, limitedBirthday = '', phone = '', email, sex, birthPlace,
|
|
7123
|
+
const { name, surname, middleName, limitedBirthday = '', phone = '', email, sex, birthPlace, dulIssueDate = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, } = formData;
|
|
7127
7124
|
return {
|
|
7128
7125
|
birthDate: formatDate(limitedBirthday, true),
|
|
7129
7126
|
midname: middleName,
|
|
7130
7127
|
name,
|
|
7131
7128
|
surname,
|
|
7132
7129
|
birthPlace,
|
|
7133
|
-
dulIssueDate: formatDate(
|
|
7130
|
+
dulIssueDate: formatDate(dulIssueDate, true),
|
|
7134
7131
|
dulIssuedBy,
|
|
7135
7132
|
dulNumber,
|
|
7136
7133
|
dulSerie,
|
|
@@ -7254,7 +7251,7 @@
|
|
|
7254
7251
|
email: '',
|
|
7255
7252
|
dulSerie: undefined,
|
|
7256
7253
|
dulNumber: undefined,
|
|
7257
|
-
|
|
7254
|
+
dulIssueDate: undefined,
|
|
7258
7255
|
dulSubdivisionCode: '',
|
|
7259
7256
|
dulIssuedBy: '',
|
|
7260
7257
|
addressRegistration: {
|
|
@@ -7328,7 +7325,7 @@
|
|
|
7328
7325
|
...formStateMap$1[step],
|
|
7329
7326
|
...formState,
|
|
7330
7327
|
limitedBirthday: transformStringToData$1(formState?.limitedBirthday),
|
|
7331
|
-
|
|
7328
|
+
dulIssueDate: transformStringToData$1(formState?.dulIssueDate),
|
|
7332
7329
|
participantDateRegistration: transformStringToData$1(formState?.participantDateRegistration),
|
|
7333
7330
|
beginDate: transformStringToData$1(formState?.beginDate),
|
|
7334
7331
|
deliveryDate: transformStringToData$1(formState?.deliveryDate),
|
|
@@ -7431,7 +7428,7 @@
|
|
|
7431
7428
|
inputs: [
|
|
7432
7429
|
{ name: 'dulSerie', required: true, filledByEsia: true },
|
|
7433
7430
|
{ name: 'dulNumber', required: true, filledByEsia: true },
|
|
7434
|
-
{ name: '
|
|
7431
|
+
{ name: 'dulIssueDate', required: true, filledByEsia: true },
|
|
7435
7432
|
{
|
|
7436
7433
|
name: 'dulSubdivisionCode',
|
|
7437
7434
|
required: true,
|
|
@@ -8053,7 +8050,7 @@
|
|
|
8053
8050
|
email: '',
|
|
8054
8051
|
dulSerie: undefined,
|
|
8055
8052
|
dulNumber: undefined,
|
|
8056
|
-
|
|
8053
|
+
dulIssueDate: undefined,
|
|
8057
8054
|
dulSubdivisionCode: '',
|
|
8058
8055
|
dulIssuedBy: '',
|
|
8059
8056
|
addressRegistration: {
|
|
@@ -8116,7 +8113,7 @@
|
|
|
8116
8113
|
...formStateMap[step],
|
|
8117
8114
|
...formState,
|
|
8118
8115
|
limitedBirthday: transformStringToData(formState?.limitedBirthday),
|
|
8119
|
-
|
|
8116
|
+
dulIssueDate: transformStringToData(formState?.dulIssueDate),
|
|
8120
8117
|
participantDateRegistration: transformStringToData(formState?.participantDateRegistration),
|
|
8121
8118
|
beginDate: transformStringToData(formState?.beginDate),
|
|
8122
8119
|
deliveryDate: transformStringToData(formState?.deliveryDate),
|
|
@@ -10104,7 +10101,7 @@
|
|
|
10104
10101
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10105
10102
|
});
|
|
10106
10103
|
|
|
10107
|
-
const packageVersion = "0.14.
|
|
10104
|
+
const packageVersion = "0.14.755";
|
|
10108
10105
|
|
|
10109
10106
|
exports.Blocks = Blocks;
|
|
10110
10107
|
exports.ContentPage = ContentPage;
|