@redneckz/wildless-cms-uni-blocks 0.16.2-credit → 0.16.3-credit

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.
@@ -4448,9 +4448,7 @@
4448
4448
  updateOrganizationFields(store, field, item);
4449
4449
  }, []);
4450
4450
  useEffect(() => {
4451
- if (!esiaAccountTypeCd ||
4452
- !inn ||
4453
- !(employerActivities && employerOrganization && organization && amountWorkers)) {
4451
+ if (!esiaAccountTypeCd || !inn || !isDictionariesAlreadyLoad(store)) {
4454
4452
  return;
4455
4453
  }
4456
4454
  (async () => {
@@ -4461,7 +4459,16 @@
4461
4459
  })();
4462
4460
  }, [employerActivities, employerOrganization, organization, amountWorkers]);
4463
4461
  return (jsx(DaDataInputControl, { label: "\u0418\u041D\u041D", isInteger: true, maxLength: 12, ...input, ...field(input?.name ?? ''), onDaDataChange: onDaDataChange, disabled: isEsiaAuthorize(field, input) }));
4464
- });
4462
+ });
4463
+ const isDictionariesAlreadyLoad = (store) => {
4464
+ const { employerActivities, employerOrganization, organization, amountWorkers, productType } = store;
4465
+ return [
4466
+ employerOrganization,
4467
+ organization,
4468
+ amountWorkers,
4469
+ productType === 'creditCard' ? employerActivities : true,
4470
+ ].every(Boolean);
4471
+ };
4465
4472
 
4466
4473
  const DeliveryDateFiels = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438", ...field(input?.name ?? ''), minDate: new Date() })));
4467
4474
 
@@ -11182,7 +11189,7 @@
11182
11189
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
11183
11190
  });
11184
11191
 
11185
- const packageVersion = "0.14.843";
11192
+ const packageVersion = "0.14.844";
11186
11193
 
11187
11194
  exports.Blocks = Blocks;
11188
11195
  exports.ContentPage = ContentPage;