@redneckz/wildless-cms-uni-blocks 0.14.757 → 0.14.759
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/bundle/api/RetailAPI/getUserTasks.d.ts +41 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +41 -7
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/getInitialFormState.d.ts +1 -1
- package/bundle/ui-kit/FormField/Fields/ApplierTypeField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/RepresentativeNameField.d.ts +2 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
- package/dist/api/RetailAPI/getUserTasks.d.ts +41 -0
- package/dist/api/RetailAPI/getUserTasks.js +15 -0
- package/dist/api/RetailAPI/getUserTasks.js.map +1 -0
- package/dist/components/ApplicationForm/getFormatData.js +1 -1
- package/dist/components/ApplicationForm/getFormatData.js.map +1 -1
- package/dist/components/ApplicationForm/getInitialFormState.d.ts +1 -1
- package/dist/ui-kit/FormField/Fields/ApplierTypeField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ApplierTypeField.js +17 -0
- package/dist/ui-kit/FormField/Fields/ApplierTypeField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/BirthdayField.js +1 -1
- package/dist/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/RegionField.js +1 -1
- package/dist/ui-kit/FormField/Fields/RegionField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/RepresentativeNameField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/RepresentativeNameField.js +7 -0
- package/dist/ui-kit/FormField/Fields/RepresentativeNameField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/SufferedFromField.js +20 -2
- package/dist/ui-kit/FormField/Fields/SufferedFromField.js.map +1 -1
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/getField.js +4 -0
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +3 -2
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/api/RetailAPI/getUserTasks.d.ts +41 -0
- package/lib/api/RetailAPI/getUserTasks.js +12 -0
- package/lib/api/RetailAPI/getUserTasks.js.map +1 -0
- package/lib/components/ApplicationForm/getFormatData.js +1 -1
- package/lib/components/ApplicationForm/getFormatData.js.map +1 -1
- package/lib/components/ApplicationForm/getInitialFormState.d.ts +1 -1
- package/lib/ui-kit/FormField/Fields/ApplierTypeField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ApplierTypeField.js +15 -0
- package/lib/ui-kit/FormField/Fields/ApplierTypeField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/BirthdayField.js +1 -1
- package/lib/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/RegionField.js +1 -1
- package/lib/ui-kit/FormField/Fields/RegionField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/RepresentativeNameField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/RepresentativeNameField.js +5 -0
- package/lib/ui-kit/FormField/Fields/RepresentativeNameField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/SufferedFromField.js +20 -2
- package/lib/ui-kit/FormField/Fields/SufferedFromField.js.map +1 -1
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/getField.js +4 -0
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +3 -2
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/getUserTasks.d.ts +41 -0
- package/mobile/bundle/bundle.umd.js +41 -7
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/getInitialFormState.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/Fields/ApplierTypeField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/RepresentativeNameField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/getUserTasks.d.ts +41 -0
- package/mobile/dist/api/RetailAPI/getUserTasks.js +15 -0
- package/mobile/dist/api/RetailAPI/getUserTasks.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/getFormatData.js +1 -1
- package/mobile/dist/components/ApplicationForm/getFormatData.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/getInitialFormState.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ApplierTypeField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ApplierTypeField.js +17 -0
- package/mobile/dist/ui-kit/FormField/Fields/ApplierTypeField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/RegionField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/RegionField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/RepresentativeNameField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/RepresentativeNameField.js +7 -0
- package/mobile/dist/ui-kit/FormField/Fields/RepresentativeNameField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/SufferedFromField.js +20 -2
- package/mobile/dist/ui-kit/FormField/Fields/SufferedFromField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +4 -0
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +3 -2
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getUserTasks.d.ts +41 -0
- package/mobile/lib/api/RetailAPI/getUserTasks.js +12 -0
- package/mobile/lib/api/RetailAPI/getUserTasks.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/getFormatData.js +1 -1
- package/mobile/lib/components/ApplicationForm/getFormatData.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/getInitialFormState.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ApplierTypeField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ApplierTypeField.js +15 -0
- package/mobile/lib/ui-kit/FormField/Fields/ApplierTypeField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/RegionField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/RegionField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/RepresentativeNameField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/RepresentativeNameField.js +5 -0
- package/mobile/lib/ui-kit/FormField/Fields/RepresentativeNameField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/SufferedFromField.js +20 -2
- package/mobile/lib/ui-kit/FormField/Fields/SufferedFromField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +4 -0
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +3 -2
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/src/api/RetailAPI/getUserTasks.ts +50 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +20 -3
- package/mobile/src/components/ApplicationForm/getFormatData.tsx +1 -1
- package/mobile/src/components/ApplicationForm/getInitialFormState.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/ApplierTypeField.tsx +24 -0
- package/mobile/src/ui-kit/FormField/Fields/BirthdayField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/RegionField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/RepresentativeNameField.tsx +7 -0
- package/mobile/src/ui-kit/FormField/Fields/SufferedFromField.tsx +27 -2
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +3 -0
- package/mobile/src/ui-kit/FormField/getField.tsx +4 -0
- package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +21 -9
- package/package.json +1 -1
- package/src/api/RetailAPI/getUserTasks.ts +50 -0
- package/src/components/ApplicationForm/ApplicationForm.example.json +20 -3
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +8 -8
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +8 -8
- package/src/components/ApplicationForm/getFormatData.tsx +1 -1
- package/src/components/ApplicationForm/getInitialFormState.tsx +1 -1
- package/src/ui-kit/FormField/Fields/ApplierTypeField.tsx +24 -0
- package/src/ui-kit/FormField/Fields/BirthdayField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/RegionField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/RepresentativeNameField.tsx +7 -0
- package/src/ui-kit/FormField/Fields/SufferedFromField.tsx +27 -2
- package/src/ui-kit/FormField/NameFieldDef.ts +3 -0
- package/src/ui-kit/FormField/getField.tsx +4 -0
- package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +21 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getField.js","sourceRoot":"","sources":["../../../src/ui-kit/FormField/getField.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE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AAG,EAAE,QAAQ;IACb,OAAO,EAAE,YAAY;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GACnB,CACE,KAA+B,EAC/B,MAA4B,EAC5B,iBAAwC,EAAE,EAC1C,EAAE,CACJ,CAAC,KAAQ,EAAE,CAAS,EAAE,EAAE;IACtB,MAAM,cAAc,GAAG;QACrB,GAAG,SAAS;QACZ,GAAG,cAAc;KAClB,CAAC;IAEF,MAAM,SAAS,GAAG,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAErD,OAAO,iBAAiB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,CACxD,wBACE,KAAC,SAAS,IAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAI,IADjD,CAAC,CAEL,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
/* eslint-disable max-lines-per-function */
|
|
2
3
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
4
|
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
5
|
import { sendCode } from '../../api/RetailAPI/sendCode.js';
|
|
@@ -15,7 +16,7 @@ import { Timer } from '../TimerCircle/Timer.js';
|
|
|
15
16
|
import { InputCode } from './InputCode.js';
|
|
16
17
|
import { SubmitButton } from './SubmitButton.js';
|
|
17
18
|
import { useVerifyPhoneDialogSubmit } from './useVerifyPhoneDialogSubmit.js';
|
|
18
|
-
export const VerifyPhoneDialog = JSX(({ phone, code = true, codeLength = 4, consents, onSuccess = noop, onClose = noop }) => {
|
|
19
|
+
export const VerifyPhoneDialog = JSX(({ phone, code = true, withDescription = true, codeLength = 4, consents, onSuccess = noop, onClose = noop, }) => {
|
|
19
20
|
const [values, setValues] = useState(Array(codeLength).fill(''));
|
|
20
21
|
const { handleSubmit, hasError, errorText, isLoading, timeNextReq, isSubmitButtonDisabled, setTimeNextReq, setIsTimerStarted, setAttempts, } = useVerifyPhoneDialogSubmit({ values, onSuccess });
|
|
21
22
|
const captchaDialog = useDialog(CaptchaDialog);
|
|
@@ -37,7 +38,7 @@ export const VerifyPhoneDialog = JSX(({ phone, code = true, codeLength = 4, cons
|
|
|
37
38
|
useEffect(() => {
|
|
38
39
|
handleSendCode();
|
|
39
40
|
}, []);
|
|
40
|
-
return (_jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: _jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [_jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (_jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText(timeNextReq, setTimeNextReq, handleSendCode), _jsxs(RichText, { itemSize: "list-s", children: [_jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), _jsx("ul", { children: consents?.map((_, i) => (_jsx("li", { children: _ }, `${_}-${i}`))) })] }), renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? _jsx(Loader, { blur: false }) : null] }) }));
|
|
41
|
+
return (_jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: _jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [_jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (_jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText(timeNextReq, setTimeNextReq, handleSendCode), withDescription ? (_jsxs(RichText, { itemSize: "list-s", children: [_jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), _jsx("ul", { children: consents?.map((_, i) => (_jsx("li", { children: _ }, `${_}-${i}`))) })] })) : null, renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? _jsx(Loader, { blur: false }) : null] }) }));
|
|
41
42
|
});
|
|
42
43
|
const renderNextButton = (isDisabled, onClick) => (_jsx(SubmitButton, { text: "\u0414\u0430\u043B\u0435\u0435", isDisabled: isDisabled, onClick: onClick }));
|
|
43
44
|
const renderText = (timeNextReq, setTimeNextReq, handleSendCode) => timeNextReq ? (_jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", _jsx(Timer, { className: "text-base ml-1", time: timeNextReq, setTime: setTimeNextReq })] })) : (_jsx(LinkButton, { onClick: handleSendCode, className: "text-primary-main", children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyPhoneDialog.js","sourceRoot":"","sources":["../../../src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"VerifyPhoneDialog.js","sourceRoot":"","sources":["../../../src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC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
6
|
+
DEBIT = 'DEBIT',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type UserTask = {
|
|
10
|
+
classCard?: {
|
|
11
|
+
key: string;
|
|
12
|
+
value: string;
|
|
13
|
+
};
|
|
14
|
+
createdDate?: string;
|
|
15
|
+
creditPeriod?: number;
|
|
16
|
+
deliveryAddress?: string;
|
|
17
|
+
extId?: string;
|
|
18
|
+
id?: number;
|
|
19
|
+
loanAmount?: number;
|
|
20
|
+
officeAddress?: string;
|
|
21
|
+
programId?: number;
|
|
22
|
+
programName?: string;
|
|
23
|
+
statusCd?: {
|
|
24
|
+
key: string;
|
|
25
|
+
value: string;
|
|
26
|
+
};
|
|
27
|
+
statusDescription?: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
type AllTasks = {
|
|
31
|
+
productTypeCd: {
|
|
32
|
+
key: EProductType;
|
|
33
|
+
value: string;
|
|
34
|
+
};
|
|
35
|
+
tasks: Array<UserTask>;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type GetUserTasksResponse = {
|
|
39
|
+
allTasks?: Array<AllTasks>;
|
|
40
|
+
user?: {
|
|
41
|
+
name: string;
|
|
42
|
+
midname: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const getUserTasks = async (): Promise<GetUserTasksResponse | undefined> => {
|
|
47
|
+
const res = await fetchRetailJSON<GetUserTasksResponse>('/user-data/getUserTasks', 'GET');
|
|
48
|
+
|
|
49
|
+
return res || undefined;
|
|
50
|
+
};
|
|
@@ -1109,23 +1109,40 @@
|
|
|
1109
1109
|
{
|
|
1110
1110
|
"name": "fullName",
|
|
1111
1111
|
"required": true,
|
|
1112
|
-
"label": "ФИО
|
|
1112
|
+
"label": "ФИО клиента"
|
|
1113
1113
|
},
|
|
1114
1114
|
{
|
|
1115
1115
|
"name": "birthday",
|
|
1116
|
-
"required": true
|
|
1116
|
+
"required": true,
|
|
1117
|
+
"label": "Дата рождения клиента"
|
|
1117
1118
|
},
|
|
1118
1119
|
{
|
|
1119
|
-
"name": "
|
|
1120
|
+
"name": "applierType",
|
|
1120
1121
|
"required": true
|
|
1121
1122
|
},
|
|
1123
|
+
{
|
|
1124
|
+
"name": "representativeName"
|
|
1125
|
+
},
|
|
1122
1126
|
{
|
|
1123
1127
|
"name": "sufferedFrom",
|
|
1124
1128
|
"required": true
|
|
1125
1129
|
},
|
|
1130
|
+
{
|
|
1131
|
+
"name": "region",
|
|
1132
|
+
"required": true,
|
|
1133
|
+
"label": "Регион обслуживания кредита"
|
|
1134
|
+
},
|
|
1126
1135
|
{
|
|
1127
1136
|
"name": "situationDescription",
|
|
1128
1137
|
"required": true
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"name": "phone",
|
|
1141
|
+
"required": true
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"name": "email",
|
|
1145
|
+
"required": true
|
|
1129
1146
|
}
|
|
1130
1147
|
]
|
|
1131
1148
|
},
|
|
@@ -29,7 +29,7 @@ export const getFormatData = (data: FormState): Record<string, any> => {
|
|
|
29
29
|
...(inn && { inn }),
|
|
30
30
|
...(partnerComments ? { partnerComments } : {}),
|
|
31
31
|
...(serviceType ? { typeForm: serviceType } : {}),
|
|
32
|
-
...getIncidentComment(sufferedFrom, situationDescription),
|
|
32
|
+
...getIncidentComment(sufferedFrom, situationDescription?.text),
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
return Object.fromEntries(
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { type Option } from '../../Select/Option';
|
|
3
|
+
import { SelectControl } from '../../Select/SelectControl';
|
|
4
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
|
+
|
|
6
|
+
const APPLIER_TYPES: Option[] = [
|
|
7
|
+
{
|
|
8
|
+
key: 'client',
|
|
9
|
+
text: 'Клиент',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
key: 'representative',
|
|
13
|
+
text: 'Представитель клиента',
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
export const ApplierTypeField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
18
|
+
<SelectControl
|
|
19
|
+
label="Тип обратившегося"
|
|
20
|
+
{...input}
|
|
21
|
+
options={APPLIER_TYPES}
|
|
22
|
+
{...field('applierType')}
|
|
23
|
+
/>
|
|
24
|
+
));
|
|
@@ -3,5 +3,5 @@ import { DatePickerControl } from '../../DatePicker/DatePickerControl';
|
|
|
3
3
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
4
|
|
|
5
5
|
export const BirthdayField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
6
|
-
<DatePickerControl label=
|
|
6
|
+
<DatePickerControl label={input?.label || 'Дата рождения'} {...field(input?.name ?? '')} />
|
|
7
7
|
));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputControl } from '../../Input/InputControl';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
|
|
5
|
+
export const RepresentativeNameField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
6
|
+
<InputControl label="ФИО представителя" {...input} {...field('representativeName')} />
|
|
7
|
+
));
|
|
@@ -1,7 +1,32 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
2
|
+
import { type Option } from '../../Select/Option';
|
|
3
|
+
import { SelectControl } from '../../Select/SelectControl';
|
|
3
4
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
5
|
|
|
6
|
+
const SUFFERED_FROM_TYPES: Option[] = [
|
|
7
|
+
{
|
|
8
|
+
key: 'blg',
|
|
9
|
+
text: 'Белгородской области',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
key: 'bshk',
|
|
13
|
+
text: 'Республике Башкортостан',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
key: 'krsk',
|
|
17
|
+
text: 'Курской области',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
key: 'chs',
|
|
21
|
+
text: 'От стихийного бедствия ЧС',
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
|
|
5
25
|
export const SufferedFromField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
6
|
-
<
|
|
26
|
+
<SelectControl
|
|
27
|
+
label="Пострадал в"
|
|
28
|
+
{...input}
|
|
29
|
+
options={SUFFERED_FROM_TYPES}
|
|
30
|
+
{...field('sufferedFrom')}
|
|
31
|
+
/>
|
|
7
32
|
));
|
|
@@ -8,6 +8,7 @@ import { AcquiringField } from './Fields/AcquiringField';
|
|
|
8
8
|
import { AddressBranchField } from './Fields/AddressBranchField';
|
|
9
9
|
import { AmountField } from './Fields/AmountField';
|
|
10
10
|
import { AnnualRevenueField } from './Fields/AnnualRevenueField';
|
|
11
|
+
import { ApplierTypeField } from './Fields/ApplierTypeField';
|
|
11
12
|
import { BankEmpoleeField } from './Fields/BankEmpoleeField';
|
|
12
13
|
import { BirthdayField } from './Fields/BirthdayField';
|
|
13
14
|
import { CollectionCountField } from './Fields/CollectionCountField';
|
|
@@ -29,6 +30,7 @@ import { PosTerminalField } from './Fields/PosTerminalField';
|
|
|
29
30
|
import { ProductField } from './Fields/ProductField';
|
|
30
31
|
import { RegionField } from './Fields/RegionField';
|
|
31
32
|
import { RegionPremiumField } from './Fields/RegionPremiumField';
|
|
33
|
+
import { RepresentativeNameField } from './Fields/RepresentativeNameField';
|
|
32
34
|
import { SecondaryPhoneField } from './Fields/SecondaryPhoneField';
|
|
33
35
|
import { ServiceDirectionField } from './Fields/ServiceDirectionField';
|
|
34
36
|
import { SituationDescriptionField } from './Fields/SituationDescriptionField';
|
|
@@ -77,6 +79,8 @@ const InputsMap = {
|
|
|
77
79
|
consentToReceiveMaterials: ConsentToReceiveMaterialsField,
|
|
78
80
|
sufferedFrom: SufferedFromField,
|
|
79
81
|
situationDescription: SituationDescriptionField,
|
|
82
|
+
representativeName: RepresentativeNameField,
|
|
83
|
+
applierType: ApplierTypeField,
|
|
80
84
|
surname: SurnameField,
|
|
81
85
|
name: NameField,
|
|
82
86
|
middleName: MiddleNameField,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable max-lines-per-function */
|
|
1
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
3
|
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
4
|
import { sendCode } from '../../api/RetailAPI/sendCode';
|
|
@@ -18,6 +19,7 @@ import { useVerifyPhoneDialogSubmit } from './useVerifyPhoneDialogSubmit';
|
|
|
18
19
|
export interface VerifyPhoneDialogProps {
|
|
19
20
|
phone: string;
|
|
20
21
|
code?: boolean;
|
|
22
|
+
withDescription?: boolean;
|
|
21
23
|
codeLength?: number;
|
|
22
24
|
consents?: string[];
|
|
23
25
|
onSuccess?: (smsCode?: string) => void;
|
|
@@ -25,7 +27,15 @@ export interface VerifyPhoneDialogProps {
|
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
|
|
28
|
-
({
|
|
30
|
+
({
|
|
31
|
+
phone,
|
|
32
|
+
code = true,
|
|
33
|
+
withDescription = true,
|
|
34
|
+
codeLength = 4,
|
|
35
|
+
consents,
|
|
36
|
+
onSuccess = noop,
|
|
37
|
+
onClose = noop,
|
|
38
|
+
}) => {
|
|
29
39
|
const [values, setValues] = useState(Array(codeLength).fill(''));
|
|
30
40
|
|
|
31
41
|
const {
|
|
@@ -87,14 +97,16 @@ export const VerifyPhoneDialog = JSX<VerifyPhoneDialogProps>(
|
|
|
87
97
|
) : null}
|
|
88
98
|
{renderText(timeNextReq, setTimeNextReq, handleSendCode)}
|
|
89
99
|
|
|
90
|
-
|
|
91
|
-
<
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
100
|
+
{withDescription ? (
|
|
101
|
+
<RichText itemSize="list-s">
|
|
102
|
+
<span>Вводя код, я подтверждаю, что ознакомлен и подписываю: </span>
|
|
103
|
+
<ul>
|
|
104
|
+
{consents?.map((_, i) => (
|
|
105
|
+
<li key={`${_}-${i}`}>{_}</li>
|
|
106
|
+
))}
|
|
107
|
+
</ul>
|
|
108
|
+
</RichText>
|
|
109
|
+
) : null}
|
|
98
110
|
|
|
99
111
|
{renderNextButton(isSubmitButtonDisabled, handleSubmit)}
|
|
100
112
|
{isLoading ? <Loader blur={false} /> : null}
|
package/package.json
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { fetchRetailJSON } from './doRequest';
|
|
2
|
+
|
|
3
|
+
export enum EProductType {
|
|
4
|
+
CASH = 'CASH',
|
|
5
|
+
CARD = 'CARD',
|
|
6
|
+
DEBIT = 'DEBIT',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type UserTask = {
|
|
10
|
+
classCard?: {
|
|
11
|
+
key: string;
|
|
12
|
+
value: string;
|
|
13
|
+
};
|
|
14
|
+
createdDate?: string;
|
|
15
|
+
creditPeriod?: number;
|
|
16
|
+
deliveryAddress?: string;
|
|
17
|
+
extId?: string;
|
|
18
|
+
id?: number;
|
|
19
|
+
loanAmount?: number;
|
|
20
|
+
officeAddress?: string;
|
|
21
|
+
programId?: number;
|
|
22
|
+
programName?: string;
|
|
23
|
+
statusCd?: {
|
|
24
|
+
key: string;
|
|
25
|
+
value: string;
|
|
26
|
+
};
|
|
27
|
+
statusDescription?: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
type AllTasks = {
|
|
31
|
+
productTypeCd: {
|
|
32
|
+
key: EProductType;
|
|
33
|
+
value: string;
|
|
34
|
+
};
|
|
35
|
+
tasks: Array<UserTask>;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type GetUserTasksResponse = {
|
|
39
|
+
allTasks?: Array<AllTasks>;
|
|
40
|
+
user?: {
|
|
41
|
+
name: string;
|
|
42
|
+
midname: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const getUserTasks = async (): Promise<GetUserTasksResponse | undefined> => {
|
|
47
|
+
const res = await fetchRetailJSON<GetUserTasksResponse>('/user-data/getUserTasks', 'GET');
|
|
48
|
+
|
|
49
|
+
return res || undefined;
|
|
50
|
+
};
|
|
@@ -1109,23 +1109,40 @@
|
|
|
1109
1109
|
{
|
|
1110
1110
|
"name": "fullName",
|
|
1111
1111
|
"required": true,
|
|
1112
|
-
"label": "ФИО
|
|
1112
|
+
"label": "ФИО клиента"
|
|
1113
1113
|
},
|
|
1114
1114
|
{
|
|
1115
1115
|
"name": "birthday",
|
|
1116
|
-
"required": true
|
|
1116
|
+
"required": true,
|
|
1117
|
+
"label": "Дата рождения клиента"
|
|
1117
1118
|
},
|
|
1118
1119
|
{
|
|
1119
|
-
"name": "
|
|
1120
|
+
"name": "applierType",
|
|
1120
1121
|
"required": true
|
|
1121
1122
|
},
|
|
1123
|
+
{
|
|
1124
|
+
"name": "representativeName"
|
|
1125
|
+
},
|
|
1122
1126
|
{
|
|
1123
1127
|
"name": "sufferedFrom",
|
|
1124
1128
|
"required": true
|
|
1125
1129
|
},
|
|
1130
|
+
{
|
|
1131
|
+
"name": "region",
|
|
1132
|
+
"required": true,
|
|
1133
|
+
"label": "Регион обслуживания кредита"
|
|
1134
|
+
},
|
|
1126
1135
|
{
|
|
1127
1136
|
"name": "situationDescription",
|
|
1128
1137
|
"required": true
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"name": "phone",
|
|
1141
|
+
"required": true
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"name": "email",
|
|
1145
|
+
"required": true
|
|
1129
1146
|
}
|
|
1130
1147
|
]
|
|
1131
1148
|
},
|
|
@@ -682,21 +682,21 @@ export default {
|
|
|
682
682
|
<div className="container grid grid-cols-12">
|
|
683
683
|
<ApplicationForm
|
|
684
684
|
className="col-span-12"
|
|
685
|
-
title="Меры поддержки"
|
|
685
|
+
title="Меры поддержки жителей пострадавших населенных пунктов территорий Курской, Брянской и Белгородской областей"
|
|
686
686
|
typeForm="SUPPORT"
|
|
687
687
|
endpoint="lead"
|
|
688
688
|
sections={[
|
|
689
689
|
{
|
|
690
690
|
inputs: [
|
|
691
|
-
{
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
},
|
|
696
|
-
{ name: 'birthday', required: true },
|
|
697
|
-
{ name: 'phone', required: true },
|
|
691
|
+
{ name: 'fullName', required: true, label: 'ФИО клиента' },
|
|
692
|
+
{ name: 'birthday', required: true, label: 'Дата рождения клиента' },
|
|
693
|
+
{ name: 'applierType', required: true },
|
|
694
|
+
{ name: 'representativeName' },
|
|
698
695
|
{ name: 'sufferedFrom', required: true },
|
|
696
|
+
{ name: 'regionBranch', required: true, label: 'Регион обслуживания кредита' },
|
|
699
697
|
{ name: 'situationDescription', required: true },
|
|
698
|
+
{ name: 'phone', required: true },
|
|
699
|
+
{ name: 'email', required: true },
|
|
700
700
|
],
|
|
701
701
|
},
|
|
702
702
|
{ inputs: [{ name: 'consentDataProcessing', required: true }] },
|
|
@@ -677,21 +677,21 @@ export default {
|
|
|
677
677
|
<div className="container grid grid-cols-12">
|
|
678
678
|
<ApplicationForm
|
|
679
679
|
className="col-span-12"
|
|
680
|
-
title="Меры поддержки"
|
|
680
|
+
title="Меры поддержки жителей пострадавших населенных пунктов территорий Курской, Брянской и Белгородской областей"
|
|
681
681
|
typeForm="SUPPORT"
|
|
682
682
|
endpoint="lead"
|
|
683
683
|
sections={[
|
|
684
684
|
{
|
|
685
685
|
inputs: [
|
|
686
|
-
{
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
},
|
|
691
|
-
{ name: 'birthday', required: true },
|
|
692
|
-
{ name: 'phone', required: true },
|
|
686
|
+
{ name: 'fullName', required: true, label: 'ФИО клиента' },
|
|
687
|
+
{ name: 'birthday', required: true, label: 'Дата рождения клиента' },
|
|
688
|
+
{ name: 'applierType', required: true },
|
|
689
|
+
{ name: 'representativeName' },
|
|
693
690
|
{ name: 'sufferedFrom', required: true },
|
|
691
|
+
{ name: 'region', required: true, label: 'Регион обслуживания кредита' },
|
|
694
692
|
{ name: 'situationDescription', required: true },
|
|
693
|
+
{ name: 'phone', required: true },
|
|
694
|
+
{ name: 'email', required: true },
|
|
695
695
|
],
|
|
696
696
|
},
|
|
697
697
|
{ inputs: [{ name: 'consentDataProcessing', required: true }] },
|
|
@@ -29,7 +29,7 @@ export const getFormatData = (data: FormState): Record<string, any> => {
|
|
|
29
29
|
...(inn && { inn }),
|
|
30
30
|
...(partnerComments ? { partnerComments } : {}),
|
|
31
31
|
...(serviceType ? { typeForm: serviceType } : {}),
|
|
32
|
-
...getIncidentComment(sufferedFrom, situationDescription),
|
|
32
|
+
...getIncidentComment(sufferedFrom, situationDescription?.text),
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
return Object.fromEntries(
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { type Option } from '../../Select/Option';
|
|
3
|
+
import { SelectControl } from '../../Select/SelectControl';
|
|
4
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
|
+
|
|
6
|
+
const APPLIER_TYPES: Option[] = [
|
|
7
|
+
{
|
|
8
|
+
key: 'client',
|
|
9
|
+
text: 'Клиент',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
key: 'representative',
|
|
13
|
+
text: 'Представитель клиента',
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
export const ApplierTypeField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
18
|
+
<SelectControl
|
|
19
|
+
label="Тип обратившегося"
|
|
20
|
+
{...input}
|
|
21
|
+
options={APPLIER_TYPES}
|
|
22
|
+
{...field('applierType')}
|
|
23
|
+
/>
|
|
24
|
+
));
|
|
@@ -3,5 +3,5 @@ import { DatePickerControl } from '../../DatePicker/DatePickerControl';
|
|
|
3
3
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
4
|
|
|
5
5
|
export const BirthdayField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
6
|
-
<DatePickerControl label=
|
|
6
|
+
<DatePickerControl label={input?.label || 'Дата рождения'} {...field(input?.name ?? '')} />
|
|
7
7
|
));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputControl } from '../../Input/InputControl';
|
|
3
|
+
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
|
+
|
|
5
|
+
export const RepresentativeNameField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
6
|
+
<InputControl label="ФИО представителя" {...input} {...field('representativeName')} />
|
|
7
|
+
));
|
|
@@ -1,7 +1,32 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
2
|
+
import { type Option } from '../../Select/Option';
|
|
3
|
+
import { SelectControl } from '../../Select/SelectControl';
|
|
3
4
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
5
|
|
|
6
|
+
const SUFFERED_FROM_TYPES: Option[] = [
|
|
7
|
+
{
|
|
8
|
+
key: 'blg',
|
|
9
|
+
text: 'Белгородской области',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
key: 'bshk',
|
|
13
|
+
text: 'Республике Башкортостан',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
key: 'krsk',
|
|
17
|
+
text: 'Курской области',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
key: 'chs',
|
|
21
|
+
text: 'От стихийного бедствия ЧС',
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
|
|
5
25
|
export const SufferedFromField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
6
|
-
<
|
|
26
|
+
<SelectControl
|
|
27
|
+
label="Пострадал в"
|
|
28
|
+
{...input}
|
|
29
|
+
options={SUFFERED_FROM_TYPES}
|
|
30
|
+
{...field('sufferedFrom')}
|
|
31
|
+
/>
|
|
7
32
|
));
|