@redneckz/wildless-cms-uni-blocks 0.14.634 → 0.14.636

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 (134) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +99 -48
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  5. package/bundle/components/CreditForm/getInitialFormState.d.ts +1 -0
  6. package/bundle/ui-kit/FormField/Fields/AddressFactField.d.ts +2 -0
  7. package/bundle/ui-kit/FormField/Fields/AddressMatchField.d.ts +2 -0
  8. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  9. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  10. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  11. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -0
  12. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  13. package/dist/components/CreditForm/creditFormStepsData.js +16 -7
  14. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  15. package/dist/components/CreditForm/getInitialFormState.d.ts +1 -0
  16. package/dist/components/CreditForm/getInitialFormState.js +1 -0
  17. package/dist/components/CreditForm/getInitialFormState.js.map +1 -1
  18. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -2
  19. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  20. package/dist/ui-kit/FormField/Fields/AddressFactField.d.ts +2 -0
  21. package/dist/ui-kit/FormField/Fields/AddressFactField.js +42 -0
  22. package/dist/ui-kit/FormField/Fields/AddressFactField.js.map +1 -0
  23. package/dist/ui-kit/FormField/Fields/AddressMatchField.d.ts +2 -0
  24. package/dist/ui-kit/FormField/Fields/AddressMatchField.js +11 -0
  25. package/dist/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -0
  26. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  27. package/dist/ui-kit/FormField/getField.js +4 -1
  28. package/dist/ui-kit/FormField/getField.js.map +1 -1
  29. package/dist/ui-kit/FormField/getObjectValidator.js +1 -0
  30. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  31. package/dist/ui-kit/Input/InputControl.js +2 -2
  32. package/dist/ui-kit/Input/InputControl.js.map +1 -1
  33. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  34. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  35. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -0
  36. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  37. package/lib/components/CreditForm/creditFormStepsData.js +16 -7
  38. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  39. package/lib/components/CreditForm/getInitialFormState.d.ts +1 -0
  40. package/lib/components/CreditForm/getInitialFormState.js +1 -0
  41. package/lib/components/CreditForm/getInitialFormState.js.map +1 -1
  42. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -2
  43. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  44. package/lib/ui-kit/FormField/Fields/AddressFactField.d.ts +2 -0
  45. package/lib/ui-kit/FormField/Fields/AddressFactField.js +40 -0
  46. package/lib/ui-kit/FormField/Fields/AddressFactField.js.map +1 -0
  47. package/lib/ui-kit/FormField/Fields/AddressMatchField.d.ts +2 -0
  48. package/lib/ui-kit/FormField/Fields/AddressMatchField.js +9 -0
  49. package/lib/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -0
  50. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  51. package/lib/ui-kit/FormField/getField.js +4 -1
  52. package/lib/ui-kit/FormField/getField.js.map +1 -1
  53. package/lib/ui-kit/FormField/getObjectValidator.js +1 -0
  54. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  55. package/lib/ui-kit/Input/InputControl.js +2 -2
  56. package/lib/ui-kit/Input/InputControl.js.map +1 -1
  57. package/mobile/bundle/bundle.umd.js +99 -48
  58. package/mobile/bundle/bundle.umd.min.js +1 -1
  59. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  60. package/mobile/bundle/components/CreditForm/getInitialFormState.d.ts +1 -0
  61. package/mobile/bundle/ui-kit/FormField/Fields/AddressFactField.d.ts +2 -0
  62. package/mobile/bundle/ui-kit/FormField/Fields/AddressMatchField.d.ts +2 -0
  63. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  64. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  65. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  66. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -0
  67. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  68. package/mobile/dist/components/CreditForm/creditFormStepsData.js +16 -7
  69. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  70. package/mobile/dist/components/CreditForm/getInitialFormState.d.ts +1 -0
  71. package/mobile/dist/components/CreditForm/getInitialFormState.js +1 -0
  72. package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -1
  73. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -2
  74. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  75. package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.d.ts +2 -0
  76. package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.js +42 -0
  77. package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.js.map +1 -0
  78. package/mobile/dist/ui-kit/FormField/Fields/AddressMatchField.d.ts +2 -0
  79. package/mobile/dist/ui-kit/FormField/Fields/AddressMatchField.js +11 -0
  80. package/mobile/dist/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -0
  81. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  82. package/mobile/dist/ui-kit/FormField/getField.js +4 -1
  83. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  84. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +1 -0
  85. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  86. package/mobile/dist/ui-kit/Input/InputControl.js +2 -2
  87. package/mobile/dist/ui-kit/Input/InputControl.js.map +1 -1
  88. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
  89. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  90. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -0
  91. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  92. package/mobile/lib/components/CreditForm/creditFormStepsData.js +16 -7
  93. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  94. package/mobile/lib/components/CreditForm/getInitialFormState.d.ts +1 -0
  95. package/mobile/lib/components/CreditForm/getInitialFormState.js +1 -0
  96. package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -1
  97. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -2
  98. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  99. package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.d.ts +2 -0
  100. package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.js +40 -0
  101. package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.js.map +1 -0
  102. package/mobile/lib/ui-kit/FormField/Fields/AddressMatchField.d.ts +2 -0
  103. package/mobile/lib/ui-kit/FormField/Fields/AddressMatchField.js +9 -0
  104. package/mobile/lib/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -0
  105. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  106. package/mobile/lib/ui-kit/FormField/getField.js +4 -1
  107. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  108. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +1 -0
  109. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  110. package/mobile/lib/ui-kit/Input/InputControl.js +2 -2
  111. package/mobile/lib/ui-kit/Input/InputControl.js.map +1 -1
  112. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +1 -0
  113. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +1 -0
  114. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +16 -7
  115. package/mobile/src/components/CreditForm/getInitialFormState.tsx +3 -0
  116. package/mobile/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +2 -2
  117. package/mobile/src/ui-kit/FormField/Fields/AddressFactField.tsx +55 -0
  118. package/mobile/src/ui-kit/FormField/Fields/AddressMatchField.tsx +14 -0
  119. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +2 -1
  120. package/mobile/src/ui-kit/FormField/getField.tsx +4 -1
  121. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +1 -0
  122. package/mobile/src/ui-kit/Input/InputControl.tsx +2 -0
  123. package/package.json +1 -1
  124. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +1 -0
  125. package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +1 -0
  126. package/src/components/CreditForm/creditFormStepsData.tsx +16 -7
  127. package/src/components/CreditForm/getInitialFormState.tsx +3 -0
  128. package/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +2 -2
  129. package/src/ui-kit/FormField/Fields/AddressFactField.tsx +55 -0
  130. package/src/ui-kit/FormField/Fields/AddressMatchField.tsx +14 -0
  131. package/src/ui-kit/FormField/NameFieldDef.ts +2 -1
  132. package/src/ui-kit/FormField/getField.tsx +4 -1
  133. package/src/ui-kit/FormField/getObjectValidator.tsx +1 -0
  134. package/src/ui-kit/Input/InputControl.tsx +2 -0
