@redneckz/wildless-cms-uni-blocks 0.14.952 → 0.14.953

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 (113) hide show
  1. package/bundle/bundle.umd.js +170 -58
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/retail/utils/calculateInputs.d.ts +1 -1
  4. package/bundle/retail/utils/renderStep.d.ts +1 -2
  5. package/bundle/retail/validator/getRetailFormValidator.d.ts +1 -2
  6. package/dist/components/CreditCardForm/CreditCardFormStep.js +1 -2
  7. package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  8. package/dist/components/CreditCardForm/creditCardFormStepsData.js +84 -13
  9. package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  10. package/dist/components/CreditForm/CreditFormStep.js +1 -2
  11. package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
  12. package/dist/components/CreditForm/creditFormStepsData.js +52 -8
  13. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  14. package/dist/components/DebitForm/DebitFormStep.js +1 -2
  15. package/dist/components/DebitForm/DebitFormStep.js.map +1 -1
  16. package/dist/retail/adaptors/getEmploymentData.js +25 -21
  17. package/dist/retail/adaptors/getEmploymentData.js.map +1 -1
  18. package/dist/retail/utils/calculateInputs.d.ts +1 -1
  19. package/dist/retail/utils/calculateInputs.js +2 -6
  20. package/dist/retail/utils/calculateInputs.js.map +1 -1
  21. package/dist/retail/utils/renderStep.d.ts +1 -2
  22. package/dist/retail/utils/renderStep.js +2 -2
  23. package/dist/retail/utils/renderStep.js.map +1 -1
  24. package/dist/retail/validator/getRetailFormValidator.d.ts +1 -2
  25. package/dist/retail/validator/getRetailFormValidator.js +1 -1
  26. package/dist/retail/validator/getRetailFormValidator.js.map +1 -1
  27. package/lib/components/CreditCardForm/CreditCardFormStep.js +1 -2
  28. package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  29. package/lib/components/CreditCardForm/creditCardFormStepsData.js +84 -13
  30. package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  31. package/lib/components/CreditForm/CreditFormStep.js +1 -2
  32. package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
  33. package/lib/components/CreditForm/creditFormStepsData.js +52 -8
  34. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  35. package/lib/components/DebitForm/DebitFormStep.js +1 -2
  36. package/lib/components/DebitForm/DebitFormStep.js.map +1 -1
  37. package/lib/retail/adaptors/getEmploymentData.js +25 -21
  38. package/lib/retail/adaptors/getEmploymentData.js.map +1 -1
  39. package/lib/retail/utils/calculateInputs.d.ts +1 -1
  40. package/lib/retail/utils/calculateInputs.js +2 -6
  41. package/lib/retail/utils/calculateInputs.js.map +1 -1
  42. package/lib/retail/utils/renderStep.d.ts +1 -2
  43. package/lib/retail/utils/renderStep.js +2 -2
  44. package/lib/retail/utils/renderStep.js.map +1 -1
  45. package/lib/retail/validator/getRetailFormValidator.d.ts +1 -2
  46. package/lib/retail/validator/getRetailFormValidator.js +1 -1
  47. package/lib/retail/validator/getRetailFormValidator.js.map +1 -1
  48. package/mobile/bundle/bundle.umd.js +170 -58
  49. package/mobile/bundle/bundle.umd.min.js +1 -1
  50. package/mobile/bundle/retail/utils/calculateInputs.d.ts +1 -1
  51. package/mobile/bundle/retail/utils/renderStep.d.ts +1 -2
  52. package/mobile/bundle/retail/validator/getRetailFormValidator.d.ts +1 -2
  53. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +1 -2
  54. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  55. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +84 -13
  56. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  57. package/mobile/dist/components/CreditForm/CreditFormStep.js +1 -2
  58. package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
  59. package/mobile/dist/components/CreditForm/creditFormStepsData.js +52 -8
  60. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  61. package/mobile/dist/components/DebitForm/DebitFormStep.js +1 -2
  62. package/mobile/dist/components/DebitForm/DebitFormStep.js.map +1 -1
  63. package/mobile/dist/retail/adaptors/getEmploymentData.js +25 -21
  64. package/mobile/dist/retail/adaptors/getEmploymentData.js.map +1 -1
  65. package/mobile/dist/retail/utils/calculateInputs.d.ts +1 -1
  66. package/mobile/dist/retail/utils/calculateInputs.js +2 -6
  67. package/mobile/dist/retail/utils/calculateInputs.js.map +1 -1
  68. package/mobile/dist/retail/utils/renderStep.d.ts +1 -2
  69. package/mobile/dist/retail/utils/renderStep.js +2 -2
  70. package/mobile/dist/retail/utils/renderStep.js.map +1 -1
  71. package/mobile/dist/retail/validator/getRetailFormValidator.d.ts +1 -2
  72. package/mobile/dist/retail/validator/getRetailFormValidator.js +1 -1
  73. package/mobile/dist/retail/validator/getRetailFormValidator.js.map +1 -1
  74. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +1 -2
  75. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  76. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +84 -13
  77. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  78. package/mobile/lib/components/CreditForm/CreditFormStep.js +1 -2
  79. package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
  80. package/mobile/lib/components/CreditForm/creditFormStepsData.js +52 -8
  81. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  82. package/mobile/lib/components/DebitForm/DebitFormStep.js +1 -2
  83. package/mobile/lib/components/DebitForm/DebitFormStep.js.map +1 -1
  84. package/mobile/lib/retail/adaptors/getEmploymentData.js +25 -21
  85. package/mobile/lib/retail/adaptors/getEmploymentData.js.map +1 -1
  86. package/mobile/lib/retail/utils/calculateInputs.d.ts +1 -1
  87. package/mobile/lib/retail/utils/calculateInputs.js +2 -6
  88. package/mobile/lib/retail/utils/calculateInputs.js.map +1 -1
  89. package/mobile/lib/retail/utils/renderStep.d.ts +1 -2
  90. package/mobile/lib/retail/utils/renderStep.js +2 -2
  91. package/mobile/lib/retail/utils/renderStep.js.map +1 -1
  92. package/mobile/lib/retail/validator/getRetailFormValidator.d.ts +1 -2
  93. package/mobile/lib/retail/validator/getRetailFormValidator.js +1 -1
  94. package/mobile/lib/retail/validator/getRetailFormValidator.js.map +1 -1
  95. package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +1 -2
  96. package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +84 -13
  97. package/mobile/src/components/CreditForm/CreditFormStep.tsx +1 -2
  98. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +52 -8
  99. package/mobile/src/components/DebitForm/DebitFormStep.tsx +1 -2
  100. package/mobile/src/retail/adaptors/getEmploymentData.tsx +25 -21
  101. package/mobile/src/retail/utils/calculateInputs.ts +2 -10
  102. package/mobile/src/retail/utils/renderStep.tsx +1 -3
  103. package/mobile/src/retail/validator/getRetailFormValidator.ts +1 -3
  104. package/package.json +1 -1
  105. package/src/components/CreditCardForm/CreditCardFormStep.tsx +1 -2
  106. package/src/components/CreditCardForm/creditCardFormStepsData.tsx +84 -13
  107. package/src/components/CreditForm/CreditFormStep.tsx +1 -2
  108. package/src/components/CreditForm/creditFormStepsData.tsx +52 -8
  109. package/src/components/DebitForm/DebitFormStep.tsx +1 -2
  110. package/src/retail/adaptors/getEmploymentData.tsx +25 -21
  111. package/src/retail/utils/calculateInputs.ts +2 -10
  112. package/src/retail/utils/renderStep.tsx +1 -3
  113. package/src/retail/validator/getRetailFormValidator.ts +1 -3
