@redneckz/wildless-cms-uni-blocks 0.14.686 → 0.14.687

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.
@@ -3754,10 +3754,7 @@
3754
3754
 
3755
3755
  const InputSnilsControl = JSX(({ className, label, value, error, onChange, onBlur, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(SnilsInput, { "aria-label": label, label: getRequiredLabel({ label, errors: rest?.errors }), valid: Boolean(!error), value: value, onChange: onChange, onBlur: onBlur, placeholder: "___-___-___ __" }), renderErrorText(error)] })));
3756
3756
 
3757
- const SnilsField = JSX(({ field, input }) => {
3758
- const isPfrFlg = field('consentPfrFlg')?.value;
3759
- return (jsx(InputSnilsControl, { label: "\u0421\u041D\u0418\u041B\u0421", ...getValidation(field('snils'), validatorObj.snils, isPfrFlg ? input?.required : false), ...input }));
3760
- });
3757
+ const SnilsField = JSX(({ field, input }) => (jsx(InputSnilsControl, { label: "\u0421\u041D\u0418\u041B\u0421", ...getValidation(field('snils'), validatorObj.snils, input?.required), ...input })));
3761
3758
 
3762
3759
  const FIELD_NAME = 'surname';
3763
3760
  const SurnameField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", maxLength: 60, disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME), ...getValidation(field('surname'), validatorObj.surname, input?.required), ...input })));
@@ -7377,7 +7374,7 @@
7377
7374
  });
7378
7375
  const checkIsRetiree = (step, getValue) => step === 2 && getValue('employment')?.key === 'RETIREE';
7379
7376
  const checkBusinessOwner = ({ name }, getValue) => name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
7380
- const checkConsentPfrFlg = ({ name }, getValue) => name === 'snils' && !getValue('consentPfrFlg');
7377
+ const checkConsentPfrFlg = ({ name }, getValue) => name === 'snils' && isSnilsRequired(getValue);
7381
7378
  const checkAddressFillFromESIA = ({ name, filledByEsia }, getValue) => name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
7382
7379
  const checkAddressFact = ({ name }, getValue) => name === 'addressFact' && getValue('addressMatch');
7383
7380
  const checkCondition = ({ condition }, getValue) => condition?.name &&
@@ -7385,6 +7382,7 @@
7385
7382
  const dataValue = getValue(condition?.name);
7386
7383
  return _ !== (dataValue?.key ?? dataValue);
7387
7384
  });
7385
+ const isSnilsRequired = (getValue) => getValue('confirmationIncome')?.key !== 'PFR_CERTIFICATE';
7388
7386
 
7389
7387
  const renderInfo$1 = (inputs = []) => {
7390
7388
  const infoInputs = inputs.filter((_) => _.fieldType === 'info');
@@ -10425,7 +10423,7 @@
10425
10423
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10426
10424
  });
10427
10425
 
10428
- const packageVersion = "0.14.685";
10426
+ const packageVersion = "0.14.686";
10429
10427
 
10430
10428
  exports.Blocks = Blocks;
10431
10429
  exports.ContentPage = ContentPage;