@redneckz/wildless-cms-uni-blocks 0.14.140 → 0.14.141

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 (100) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +55 -22
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +8 -1
  5. package/bundle/components/ApplicationForm/ApplicationFormCorruption.d.ts +12 -0
  6. package/bundle/components/ApplicationForm/ApplicationFormIndividuals.d.ts +3 -6
  7. package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  8. package/bundle/components/ApplicationForm/renderUserData.d.ts +8 -2
  9. package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -4
  10. package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  11. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +8 -1
  12. package/dist/components/ApplicationForm/ApplicationFormCorruption.d.ts +12 -0
  13. package/dist/components/ApplicationForm/ApplicationFormCorruption.js +53 -0
  14. package/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -0
  15. package/dist/components/ApplicationForm/ApplicationFormFeedback.js +2 -4
  16. package/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  17. package/dist/components/ApplicationForm/ApplicationFormIndividuals.d.ts +3 -6
  18. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +3 -5
  19. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  20. package/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  21. package/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  22. package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  23. package/dist/components/ApplicationForm/renderUserData.d.ts +8 -2
  24. package/dist/components/ApplicationForm/renderUserData.js +7 -2
  25. package/dist/components/ApplicationForm/renderUserData.js.map +1 -1
  26. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  27. package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +3 -5
  28. package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  29. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +8 -1
  30. package/lib/components/ApplicationForm/ApplicationFormCorruption.d.ts +12 -0
  31. package/lib/components/ApplicationForm/ApplicationFormCorruption.js +51 -0
  32. package/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -0
  33. package/lib/components/ApplicationForm/ApplicationFormFeedback.js +3 -5
  34. package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  35. package/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +3 -6
  36. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +3 -5
  37. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  38. package/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  39. package/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  40. package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  41. package/lib/components/ApplicationForm/renderUserData.d.ts +8 -2
  42. package/lib/components/ApplicationForm/renderUserData.js +6 -1
  43. package/lib/components/ApplicationForm/renderUserData.js.map +1 -1
  44. package/mobile/bundle/bundle.umd.js +55 -22
  45. package/mobile/bundle/bundle.umd.min.js +1 -1
  46. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +8 -1
  47. package/mobile/bundle/components/ApplicationForm/ApplicationFormCorruption.d.ts +12 -0
  48. package/mobile/bundle/components/ApplicationForm/ApplicationFormIndividuals.d.ts +3 -6
  49. package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  50. package/mobile/bundle/components/ApplicationForm/renderUserData.d.ts +8 -2
  51. package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -4
  52. package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  53. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +8 -1
  54. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.d.ts +12 -0
  55. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js +53 -0
  56. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -0
  57. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +2 -4
  58. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  59. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.d.ts +3 -6
  60. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +3 -5
  61. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  62. package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  63. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  64. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  65. package/mobile/dist/components/ApplicationForm/renderUserData.d.ts +8 -2
  66. package/mobile/dist/components/ApplicationForm/renderUserData.js +7 -2
  67. package/mobile/dist/components/ApplicationForm/renderUserData.js.map +1 -1
  68. package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +3 -5
  69. package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  70. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +8 -1
  71. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.d.ts +12 -0
  72. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js +51 -0
  73. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -0
  74. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +3 -5
  75. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  76. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +3 -6
  77. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +3 -5
  78. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  79. package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  80. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  81. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  82. package/mobile/lib/components/ApplicationForm/renderUserData.d.ts +8 -2
  83. package/mobile/lib/components/ApplicationForm/renderUserData.js +6 -1
  84. package/mobile/lib/components/ApplicationForm/renderUserData.js.map +1 -1
  85. package/mobile/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +3 -5
  86. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +11 -1
  87. package/mobile/src/components/ApplicationForm/ApplicationFormCorruption.tsx +103 -0
  88. package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +3 -5
  89. package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +5 -11
  90. package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  91. package/mobile/src/components/ApplicationForm/renderUserData.tsx +18 -6
  92. package/package.json +1 -1
  93. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +14 -0
  94. package/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +3 -5
  95. package/src/components/ApplicationForm/ApplicationFormContent.ts +11 -1
  96. package/src/components/ApplicationForm/ApplicationFormCorruption.tsx +103 -0
  97. package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +3 -5
  98. package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +5 -11
  99. package/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  100. package/src/components/ApplicationForm/renderUserData.tsx +18 -6
