@redneckz/wildless-cms-uni-blocks 0.14.721 → 0.14.723
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/bundle.umd.js +36 -33
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
- package/bundle/hooks/useRetailFormStore.d.ts +2 -0
- package/bundle/ui-kit/DocumentDialog/DocumentDialog.d.ts +1 -0
- package/bundle/ui-kit/DocumentDialog/useDocumentDialog.d.ts +1 -1
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +3 -3
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/dist/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
- package/dist/components/CreditCardForm/SuccessStatusCardContent.js +37 -0
- package/dist/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -0
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +2 -5
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.js +0 -1
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/dist/hooks/useRetailFormStore.d.ts +2 -0
- package/dist/hooks/useRetailFormStore.js.map +1 -1
- package/dist/ui-kit/Checkbox/CheckboxWithDoc.js +1 -1
- package/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
- package/dist/ui-kit/DocumentDialog/DocumentDialog.d.ts +1 -0
- package/dist/ui-kit/DocumentDialog/DocumentDialog.js +4 -1
- package/dist/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
- package/dist/ui-kit/DocumentDialog/useDocumentDialog.d.ts +1 -1
- package/dist/ui-kit/DocumentDialog/useDocumentDialog.js +2 -2
- package/dist/ui-kit/DocumentDialog/useDocumentDialog.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +3 -3
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/lib/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
- package/lib/components/CreditCardForm/SuccessStatusCardContent.js +35 -0
- package/lib/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -0
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +2 -5
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.js +0 -1
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/hooks/useRetailFormStore.d.ts +2 -0
- package/lib/hooks/useRetailFormStore.js.map +1 -1
- package/lib/ui-kit/Checkbox/CheckboxWithDoc.js +1 -1
- package/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
- package/lib/ui-kit/DocumentDialog/DocumentDialog.d.ts +1 -0
- package/lib/ui-kit/DocumentDialog/DocumentDialog.js +4 -1
- package/lib/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
- package/lib/ui-kit/DocumentDialog/useDocumentDialog.d.ts +1 -1
- package/lib/ui-kit/DocumentDialog/useDocumentDialog.js +2 -2
- package/lib/ui-kit/DocumentDialog/useDocumentDialog.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +36 -33
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
- package/mobile/bundle/hooks/useRetailFormStore.d.ts +2 -0
- package/mobile/bundle/ui-kit/DocumentDialog/DocumentDialog.d.ts +1 -0
- package/mobile/bundle/ui-kit/DocumentDialog/useDocumentDialog.d.ts +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +3 -3
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
- package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.js +37 -0
- package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +2 -5
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js +0 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/dist/hooks/useRetailFormStore.d.ts +2 -0
- package/mobile/dist/hooks/useRetailFormStore.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js +1 -1
- package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
- package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.d.ts +1 -0
- package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.js +4 -1
- package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
- package/mobile/dist/ui-kit/DocumentDialog/useDocumentDialog.d.ts +1 -1
- package/mobile/dist/ui-kit/DocumentDialog/useDocumentDialog.js +2 -2
- package/mobile/dist/ui-kit/DocumentDialog/useDocumentDialog.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +3 -3
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
- package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.js +35 -0
- package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +2 -5
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js +0 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/lib/hooks/useRetailFormStore.d.ts +2 -0
- package/mobile/lib/hooks/useRetailFormStore.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js +1 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
- package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.d.ts +1 -0
- package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.js +4 -1
- package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
- package/mobile/lib/ui-kit/DocumentDialog/useDocumentDialog.d.ts +1 -1
- package/mobile/lib/ui-kit/DocumentDialog/useDocumentDialog.js +2 -2
- package/mobile/lib/ui-kit/DocumentDialog/useDocumentDialog.js.map +1 -1
- package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +3 -3
- package/mobile/src/components/CreditCardForm/SuccessStatusCardContent.tsx +45 -0
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +2 -5
- package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +0 -1
- package/mobile/src/hooks/useRetailFormStore.tsx +2 -0
- package/mobile/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +1 -1
- package/mobile/src/ui-kit/DocumentDialog/DocumentDialog.tsx +22 -12
- package/mobile/src/ui-kit/DocumentDialog/useDocumentDialog.ts +2 -2
- package/package.json +1 -1
- package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +3 -3
- package/src/components/CreditCardForm/SuccessStatusCardContent.tsx +45 -0
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +2 -5
- package/src/components/CreditForm/useCreditFormAPI.tsx +0 -1
- package/src/hooks/useRetailFormStore.tsx +2 -0
- package/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +1 -1
- package/src/ui-kit/DocumentDialog/DocumentDialog.tsx +22 -12
- package/src/ui-kit/DocumentDialog/useDocumentDialog.ts +2 -2
- package/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +0 -1
- package/dist/components/CreditCardForm/SuccessStatusContent.d.ts +0 -1
- package/dist/components/CreditCardForm/SuccessStatusContent.js +0 -32
- package/dist/components/CreditCardForm/SuccessStatusContent.js.map +0 -1
- package/lib/components/CreditCardForm/SuccessStatusContent.d.ts +0 -1
- package/lib/components/CreditCardForm/SuccessStatusContent.js +0 -30
- package/lib/components/CreditCardForm/SuccessStatusContent.js.map +0 -1
- package/mobile/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +0 -1
- package/mobile/dist/components/CreditCardForm/SuccessStatusContent.d.ts +0 -1
- package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js +0 -32
- package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/SuccessStatusContent.d.ts +0 -1
- package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js +0 -30
- package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js.map +0 -1
- package/mobile/src/components/CreditCardForm/SuccessStatusContent.tsx +0 -37
- package/src/components/CreditCardForm/SuccessStatusContent.tsx +0 -37
|
@@ -6,18 +6,28 @@ export interface DocumentDialogProps {
|
|
|
6
6
|
src: string;
|
|
7
7
|
convertToPng?: boolean;
|
|
8
8
|
onClose?: () => void;
|
|
9
|
+
onDocumentRead?: () => void;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
// TODO Перенесено как есть из openDocument. Требует рефакторинга
|
|
12
|
-
export const DocumentDialog = JSX<DocumentDialogProps>(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
)
|
|
13
|
+
export const DocumentDialog = JSX<DocumentDialogProps>(
|
|
14
|
+
({ src, convertToPng, onClose, onDocumentRead }) => (
|
|
15
|
+
<Dialog className="my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0" onClose={onClose}>
|
|
16
|
+
{convertToPng ? (
|
|
17
|
+
<img src={src} />
|
|
18
|
+
) : (
|
|
19
|
+
<iframe src={`${src}#toolbar=0`} className="w-full h-[80vh]" id="iframe-dialog" />
|
|
20
|
+
)}
|
|
21
|
+
<Button
|
|
22
|
+
className="mx-auto mt-m"
|
|
23
|
+
type="button"
|
|
24
|
+
onClick={() => {
|
|
25
|
+
onDocumentRead?.();
|
|
26
|
+
onClose?.();
|
|
27
|
+
}}
|
|
28
|
+
>
|
|
29
|
+
Ознакомиться
|
|
30
|
+
</Button>
|
|
31
|
+
</Dialog>
|
|
32
|
+
),
|
|
33
|
+
);
|
|
@@ -5,14 +5,14 @@ import type { Nullable } from '../../utils/Nullable';
|
|
|
5
5
|
import { useDialog } from '../DialogManager/useDialog';
|
|
6
6
|
import { DocumentDialog } from './DocumentDialog';
|
|
7
7
|
|
|
8
|
-
export const useDocumentDialog = (docId: Nullable<number
|
|
8
|
+
export const useDocumentDialog = (docId: Nullable<number>, onDocumentRead?: () => void) => {
|
|
9
9
|
const { open } = useDialog(DocumentDialog);
|
|
10
10
|
const isMobileMode = useMobileMode();
|
|
11
11
|
|
|
12
12
|
return useCallback(async () => {
|
|
13
13
|
if (docId) {
|
|
14
14
|
const src = URL.createObjectURL(await feedbackById(docId, isMobileMode));
|
|
15
|
-
open({ src });
|
|
15
|
+
open({ src, onDocumentRead });
|
|
16
16
|
}
|
|
17
17
|
}, [open, docId, isMobileMode]);
|
|
18
18
|
};
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ import { type VNode } from '../../model/VNode';
|
|
|
8
8
|
import { FailedStatusContent } from './FailedStatusContent';
|
|
9
9
|
import { PendingStatusContent } from './PendingStatusContent';
|
|
10
10
|
import { ReworkStatusContent } from './ReworkStatusContent';
|
|
11
|
-
import {
|
|
11
|
+
import { SuccessStatusCardContent } from './SuccessStatusCardContent';
|
|
12
12
|
|
|
13
13
|
const SIGNAL_TYPES: SignalType[] = [
|
|
14
14
|
'CREATE_APPLICATION_SHORT_SIGNAL',
|
|
@@ -52,8 +52,8 @@ const renderStatus = (status: STATUS_TYPE, handleExpire: () => void) => {
|
|
|
52
52
|
CANCELLED: <FailedStatusContent />,
|
|
53
53
|
FAILED: <FailedStatusContent />,
|
|
54
54
|
DRAFT: <FailedStatusContent />,
|
|
55
|
-
APPROVED: <
|
|
56
|
-
PRE_DECISION: <
|
|
55
|
+
APPROVED: <SuccessStatusCardContent />,
|
|
56
|
+
PRE_DECISION: <SuccessStatusCardContent />,
|
|
57
57
|
REVISION: <ReworkStatusContent />,
|
|
58
58
|
};
|
|
59
59
|
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useRetailFormStore, type StatusInfoState } from '../../hooks/useRetailFormStore';
|
|
3
|
+
import { formatDate } from '../../utils/formatDate';
|
|
4
|
+
import { CreditCardFormStatus } from './CreditCardFormStatus';
|
|
5
|
+
|
|
6
|
+
export const SuccessStatusCardContent = JSX(() => {
|
|
7
|
+
const { statusInfo } = useRetailFormStore();
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<CreditCardFormStatus
|
|
11
|
+
title="Банк одобрил вам кредит"
|
|
12
|
+
description="Обратитесь в отделение банка, чтобы завершить оформление и получит ваш кредит"
|
|
13
|
+
sectionInfo={getSectionInfo(statusInfo)}
|
|
14
|
+
buttonText="Вернуться на главную"
|
|
15
|
+
/>
|
|
16
|
+
);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const getSectionInfo = (statusInfo: StatusInfoState | null) => {
|
|
20
|
+
const sectionInfo = [
|
|
21
|
+
{
|
|
22
|
+
label: 'Название продукта',
|
|
23
|
+
description: 'Кредитная карта',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: 'Категория',
|
|
27
|
+
description: statusInfo?.cardCategory,
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
if (statusInfo?.deliveryAddress && statusInfo?.deliveryDate) {
|
|
32
|
+
return sectionInfo.concat([
|
|
33
|
+
{
|
|
34
|
+
label: 'Адрес доставки',
|
|
35
|
+
description: statusInfo?.deliveryAddress,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: 'Дата доставки',
|
|
39
|
+
description: formatDate(statusInfo?.deliveryDate),
|
|
40
|
+
},
|
|
41
|
+
]);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return sectionInfo;
|
|
45
|
+
};
|
|
@@ -40,12 +40,9 @@ export const useCreditCardFormAPI = ({
|
|
|
40
40
|
retailFormStore.statusInfo = {
|
|
41
41
|
regionRetail: leadForm?.regionRetail?.text,
|
|
42
42
|
addressRetail: leadForm?.addressRetail?.text,
|
|
43
|
+
deliveryAddress: leadForm?.addressCourier?.fullAddress,
|
|
43
44
|
cardCategory: leadForm?.cardCategory?.text,
|
|
44
|
-
|
|
45
|
-
monthsValue: leadForm?.calculator?.monthsValue,
|
|
46
|
-
moneyValue: leadForm?.calculator?.moneyValue,
|
|
47
|
-
isAnnuity: leadForm?.calculator?.isAnnuity,
|
|
48
|
-
},
|
|
45
|
+
deliveryDate: leadForm?.deliveryDate,
|
|
49
46
|
};
|
|
50
47
|
retailFormStore.leadForm = initialState;
|
|
51
48
|
}
|
|
@@ -41,7 +41,6 @@ export const useCreditFormAPI = ({
|
|
|
41
41
|
retailFormStore.statusInfo = {
|
|
42
42
|
regionRetail: leadForm?.regionRetail?.text,
|
|
43
43
|
addressRetail: leadForm?.addressRetail?.text,
|
|
44
|
-
cardCategory: leadForm?.cardCategory?.text,
|
|
45
44
|
calculator: {
|
|
46
45
|
monthsValue: leadForm?.calculator?.monthsValue,
|
|
47
46
|
moneyValue: leadForm?.calculator?.moneyValue,
|
|
@@ -14,7 +14,7 @@ interface CheckboxWithDocProps extends CheckboxProps {
|
|
|
14
14
|
|
|
15
15
|
export const CheckboxWithDoc = JSX<CheckboxWithDocProps>(
|
|
16
16
|
({ className, error, docId, ...props }) => {
|
|
17
|
-
const openDocument = useDocumentDialog(docId);
|
|
17
|
+
const openDocument = useDocumentDialog(docId, () => props.onChange?.(true));
|
|
18
18
|
|
|
19
19
|
return (
|
|
20
20
|
<div className={className}>
|
|
@@ -6,18 +6,28 @@ export interface DocumentDialogProps {
|
|
|
6
6
|
src: string;
|
|
7
7
|
convertToPng?: boolean;
|
|
8
8
|
onClose?: () => void;
|
|
9
|
+
onDocumentRead?: () => void;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
// TODO Перенесено как есть из openDocument. Требует рефакторинга
|
|
12
|
-
export const DocumentDialog = JSX<DocumentDialogProps>(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
)
|
|
13
|
+
export const DocumentDialog = JSX<DocumentDialogProps>(
|
|
14
|
+
({ src, convertToPng, onClose, onDocumentRead }) => (
|
|
15
|
+
<Dialog className="my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0" onClose={onClose}>
|
|
16
|
+
{convertToPng ? (
|
|
17
|
+
<img src={src} />
|
|
18
|
+
) : (
|
|
19
|
+
<iframe src={`${src}#toolbar=0`} className="w-full h-[80vh]" id="iframe-dialog" />
|
|
20
|
+
)}
|
|
21
|
+
<Button
|
|
22
|
+
className="mx-auto mt-m"
|
|
23
|
+
type="button"
|
|
24
|
+
onClick={() => {
|
|
25
|
+
onDocumentRead?.();
|
|
26
|
+
onClose?.();
|
|
27
|
+
}}
|
|
28
|
+
>
|
|
29
|
+
Ознакомиться
|
|
30
|
+
</Button>
|
|
31
|
+
</Dialog>
|
|
32
|
+
),
|
|
33
|
+
);
|
|
@@ -5,14 +5,14 @@ import type { Nullable } from '../../utils/Nullable';
|
|
|
5
5
|
import { useDialog } from '../DialogManager/useDialog';
|
|
6
6
|
import { DocumentDialog } from './DocumentDialog';
|
|
7
7
|
|
|
8
|
-
export const useDocumentDialog = (docId: Nullable<number
|
|
8
|
+
export const useDocumentDialog = (docId: Nullable<number>, onDocumentRead?: () => void) => {
|
|
9
9
|
const { open } = useDialog(DocumentDialog);
|
|
10
10
|
const isMobileMode = useMobileMode();
|
|
11
11
|
|
|
12
12
|
return useCallback(async () => {
|
|
13
13
|
if (docId) {
|
|
14
14
|
const src = URL.createObjectURL(await feedbackById(docId, isMobileMode));
|
|
15
|
-
open({ src });
|
|
15
|
+
open({ src, onDocumentRead });
|
|
16
16
|
}
|
|
17
17
|
}, [open, docId, isMobileMode]);
|
|
18
18
|
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SuccessStatusContent: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SuccessStatusContent: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.SuccessStatusContent = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const useRetailFormStore_1 = require("../../hooks/useRetailFormStore");
|
|
6
|
-
const CreditCardFormStatus_1 = require("./CreditCardFormStatus");
|
|
7
|
-
exports.SuccessStatusContent = (0, uni_jsx_1.JSX)(() => {
|
|
8
|
-
const { statusInfo } = (0, useRetailFormStore_1.useRetailFormStore)();
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(CreditCardFormStatus_1.CreditCardFormStatus, { title: "\u0411\u0430\u043D\u043A \u043E\u0434\u043E\u0431\u0440\u0438\u043B \u0432\u0430\u043C \u043A\u0440\u0435\u0434\u0438\u0442", description: "\u041E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442 \u0432\u0430\u0448 \u043A\u0440\u0435\u0434\u0438\u0442", sectionInfo: [
|
|
10
|
-
{
|
|
11
|
-
label: 'Название продукта',
|
|
12
|
-
description: 'Кредит на любые цели',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
label: 'Ставка',
|
|
16
|
-
description: '14,5%',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
label: 'Ежемесячный платеж',
|
|
20
|
-
description: '86 052 ₽',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
label: 'Срок кредита',
|
|
24
|
-
description: statusInfo?.calculator?.monthsValue + ' мес',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: 'Тип платежа',
|
|
28
|
-
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
29
|
-
},
|
|
30
|
-
], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=SuccessStatusContent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SuccessStatusContent.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/SuccessStatusContent.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AACpE,iEAA8D;AAEjD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAAC,GAAG,EAAE;IAC3C,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAE5C,OAAO,CACL,uBAAC,2CAAoB,IACnB,KAAK,EAAC,6HAAyB,EAC/B,WAAW,EAAC,yZAA+E,EAC3F,WAAW,EAAE;YACX;gBACE,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EAAE,sBAAsB;aACpC;YACD;gBACE,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,OAAO;aACrB;YACD;gBACE,KAAK,EAAE,oBAAoB;gBAC3B,WAAW,EAAE,UAAU;aACxB;YACD;gBACE,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,GAAG,MAAM;aAC1D;YACD;gBACE,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,oBAAoB;aACtF;SACF,EACD,UAAU,EAAC,gHAAsB,GACjC,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SuccessStatusContent: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useRetailFormStore } from '../../hooks/useRetailFormStore.js';
|
|
4
|
-
import { CreditCardFormStatus } from './CreditCardFormStatus.js';
|
|
5
|
-
export const SuccessStatusContent = JSX(() => {
|
|
6
|
-
const { statusInfo } = useRetailFormStore();
|
|
7
|
-
return (_jsx(CreditCardFormStatus, { title: "\u0411\u0430\u043D\u043A \u043E\u0434\u043E\u0431\u0440\u0438\u043B \u0432\u0430\u043C \u043A\u0440\u0435\u0434\u0438\u0442", description: "\u041E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442 \u0432\u0430\u0448 \u043A\u0440\u0435\u0434\u0438\u0442", sectionInfo: [
|
|
8
|
-
{
|
|
9
|
-
label: 'Название продукта',
|
|
10
|
-
description: 'Кредит на любые цели',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
label: 'Ставка',
|
|
14
|
-
description: '14,5%',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
label: 'Ежемесячный платеж',
|
|
18
|
-
description: '86 052 ₽',
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
label: 'Срок кредита',
|
|
22
|
-
description: statusInfo?.calculator?.monthsValue + ' мес',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
label: 'Тип платежа',
|
|
26
|
-
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
27
|
-
},
|
|
28
|
-
], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=SuccessStatusContent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SuccessStatusContent.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/SuccessStatusContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC,GAAG,EAAE;IAC3C,MAAM,EAAE,UAAU,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAE5C,OAAO,CACL,KAAC,oBAAoB,IACnB,KAAK,EAAC,6HAAyB,EAC/B,WAAW,EAAC,yZAA+E,EAC3F,WAAW,EAAE;YACX;gBACE,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EAAE,sBAAsB;aACpC;YACD;gBACE,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,OAAO;aACrB;YACD;gBACE,KAAK,EAAE,oBAAoB;gBAC3B,WAAW,EAAE,UAAU;aACxB;YACD;gBACE,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,GAAG,MAAM;aAC1D;YACD;gBACE,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,oBAAoB;aACtF;SACF,EACD,UAAU,EAAC,gHAAsB,GACjC,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SuccessStatusContent: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SuccessStatusContent: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.SuccessStatusContent = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const useRetailFormStore_1 = require("../../hooks/useRetailFormStore");
|
|
6
|
-
const CreditCardFormStatus_1 = require("./CreditCardFormStatus");
|
|
7
|
-
exports.SuccessStatusContent = (0, uni_jsx_1.JSX)(() => {
|
|
8
|
-
const { statusInfo } = (0, useRetailFormStore_1.useRetailFormStore)();
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(CreditCardFormStatus_1.CreditCardFormStatus, { title: "\u0411\u0430\u043D\u043A \u043E\u0434\u043E\u0431\u0440\u0438\u043B \u0432\u0430\u043C \u043A\u0440\u0435\u0434\u0438\u0442", description: "\u041E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442 \u0432\u0430\u0448 \u043A\u0440\u0435\u0434\u0438\u0442", sectionInfo: [
|
|
10
|
-
{
|
|
11
|
-
label: 'Название продукта',
|
|
12
|
-
description: 'Кредит на любые цели',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
label: 'Ставка',
|
|
16
|
-
description: '14,5%',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
label: 'Ежемесячный платеж',
|
|
20
|
-
description: '86 052 ₽',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
label: 'Срок кредита',
|
|
24
|
-
description: statusInfo?.calculator?.monthsValue + ' мес',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: 'Тип платежа',
|
|
28
|
-
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
29
|
-
},
|
|
30
|
-
], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=SuccessStatusContent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SuccessStatusContent.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/SuccessStatusContent.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AACpE,iEAA8D;AAEjD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAAC,GAAG,EAAE;IAC3C,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAE5C,OAAO,CACL,uBAAC,2CAAoB,IACnB,KAAK,EAAC,6HAAyB,EAC/B,WAAW,EAAC,yZAA+E,EAC3F,WAAW,EAAE;YACX;gBACE,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EAAE,sBAAsB;aACpC;YACD;gBACE,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,OAAO;aACrB;YACD;gBACE,KAAK,EAAE,oBAAoB;gBAC3B,WAAW,EAAE,UAAU;aACxB;YACD;gBACE,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,GAAG,MAAM;aAC1D;YACD;gBACE,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,oBAAoB;aACtF;SACF,EACD,UAAU,EAAC,gHAAsB,GACjC,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SuccessStatusContent: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useRetailFormStore } from '../../hooks/useRetailFormStore.js';
|
|
4
|
-
import { CreditCardFormStatus } from './CreditCardFormStatus.js';
|
|
5
|
-
export const SuccessStatusContent = JSX(() => {
|
|
6
|
-
const { statusInfo } = useRetailFormStore();
|
|
7
|
-
return (_jsx(CreditCardFormStatus, { title: "\u0411\u0430\u043D\u043A \u043E\u0434\u043E\u0431\u0440\u0438\u043B \u0432\u0430\u043C \u043A\u0440\u0435\u0434\u0438\u0442", description: "\u041E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442 \u0432\u0430\u0448 \u043A\u0440\u0435\u0434\u0438\u0442", sectionInfo: [
|
|
8
|
-
{
|
|
9
|
-
label: 'Название продукта',
|
|
10
|
-
description: 'Кредит на любые цели',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
label: 'Ставка',
|
|
14
|
-
description: '14,5%',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
label: 'Ежемесячный платеж',
|
|
18
|
-
description: '86 052 ₽',
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
label: 'Срок кредита',
|
|
22
|
-
description: statusInfo?.calculator?.monthsValue + ' мес',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
label: 'Тип платежа',
|
|
26
|
-
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
27
|
-
},
|
|
28
|
-
], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=SuccessStatusContent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SuccessStatusContent.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/SuccessStatusContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC,GAAG,EAAE;IAC3C,MAAM,EAAE,UAAU,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAE5C,OAAO,CACL,KAAC,oBAAoB,IACnB,KAAK,EAAC,6HAAyB,EAC/B,WAAW,EAAC,yZAA+E,EAC3F,WAAW,EAAE;YACX;gBACE,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EAAE,sBAAsB;aACpC;YACD;gBACE,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,OAAO;aACrB;YACD;gBACE,KAAK,EAAE,oBAAoB;gBAC3B,WAAW,EAAE,UAAU;aACxB;YACD;gBACE,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,GAAG,MAAM;aAC1D;YACD;gBACE,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,oBAAoB;aACtF;SACF,EACD,UAAU,EAAC,gHAAsB,GACjC,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useRetailFormStore } from '../../hooks/useRetailFormStore';
|
|
3
|
-
import { CreditCardFormStatus } from './CreditCardFormStatus';
|
|
4
|
-
|
|
5
|
-
export const SuccessStatusContent = JSX(() => {
|
|
6
|
-
const { statusInfo } = useRetailFormStore();
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
<CreditCardFormStatus
|
|
10
|
-
title="Банк одобрил вам кредит"
|
|
11
|
-
description="Обратитесь в отделение банка, чтобы завершить оформление и получит ваш кредит"
|
|
12
|
-
sectionInfo={[
|
|
13
|
-
{
|
|
14
|
-
label: 'Название продукта',
|
|
15
|
-
description: 'Кредит на любые цели',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
label: 'Ставка',
|
|
19
|
-
description: '14,5%',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
label: 'Ежемесячный платеж',
|
|
23
|
-
description: '86 052 ₽',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
label: 'Срок кредита',
|
|
27
|
-
description: statusInfo?.calculator?.monthsValue + ' мес',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
label: 'Тип платежа',
|
|
31
|
-
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
32
|
-
},
|
|
33
|
-
]}
|
|
34
|
-
buttonText="Вернуться на главную"
|
|
35
|
-
/>
|
|
36
|
-
);
|
|
37
|
-
});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useRetailFormStore } from '../../hooks/useRetailFormStore';
|
|
3
|
-
import { CreditCardFormStatus } from './CreditCardFormStatus';
|
|
4
|
-
|
|
5
|
-
export const SuccessStatusContent = JSX(() => {
|
|
6
|
-
const { statusInfo } = useRetailFormStore();
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
<CreditCardFormStatus
|
|
10
|
-
title="Банк одобрил вам кредит"
|
|
11
|
-
description="Обратитесь в отделение банка, чтобы завершить оформление и получит ваш кредит"
|
|
12
|
-
sectionInfo={[
|
|
13
|
-
{
|
|
14
|
-
label: 'Название продукта',
|
|
15
|
-
description: 'Кредит на любые цели',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
label: 'Ставка',
|
|
19
|
-
description: '14,5%',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
label: 'Ежемесячный платеж',
|
|
23
|
-
description: '86 052 ₽',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
label: 'Срок кредита',
|
|
27
|
-
description: statusInfo?.calculator?.monthsValue + ' мес',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
label: 'Тип платежа',
|
|
31
|
-
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
32
|
-
},
|
|
33
|
-
]}
|
|
34
|
-
buttonText="Вернуться на главную"
|
|
35
|
-
/>
|
|
36
|
-
);
|
|
37
|
-
});
|