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

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 (110) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +79 -45
  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/dist/ui-kit/BlockWrapper.js +3 -1
  27. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  28. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  29. package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +3 -5
  30. package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  31. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +8 -1
  32. package/lib/components/ApplicationForm/ApplicationFormCorruption.d.ts +12 -0
  33. package/lib/components/ApplicationForm/ApplicationFormCorruption.js +51 -0
  34. package/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -0
  35. package/lib/components/ApplicationForm/ApplicationFormFeedback.js +3 -5
  36. package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  37. package/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +3 -6
  38. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +3 -5
  39. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  40. package/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  41. package/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  42. package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  43. package/lib/components/ApplicationForm/renderUserData.d.ts +8 -2
  44. package/lib/components/ApplicationForm/renderUserData.js +6 -1
  45. package/lib/components/ApplicationForm/renderUserData.js.map +1 -1
  46. package/lib/ui-kit/BlockWrapper.js +3 -1
  47. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  48. package/mobile/bundle/bundle.umd.js +79 -45
  49. package/mobile/bundle/bundle.umd.min.js +1 -1
  50. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +8 -1
  51. package/mobile/bundle/components/ApplicationForm/ApplicationFormCorruption.d.ts +12 -0
  52. package/mobile/bundle/components/ApplicationForm/ApplicationFormIndividuals.d.ts +3 -6
  53. package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  54. package/mobile/bundle/components/ApplicationForm/renderUserData.d.ts +8 -2
  55. package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -4
  56. package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  57. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +8 -1
  58. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.d.ts +12 -0
  59. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js +53 -0
  60. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -0
  61. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +2 -4
  62. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  63. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.d.ts +3 -6
  64. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +3 -5
  65. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  66. package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  67. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  68. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  69. package/mobile/dist/components/ApplicationForm/renderUserData.d.ts +8 -2
  70. package/mobile/dist/components/ApplicationForm/renderUserData.js +7 -2
  71. package/mobile/dist/components/ApplicationForm/renderUserData.js.map +1 -1
  72. package/mobile/dist/ui-kit/BlockWrapper.js +3 -1
  73. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  74. package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +3 -5
  75. package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  76. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +8 -1
  77. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.d.ts +12 -0
  78. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js +51 -0
  79. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -0
  80. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +3 -5
  81. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  82. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +3 -6
  83. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +3 -5
  84. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  85. package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  86. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  87. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  88. package/mobile/lib/components/ApplicationForm/renderUserData.d.ts +8 -2
  89. package/mobile/lib/components/ApplicationForm/renderUserData.js +6 -1
  90. package/mobile/lib/components/ApplicationForm/renderUserData.js.map +1 -1
  91. package/mobile/lib/ui-kit/BlockWrapper.js +3 -1
  92. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  93. package/mobile/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +3 -5
  94. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +11 -1
  95. package/mobile/src/components/ApplicationForm/ApplicationFormCorruption.tsx +103 -0
  96. package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +3 -5
  97. package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +5 -11
  98. package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  99. package/mobile/src/components/ApplicationForm/renderUserData.tsx +18 -6
  100. package/mobile/src/ui-kit/BlockWrapper.tsx +3 -1
  101. package/package.json +1 -1
  102. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +14 -0
  103. package/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +3 -5
  104. package/src/components/ApplicationForm/ApplicationFormContent.ts +11 -1
  105. package/src/components/ApplicationForm/ApplicationFormCorruption.tsx +103 -0
  106. package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +3 -5
  107. package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +5 -11
  108. package/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  109. package/src/components/ApplicationForm/renderUserData.tsx +18 -6
  110. package/src/ui-kit/BlockWrapper.tsx +3 -1
@@ -278,6 +278,28 @@
278
278
 
279
279
  const defaultEventBus = new EventBus();
280
280
 
281
+ function useRouter() {
282
+ return useRouter._impl();
283
+ }
284
+ useRouter._impl = () => ({
285
+ isReady: false,
286
+ href: globalThis.location?.href || '/',
287
+ pathname: globalThis.location?.pathname || '/',
288
+ query: {},
289
+ push: () => {
290
+ // Do nothing
291
+ },
292
+ replace: () => {
293
+ // Do nothing
294
+ },
295
+ back: () => {
296
+ // Do nothing
297
+ },
298
+ });
299
+ useRouter.setup = (impl) => {
300
+ useRouter._impl = impl;
301
+ };
302
+
281
303
  const style = (...atoms) => atoms
282
304
  .flatMap((_) => _)
283
305
  .filter(Boolean)
@@ -292,12 +314,13 @@
292
314
  };