@@ -8986,12 +8986,10 @@
8986
8986
  return statusesMap[status] || jsx(ReworkStatusContent$1, {});
8987
8987
  };
8988
8988
 
8989
- const calculateInputs = (getValue) => (inputs, step) => inputs
8989
+ const calculateInputs = (getValue) => (inputs) => inputs
8990
8990
  .filter((_) => _)
8991
8991
  .map((_) => {
8992
8992
  if ([
8993
- checkIsRetiree(step, getValue),
8994
- checkIsUnemployedRetiree(_, getValue),
8995
8993
  checkBusinessOwner(_, getValue),
8996
8994
  checkConsentPfrFlg(_, getValue),
8997
8995
  checkAddressFillFromESIA(_, getValue),
@@ -9002,13 +9000,11 @@
9002
9000
  }
9003
9001
  return _;
9004
9002
  });
9005
- const checkIsRetiree = (step, getValue) => step === 2 && getValue('employment')?.key === 'RETIREE';
9006
- const checkIsUnemployedRetiree = ({ name }, getValue) => name === 'wages' && getValue('employment')?.key === 'RETIREE' && !getValue('inn');
9007
9003
  const checkBusinessOwner = ({ name }, getValue) => name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
9008
9004
  const checkAddressFillFromESIA = ({ name, filledByEsia }, getValue) => name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
9009
9005
  const checkAddressFact = ({ name }, getValue) => name === 'addressFact' && getValue('addressMatch');
9010
9006
  const checkCondition = ({ condition }, getValue) => condition?.name &&
9011
- condition?.values?.some((_) => {
9007
+ condition?.values?.every((_) => {
9012
9008
  const dataValue = getValue(condition?.name);
9013
9009
  return _ !== (dataValue?.key ?? dataValue);
9014
9010
  });
@@ -9018,8 +9014,8 @@
9018
9014
  const InputsMap = { ...InputsRetailMap, ...InputRetailCardMap };
9019
9015
  const renderInputs = ({ field, inputs, params }) => inputs.map(getField(field, params, InputsMap));
9020
9016
 
9021
- const renderStep$1 = ({ sections, field, step, params, }) => sections?.map(({ inputs: origInputs = [], columns, title, condition }, i) => {
9022
- const inputs = calculateInputs(getValue(field))(origInputs, step);
9017
+ const renderStep$1 = ({ sections, field, params, }) => sections?.map(({ inputs: origInputs = [], columns, title, condition }, i) => {
9018
+ const inputs = calculateInputs(getValue(field))(origInputs);
9023
9019
  const cleanElements = [
9024
9020
  !checkCondition({ condition }, getValue(field)) ? renderTitle(title) : null,
9025
9021
  ...renderInputs({ field, inputs, params }),
@@ -9030,7 +9026,7 @@
9030
9026
  });
9031
9027
  const getValue = (field) => (name) => field(name)?.value;
9032
9028
 
9033
- const getRetailFormValidator = ({ formState, inputs, step, productType, }) => getFormValidator(calculateInputs((_) => formState[_])(inputs, step), {
9029
+ const getRetailFormValidator = ({ formState, inputs, productType, }) => getFormValidator(calculateInputs((_) => formState[_])(inputs), {
9034
9030
  ...validatorObj,
9035
9031
  limitedBirthday: getLimitedBirthdayValidation(productType),
9036
9032
  dulIssueDate: passportValidator(formState.limitedBirthday),
@@ -9175,27 +9171,31 @@
9175
9171
 
9176
9172
  const getEmploymentData = (formData) => {
9177
9173
  const { beginDate, employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, partInBusiness, } = formData;
9178
- return {
9179
- employmentContractDate: formatDate(beginDate || '', true),
9180
- employmentTypeCd: employment,
9181
- organizationName,
9182
- organizationInn: inn,
9183
- organizationActivityTypeCd: employerActivities?.key ? employerActivities : undefined,
9184
- organizationTypeCd: organization,
9185
- organizationKindCd: employerOrganization,
9186
- employeesNumberCd: amountWorkers,
9187
- opf: legalForm,
9188
- seniority: generalSeniority,
9189
- generalSeniority: experience5Years,
9190
- jobsNumber,
9191
- lastWorkDuration: lastJobExperience,
9192
- positionCd: positionOrganization?.key ? positionOrganization : undefined,
9193
- participantContacts: getParticipantContacts$1({
9194
- organizationPhone: organizationPhone && formatPhone(organizationPhone),
9195
- }),
9196
- participantAddresses: getParticipantAddresses$1({ organizationAddress }),
9197
- ownershipShare: positionOrganization?.key === 'BUSINESS_OWNER' ? partInBusiness : undefined,
9198
- };
9174
+ return employment?.key === 'RETIREE'
9175
+ ? {
9176
+ employmentTypeCd: employment,
9177
+ }
9178
+ : {
9179
+ employmentContractDate: formatDate(beginDate || '', true),
9180
+ employmentTypeCd: employment,
9181
+ organizationName,
9182
+ organizationInn: inn,
9183
+ organizationActivityTypeCd: employerActivities?.key ? employerActivities : undefined,
9184
+ organizationTypeCd: organization,
9185
+ organizationKindCd: employerOrganization,
9186
+ employeesNumberCd: amountWorkers,
9187
+ opf: legalForm,
9188
+ seniority: generalSeniority,
9189
+ generalSeniority: experience5Years,
9190
+ jobsNumber,
9191
+ lastWorkDuration: lastJobExperience,
9192
+ positionCd: positionOrganization?.key ? positionOrganization : undefined,
9193
+ participantContacts: getParticipantContacts$1({
9194
+ organizationPhone: organizationPhone && formatPhone(organizationPhone),
9195
+ }),
9196
+ participantAddresses: getParticipantAddresses$1({ organizationAddress }),
9197
+ ownershipShare: positionOrganization?.key === 'BUSINESS_OWNER' ? partInBusiness : undefined,
9198
+ };
9199
9199
  };
9200
9200
 
9201
9201
  const getPersonalInfoData = (formData) => {
@@ -9362,7 +9362,6 @@
9362
9362
  const formValidator = useCallback((formState) => getRetailFormValidator({
9363
9363
  formState,
9364
9364
  inputs,
9365
- step,
9366
9365
  productType: PRODUCT_TYPE$2,
9367
9366
  }), [inputs]);
9368
9367
  const [initialState, onSubmit, isSending] = useCreditCardFormAPI({
@@ -9374,7 +9373,7 @@
9374
9373
  formValidator,
9375
9374
  onSubmit,
9376
9375
  });
9377
- return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field, step }), jsx(StepsNavigationButtons$2, { isSending: isSending, step: step, onPrevStep: onPrevStep })] }));
9376
+ return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field }), jsx(StepsNavigationButtons$2, { isSending: isSending, step: step, onPrevStep: onPrevStep })] }));
9378
9377
  });
