@redneckz/wildless-cms-uni-blocks 0.14.751 → 0.14.752

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.
Files changed (31) hide show
  1. package/bundle/bundle.umd.js +15 -5
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/ui-kit/DraftDialog/utils.d.ts +11 -1
  4. package/dist/ui-kit/DraftDialog/parseDraftTask.js +2 -2
  5. package/dist/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
  6. package/dist/ui-kit/DraftDialog/utils.d.ts +11 -1
  7. package/dist/ui-kit/DraftDialog/utils.js +13 -3
  8. package/dist/ui-kit/DraftDialog/utils.js.map +1 -1
  9. package/lib/ui-kit/DraftDialog/parseDraftTask.js +3 -3
  10. package/lib/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
  11. package/lib/ui-kit/DraftDialog/utils.d.ts +14 -4
  12. package/lib/ui-kit/DraftDialog/utils.js +12 -2
  13. package/lib/ui-kit/DraftDialog/utils.js.map +1 -1
  14. package/mobile/bundle/bundle.umd.js +15 -5
  15. package/mobile/bundle/bundle.umd.min.js +1 -1
  16. package/mobile/bundle/ui-kit/DraftDialog/utils.d.ts +11 -1
  17. package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js +2 -2
  18. package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
  19. package/mobile/dist/ui-kit/DraftDialog/utils.d.ts +11 -1
  20. package/mobile/dist/ui-kit/DraftDialog/utils.js +13 -3
  21. package/mobile/dist/ui-kit/DraftDialog/utils.js.map +1 -1
  22. package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js +3 -3
  23. package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
  24. package/mobile/lib/ui-kit/DraftDialog/utils.d.ts +11 -1
  25. package/mobile/lib/ui-kit/DraftDialog/utils.js +12 -2
  26. package/mobile/lib/ui-kit/DraftDialog/utils.js.map +1 -1
  27. package/mobile/src/ui-kit/DraftDialog/parseDraftTask.ts +4 -2
  28. package/mobile/src/ui-kit/DraftDialog/utils.ts +18 -3
  29. package/package.json +1 -1
  30. package/src/ui-kit/DraftDialog/parseDraftTask.ts +4 -2
  31. package/src/ui-kit/DraftDialog/utils.ts +18 -3
@@ -4874,6 +4874,16 @@
4874
4874
  };
4875
4875
  const countIncomeAverage = (wages, retirementIncome) => Number(wages) + Number(retirementIncome);
4876
4876
 
4877
+ const EMPLOYMENT_TYPE = {
4878
+ WORK: 'Работаю',
4879
+ RETIREE: 'Пенсионер',
4880
+ };
4881
+ const INCOME_CERTIFICATE = {
4882
+ BANK_STATEMENT: 'Получаю зарплату на счет/карту в РСХБ',
4883
+ BANK_STATEMENT_PENS: 'Получаю пенсию на счет/карту в РСХБ',
4884
+ PFR_CERTIFICATE: 'Получаю зарплату на счет/карту в другом банке',
4885
+ OTHER: 'Другое',
4886
+ };
4877
4887
  const creditCodesToProgrammIdMap = {
4878
4888
  credit_cash: '10',
4879
4889
  credit_cash_single_doc: '28',
@@ -4943,11 +4953,11 @@
4943
4953
  }
4944
4954
  : null;
4945
4955
  };
4946
- const getSelectValue = (option) => {
4956
+ const getSelectValue = (option, map) => {
4947
4957
  return option?.key
4948
4958
  ? {
4949
4959
  key: option.key,
4950
- text: option.value,
4960
+ text: map ? map[option.key] : option.value,
4951
4961
  }
4952
4962
  : undefined;
4953
4963
  };
@@ -4976,7 +4986,7 @@
4976
4986
  participantDateRegistration,
4977
4987
  housing: getSelectValue(housing),
4978
4988
  beginDate,
4979
- employment: getSelectValue(employment),
4989
+ employment: getSelectValue(employment, EMPLOYMENT_TYPE),
4980
4990
  organizationName,
4981
4991
  inn,
4982
4992
  employerActivities: getSelectValue(employerActivities),
@@ -4994,7 +5004,7 @@
4994
5004
  familyMembers: familyMembers?.toString(),
4995
5005
  dependents: dependents?.toString(),
4996
5006
  conscription: getSelectValue(conscription),
4997
- confirmationIncome: getSelectValue(incomeCertificateCd),
5007
+ confirmationIncome: getSelectValue(incomeCertificateCd, INCOME_CERTIFICATE),
4998
5008
  snils,
4999
5009
  armyIdFlg,
5000
5010
  bankruptcyFlg,
@@ -10469,7 +10479,7 @@
10469
10479
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10470
10480
  });
10471
10481
 
10472
- const packageVersion = "0.14.750";
10482
+ const packageVersion = "0.14.751";
10473
10483
 
10474
10484
  exports.Blocks = Blocks;
10475
10485
  exports.ContentPage = ContentPage;