@redneckz/wildless-cms-uni-blocks 0.14.178 → 0.14.180
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.
- package/bin/migration-scripts/0.14.180.js +22 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +29 -36
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationForm.d.ts +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +3 -2
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +8 -1
- package/bundle/components/ApplicationForm/{renderAgreementWithSubmit.d.ts → renderAgreementSubmit.d.ts} +1 -1
- package/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +2 -2
- package/bundle/components/ApplicationFormCustom/getField.d.ts +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.d.ts +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +2 -3
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +3 -2
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js +2 -2
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +2 -3
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +2 -2
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +3 -2
- package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormUltraPremium.js +2 -2
- package/dist/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +8 -1
- package/dist/components/ApplicationForm/Footnote.js +1 -1
- package/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/dist/components/ApplicationForm/{renderAgreementWithSubmit.d.ts → renderAgreementSubmit.d.ts} +1 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.js +13 -0
- package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -0
- package/dist/components/ApplicationFormCustom/ApplicationFormCustom.js +4 -5
- package/dist/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +2 -2
- package/dist/components/ApplicationFormCustom/columnStyle.js +1 -1
- package/dist/components/ApplicationFormCustom/columnStyle.js.map +1 -1
- package/dist/components/ApplicationFormCustom/getField.d.ts +1 -1
- package/dist/components/ApplicationFormCustom/getField.js +9 -9
- package/dist/components/ApplicationFormCustom/getField.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.d.ts +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +2 -3
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +3 -2
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js +2 -2
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +2 -3
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +2 -2
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +4 -3
- package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormUltraPremium.js +2 -2
- package/lib/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +8 -1
- package/lib/components/ApplicationForm/Footnote.js +1 -1
- package/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/lib/components/ApplicationForm/{renderAgreementWithSubmit.d.ts → renderAgreementSubmit.d.ts} +1 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.js +10 -0
- package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -0
- package/lib/components/ApplicationFormCustom/ApplicationFormCustom.fixture.d.ts +1 -0
- package/lib/components/ApplicationFormCustom/ApplicationFormCustom.js +5 -6
- package/lib/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +2 -2
- package/lib/components/ApplicationFormCustom/columnStyle.js +1 -1
- package/lib/components/ApplicationFormCustom/columnStyle.js.map +1 -1
- package/lib/components/ApplicationFormCustom/getField.d.ts +1 -1
- package/lib/components/ApplicationFormCustom/getField.js +9 -9
- package/lib/components/ApplicationFormCustom/getField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +29 -36
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationForm.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +3 -2
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +8 -1
- package/mobile/{dist/components/ApplicationForm/renderAgreementWithSubmit.d.ts → bundle/components/ApplicationForm/renderAgreementSubmit.d.ts} +1 -1
- package/mobile/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +2 -2
- package/mobile/bundle/components/ApplicationFormCustom/getField.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +2 -3
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +3 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +2 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +2 -3
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +2 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +3 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.js +2 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +8 -1
- package/mobile/dist/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/{bundle/components/ApplicationForm/renderAgreementWithSubmit.d.ts → dist/components/ApplicationForm/renderAgreementSubmit.d.ts} +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js +13 -0
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -0
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustom.js +4 -5
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +2 -2
- package/mobile/dist/components/ApplicationFormCustom/columnStyle.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/columnStyle.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getField.d.ts +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getField.js +9 -9
- package/mobile/dist/components/ApplicationFormCustom/getField.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +2 -3
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +3 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +2 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +2 -3
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +2 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +4 -3
- package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.js +2 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +8 -1
- package/mobile/lib/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +5 -0
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js +10 -0
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -0
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustom.js +5 -6
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +2 -2
- package/mobile/lib/components/ApplicationFormCustom/columnStyle.js +1 -1
- package/mobile/lib/components/ApplicationFormCustom/columnStyle.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getField.d.ts +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getField.js +9 -9
- package/mobile/lib/components/ApplicationFormCustom/getField.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +29 -26
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +3 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +2 -9
- package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +4 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormUltraPremium.tsx +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +3 -1
- package/mobile/src/components/ApplicationForm/Footnote.tsx +1 -1
- package/mobile/src/components/ApplicationForm/{renderAgreementWithSubmit.tsx → renderAgreementSubmit.tsx} +13 -8
- package/mobile/src/components/ApplicationFormAntiFraud/ApplicationFormAntiFraud.example.json +3 -3
- package/mobile/src/components/ApplicationFormCorruption/ApplicationFormCorruption.example.json +3 -3
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +2 -2
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.tsx +14 -7
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +2 -2
- package/mobile/src/components/ApplicationFormCustom/columnStyle.tsx +1 -1
- package/mobile/src/components/ApplicationFormCustom/getField.tsx +5 -13
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +4 -2
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +4 -2
- package/src/components/ApplicationForm/ApplicationForm.tsx +29 -26
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormContent.ts +3 -2
- package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +2 -2
- package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +2 -9
- package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +2 -2
- package/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +4 -3
- package/src/components/ApplicationForm/ApplicationFormUltraPremium.tsx +2 -2
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +3 -1
- package/src/components/ApplicationForm/Footnote.tsx +1 -1
- package/src/components/ApplicationForm/{renderAgreementWithSubmit.tsx → renderAgreementSubmit.tsx} +13 -8
- package/src/components/ApplicationFormAntiFraud/ApplicationFormAntiFraud.example.json +3 -3
- package/src/components/ApplicationFormAntiFraud/ApplicationFormAntiFraud.fixture.tsx +3 -2
- package/src/components/ApplicationFormCorruption/ApplicationFormCorruption.example.json +3 -3
- package/src/components/ApplicationFormCorruption/ApplicationFormCorruption.fixture.tsx +3 -2
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +2 -2
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.fixture.tsx +24 -8
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.tsx +14 -7
- package/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +2 -2
- package/src/components/ApplicationFormCustom/columnStyle.tsx +1 -1
- package/src/components/ApplicationFormCustom/getField.tsx +5 -13
- package/dist/components/ApplicationForm/renderAgreementWithSubmit.js +0 -12
- package/dist/components/ApplicationForm/renderAgreementWithSubmit.js.map +0 -1
- package/lib/components/ApplicationForm/renderAgreementWithSubmit.js +0 -9
- package/lib/components/ApplicationForm/renderAgreementWithSubmit.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementWithSubmit.js +0 -12
- package/mobile/dist/components/ApplicationForm/renderAgreementWithSubmit.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementWithSubmit.d.ts +0 -5
- package/mobile/lib/components/ApplicationForm/renderAgreementWithSubmit.js +0 -9
- package/mobile/lib/components/ApplicationForm/renderAgreementWithSubmit.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderAgreementSubmit.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderAgreementSubmit.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,aAAa,GAAG,6CAA6C,CAAC;AACpE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,qBAA2C,EAC3C,IAAgB,EAChB,MAA0B,EAC1B,EAAE,CAAC,CACH,eAAK,SAAS,EAAC,kFAAkF,aAC9F,qBAAqB,CAAC,CAAC,CAAC,CACvB,0BACE,eAAK,SAAS,EAAC,YAAY,aACzB,KAAC,QAAQ,OAAK,qBAAqB,GAAI,EACvC,KAAC,QAAQ,IAAC,IAAI,EAAE,IAAI,GAAI,IACpB,EACL,eAAe,CAAC,aAAa,CAAC,qBAAqB,EAAE,iBAAiB,CAAC,CAAC,KAAK,CAAC,IAC3E,CACP,CAAC,CAAC,CAAC,CACF,KAAC,QAAQ,IAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,GAAI,CAC9C,EACA,kBAAkB,CAAC,MAAM,CAAC,IACvB,CACP,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
4
|
import { LeadServiceAPI } from '../../api/LeadServiceAPI.js';
|
|
@@ -9,8 +9,7 @@ import { objectValidator } from '../../validation/objectValidator.js';
|
|
|
9
9
|
import { isValidationSuccess } from '../../validation/validator.js';
|
|
10
10
|
import { formStyle } from '../ApplicationForm/formStyle.js';
|
|
11
11
|
import { getFormatData } from '../ApplicationForm/getFormatData.js';
|
|
12
|
-
import {
|
|
13
|
-
import { renderSubmitButton } from '../ApplicationForm/renderSubmitButton.js';
|
|
12
|
+
import { renderAgreementSubmit } from '../ApplicationForm/renderAgreementSubmit.js';
|
|
14
13
|
import { columnStyle } from './columnStyle.js';
|
|
15
14
|
import { getField } from './getField.js';
|
|
16
15
|
import { getInitialFormState } from './getInitialFormState.js';
|
|
@@ -30,8 +29,8 @@ export const ApplicationFormCustom = JSX(({ className, title, typeForm = '', inp
|
|
|
30
29
|
return status;
|
|
31
30
|
}, []);
|
|
32
31
|
const [, { field, onSubmit }] = useForm(initialFormState, { onSubmit: handleSubmit });
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
: renderSubmitButton(button)] }) }));
|
|
32
|
+
const fieldName = getConsentDataProcessing(inputs)?.name;
|
|
33
|
+
return (_jsx(ApplicationFormLayout, { className: style(formStyle, className), title: title, responseType: responseType, children: _jsxs("form", { className: columnStyle[formColumns], onSubmit: onSubmit, children: [inputs.map((_, index) => (_jsx("div", { children: getField(_, field) }, String(index)))), renderAgreementSubmit(fieldName ? field('consentDataProcessing') : undefined, link, button)] }) }));
|
|
36
34
|
});
|
|
35
|
+
const getConsentDataProcessing = (inputs) => inputs.find((_) => _?.name === 'consentDataProcessing');
|
|
37
36
|
//# sourceMappingURL=ApplicationFormCustom.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationFormCustom.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/ApplicationFormCustom.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAEjG,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ApplicationFormCustom.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/ApplicationFormCustom.tsx"],"names":[],"mappings":"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"}
|
|
@@ -26,9 +26,9 @@ export declare type FieldDef = Required & LabelProps & {
|
|
|
26
26
|
/**
|
|
27
27
|
* @title Тип формы
|
|
28
28
|
* @required
|
|
29
|
-
* @enumNames ["Факты коррупции", "Эквайринг", "Предупреждение о мошенничестве", "Заявка на бизнес-карту"]
|
|
29
|
+
* @enumNames ["Факты коррупции", "Эквайринг", "Предупреждение о мошенничестве", "Заявка на бизнес-карту", "Самоинкассация", "Заявка для ФЛ"]
|
|
30
30
|
*/
|
|
31
|
-
declare type TypeFormFieldDef = 'CORRUPTION' | 'ACQR' | 'ANTIFRAUD' | 'BCRD';
|
|
31
|
+
declare type TypeFormFieldDef = 'CORRUPTION' | 'ACQR' | 'ANTIFRAUD' | 'BCRD' | 'SELFCOLLECTION' | 'DPST';
|
|
32
32
|
/**
|
|
33
33
|
* @title Количество колнок
|
|
34
34
|
* @enumNames ["Одна", "Две"]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columnStyle.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/columnStyle.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAqC;IAC3D,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"columnStyle.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/columnStyle.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAqC;IAC3D,CAAC,EAAE,6BAA6B;IAChC,CAAC,EAAE,4BAA4B;CAChC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
2
|
import { type FieldDef } from './ApplicationFormCustomContent';
|
|
3
|
-
export declare const getField: (input: FieldDef, field: FormFieldRegisterer<any
|
|
3
|
+
export declare const getField: (input: FieldDef, field: FormFieldRegisterer<any>) => any;
|
|
@@ -7,18 +7,18 @@ import { DatePickerControl } from '../ApplicationForm/DatePickerControl.js';
|
|
|
7
7
|
import { PhoneInputControl } from '../ApplicationForm/PhoneInputControl.js';
|
|
8
8
|
import { RegionField } from '../ApplicationForm/RegionField.js';
|
|
9
9
|
import { defaultValidator, nameValidator, phoneValidator } from '../ApplicationForm/validators.js';
|
|
10
|
-
export const getField = (input, field
|
|
10
|
+
export const getField = (input, field) => {
|
|
11
11
|
const InputsMap = {
|
|
12
|
-
surname: (_jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...getValidation(field('surname'), nameValidator, input?.required) }
|
|
13
|
-
name: (_jsx(InputControl, { label: "\u0418\u043C\u044F", ...getValidation(field('name'), nameValidator, input?.required) }
|
|
14
|
-
middleName: (_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') }
|
|
15
|
-
phone: (_jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...getValidation(field('phone'), phoneValidator, input?.required) }
|
|
16
|
-
email: (_jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...getValidation(field('email'), defaultValidator, input?.required) }
|
|
17
|
-
comment: (_jsx(InputControl, { className: "col-span-2", ...getValidation(field('comment'), defaultValidator, input?.required), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435", isTextarea: true }
|
|
18
|
-
region: _jsx(RegionField, { field: field }
|
|
12
|
+
surname: (_jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...getValidation(field('surname'), nameValidator, input?.required) })),
|
|
13
|
+
name: (_jsx(InputControl, { label: "\u0418\u043C\u044F", ...getValidation(field('name'), nameValidator, input?.required) })),
|
|
14
|
+
middleName: (_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') })),
|
|
15
|
+
phone: (_jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...getValidation(field('phone'), phoneValidator, input?.required) })),
|
|
16
|
+
email: (_jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...getValidation(field('email'), defaultValidator, input?.required) })),
|
|
17
|
+
comment: (_jsx(InputControl, { className: "col-span-2", ...getValidation(field('comment'), defaultValidator, input?.required), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435", isTextarea: true })),
|
|
18
|
+
region: _jsx(RegionField, { field: field }),
|
|
19
19
|
client: (_jsx(CheckboxWithError, { ...field('isClient'), 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"' })),
|
|
20
20
|
birthday: (_jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field('birthday'), defaultValidator) })),
|
|
21
|
-
legend: (_jsx("legend", { className: "w-full col-span-2", children: _jsx(Heading, { title: input.label, headingType: "h6", className: "@xl:text-center" }) }
|
|
21
|
+
legend: (_jsx("legend", { className: "w-full col-span-2", children: _jsx(Heading, { title: input.label, headingType: "h6", className: "@xl:text-center" }) })),
|
|
22
22
|
};
|
|
23
23
|
return InputsMap[input.name];
|
|
24
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/getField.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAGhG,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAe,EAAE,KAA+B,EAAE,
|
|
1
|
+
{"version":3,"file":"getField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/getField.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAGhG,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAe,EAAE,KAA+B,EAAE,EAAE;IAC3E,MAAM,SAAS,GAAG;QAChB,OAAO,EAAE,CACP,KAAC,YAAY,IACX,KAAK,EAAC,4CAAS,KACX,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,CAAC,GACnE,CACH;QACD,IAAI,EAAE,CACJ,KAAC,YAAY,IAAC,KAAK,EAAC,oBAAK,KAAK,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,CAAC,GAAI,CAC/F;QACD,UAAU,EAAE,CACV,KAAC,YAAY,IAAC,KAAK,EAAC,sLAAqC,KAAK,KAAK,CAAC,YAAY,CAAC,GAAI,CACtF;QACD,KAAK,EAAE,CACL,KAAC,iBAAiB,IAChB,KAAK,EAAC,4CAAS,KACX,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,CAAC,GAClE,CACH;QACD,KAAK,EAAE,CACL,KAAC,YAAY,IACX,KAAK,EAAC,mGAAmB,KACrB,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,CAAC,GACpE,CACH;QACD,OAAO,EAAE,CACP,KAAC,YAAY,IACX,SAAS,EAAC,YAAY,KAClB,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,CAAC,EACtE,WAAW,EAAC,iFAAgB,EAC5B,UAAU,EAAE,IAAI,GAChB,CACH;QACD,MAAM,EAAE,KAAC,WAAW,IAAC,KAAK,EAAE,KAAK,GAAI;QACrC,MAAM,EAAE,CACN,KAAC,iBAAiB,OAAK,KAAK,CAAC,UAAU,CAAC,EAAE,IAAI,EAAC,gOAA4C,GAAG,CAC/F;QACD,QAAQ,EAAE,CACR,KAAC,iBAAiB,IAChB,KAAK,EAAC,2EAAe,KACjB,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC,GACtD,CACH;QACD,MAAM,EAAE,CACN,iBAAQ,SAAS,EAAC,mBAAmB,YACnC,KAAC,OAAO,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,iBAAiB,GAAG,GACrE,CACV;KACF,CAAC;IAEF,OAAO,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,KAAsB,EAAE,SAAoB,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE,CACvF,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC"}
|
|
@@ -920,7 +920,7 @@
|
|
|
920
920
|
const isValidationSuccess = (info) => !info?.length;
|
|
921
921
|
const validator$1 = (predicate) => (message) => (_) => predicate(_) ? [] : [message];
|
|
922
922
|
|
|
923
|
-
const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: [jsx(Text, { children: text
|
|
923
|
+
const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: [jsx(Text, { children: text }), link ? (jsx(LinkButton, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target || '', className: "text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
|
|
924
924
|
|
|
925
925
|
const formStyle$1 = 'container space-y-lg';
|
|
926
926
|
const oneColumnFormStyle = 'w-full max-w-xl space-y-s m-auto';
|
|
@@ -1265,7 +1265,7 @@
|
|
|
1265
1265
|
}, [onSubmit]);
|
|
1266
1266
|
const [, { field, ...formProps }] = useForm(initialFormState$9, { onSubmit: handleSubmit });
|
|
1267
1267
|
const isSlideCheckboxes = getSlideCheckboxes(field('acquiringType').value?.key);
|
|
1268
|
-
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderAcquiringRegion({ field, title: 'Вид эквайринга и регион' }), renderAcquiringDataOrganization(field, 'Данные организации'), isSlideCheckboxes ? (jsxs("div", { children: [jsx(SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \
|
|
1268
|
+
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderAcquiringRegion({ field, title: 'Вид эквайринга и регион' }), renderAcquiringDataOrganization(field, 'Данные организации'), isSlideCheckboxes ? (jsxs("div", { children: [jsx(SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043E\u043D\u043B\u0430\u0439\u043D-\u043A\u0430\u0441\u0441\u0443", ...field('onlineCheckout') }), jsx(SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })] })) : null, renderSubmitButton(button), jsx(Footnote, { link: link })] }));
|
|
1269
1269
|
});
|
|
1270
1270
|
const getSlideCheckboxes = (type) => type === 'all' || type === 'trade';
|
|
1271
1271
|
|
|
@@ -1293,14 +1293,14 @@
|
|
|
1293
1293
|
});
|
|
1294
1294
|
|
|
1295
1295
|
const BRANCHES_URL = '/api/v1/branches';
|
|
1296
|
-
const EMPTY_VALUE$
|
|
1296
|
+
const EMPTY_VALUE$3 = [];
|
|
1297
1297
|
function useBranches(regionCode) {
|
|
1298
1298
|
const { data } = useAsyncData(regionCode ? `${BRANCHES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes$1);
|
|
1299
|
-
return data || EMPTY_VALUE$
|
|
1299
|
+
return data || EMPTY_VALUE$3;
|
|
1300
1300
|
}
|
|
1301
1301
|
const fetchSafeBoxes$1 = async (url) => {
|
|
1302
1302
|
const result = await fetchJSON(url, { method: 'GET' });
|
|
1303
|
-
return result || EMPTY_VALUE$
|
|
1303
|
+
return result || EMPTY_VALUE$3;
|
|
1304
1304
|
};
|
|
1305
1305
|
|
|
1306
1306
|
const REGIONS_URL = '/api/v1/premiumBranchesByRegions';
|
|
@@ -1521,7 +1521,8 @@
|
|
|
1521
1521
|
});
|
|
1522
1522
|
const checkboxStyle = (value) => style('rounded border', value ? 'bg-primary-main' : '');
|
|
1523
1523
|
|
|
1524
|
-
const
|
|
1524
|
+
const agreementText = 'Нажимая кнопку, вы подтверждаете согласие с';
|
|
1525
|
+
const renderAgreementSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex col-span-2 gap-m flex-col lg:flex-row w-full justify-between items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, checkboxValidator).error)] })) : (jsx(Footnote, { text: agreementText, link: link })), renderSubmitButton(button)] }));
|
|
1525
1526
|
|
|
1526
1527
|
const formatDate = (date, toTimeStamp = false) => {
|
|
1527
1528
|
if (typeof date === 'string') {
|
|
@@ -1707,22 +1708,14 @@
|
|
|
1707
1708
|
const isLegalEntity = getLegalEntity(field('typeForm').value?.key, field('serviceDirection').value?.key);
|
|
1708
1709
|
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { children: 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(RegionField, { field: field }), isQualityService ? (jsx(AddressBranchField, { field: field, regionKey: formState?.region?.key })) : 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').value || field('secondaryPhone').value === '+7 ('
|
|
1709
1710
|
? field('secondaryPhone')
|
|
1710
|
-
: withValidator(field('secondaryPhone'), 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, { 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 }),
|
|
1711
|
+
: withValidator(field('secondaryPhone'), 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, { 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 }), renderAgreementSubmit(field('consentDataProcessing'), link, button)] }) }) }));
|
|
1711
1712
|
});
|
|
1712
1713
|
const getLegalEntity = (typeFormKey = '', serviceDirectionKey = '') => typeFormKey === 'FEEDBACK_QS' && serviceDirectionKey === 'Юридическое лицо / ИП';
|
|
1713
1714
|
|
|
1714
|
-
const EMPTY_VALUE$3 = {};
|
|
1715
|
-
const DEFAULT_PATH_DIR = '/wcms-resources';
|
|
1716
|
-
function useSWRResource(filename, options = {}) {
|
|
1717
|
-
const { fallback = EMPTY_VALUE$3, pathDir = DEFAULT_PATH_DIR } = options;
|
|
1718
|
-
const { data } = useAsyncData(filename ? `${pathDir}/${filename}.json` : null, fetchJSONUnsafe, { fallback });
|
|
1719
|
-
return data || EMPTY_VALUE$3;
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
1715
|
const ApplicationFormGrantSupport = JSX((props) => {
|
|
1723
|
-
const { button,
|
|
1724
|
-
const { regions } = useSWRResource(sourceBookDir || 'regions-grant-support');
|
|
1716
|
+
const { button, regionSource } = props;
|
|
1725
1717
|
const [region, setRegion] = useState({ key: '' });
|
|
1718
|
+
const regions = regionSource?.regions ?? [];
|
|
1726
1719
|
const buttonStyle = getRegularButtonClasses({
|
|
1727
1720
|
className: 'text-white',
|
|
1728
1721
|
version: button?.version,
|
|
@@ -1756,7 +1749,7 @@
|
|
|
1756
1749
|
}, true);
|
|
1757
1750
|
}, [onSubmit]);
|
|
1758
1751
|
const [, { field, ...formProps }] = useForm(initialFormState$4, { onSubmit: handleSubmit });
|
|
1759
|
-
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [jsxs(ApplicationFieldsetLayout, { children: [jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...withValidator(field('surname'), 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(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...withValidator(field('birthday'), defaultValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('email'), defaultValidator) })] })] }),
|
|
1752
|
+
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [jsxs(ApplicationFieldsetLayout, { children: [jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...withValidator(field('surname'), 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(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...withValidator(field('birthday'), defaultValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('email'), defaultValidator) })] })] }), renderAgreementSubmit(field('consentDataProcessing'), link, button)] }));
|
|
1760
1753
|
});
|
|
1761
1754
|
|
|
1762
1755
|
const initialFormState$3 = {
|
|
@@ -1770,13 +1763,14 @@
|
|
|
1770
1763
|
region: defaultValidator,
|
|
1771
1764
|
fullName: defaultValidator,
|
|
1772
1765
|
phone: phoneValidator,
|
|
1766
|
+
consentDataProcessing: checkboxValidator,
|
|
1773
1767
|
});
|
|
1774
1768
|
const ApplicationFormSelfCollection = JSX(({ button, link, onSubmit }) => {
|
|
1775
1769
|
const handleSubmit = useCallback((formState) => {
|
|
1776
1770
|
isValidationSuccess(feedbackValidator(formState)) && onSubmit(formState, false);
|
|
1777
1771
|
}, [onSubmit]);
|
|
1778
1772
|
const [, { field, ...formProps }] = useForm(initialFormState$3, { onSubmit: handleSubmit });
|
|
1779
|
-
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { children: jsxs("div", { className: oneColumnFormStyle, children: [jsx(InputControl, { label: "\u0424\u0418\u041E", ...withValidator(field('fullName'), defaultValidator) }), jsx(RegionField, { field: field }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }),
|
|
1773
|
+
return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { children: jsxs("div", { className: oneColumnFormStyle, children: [jsx(InputControl, { label: "\u0424\u0418\u041E", ...withValidator(field('fullName'), defaultValidator) }), jsx(RegionField, { field: field }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), renderAgreementSubmit(field('consentDataProcessing'), link, button)] }) }) }));
|
|
1780
1774
|
});
|
|
1781
1775
|
|
|
1782
1776
|
const RegionPremiumField = JSX(({ field }) => {
|
|
@@ -1816,7 +1810,7 @@
|
|
|
1816
1810
|
}, [onSubmit]);
|
|
1817
1811
|
const [formState, { field, ...formProps }] = useForm({ ...initialFormState$2, typeForm: getDefaultFormType(defaultType) }, { onSubmit: handleSubmit });
|
|
1818
1812
|
const regionKey = formState?.region?.key;
|
|
1819
|
-
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [jsxs(ApplicationFieldsetLayout, { title: "\u0412\u0430\u0448\u0438 \u0434\u0430\u043D\u043D\u044B\u0435", children: [jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...withValidator(field('surname'), 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(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('email'), defaultValidator) })] }), jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), jsx(SelectControl, { label: "\u0422\u0438\u043F \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", options: SERVICE_TYPES, ...withValidator(field('typeForm'), defaultValidator) })] })] }), jsxs(ApplicationFieldsetLayout, { title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", children: [jsx("div", { className: formChildrenStyle, children: jsx(RegionPremiumField, { field: field }) }), jsx("div", { className: formChildrenStyle, children: jsx(AddressBranchField, { field: field, regionKey: regionKey, isPremium: true }) })] }), jsx(InputControl, { ...field('comment'), placeholder: "\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439, \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0438 \u043F\u0440\u043E\u0447\u0435\u0435", isTextarea: true }),
|
|
1813
|
+
return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [jsxs(ApplicationFieldsetLayout, { title: "\u0412\u0430\u0448\u0438 \u0434\u0430\u043D\u043D\u044B\u0435", children: [jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...withValidator(field('surname'), 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(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('email'), defaultValidator) })] }), jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), jsx(SelectControl, { label: "\u0422\u0438\u043F \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", options: SERVICE_TYPES, ...withValidator(field('typeForm'), defaultValidator) })] })] }), jsxs(ApplicationFieldsetLayout, { title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", children: [jsx("div", { className: formChildrenStyle, children: jsx(RegionPremiumField, { field: field }) }), jsx("div", { className: formChildrenStyle, children: jsx(AddressBranchField, { field: field, regionKey: regionKey, isPremium: true }) })] }), jsx(InputControl, { ...field('comment'), placeholder: "\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439, \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0438 \u043F\u0440\u043E\u0447\u0435\u0435", isTextarea: true }), renderAgreementSubmit(field('consentDataProcessing'), link, button)] }));
|
|
1820
1814
|
});
|
|
1821
1815
|
const getDefaultFormType = (defaultType) => SERVICE_TYPES.find((_) => _.key === defaultType);
|
|
1822
1816
|
|
|
@@ -1898,8 +1892,7 @@
|
|
|
1898
1892
|
};
|
|
1899
1893
|
|
|
1900
1894
|
const API$1 = LeadServiceAPI();
|
|
1901
|
-
const ApplicationForm =
|
|
1902
|
-
const { className, formBlock, ...rest } = props;
|
|
1895
|
+
const ApplicationForm = UniBlock(({ className, formBlock, ...rest }) => {
|
|
1903
1896
|
const [responseType, setResponseType] = useState('');
|
|
1904
1897
|
const handleSubmit = useCallback(async (data, isIndividualType = false) => {
|
|
1905
1898
|
const formatData = getFormatData$1(data);
|
|
@@ -1927,24 +1920,24 @@
|
|
|
1927
1920
|
const getFormatData = (data) => Object.fromEntries(Object.entries(data).map(([k, v]) => [k, (v?.region ? v?.text : v?.key) || v]));
|
|
1928
1921
|
|
|
1929
1922
|
const columnStyle = {
|
|
1930
|
-
1: 'space-y-s max-w-
|
|
1923
|
+
1: 'space-y-s max-w-2xl mx-auto',
|
|
1931
1924
|
2: 'grid @xl:grid-cols-2 gap-s',
|
|
1932
1925
|
};
|
|
1933
1926
|
|
|
1934
1927
|
const CheckboxWithError = JSX(({ className, text, value, key, disabled, error, onChange }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(Checkbox, { text: text, value: value, disabled: disabled, onChange: onChange }, key), renderErrorText(error)] })));
|
|
1935
1928
|
|
|
1936
|
-
const getField = (input, field
|
|
1929
|
+
const getField = (input, field) => {
|
|
1937
1930
|
const InputsMap = {
|
|
1938
|
-
surname: (jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...getValidation(field('surname'), nameValidator, input?.required) }
|
|
1939
|
-
name: (jsx(InputControl, { label: "\u0418\u043C\u044F", ...getValidation(field('name'), nameValidator, input?.required) }
|
|
1940
|
-
middleName: (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') }
|
|
1941
|
-
phone: (jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...getValidation(field('phone'), phoneValidator, input?.required) }
|
|
1942
|
-
email: (jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...getValidation(field('email'), defaultValidator, input?.required) }
|
|
1943
|
-
comment: (jsx(InputControl, { className: "col-span-2", ...getValidation(field('comment'), defaultValidator, input?.required), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435", isTextarea: true }
|
|
1944
|
-
region: jsx(RegionField, { field: field }
|
|
1931
|
+
surname: (jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...getValidation(field('surname'), nameValidator, input?.required) })),
|
|
1932
|
+
name: (jsx(InputControl, { label: "\u0418\u043C\u044F", ...getValidation(field('name'), nameValidator, input?.required) })),
|
|
1933
|
+
middleName: (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') })),
|
|
1934
|
+
phone: (jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...getValidation(field('phone'), phoneValidator, input?.required) })),
|
|
1935
|
+
email: (jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...getValidation(field('email'), defaultValidator, input?.required) })),
|
|
1936
|
+
comment: (jsx(InputControl, { className: "col-span-2", ...getValidation(field('comment'), defaultValidator, input?.required), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435", isTextarea: true })),
|
|
1937
|
+
region: jsx(RegionField, { field: field }),
|
|
1945
1938
|
client: (jsx(CheckboxWithError, { ...field('isClient'), 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"' })),
|
|
1946
1939
|
birthday: (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field('birthday'), defaultValidator) })),
|
|
1947
|
-
legend: (jsx("legend", { className: "w-full col-span-2", children: jsx(Heading, { title: input.label, headingType: "h6", className: "@xl:text-center" }) }
|
|
1940
|
+
legend: (jsx("legend", { className: "w-full col-span-2", children: jsx(Heading, { title: input.label, headingType: "h6", className: "@xl:text-center" }) })),
|
|
1948
1941
|
};
|
|
1949
1942
|
return InputsMap[input.name];
|
|
1950
1943
|
};
|
|
@@ -1998,10 +1991,10 @@
|
|
|
1998
1991
|
return status;
|
|
1999
1992
|
}, []);
|
|
2000
1993
|
const [, { field, onSubmit }] = useForm(initialFormState, { onSubmit: handleSubmit });
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
: renderSubmitButton(button)] }) }));
|
|
1994
|
+
const fieldName = getConsentDataProcessing(inputs)?.name;
|
|
1995
|
+
return (jsx(ApplicationFormLayout, { className: style(formStyle$1, className), title: title, responseType: responseType, children: jsxs("form", { className: columnStyle[formColumns], onSubmit: onSubmit, children: [inputs.map((_, index) => (jsx("div", { children: getField(_, field) }, String(index)))), renderAgreementSubmit(fieldName ? field('consentDataProcessing') : undefined, link, button)] }) }));
|
|
2004
1996
|
});
|
|
1997
|
+
const getConsentDataProcessing = (inputs) => inputs.find((_) => _?.name === 'consentDataProcessing');
|
|
2005
1998
|
|
|
2006
1999
|
const AlignStyles = 'text-left';
|
|
2007
2000
|
|
|
@@ -5632,7 +5625,7 @@
|
|
|
5632
5625
|
|
|
5633
5626
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
5634
5627
|
|
|
5635
|
-
const packageVersion = "0.14.
|
|
5628
|
+
const packageVersion = "0.14.179";
|
|
5636
5629
|
|
|
5637
5630
|
exports.Blocks = Blocks;
|
|
5638
5631
|
exports.ContentPage = ContentPage;
|