@@ -1250,7 +1250,7 @@
1250
1250
 
1251
1251
  const renderSubmitButton = (button, className) => (jsx(Button, { className: style('w-full @xl:w-auto', className), type: "submit", children: button?.text ? button.text : 'Отправить заявку' }));
1252
1252
 
1253
- const initialFormState$7 = {
1253
+ const initialFormState$8 = {
1254
1254
  acquiringType: { key: 'Торговый эквайринг' },
1255
1255
  fullName: '',
1256
1256
  inn: '',
@@ -1282,7 +1282,7 @@
1282
1282
  phone: phone.replace(/[^+\d]/g, ''),
1283
1283
  });
1284
1284
  }, [onSubmit]);
1285
- const [, { field, ...formProps }] = useForm(initialFormState$7, handleSubmit);
1285
+ const [, { field, ...formProps }] = useForm(initialFormState$8, handleSubmit);
1286
1286
  const regions = useGetRegions();
1287
1287
  return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderAcquiringRegion({ regions, field, title: 'Вид эквайринга и регион' }), renderAcquiringDataOrganization(field, 'Данные организации'), renderSlideCheckboxes(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1288
1288
  });
@@ -1474,20 +1474,23 @@
1474
1474
 
1475
1475
  const DatePickerControl = JSX(({ className, label, value = undefined, error, onChange }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: label }) })) : null, jsx(DatePicker, { value: value, onChange: onChange, valid: Boolean(!error) }), renderErrorText(error)] })));
1476
1476
 
1477
- const renderUserData = (field) => (jsxs("div", { children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F*", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { label: "\u0418\u043C\u044F*", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...field('middleName') }), jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F*", ...withValidator(field('birthday'), defaultValidator) })] }));
1478
-
1479
- const initialFormState$6 = {
1480
- typeForm: { key: 'ANTIFRAUD', text: 'Предупреждение о мошенничестве' },
1477
+ const initialUserFormState = {
1481
1478
  surname: '',
1482
1479
  name: '',
1483
1480
  middleName: '',
1481
+ };
1482
+ const renderUserData = (field, isBirthday = true) => (jsxs("div", { children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F*", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { label: "\u0418\u043C\u044F*", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...field('middleName') }), isBirthday ? (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F*", ...withValidator(field('birthday'), defaultValidator) })) : null] }));
1483
+
1484
+ const initialFormState$7 = {
1485
+ ...initialUserFormState,
1486
+ typeForm: { key: 'ANTIFRAUD', text: 'Предупреждение о мошенничестве' },
1484
1487
  phone: '',
1485
1488
  birthday: undefined,
1486
1489
  isClient: false,
1487
1490
  comment: '',
1488
1491
  consentDataProcessing: false,
1489
1492
  };
1490
- const feedbackValidator = objectValidator({
1493
+ const feedbackValidator$1 = objectValidator({
1491
1494
  typeForm: defaultValidator,
1492
1495
  surname: defaultValidator,
1493
1496
  name: nameValidator,
@@ -1505,17 +1508,17 @@
1505
1508
  typeForm: typeForm.key,
1506
1509
  phone: phone.replace(/[^+\d]/g, ''),
1507
1510
  };
1508
- isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
1511
+ isValidationSuccess(feedbackValidator$1(formState)) && onSubmit(submitData, true);
1509
1512
  }, [onSubmit]);
1510
- const [, { field, ...formProps }] = useForm(initialFormState$6, handleSubmit);
1511
- return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [renderUserData(field), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), jsx(CheckboxWithError, { ...withValidator(field('isClient'), checkboxValidator), text: '\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0431\u0430\u043D\u043A\u0430 \u0410\u041E "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A"' }), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
1513
+ const [, { field, ...formProps }] = useForm(initialFormState$7, handleSubmit);
1514
+ return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [renderUserData(field, true), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), jsx(CheckboxWithError, { ...withValidator(field('isClient'), checkboxValidator), text: '\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0431\u0430\u043D\u043A\u0430 \u0410\u041E "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A"' }), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
1512
1515
  });