9379
9378
 
9380
9379
  const PERSONAL_DATA = [
@@ -9580,6 +9579,7 @@
9580
9579
  name: 'infoCard',
9581
9580
  label: 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
9582
9581
  'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
9582
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9583
9583
  },
9584
9584
  ],
9585
9585
  },
@@ -9589,40 +9589,94 @@
9589
9589
  {
9590
9590
  columns: 2,
9591
9591
  inputs: [
9592
- { name: 'organizationName', required: true, dadata: true, filledByEsia: true },
9593
- { name: 'inn', required: true, dadata: true, filledByEsia: true },
9592
+ {
9593
+ name: 'organizationName',
9594
+ required: true,
9595
+ dadata: true,
9596
+ filledByEsia: true,
9597
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9598
+ },
9599
+ {
9600
+ name: 'inn',
9601
+ required: true,
9602
+ dadata: true,
9603
+ filledByEsia: true,
9604
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9605
+ },
9594
9606
  ],
9595
9607
  },
9596
9608
  {
9597
- inputs: [{ name: 'amountWorkers', required: true }],
9609
+ inputs: [
9610
+ {
9611
+ name: 'amountWorkers',
9612
+ required: true,
9613
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9614
+ },
9615
+ ],
9598
9616
  },
9599
9617
  {
9600
9618
  columns: 2,
9601
9619
  inputs: [
9602
- { name: 'employerActivities', required: true },
9620
+ {
9621
+ name: 'employerActivities',
9622
+ required: true,
9623
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9624
+ },
9603
9625
  {
9604
9626
  name: 'organizationPhone',
9605
9627
  label: 'Телефон работодателя',
9606
9628
  required: true,
9629
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9607
9630
  },
9608
9631
  ],
9609
9632
  },
