@redneckz/wildless-cms-uni-blocks 0.14.633 → 0.14.635

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 (45) hide show
  1. package/bundle/bundle.umd.js +7 -5
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -0
  4. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  5. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -2
  6. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  7. package/dist/ui-kit/FormField/Fields/RetailAddressField.js +2 -1
  8. package/dist/ui-kit/FormField/Fields/RetailAddressField.js.map +1 -1
  9. package/dist/ui-kit/FormField/Fields/RetailRegionField.js +1 -1
  10. package/dist/ui-kit/FormField/Fields/RetailRegionField.js.map +1 -1
  11. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -0
  12. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  13. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -2
  14. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  15. package/lib/ui-kit/FormField/Fields/RetailAddressField.js +2 -1
  16. package/lib/ui-kit/FormField/Fields/RetailAddressField.js.map +1 -1
  17. package/lib/ui-kit/FormField/Fields/RetailRegionField.js +1 -1
  18. package/lib/ui-kit/FormField/Fields/RetailRegionField.js.map +1 -1
  19. package/mobile/bundle/bundle.umd.js +7 -5
  20. package/mobile/bundle/bundle.umd.min.js +1 -1
  21. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -0
  22. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  23. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -2
  24. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  25. package/mobile/dist/ui-kit/FormField/Fields/RetailAddressField.js +2 -1
  26. package/mobile/dist/ui-kit/FormField/Fields/RetailAddressField.js.map +1 -1
  27. package/mobile/dist/ui-kit/FormField/Fields/RetailRegionField.js +1 -1
  28. package/mobile/dist/ui-kit/FormField/Fields/RetailRegionField.js.map +1 -1
  29. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -0
  30. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  31. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -2
  32. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  33. package/mobile/lib/ui-kit/FormField/Fields/RetailAddressField.js +2 -1
  34. package/mobile/lib/ui-kit/FormField/Fields/RetailAddressField.js.map +1 -1
  35. package/mobile/lib/ui-kit/FormField/Fields/RetailRegionField.js +1 -1
  36. package/mobile/lib/ui-kit/FormField/Fields/RetailRegionField.js.map +1 -1
  37. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +1 -0
  38. package/mobile/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +2 -2
  39. package/mobile/src/ui-kit/FormField/Fields/RetailAddressField.tsx +7 -1
  40. package/mobile/src/ui-kit/FormField/Fields/RetailRegionField.tsx +2 -2
  41. package/package.json +1 -1
  42. package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +1 -0
  43. package/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +2 -2
  44. package/src/ui-kit/FormField/Fields/RetailAddressField.tsx +7 -1
  45. package/src/ui-kit/FormField/Fields/RetailRegionField.tsx +2 -2
@@ -3094,15 +3094,16 @@
3094
3094
  filtrationState: {},
3095
3095
  getBalloon: getOfficePoint,
3096
3096
  });
3097
+ const isRegionSelected = Boolean(fieldRegion?.value?.key);
3097
3098
  return (jsxs("div", { children: [jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u044F", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", options: (addressBranchRetail || []).map(({ address = '' }) => ({
3098
3099
  key: address,
3099
3100
  text: address,
3100
- })), ...getValidation(field('addressRetail'), validatorObj.addressRetail, input?.required), isSearch: true }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, isLoad: isLoad, className: "h-full", selectedAddress: fieldBranch?.value?.text }) }) })] }));
3101
+ })), ...getValidation(field('addressRetail'), validatorObj.addressRetail, input?.required && isRegionSelected), isSearch: true }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, isLoad: isLoad, className: "h-full", selectedAddress: fieldBranch?.value?.text }) }) })] }));
3101
3102
  });
3102
3103
 
3103
3104
  const RetailRegionField = JSX(({ field, input }) => {
3104
3105
  const regions = useBranchesByRegions();
3105
- return (jsx(SelectControl, { label: "\u0424\u0438\u043B\u0438\u0430\u043B \u0431\u0430\u043D\u043A\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B \u0431\u0430\u043D\u043A\u0430", isSearch: true, options: useMemo(() => regions?.map(({ region = '' }) => ({ key: region, text: region })), [regions]), ...getValidation(field('regionRetail'), validatorObj.regionRetail, input?.required) }));
3106
+ return (jsx(SelectControl, { label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: useMemo(() => regions?.map(({ region = '' }) => ({ key: region, text: region })), [regions]), ...getValidation(field('regionRetail'), validatorObj.regionRetail, input?.required) }));
3106
3107
  });
3107
3108
 
3108
3109
  const RetirementIncomeField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041F\u0435\u043D\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u0434\u043E\u0445\u043E\u0434\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('retirementIncome'), validatorObj.retirementIncome, input?.required), ...input })));
@@ -3822,7 +3823,7 @@
3822
3823
  const CONSENT_BKI_ID = 2;
3823
3824
 
3824
3825
  const useConsentBkiDialog = (onClose) => {
3825
- const { open, closeAll } = useDialogManager();
3826
+ const { open, close } = useDialogManager();
3826
3827
  const verifyPhoneDialog = useVerifyPhoneDialog();
3827
3828
  const handleSuccessVerify = (profileId) => async (smsCode) => {
3828
3829
  if (profileId) {
@@ -3837,7 +3838,7 @@
3837
3838
  onClose();
3838
3839
  };
3839
3840
  const handleSubmitBkiConstent = (phone, profileId) => async (confirmStatus) => {
3840
- closeAll();
3841
+ close();
3841
3842
  if (confirmStatus === 'SIGNED' && phone) {
3842
3843
  verifyPhoneDialog.open(handleSuccessVerify(profileId), verifyPhoneContent$1(phone));
3843
3844
  }
@@ -4006,6 +4007,7 @@
4006
4007
  saveUserData,
4007
4008
  saveForm,
4008
4009
  });
4010
+ verifyPhoneDialog.close();
4009
4011
  consentBkiDialog.open(formData.phone, profileId);
4010
4012
  }
4011
4013
  catch {
@@ -8544,7 +8546,7 @@
8544
8546
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
8545
8547
  });
8546
8548
 
8547
- const packageVersion = "0.14.632";
8549
+ const packageVersion = "0.14.634";
8548
8550
 
8549
8551
  exports.Blocks = Blocks;
8550
8552
  exports.ContentPage = ContentPage;