@@ -1323,7 +1323,7 @@
1323
1323
  return inputRef;
1324
1324
  }
1325
1325
 
1326
- const InputControl = JSX(({ className, label, value = '', placeholder, error, errors, onChange = noop, onDaDataChange, onBlur, isTextarea, type, name = '', daDataQueryPrefix, inputLength, dadata = false, }) => {
1326
+ const InputControl = JSX(({ className, label, value = '', placeholder, error, errors, onChange = noop, onDaDataChange, onBlur, isTextarea, type, name = '', daDataQueryPrefix, inputLength, dadata = false, disabled = false, }) => {
1327
1327
  const [isOpen, { setFalse: close, setTrue: open }] = useBool();
1328
1328
  const popupRef = useOutsideClick(close);
1329
1329
  const handleChange = useCallback((v) => (inputLength ? v.length <= inputLength && onChange(v) : onChange(v)), [onChange]);
@@ -1335,7 +1335,7 @@
1335
1335
  onChange,
1336
1336
  onDaDataChange,
1337
1337
  });
1338
- return (jsxs("div", { className: style('shrink-0 w-full', className), ref: popupRef, onBlur: close, onFocus: open, children: [jsx("div", { ref: inputRef, children: jsx(Input, { type: type || 'text', "aria-label": label, label: getRequiredLabel({ label, errors }), valid: Boolean(!error), value: value, onChange: handleChange, onBlur: onBlur, isTextarea: isTextarea, placeholder: getPlaceholder(placeholder, errors, label) }) }), renderErrorText(error)] }));
1338
+ return (jsxs("div", { className: style('shrink-0 w-full', className), ref: popupRef, onBlur: close, onFocus: open, children: [jsx("div", { ref: inputRef, children: jsx(Input, { disabled: disabled, type: type || 'text', "aria-label": label, label: getRequiredLabel({ label, errors }), valid: Boolean(!error), value: value, onChange: handleChange, onBlur: onBlur, isTextarea: isTextarea, placeholder: getPlaceholder(placeholder, errors, label) }) }), renderErrorText(error)] }));
1339
1339
  });