9610
9633
  {
9611
9634
  columns: 2,
9612
9635
  inputs: [
9613
- { name: 'generalSeniority', required: true, filledByEsia: true },
9614
- { name: 'lastJobExperience', required: true, filledByEsia: true },
9615
- { name: 'experience5Years', required: true, filledByEsia: true },
9616
- { name: 'jobsNumber', required: true, filledByEsia: true },
9636
+ {
9637
+ name: 'generalSeniority',
9638
+ required: true,
9639
+ filledByEsia: true,
9640
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9641
+ },
9642
+ {
9643
+ name: 'lastJobExperience',
9644
+ required: true,
9645
+ filledByEsia: true,
9646
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9647
+ },
9648
+ {
9649
+ name: 'experience5Years',
9650
+ required: true,
9651
+ filledByEsia: true,
9652
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9653
+ },
9654
+ {
9655
+ name: 'jobsNumber',
9656
+ required: true,
9657
+ filledByEsia: true,
9658
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9659
+ },
9617
9660
  ],
9618
9661
  },
9619
9662
  {
9620
- inputs: [{ name: 'beginDate', required: true, filledByEsia: true }],
9663
+ inputs: [
9664
+ {
9665
+ name: 'beginDate',
9666
+ required: true,
9667
+ filledByEsia: true,
9668
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9669
+ },
9670
+ ],
9621
9671
  },