293
315
  const BlockWrapper = JSX(({ className, version = 'primary', isTheme = true, defaultPadding = 'p-xl', padding, block, tag = 'section', role, children, style: inlineStyles, }) => {
294
316
  const Tag = tag;
317
+ const router = useRouter();
295
318
  const [isHidden, setHidden] = useState(false);
296
319
  useEffect(() => defaultEventBus.subscribe('tab', (event) => {
297
320
  if (!event.groupName || event.groupName === block?.labelGroup) {
298
321
  setHidden(Boolean(event.label && block?.labels?.length && !block.labels.includes(event.label)));
299
322
  }
300
- }), [block]);
323
+ }), [block, router]);
301
324
  const isGroup = version && isTheme;
302
325
  return (jsx(Tag, { className: style('@container font-sans', isGroup ? 'group' : '', blockStyles[version], isHidden ? 'hidden' : '', padding || defaultPadding, className), ...(isGroup ? { 'data-ver': version } : {}), ...(block?.anchor ? { id: block.anchor } : {}), role: role, style: inlineStyles, children: children }));
303
326
  });
@@ -413,28 +436,6 @@
413
436
  : null;
414
437
  }
415
438
 
416
- function useRouter() {
417
- return useRouter._impl();
418
- }
419
- useRouter._impl = () => ({
420
- isReady: false,
421
- href: globalThis.location?.href || '/',
422
- pathname: globalThis.location?.pathname || '/',
423
- query: {},
424
- push: () => {
425
- // Do nothing
426
- },
427
- replace: () => {
428
- // Do nothing
429
- },
430
- back: () => {
431
- // Do nothing
432
- },
433
- });
434
- useRouter.setup = (impl) => {
435
- useRouter._impl = impl;
436
- };
437
-
438
439
  const dirname = (path) => path?.split('/').slice(0, -1).join('/');
439
440
 
440
441
  const isUUID = (src) => {
@@ -1250,7 +1251,7 @@
1250
1251
 
1251
1252
  const renderSubmitButton = (button, className) => (jsx(Button, { className: style('w-full @xl:w-auto', className), type: "submit", children: button?.text ? button.text : 'Отправить заявку' }));
1252
1253
 
1253
- const initialFormState$7 = {
1254
+ const initialFormState$8 = {
1254
1255
  acquiringType: { key: 'Торговый эквайринг' },
1255
1256
  fullName: '',
1256
1257
  inn: '',
@@ -1282,7 +1283,7 @@
1282
1283
  phone: phone.replace(/[^+\d]/g, ''),
1283
1284
  });
1284
1285
  }, [onSubmit]);
1285
- const [, { field, ...formProps }] = useForm(initialFormState$7, handleSubmit);
1286
+ const [, { field, ...formProps }] = useForm(initialFormState$8, handleSubmit);
1286
1287
  const regions = useGetRegions();
1287
1288
  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
1289
  });
@@ -1474,20 +1475,23 @@
1474
1475
 
1475
1476
  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
1477
 
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: 'Предупреждение о мошенничестве' },
1478
+ const initialUserFormState = {
1481
1479
  surname: '',
1482
1480
  name: '',
1483
1481
  middleName: '',
1482
+ };
1483
+ 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] }));
1484
+
1485
+ const initialFormState$7 = {
1486
+ ...initialUserFormState,
1487
+ typeForm: { key: 'ANTIFRAUD', text: 'Предупреждение о мошенничестве' },
1484
1488
  phone: '',
1485
1489
  birthday: undefined,
1486
1490
  isClient: false,
1487
1491
  comment: '',
1488
1492
  consentDataProcessing: false,
1489
1493
  };
1490
- const feedbackValidator = objectValidator({
1494
+ const feedbackValidator$1 = objectValidator({
1491
1495
  typeForm: defaultValidator,
1492
1496
  surname: defaultValidator,
1493
1497
  name: nameValidator,
@@ -1505,17 +1509,17 @@
1505
1509
  typeForm: typeForm.key,
1506
1510
  phone: phone.replace(/[^+\d]/g, ''),
1507
1511
  };
1508
- isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
1512
+ isValidationSuccess(feedbackValidator$1(formState)) && onSubmit(submitData, true);
1509
1513
  }, [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)] }) }) }));
1514
+ const [, { field, ...formProps }] = useForm(initialFormState$7, handleSubmit);
1515
+ 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
1516
  });
1513
1517
 
1514
1518
  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
1519
 
1516
1520
  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
1521
 
1518
- const initialFormState$5 = {
1522
+ const initialFormState$6 = {
1519
1523
  name: '',
1520
1524
  phone: '',
1521
1525
  inn: '',
@@ -1542,11 +1546,45 @@
1542
1546
  phone: phone.replace(/[^+\d]/g, ''),
1543
1547
  });