1513
1516
 
1514
1517
  const renderBusinessCardDataOrganization = (field) => (jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), secondChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] }) }));
1515
1518
 
1516
1519
  const renderRegion$1 = ({ regions, field }) => (jsx(SelectControl, { className: "w-full", label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }));
1517
1520
 
1518
- const initialFormState$5 = {
1521
+ const initialFormState$6 = {
1519
1522
  name: '',
1520
1523
  phone: '',
1521
1524
  inn: '',
@@ -1542,11 +1545,45 @@
1542
1545
  phone: phone.replace(/[^+\d]/g, ''),
1543
1546
  });
1544
1547
  }, [onSubmit]);
1545
- const [, { field, ...formProps }] = useForm(initialFormState$5, handleSubmit);
1548
+ const [, { field, ...formProps }] = useForm(initialFormState$6, handleSubmit);
1546
1549
  const regions = useGetRegions();
1547
1550
  return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderRegion$1({ regions, field }), renderBusinessCardDataOrganization(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1548
1551
  });
1549
1552
 
1553
+ const initialFormState$5 = {
1554
+ ...initialUserFormState,
1555
+ typeForm: { key: 'CORRUPTION', text: 'Факты коррупции' },
1556
+ phone: '',
1557
+ email: '',
1558
+ comment: '',
1559
+ consentDataProcessing: false,
1560
+ };
1561
+ const feedbackValidator = objectValidator({
1562
+ typeForm: defaultValidator,
1563
+ surname: defaultValidator,
1564
+ name: nameValidator,
1565
+ region: defaultValidator,
1566
+ phone: phoneValidator,
1567
+ email: defaultValidator,
1568
+ comment: defaultValidator,
1569
+ consentDataProcessing: checkboxValidator,
1570
+ });
1571
+ const ApplicationFormCorruption = JSX(({ button, link, onSubmit }) => {
1572
+ const handleSubmit = useCallback((formState) => {
1573
+ const { typeForm, phone, region, ...usedFields } = formState;
1574
+ const submitData = {
1575
+ ...usedFields,
1576
+ typeForm: typeForm.key,
1577
+ regionBranch: region?.text,
1578
+ phone: phone.replace(/[^+\d]/g, ''),
1579
+ };
1580
+ isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
1581
+ }, [onSubmit]);
1582
+ const [, { field, ...formProps }] = useForm(initialFormState$5, handleSubmit);
1583
+ const branch = useGetRegions();
1584
+ return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [renderUserData(field, false), jsx(SelectControl, { label: "\u0424\u0438\u043B\u0438\u0430\u043B \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: branch.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) }), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
1585
+ });
1586
+
1550
1587
  const BRANCHES_URL = '/api/v1/branches';
1551
1588
  const EMPTY_VALUE$3 = [];
1552
1589
  function useBranches(regionCode) {
@@ -1796,11 +1833,9 @@
1796
1833
  };
1797
1834
 
1798
1835
  const initialFormState$2 = {
1836
+ ...initialUserFormState,
1799
1837
  typeForm: { key: 'FEEDBACK', text: 'Задать вопрос по продуктам и услугам' },
1800
1838
  serviceDirection: { key: 'Физическое лицо' },
1801
- surname: '',
1802
- name: '',
1803
- middleName: '',
1804
1839
  birthday: undefined,
1805
1840
  feedbackMethod: { key: 'Телефонный звонок' },
1806
1841
  phone: '',
@@ -1829,7 +1864,7 @@
1829
1864
  return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [jsx(SelectControl, { label: "\u0422\u0435\u043C\u0430*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0435\u043C\u0443", options: FEEDBACK_TYPES, ...withValidator(field('typeForm'), defaultValidator) }), isQualityService ? (jsx(SelectControl, { label: "\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435", options: SERVICE_DIRECTIONS, ...withValidator(field('serviceDirection'), defaultValidator) })) : null, jsx(SelectControl, { label: "\u0424\u0438\u043B\u0438\u0430\u043B \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: branch.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }), isQualityService ? (jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: regions.map(({ branchCode = '', address = '' }) => ({
1830
1865
  key: branchCode,
1831
1866
  text: address,
1832
- })), ...withValidator(field('addressBranch'), defaultValidator) })) : null, renderUserData(field), isLegalEntity ? (jsxs("div", { children: [jsx(InputControl, { label: "\u0418\u041D\u041D*", ...withValidator(field('inn'), innValidator) }), jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('fullName') })] })) : null, jsx(SelectControl, { label: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043E\u0442\u0432\u0435\u0442\u0430*", options: FEEDBACK_METHOD, ...withValidator(field('feedbackMethod'), defaultValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), isQualityService ? (jsxs("div", { children: [jsx(PhoneInputControl, { label: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0442\u0435\u043B\u0435\u0444\u043E\u043D", ...field('secondaryPhone') }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) }), jsx(InputControl, { label: "\u0424\u0418\u041E \u0438\u043B\u0438 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u0432\u0448\u0435\u0433\u043E \u0412\u0430\u0441 \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A\u0430 \u0411\u0430\u043D\u043A\u0430", ...field('bankEmpolee') }), jsx(InputControl, { label: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u044F \u0432 \u0411\u0430\u043D\u043A", ...field('applicationDate') })] })) : (jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) })), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
1867
+ })), ...withValidator(field('addressBranch'), defaultValidator) })) : null, renderUserData(field, true), isLegalEntity ? (jsxs("div", { children: [jsx(InputControl, { label: "\u0418\u041D\u041D*", ...withValidator(field('inn'), innValidator) }), jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('fullName') })] })) : null, jsx(SelectControl, { label: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043E\u0442\u0432\u0435\u0442\u0430*", options: FEEDBACK_METHOD, ...withValidator(field('feedbackMethod'), defaultValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), isQualityService ? (jsxs("div", { children: [jsx(PhoneInputControl, { label: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0442\u0435\u043B\u0435\u0444\u043E\u043D", ...field('secondaryPhone') }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) }), jsx(InputControl, { label: "\u0424\u0418\u041E \u0438\u043B\u0438 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u0432\u0448\u0435\u0433\u043E \u0412\u0430\u0441 \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A\u0430 \u0411\u0430\u043D\u043A\u0430", ...field('bankEmpolee') }), jsx(InputControl, { label: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u044F \u0432 \u0411\u0430\u043D\u043A", ...field('applicationDate') })] })) : (jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) })), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
1833
1868
  });