9622
9672
  {
9623
9673
  columns: 2,
9624
9674
  inputs: [
9625
- { name: 'positionOrganization', required: true },
9675
+ {
9676
+ name: 'positionOrganization',
9677
+ required: true,
9678
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9679
+ },
9626
9680
  {
9627
9681
  name: 'partInBusiness',
9628
9682
  required: true,
@@ -9633,9 +9687,17 @@
9633
9687
  {
9634
9688
  title: 'Адрес работодателя',
9635
9689
  inputs: [],
9690
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9636
9691
  },
9637
9692
  {
9638
- inputs: [{ name: 'organizationAddress', required: true, dadata: true }],
9693
+ inputs: [
9694
+ {
9695
+ name: 'organizationAddress',
9696
+ required: true,
9697
+ dadata: true,
9698
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9699
+ },
9700
+ ],
9639
9701
  },
9640
9702
  ];
9641
9703
  const FAMILY_STATUS_AND_INCOME_CONTENT$1 = [
@@ -9672,12 +9734,20 @@
9672
9734
  {
9673
9735
  name: 'infoCard',
9674
9736
  label: 'Сумма основного и дополнительных доходов после вычета налога',
9737
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9675
9738
  },
9676
9739
  ],
9677
9740
  },
9678
9741
  {
9679
9742
  columns: 1,
9680
- inputs: [{ name: 'wages', required: true, filledByEsia: true }],
9743
+ inputs: [
9744
+ {
9745
+ name: 'wages',
9746
+ required: true,
9747
+ filledByEsia: true,
9748
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
9749
+ },
9750
+ ],
9681
9751
  },
9682
9752
  {
9683
9753
  columns: 1,
@@ -9685,7 +9755,7 @@
9685
9755
  {
9686
9756
  name: 'retirementIncome',
9687
9757
  required: true,
9688
- condition: { name: 'employment', values: ['RETIREE'] },
9758
+ condition: { name: 'employment', values: ['RETIREE', 'WORK_RETIREE'] },
9689
9759
  },
9690
9760
  ],
9691
9761
  },
@@ -10103,7 +10173,6 @@
10103
10173
  const formValidator = useCallback((formState) => getRetailFormValidator({
10104
10174
  formState,
10105
10175
  inputs,
10106
- step,
10107
10176
  productType: PRODUCT_TYPE$1,
10108
10177
  }), [inputs]);
10109
10178
  const [initialState, onSubmit, isSending] = useCreditFormAPI({
@@ -10115,7 +10184,7 @@
10115
10184
  formValidator,
10116
10185
  onSubmit,
10117
10186
  });
10118
- return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field, step, params: { calcData } }), jsx(StepsNavigationButtons$1, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
10187
+ return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field, params: { calcData } }), jsx(StepsNavigationButtons$1, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
10119
10188
  });
10120
10189
 
10121
10190
  /* eslint-disable max-lines */
@@ -10156,6 +10225,7 @@
10156
10225
  name: 'infoCard',
10157
10226
  label: 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
10158
10227
  'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
10228
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
10159
10229
  },
10160
10230
  ],
10161
10231
  },
