@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.
Files changed (122) hide show
  1. package/bundle/bundle.umd.js +36 -33
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
  4. package/bundle/hooks/useRetailFormStore.d.ts +2 -0
  5. package/bundle/ui-kit/DocumentDialog/DocumentDialog.d.ts +1 -0
  6. package/bundle/ui-kit/DocumentDialog/useDocumentDialog.d.ts +1 -1
  7. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +3 -3
  8. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  9. package/dist/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
  10. package/dist/components/CreditCardForm/SuccessStatusCardContent.js +37 -0
  11. package/dist/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -0
  12. package/dist/components/CreditCardForm/useCreditCardFormAPI.js +2 -5
  13. package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  14. package/dist/components/CreditForm/useCreditFormAPI.js +0 -1
  15. package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  16. package/dist/hooks/useRetailFormStore.d.ts +2 -0
  17. package/dist/hooks/useRetailFormStore.js.map +1 -1
  18. package/dist/ui-kit/Checkbox/CheckboxWithDoc.js +1 -1
  19. package/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  20. package/dist/ui-kit/DocumentDialog/DocumentDialog.d.ts +1 -0
  21. package/dist/ui-kit/DocumentDialog/DocumentDialog.js +4 -1
  22. package/dist/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
  23. package/dist/ui-kit/DocumentDialog/useDocumentDialog.d.ts +1 -1
  24. package/dist/ui-kit/DocumentDialog/useDocumentDialog.js +2 -2
  25. package/dist/ui-kit/DocumentDialog/useDocumentDialog.js.map +1 -1
  26. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +3 -3
  27. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  28. package/lib/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
  29. package/lib/components/CreditCardForm/SuccessStatusCardContent.js +35 -0
  30. package/lib/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -0
  31. package/lib/components/CreditCardForm/useCreditCardFormAPI.js +2 -5
  32. package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  33. package/lib/components/CreditForm/useCreditFormAPI.js +0 -1
  34. package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  35. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  36. package/lib/hooks/useRetailFormStore.d.ts +2 -0
  37. package/lib/hooks/useRetailFormStore.js.map +1 -1
  38. package/lib/ui-kit/Checkbox/CheckboxWithDoc.js +1 -1
  39. package/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  40. package/lib/ui-kit/DocumentDialog/DocumentDialog.d.ts +1 -0
  41. package/lib/ui-kit/DocumentDialog/DocumentDialog.js +4 -1
  42. package/lib/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
  43. package/lib/ui-kit/DocumentDialog/useDocumentDialog.d.ts +1 -1
  44. package/lib/ui-kit/DocumentDialog/useDocumentDialog.js +2 -2
  45. package/lib/ui-kit/DocumentDialog/useDocumentDialog.js.map +1 -1
  46. package/mobile/bundle/bundle.umd.js +36 -33
  47. package/mobile/bundle/bundle.umd.min.js +1 -1
  48. package/mobile/bundle/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
  49. package/mobile/bundle/hooks/useRetailFormStore.d.ts +2 -0
  50. package/mobile/bundle/ui-kit/DocumentDialog/DocumentDialog.d.ts +1 -0
  51. package/mobile/bundle/ui-kit/DocumentDialog/useDocumentDialog.d.ts +1 -1
  52. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +3 -3
  53. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  54. package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
  55. package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.js +37 -0
  56. package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -0
  57. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +2 -5
  58. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  59. package/mobile/dist/components/CreditForm/useCreditFormAPI.js +0 -1
  60. package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  61. package/mobile/dist/hooks/useRetailFormStore.d.ts +2 -0
  62. package/mobile/dist/hooks/useRetailFormStore.js.map +1 -1
  63. package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js +1 -1
  64. package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  65. package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.d.ts +1 -0
  66. package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.js +4 -1
  67. package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
  68. package/mobile/dist/ui-kit/DocumentDialog/useDocumentDialog.d.ts +1 -1
  69. package/mobile/dist/ui-kit/DocumentDialog/useDocumentDialog.js +2 -2
  70. package/mobile/dist/ui-kit/DocumentDialog/useDocumentDialog.js.map +1 -1
  71. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +3 -3
  72. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  73. package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.d.ts +1 -0
  74. package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.js +35 -0
  75. package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -0
  76. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +2 -5
  77. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  78. package/mobile/lib/components/CreditForm/useCreditFormAPI.js +0 -1
  79. package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  80. package/mobile/lib/hooks/useRetailFormStore.d.ts +2 -0
  81. package/mobile/lib/hooks/useRetailFormStore.js.map +1 -1
  82. package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js +1 -1
  83. package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  84. package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.d.ts +1 -0
  85. package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.js +4 -1
  86. package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -1
  87. package/mobile/lib/ui-kit/DocumentDialog/useDocumentDialog.d.ts +1 -1
  88. package/mobile/lib/ui-kit/DocumentDialog/useDocumentDialog.js +2 -2
  89. package/mobile/lib/ui-kit/DocumentDialog/useDocumentDialog.js.map +1 -1
  90. package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +3 -3
  91. package/mobile/src/components/CreditCardForm/SuccessStatusCardContent.tsx +45 -0
  92. package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +2 -5
  93. package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +0 -1
  94. package/mobile/src/hooks/useRetailFormStore.tsx +2 -0
  95. package/mobile/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +1 -1
  96. package/mobile/src/ui-kit/DocumentDialog/DocumentDialog.tsx +22 -12
  97. package/mobile/src/ui-kit/DocumentDialog/useDocumentDialog.ts +2 -2
  98. package/package.json +1 -1
  99. package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +3 -3
  100. package/src/components/CreditCardForm/SuccessStatusCardContent.tsx +45 -0
  101. package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +2 -5
  102. package/src/components/CreditForm/useCreditFormAPI.tsx +0 -1
  103. package/src/hooks/useRetailFormStore.tsx +2 -0
  104. package/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +1 -1
  105. package/src/ui-kit/DocumentDialog/DocumentDialog.tsx +22 -12
  106. package/src/ui-kit/DocumentDialog/useDocumentDialog.ts +2 -2
  107. package/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +0 -1
  108. package/dist/components/CreditCardForm/SuccessStatusContent.d.ts +0 -1
  109. package/dist/components/CreditCardForm/SuccessStatusContent.js +0 -32
  110. package/dist/components/CreditCardForm/SuccessStatusContent.js.map +0 -1
  111. package/lib/components/CreditCardForm/SuccessStatusContent.d.ts +0 -1
  112. package/lib/components/CreditCardForm/SuccessStatusContent.js +0 -30
  113. package/lib/components/CreditCardForm/SuccessStatusContent.js.map +0 -1
  114. package/mobile/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +0 -1
  115. package/mobile/dist/components/CreditCardForm/SuccessStatusContent.d.ts +0 -1
  116. package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js +0 -32
  117. package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js.map +0 -1
  118. package/mobile/lib/components/CreditCardForm/SuccessStatusContent.d.ts +0 -1
  119. package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js +0 -30
  120. package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js.map +0 -1
  121. package/mobile/src/components/CreditCardForm/SuccessStatusContent.tsx +0 -37
  122. 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>(({ src, convertToPng, onClose }) => (
13
- <Dialog className="my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0" onClose={onClose}>
14
- {convertToPng ? (
15
- <img src={src} />
16
- ) : (
17
- <iframe src={`${src}#toolbar=0`} className="w-full h-[80vh]" id="iframe-dialog" />
18
- )}
19
- <Button className="mx-auto mt-m" type="button" onClick={onClose}>
20
- Ознакомиться
21
- </Button>
22
- </Dialog>
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.721",
3
+ "version": "0.14.723",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -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 { SuccessStatusContent } from './SuccessStatusContent';
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: <SuccessStatusContent />,
56
- PRE_DECISION: <SuccessStatusContent />,
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
- calculator: {
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,
@@ -6,6 +6,8 @@ export type StatusInfoState = {
6
6
  regionRetail?: string;
7
7
  addressRetail?: string;
8
8
  cardCategory?: string;
9
+ deliveryDate?: Date | string;
10
+ deliveryAddress?: string;
9
11
  calculator?: {
10
12
  monthsValue?: number;
11
13
  moneyValue?: number;
@@ -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>(({ src, convertToPng, onClose }) => (
13
- <Dialog className="my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0" onClose={onClose}>
14
- {convertToPng ? (
15
- <img src={src} />
16
- ) : (
17
- <iframe src={`${src}#toolbar=0`} className="w-full h-[80vh]" id="iframe-dialog" />
18
- )}
19
- <Button className="mx-auto mt-m" type="button" onClick={onClose}>
20
- Ознакомиться
21
- </Button>
22
- </Dialog>
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
- });