1544
1548
  }, [onSubmit]);
1545
- const [, { field, ...formProps }] = useForm(initialFormState$5, handleSubmit);
1549
+ const [, { field, ...formProps }] = useForm(initialFormState$6, handleSubmit);
1546
1550
  const regions = useGetRegions();
1547
1551
  return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderRegion$1({ regions, field }), renderBusinessCardDataOrganization(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1548
1552
  });
1549
1553
 
1554
+ const initialFormState$5 = {
1555
+ ...initialUserFormState,
1556
+ typeForm: { key: 'CORRUPTION', text: 'Факты коррупции' },
1557
+ phone: '',
1558
+ email: '',
1559
+ comment: '',
1560
+ consentDataProcessing: false,
1561
+ };
1562
+ const feedbackValidator = objectValidator({
1563
+ typeForm: defaultValidator,
1564
+ surname: defaultValidator,
1565
+ name: nameValidator,
1566
+ region: defaultValidator,
1567
+ phone: phoneValidator,
1568
+ email: defaultValidator,
1569
+ comment: defaultValidator,
1570
+ consentDataProcessing: checkboxValidator,
1571
+ });
1572
+ const ApplicationFormCorruption = JSX(({ button, link, onSubmit }) => {
1573
+ const handleSubmit = useCallback((formState) => {
1574
+ const { typeForm, phone, region, ...usedFields } = formState;
1575
+ const submitData = {
1576
+ ...usedFields,
1577
+ typeForm: typeForm.key,
1578
+ regionBranch: region?.text,
1579
+ phone: phone.replace(/[^+\d]/g, ''),
1580
+ };
1581
+ isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
1582
+ }, [onSubmit]);
1583
+ const [, { field, ...formProps }] = useForm(initialFormState$5, handleSubmit);
1584
+ const branch = useGetRegions();
1585
+ 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)] }) }) }));
1586
+ });
1587
+
1550
1588
  const BRANCHES_URL = '/api/v1/branches';
1551
1589
  const EMPTY_VALUE$3 = [];
1552
1590
  function useBranches(regionCode) {
@@ -1796,11 +1834,9 @@
1796
1834
  };
1797
1835
 
1798
1836
  const initialFormState$2 = {
1837
+ ...initialUserFormState,
1799
1838
  typeForm: { key: 'FEEDBACK', text: 'Задать вопрос по продуктам и услугам' },
1800
1839
  serviceDirection: { key: 'Физическое лицо' },
1801
- surname: '',
1802
- name: '',
1803
- middleName: '',
1804
1840
  birthday: undefined,
1805
1841
  feedbackMethod: { key: 'Телефонный звонок' },
1806
1842
  phone: '',
@@ -1829,7 +1865,7 @@
1829
1865
  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
1866
  key: branchCode,
1831
1867
  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)] }) }) }));
1868
+ })), ...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
1869
  });
1834
1870
  const getLegalEntity = (typeFormKey = '', serviceDirectionKey = '') => typeFormKey === 'FEEDBACK_QS' && serviceDirectionKey === 'Юридическое лицо / ИП';
1835
1871
 
@@ -1846,18 +1882,15 @@
1846
1882
  });
1847
1883
 
1848
1884
  const initialFormState$1 = {
1849
- surname: '',
1850
- name: '',
1851
- middleName: '',
1885
+ ...initialUserFormState,
1852
1886
  phone: '',
1853
1887
  email: '',
1854
1888
  birthday: undefined,
1855
- consentDataProcessing: true,
1889
+ consentDataProcessing: false,
1856
1890
  };
1857
1891
  const individualsValidator = objectValidator({
1858
1892
  surname: nameValidator,
1859
1893
  name: nameValidator,
1860
- middleName: nameValidator,
1861
1894
  phone: phoneValidator,
1862
1895
  email: defaultValidator,
1863
1896
  birthday: defaultValidator,
@@ -1966,6 +1999,7 @@
1966
1999
  ApplicationFormIndividuals,
1967
2000
  ApplicationFormFeedback,
1968
2001
  ApplicationFormAntiFraud,
2002
+ ApplicationFormCorruption,
1969
2003
  };
1970
2004
 
1971
2005
  const ResponseNotification = JSX(({ responseType }) => {
@@ -6000,7 +6034,7 @@
6000
6034
  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
6035
  }
6002
6036
 
6003
- const packageVersion = "0.14.139";
6037
+ const packageVersion = "0.14.141";
6004
6038
 
6005
6039
  exports.Blocks = Blocks;
6006
6040
  exports.ContentPage = ContentPage;