@@ -10165,34 +10235,69 @@
10165
10235
  {
10166
10236
  columns: 2,
10167
10237
  inputs: [
10168
- { name: 'organizationName', required: true, dadata: true, filledByEsia: true },
10169
- { name: 'inn', required: true, dadata: true, filledByEsia: true },
10238
+ {
10239
+ name: 'organizationName',
10240
+ required: true,
10241
+ dadata: true,
10242
+ filledByEsia: true,
10243
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
10244
+ },
10245
+ {
10246
+ name: 'inn',
10247
+ required: true,
10248
+ dadata: true,
10249
+ filledByEsia: true,
10250
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
10251
+ },
10170
10252
  ],
10171
10253
  },
10172
10254
  {
10173
10255
  columns: 2,
10174
10256
  inputs: [
10175
- { name: 'amountWorkers', required: true },
10257
+ {
10258
+ name: 'amountWorkers',
10259
+ required: true,
10260
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
10261
+ },
10176
10262
  {
10177
10263
  name: 'organizationPhone',
10178
10264
  label: 'Телефон работодателя',
10179
10265
  required: true,
10266
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
10180
10267
  },
10181
10268
  ],
10182
10269
  },
10183
10270
  {
10184
10271
  columns: 2,
10185
10272
  inputs: [
10186
- { name: 'jobsNumber', required: true, filledByEsia: true },
10187
- { name: 'beginDate', required: true, filledByEsia: true },
10273
+ {
10274
+ name: 'jobsNumber',
10275
+ required: true,
10276
+ filledByEsia: true,
10277
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
10278
+ },
10279
+ {
10280
+ name: 'beginDate',
10281
+ required: true,
10282
+ filledByEsia: true,
10283
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
10284
+ },
10188
10285
  ],
10189
10286
  },
10190
10287
  {
10191
10288
  title: 'Адрес работодателя',
10192
10289
  inputs: [],
10290
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
10193
10291
  },
10194
10292
  {
10195
- inputs: [{ name: 'organizationAddress', required: true, dadata: true }],
10293
+ inputs: [
10294
+ {
10295
+ name: 'organizationAddress',
10296
+ required: true,
10297
+ dadata: true,
10298
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
10299
+ },
10300
+ ],
10196
10301
  },
10197
10302
  ];
10198
10303
  const FAMILY_STATUS_AND_INCOME_CONTENT = [
@@ -10228,12 +10333,20 @@
10228
10333
  {
10229
10334
  name: 'infoCard',
10230
10335
  label: 'Сумма основного и дополнительных доходов после вычета налога',
10336
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
10231
10337
  },
10232
10338
  ],
10233
10339
  },
10234
10340
  {
10235
10341
  columns: 1,
10236
- inputs: [{ name: 'wages', required: true, filledByEsia: true }],
10342
+ inputs: [
10343
+ {
10344
+ name: 'wages',
10345
+ required: true,
10346
+ filledByEsia: true,
10347
+ condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
10348
+ },
10349
+ ],
10237
10350
  },
10238
10351
  {
10239
10352
  columns: 1,
@@ -10241,7 +10354,7 @@
10241
10354
  {
10242
10355
  name: 'retirementIncome',
10243
10356
  required: true,
10244
- condition: { name: 'employment', values: ['RETIREE'] },
10357
+ condition: { name: 'employment', values: ['RETIREE', 'WORK_RETIREE'] },
10245
10358
  },
10246
10359
  ],
10247
10360
  },
@@ -10606,7 +10719,6 @@
10606
10719
  const formValidator = useCallback((formState) => getRetailFormValidator({
10607
10720
  formState,
10608
10721
  inputs,
10609
- step,
10610
10722
  productType: PRODUCT_TYPE,
10611
10723
  }), [inputs]);
10612
10724
  const [initialState, onSubmit, isSending] = useDebitFormAPI({
@@ -10618,7 +10730,7 @@
10618
10730
  formValidator,
10619
10731
  onSubmit,
10620
10732
  });
10621
- return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field, step }), jsx(StepsNavigationButtons, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
10733
+ return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field }), jsx(StepsNavigationButtons, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
10622
10734
  });
10623
10735
 
10624
10736
  /* eslint-disable max-lines */
@@ -12796,7 +12908,7 @@
12796
12908
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
12797
12909
  });
12798
12910
 
12799
- const packageVersion = "0.14.951";
12911
+ const packageVersion = "0.14.952";
12800
12912
 
12801
12913
  exports.Blocks = Blocks;
12802
12914
  exports.ContentPage = ContentPage;