1340
1340
  const getPlaceholder = (placeholder, errors, label) => errors && !label ? `${placeholder}*` : placeholder;
1341
1341
 
@@ -1530,6 +1530,7 @@
1530
1530
  partInBusiness: defaultValidator(),
1531
1531
  regionRetail: defaultSelectValidator('Выберите филиал банка'),
1532
1532
  addressRetail: defaultSelectValidator('Выберите адрес банка'),
1533
+ addressMatch: defaultValidator(),
1533
1534
  };
1534
1535
  const getObjectValidator = (inputs) => {
1535
1536
  const requiredInputs = getNamesFromInput(inputs.filter((_) => Boolean(_?.required)));
@@ -1671,6 +1672,40 @@
1671
1672
  })), ...getValidation(field('addressBranch'), validatorObj.addressBranch, input?.required), isSearch: true }));
1672
1673
  });
1673
1674
 
1675
+ const AddressFactField = JSX(({ field, input }) => {
1676
+ const fieldName = 'addressFact';
1677
+ const fieldValue = field(fieldName).value;
1678
+ const { value } = field('addressMatch');
1679
+ useEffect(() => {
1680
+ if (value) {
1681
+ field('addressFact')?.onChange?.(field('addressRegistration').value);
1682
+ }
1683
+ }, [value]);
1684
+ const onDaDataChange = useCallback((item) => {
1685
+ field?.(fieldName)?.onChange?.({
1686
+ apartment: item?.data?.flat,
1687
+ city: item?.data?.city,
1688
+ district: item?.data?.area_with_type,
1689
+ fullAddress: item?.value,
1690
+ fiasCode: item?.data?.fias_id,
1691
+ house: item?.data?.house,
1692
+ locality: item?.data?.settlement_with_type,
1693
+ okatoRegionCode: item?.data?.okato,
1694
+ postcode: item?.data?.postal_code,
1695
+ region: item?.data?.region,
1696
+ regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
1697
+ street: item?.data?.house,
1698
+ });
1699
+ }, []);
1700
+ const onChange = useCallback((val) => {
1701
+ field?.(fieldName)?.onChange?.({
1702
+ ...field(fieldName).value,
1703
+ fullAddress: val,
1704
+ });
1705
+ }, []);
1706
+ return (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", disabled: value, ...getValidation(field(fieldName), validatorObj[fieldName], input?.required), value: fieldValue.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
1707
+ });
1708
+
1674
1709
  const AddressField = JSX(({ field, input }) => {
1675
1710
  const fieldName = input?.name || 'addressRegistration';
1676
1711
  const fieldValue = field(fieldName).value;
@@ -1699,6 +1734,45 @@
1699
1734
  return (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...getValidation(field(fieldName), validatorObj[fieldName], input?.required), value: fieldValue.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
1700
1735
  });
1701
1736
 
1737
+ const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
1738
+ return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => {
1739
+ const resultOptions = { ...commonOptions, ...options };
1740
+ return (jsx("path", { d: d, fill: pathFill || 'currentColor', stroke: resultOptions.stroke, strokeLinecap: resultOptions.strokeLinecap, strokeLinejoin: resultOptions.strokeLinejoin, strokeWidth: resultOptions.strokeWidth, strokeMiterlimit: resultOptions.strokeMiterlimit }, i));
1741
+ }) }));
1742
+ });
1743
+
1744
+ const defaultCheckStyle = 'appearance-none w-5 h-5 border-solid flex-none';
1745
+
1746
+ const CHECK_PATHS = [
1747
+ {
1748
+ d: 'M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z',
1749
+ fillRule: 'evenodd',
1750
+ clipRule: 'evenodd',
1751
+ fill: 'white',
1752
+ },
1753
+ ];
1754
+ const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange }) => {
1755
+ const handleChange = useCallback((e) => {
1756
+ if (disabled) {
1757
+ return;
1758
+ }
1759
+ e.preventDefault();
1760
+ onChange && onChange(!value);
1761
+ }, [onChange, disabled, value]);
1762
+ const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
1763
+ return (jsx("div", { className: className, children: jsxs("label", { className: style('flex items-center relative group/box', getCursorStyle(disabled)), onClick: handleChange, children: [jsx("div", { className: style(defaultCheckStyle, 'm-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), !disabled && value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: role(isRadio), "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled), "aria-label": text }), value ? icon : null, renderText$2(text)] }) }));
1764
+ });
1765
+ const renderText$2 = (text) => text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null;
1766
+ const getCursorStyle = (disabled = false) => (disabled ? 'cursor-not-allowed' : 'cursor-pointer');
1767
+ const role = (isRadio = false) => (isRadio ? 'radio' : 'checkbox');
1768
+ const checkboxStyle = (value = false) => style('rounded border', { 'bg-primary-main': value });
1769
+
1770
+ const CheckboxWithError = JSX(({ className, text, value, key, disabled, error, onChange }) => (jsxs("div", { className: style('shrink-0', className), children: [jsx(Checkbox, { text: text, value: value, disabled: disabled, onChange: onChange }, key), renderErrorText(error)] })));
1771
+
1772
+ const AddressMatchField = JSX(({ field }) => {
1773
+ return (jsx(CheckboxWithError, { text: "\u0410\u0434\u0440\u0435\u0441 \u0444\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u0436\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u0435\u0442 \u0441 \u0430\u0434\u0440\u0435\u0441\u043E\u043C \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438", ...getValidation(field('addressMatch'), validatorObj.addressMatch) }));
1774
+ });
1775
+
1702
1776
  const useNormalizedInput = (props, { normalize, format }) => {
1703
1777
  const { value, onFocus, onBlur, onChange } = props;
1704
1778
  const [isFocused, setIsFocused] = useState(false);
@@ -1791,41 +1865,6 @@
1791
1865
 
1792
1866
  const AnnualRevenueField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", ...getValidation(field('annualRevenue'), validatorObj.annualRevenue, input?.required) })));
1793
1867
 
1794
- const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
1795
- return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => {
1796
- const resultOptions = { ...commonOptions, ...options };
1797
- return (jsx("path", { d: d, fill: pathFill || 'currentColor', stroke: resultOptions.stroke, strokeLinecap: resultOptions.strokeLinecap, strokeLinejoin: resultOptions.strokeLinejoin, strokeWidth: resultOptions.strokeWidth, strokeMiterlimit: resultOptions.strokeMiterlimit }, i));
1798
- }) }));
1799
- });
1800
-
1801
- const defaultCheckStyle = 'appearance-none w-5 h-5 border-solid flex-none';
1802
-
1803
- const CHECK_PATHS = [
1804
- {
1805
- d: 'M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z',
1806
- fillRule: 'evenodd',
1807
- clipRule: 'evenodd',
1808
- fill: 'white',
1809
- },
1810
- ];
1811
- const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange }) => {
1812
- const handleChange = useCallback((e) => {
1813
- if (disabled) {
1814
- return;
1815
- }
1816
- e.preventDefault();
1817
- onChange && onChange(!value);
1818
- }, [onChange, disabled, value]);
1819
- const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
1820
- return (jsx("div", { className: className, children: jsxs("label", { className: style('flex items-center relative group/box', getCursorStyle(disabled)), onClick: handleChange, children: [jsx("div", { className: style(defaultCheckStyle, 'm-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), !disabled && value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: role(isRadio), "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled), "aria-label": text }), value ? icon : null, renderText$2(text)] }) }));
1821
- });
1822
- const renderText$2 = (text) => text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null;
1823
- const getCursorStyle = (disabled = false) => (disabled ? 'cursor-not-allowed' : 'cursor-pointer');
1824
- const role = (isRadio = false) => (isRadio ? 'radio' : 'checkbox');
1825
- const checkboxStyle = (value = false) => style('rounded border', { 'bg-primary-main': value });
1826
-
1827
- const CheckboxWithError = JSX(({ className, text, value, key, disabled, error, onChange }) => (jsxs("div", { className: style('shrink-0', className), children: [jsx(Checkbox, { text: text, value: value, disabled: disabled, onChange: onChange }, key), renderErrorText(error)] })));
1828
-
1829
1868
  const ArmyIdFlgField = JSX(({ field }) => (jsx(CheckboxWithError, { text: "\u041D\u0430\u043B\u0438\u0447\u0438\u0435 \u0432\u043E\u0435\u043D\u043D\u043E\u0433\u043E \u0431\u0438\u043B\u0435\u0442\u0430", ...getValidation(field('armyIdFlg'), validatorObj.armyIdFlg) })));
1830
1869
 
1831
1870
  const BankEmpoleeCodeField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041A\u043E\u0434 \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044F \u0411\u0430\u043D\u043A\u0430", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434", type: "number", ...getValidation(field('bankEmployeeCode'), validatorObj.bankEmployeeCode, input?.required), ...input })));
@@ -3204,7 +3243,7 @@
3204
3243
  experience5Years: jsx(Experience5YearsField, { field: field, input: input }),
3205
3244
  jobsNumber: jsx(JobsNumberField, { field: field, input: input }),
3206
3245
  beginDate: jsx(BeginDateField, { field: field, input: input }),
3207
- addressFact: jsx(AddressField, { field: field, input: input }),
3246
+ addressFact: jsx(AddressFactField, { field: field, input: input }),
3208
3247
  organizationAddress: jsx(AddressField, { field: field, input: input }),
3209
3248
  comment: jsx(CommentField, { field: field, input: input }),
3210
3249
  addressBranch: jsx(AddressBranchField, { field: field, input: input, isPremium: isPremium }),
@@ -3274,6 +3313,7 @@
3274
3313
  partInBusiness: jsx(PartInBusinessField, { field: field, input: input }),
3275
3314
  regionRetail: jsx(RetailRegionField, { field: field, input: input }),
3276
3315
  addressRetail: jsx(RetailAddressField, { field: field, input: input }),
3316
+ addressMatch: jsx(AddressMatchField, { field: field, input: input }),
3277
3317
  };
3278
3318
  return isRenderField({ input, field }) ? (jsx("div", { children: InputsMap[input?.name || ''] }, String(i))) : null;
3279
3319
  };
@@ -3823,7 +3863,7 @@
3823
3863
  const CONSENT_BKI_ID = 2;
3824
3864
 
3825
3865
  const useConsentBkiDialog = (onClose) => {
3826
- const { open, closeAll } = useDialogManager();
3866
+ const { open, close } = useDialogManager();
3827
3867
  const verifyPhoneDialog = useVerifyPhoneDialog();
3828
3868
  const handleSuccessVerify = (profileId) => async (smsCode) => {
3829
3869
  if (profileId) {
@@ -3838,7 +3878,7 @@
3838
3878
  onClose();
3839
3879
  };
3840
3880
  const handleSubmitBkiConstent = (phone, profileId) => async (confirmStatus) => {
3841
- closeAll();
3881
+ close();
3842
3882
  if (confirmStatus === 'SIGNED' && phone) {
3843
3883
  verifyPhoneDialog.open(handleSuccessVerify(profileId), verifyPhoneContent$1(phone));
3844
3884
  }
@@ -4007,6 +4047,7 @@
4007
4047
  saveUserData,
4008
4048
  saveForm,
4009
4049
  });
4050
+ verifyPhoneDialog.close();
4010
4051
  consentBkiDialog.open(formData.phone, profileId);
4011
4052
  }
4012
4053
  catch {
@@ -5798,6 +5839,7 @@
5798
5839
  fullAddress: '',
5799
5840
  fiasCode: '',
5800
5841
  },
5842
+ addressMatch: false,
5801
5843
  participantDateRegistration: undefined,
5802
5844
  addressFact: {
5803
5845
  fullAddress: '',
@@ -6083,7 +6125,10 @@
6083
6125
  inputs: [],
6084
6126
  },
6085
6127
  {
6086
- inputs: [{ fieldType: 'common', name: 'addressRegistration', required: true, dadata: true }],
6128
+ inputs: [
6129
+ { fieldType: 'common', name: 'addressRegistration', required: true, dadata: true },
6130
+ { fieldType: 'common', name: 'addressMatch' },
6131
+ ],
6087
6132
  },
6088
6133
  {
6089
6134
  columns: 2,
@@ -6091,11 +6136,14 @@
6091
6136
  },
6092
6137
  {
6093
6138
  title: 'Адрес фактического проживания (место пребывания РФ)',
6139
+ inputs: [],
6140
+ },
6141
+ {
6094
6142
  columns: 2,
6095
- inputs: [
6096
- { fieldType: 'common', name: 'addressFact', required: true, dadata: true },
6097
- { fieldType: 'common', name: 'housing' },
6098
- ],
6143
+ inputs: [{ fieldType: 'common', name: 'housing' }],
6144
+ },
6145
+ {
6146
+ inputs: [{ fieldType: 'common', name: 'addressFact', required: true, dadata: true }],
6099
6147
  },
6100
6148
  ],
6101
6149
  [
@@ -6180,8 +6228,11 @@
6180
6228
  inputs: [{ fieldType: 'common', name: 'dependents', required: true }],
6181
6229
  },
6182
6230
  {
6183
- columns: 1,
6184
- inputs: [{ fieldType: 'common', name: 'familyMembers', required: true }],
6231
+ columns: 2,
6232
+ inputs: [
6233
+ { fieldType: 'common', name: 'familyMembers', required: true },
6234
+ { fieldType: 'common', name: 'children', required: true },
6235
+ ],
6185
6236
  },
6186
6237
  {
6187
6238
  title: 'Совокупный доход',
@@ -8545,7 +8596,7 @@
8545
8596
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
8546
8597
  });
8547
8598
 
8548
- const packageVersion = "0.14.633";
8599
+ const packageVersion = "0.14.635";
8549
8600
 
8550
8601
  exports.Blocks = Blocks;
8551
8602
  exports.ContentPage = ContentPage;