1834
1869
  const getLegalEntity = (typeFormKey = '', serviceDirectionKey = '') => typeFormKey === 'FEEDBACK_QS' && serviceDirectionKey === 'Юридическое лицо / ИП';
1835
1870
 
@@ -1846,18 +1881,15 @@
1846
1881
  });
1847
1882
 
1848
1883
  const initialFormState$1 = {
1849
- surname: '',
1850
- name: '',
1851
- middleName: '',
1884
+ ...initialUserFormState,
1852
1885
  phone: '',
1853
1886
  email: '',
1854
1887
  birthday: undefined,
1855
- consentDataProcessing: true,
1888
+ consentDataProcessing: false,
1856
1889
  };
1857
1890
  const individualsValidator = objectValidator({
1858
1891
  surname: nameValidator,
1859
1892
  name: nameValidator,
1860
- middleName: nameValidator,
1861
1893
  phone: phoneValidator,
1862
1894
  email: defaultValidator,
1863
1895
  birthday: defaultValidator,
@@ -1966,6 +1998,7 @@
1966
1998
  ApplicationFormIndividuals,
1967
1999
  ApplicationFormFeedback,
1968
2000
  ApplicationFormAntiFraud,
2001
+ ApplicationFormCorruption,
1969
2002
  };
1970
2003
 
1971
2004
  const ResponseNotification = JSX(({ responseType }) => {
@@ -6000,7 +6033,7 @@
6000
6033
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
6001
6034
  }
6002
6035
 
6003
- const packageVersion = "0.14.139";
6036
+ const packageVersion = "0.14.140";
6004
6037
 
6005
6038
  exports.Blocks = Blocks;
6006
6039
  exports.ContentPage = ContentPage;