react-native-timacare 3.0.9 → 3.0.11-beta
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/lib/commonjs/AppStore.js +1 -1
- package/lib/commonjs/AppStore.js.flow +56 -0
- package/lib/commonjs/AppStore.js.map +1 -1
- package/lib/commonjs/assets/icons/add_info_disable.svg +3 -8
- package/lib/commonjs/assets/icons/index.js +1 -1
- package/lib/commonjs/assets/icons/index.js.flow +4 -0
- package/lib/commonjs/assets/icons/index.js.map +1 -1
- package/lib/commonjs/assets/icons/topup.svg +16 -0
- package/lib/commonjs/assets/icons/topup_success.svg +16 -0
- package/lib/commonjs/navigation/primary-navigator.js +1 -1
- package/lib/commonjs/navigation/primary-navigator.js.flow +9 -0
- package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +65 -0
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/liveness/index.js +1 -1
- package/lib/commonjs/screens/liveness/index.js.flow +8 -8
- package/lib/commonjs/screens/liveness/index.js.map +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js.flow +3 -1
- package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
- package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js +2 -0
- package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.flow +304 -0
- package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -0
- package/lib/commonjs/screens/loan/UpdateLoan.js +2 -0
- package/lib/commonjs/screens/loan/UpdateLoan.js.flow +773 -0
- package/lib/commonjs/screens/loan/UpdateLoan.js.map +1 -0
- package/lib/commonjs/screens/register/index.js +1 -1
- package/lib/commonjs/screens/register/index.js.flow +1 -1
- package/lib/commonjs/services/api/api-config.js +1 -1
- package/lib/commonjs/services/api/api-config.js.flow +2 -2
- package/lib/commonjs/services/api/api-config.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +136 -0
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/module/AppStore.js +1 -1
- package/lib/module/AppStore.js.map +1 -1
- package/lib/module/assets/icons/add_info_disable.svg +3 -8
- package/lib/module/assets/icons/index.js +1 -1
- package/lib/module/assets/icons/index.js.map +1 -1
- package/lib/module/assets/icons/topup.svg +16 -0
- package/lib/module/assets/icons/topup_success.svg +16 -0
- package/lib/module/navigation/primary-navigator.js +1 -1
- package/lib/module/navigation/primary-navigator.js.map +1 -1
- package/lib/module/screens/home/index.js +1 -1
- package/lib/module/screens/home/index.js.map +1 -1
- package/lib/module/screens/liveness/index.js +1 -1
- package/lib/module/screens/liveness/index.js.map +1 -1
- package/lib/module/screens/liveness-v2/index.js +1 -1
- package/lib/module/screens/liveness-v2/index.js.map +1 -1
- package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js +2 -0
- package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -0
- package/lib/module/screens/loan/UpdateLoan.js +2 -0
- package/lib/module/screens/loan/UpdateLoan.js.map +1 -0
- package/lib/module/screens/register/index.js +1 -1
- package/lib/module/services/api/api-config.js +1 -1
- package/lib/module/services/api/api-config.js.map +1 -1
- package/lib/module/services/api/api.js +1 -1
- package/lib/module/services/api/api.js.map +1 -1
- package/lib/typescript/AppStore.d.ts +8 -0
- package/lib/typescript/AppStore.d.ts.map +1 -1
- package/lib/typescript/assets/icons/index.d.ts +3 -1
- package/lib/typescript/assets/icons/index.d.ts.map +1 -1
- package/lib/typescript/navigation/primary-navigator.d.ts +1 -0
- package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/screens/liveness-v2/index.d.ts.map +1 -1
- package/lib/typescript/screens/loan/PreviewSchedulePaymentTopup.d.ts +2 -0
- package/lib/typescript/screens/loan/PreviewSchedulePaymentTopup.d.ts.map +1 -0
- package/lib/typescript/screens/loan/UpdateLoan.d.ts +2 -0
- package/lib/typescript/screens/loan/UpdateLoan.d.ts.map +1 -0
- package/lib/typescript/services/api/api.d.ts +128 -0
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/AppStore.tsx +56 -0
- package/src/assets/icons/add_info_disable.svg +3 -8
- package/src/assets/icons/index.tsx +4 -0
- package/src/assets/icons/topup.svg +16 -0
- package/src/assets/icons/topup_success.svg +16 -0
- package/src/navigation/primary-navigator.tsx +9 -0
- package/src/screens/home/index.tsx +65 -0
- package/src/screens/liveness/index.tsx +8 -8
- package/src/screens/liveness-v2/index.tsx +3 -1
- package/src/screens/loan/PreviewSchedulePaymentTopup.tsx +304 -0
- package/src/screens/loan/UpdateLoan.tsx +773 -0
- package/src/screens/register/index.tsx +1 -1
- package/src/services/api/api-config.ts +2 -2
- package/src/services/api/api.ts +136 -0
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import {
|
|
4
|
+
Alert,
|
|
5
|
+
SafeAreaView,
|
|
6
|
+
ScrollView,
|
|
7
|
+
TouchableOpacity,
|
|
8
|
+
View,
|
|
9
|
+
} from 'react-native';
|
|
10
|
+
import { observer } from 'mobx-react-lite';
|
|
11
|
+
import {
|
|
12
|
+
useNavigation,
|
|
13
|
+
StackActions,
|
|
14
|
+
CommonActions,
|
|
15
|
+
} from '@react-navigation/native';
|
|
16
|
+
import MHeader from '../../components/MHeader';
|
|
17
|
+
import { Api } from '../../services/api';
|
|
18
|
+
import Loading from '../../components/Loading';
|
|
19
|
+
import { MText } from '../../components/MText';
|
|
20
|
+
import { formatDDMMYYY, formatMoney } from '../../utils';
|
|
21
|
+
import LinearGradient from 'react-native-linear-gradient';
|
|
22
|
+
import { ScreenNames } from '../../navigation';
|
|
23
|
+
|
|
24
|
+
export const PreviewSchedulePaymentTopup = observer(
|
|
25
|
+
function PreviewSchedulePaymentTopup(props: any) {
|
|
26
|
+
const navigation = useNavigation();
|
|
27
|
+
const [isLoading, setIsLoading] = React.useState(false);
|
|
28
|
+
const [data, setData] = React.useState<any>(null);
|
|
29
|
+
|
|
30
|
+
const getData = async () => {
|
|
31
|
+
setIsLoading(true);
|
|
32
|
+
try {
|
|
33
|
+
const response = await Api.getInstance().getPlanPaymentV2(
|
|
34
|
+
props.route.params?.id
|
|
35
|
+
);
|
|
36
|
+
setIsLoading(false);
|
|
37
|
+
if (response.kind === 'ok') {
|
|
38
|
+
if (response.data.meta.errorCode === 200) {
|
|
39
|
+
setData(response.data.data);
|
|
40
|
+
} else {
|
|
41
|
+
Alert.alert('Thông báo', response.data.meta.errorMessage);
|
|
42
|
+
}
|
|
43
|
+
} else {
|
|
44
|
+
Alert.alert('Thông báo', 'Có lỗi xảy ra, vui lòng thử lại sau');
|
|
45
|
+
}
|
|
46
|
+
} catch (error) {
|
|
47
|
+
setIsLoading(false);
|
|
48
|
+
Alert.alert('Thông báo', 'Có lỗi xảy ra, vui lòng thử lại sau');
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
React.useEffect(() => {
|
|
52
|
+
const unsubscribe = navigation.addListener('focus', () => {
|
|
53
|
+
getData();
|
|
54
|
+
});
|
|
55
|
+
return unsubscribe;
|
|
56
|
+
}, [navigation]);
|
|
57
|
+
|
|
58
|
+
React.useEffect(() => {
|
|
59
|
+
const unsubscribe = navigation.addListener('blur', () => {
|
|
60
|
+
setData(null);
|
|
61
|
+
});
|
|
62
|
+
return unsubscribe;
|
|
63
|
+
}, [navigation]);
|
|
64
|
+
|
|
65
|
+
return (
|
|
66
|
+
<View style={{ flex: 1, backgroundColor: '#FDFDFD' }}>
|
|
67
|
+
<MHeader
|
|
68
|
+
title={`Lịch thanh toán dự kiến`}
|
|
69
|
+
onBack={() => navigation.goBack()}
|
|
70
|
+
/>
|
|
71
|
+
<SafeAreaView style={{ flex: 1 }}>
|
|
72
|
+
<ScrollView>
|
|
73
|
+
<View
|
|
74
|
+
style={{
|
|
75
|
+
borderWidth: 1,
|
|
76
|
+
borderColor: '#FF8E4F',
|
|
77
|
+
borderRadius: 8,
|
|
78
|
+
margin: 16,
|
|
79
|
+
padding: 16,
|
|
80
|
+
}}
|
|
81
|
+
>
|
|
82
|
+
<View
|
|
83
|
+
style={{
|
|
84
|
+
flexDirection: 'row',
|
|
85
|
+
alignItems: 'center',
|
|
86
|
+
justifyContent: 'space-between',
|
|
87
|
+
}}
|
|
88
|
+
>
|
|
89
|
+
<MText style={{ fontSize: 12, color: '#333333' }}>
|
|
90
|
+
Mã HĐ giải ngân
|
|
91
|
+
</MText>
|
|
92
|
+
<MText
|
|
93
|
+
style={{
|
|
94
|
+
fontSize: 12,
|
|
95
|
+
color: '#333333',
|
|
96
|
+
fontWeight: 'bold',
|
|
97
|
+
}}
|
|
98
|
+
>
|
|
99
|
+
HD-{props.route?.params?.id}
|
|
100
|
+
</MText>
|
|
101
|
+
</View>
|
|
102
|
+
<View
|
|
103
|
+
style={{
|
|
104
|
+
flexDirection: 'row',
|
|
105
|
+
alignItems: 'center',
|
|
106
|
+
justifyContent: 'space-between',
|
|
107
|
+
marginTop: 16,
|
|
108
|
+
}}
|
|
109
|
+
>
|
|
110
|
+
<MText style={{ fontSize: 12, color: '#333333' }}>
|
|
111
|
+
Số tiền vay
|
|
112
|
+
</MText>
|
|
113
|
+
<MText
|
|
114
|
+
style={{
|
|
115
|
+
fontSize: 12,
|
|
116
|
+
color: '#EF592E',
|
|
117
|
+
fontWeight: 'bold',
|
|
118
|
+
}}
|
|
119
|
+
>
|
|
120
|
+
{formatMoney(data?.loanAmount)} đ
|
|
121
|
+
</MText>
|
|
122
|
+
</View>
|
|
123
|
+
<View
|
|
124
|
+
style={{
|
|
125
|
+
flexDirection: 'row',
|
|
126
|
+
alignItems: 'center',
|
|
127
|
+
justifyContent: 'space-between',
|
|
128
|
+
marginTop: 16,
|
|
129
|
+
}}
|
|
130
|
+
>
|
|
131
|
+
<MText style={{ fontSize: 12, color: '#333333' }}>
|
|
132
|
+
Bảo hiểm
|
|
133
|
+
</MText>
|
|
134
|
+
<MText
|
|
135
|
+
style={{
|
|
136
|
+
fontSize: 12,
|
|
137
|
+
color: '#333333',
|
|
138
|
+
fontWeight: 'bold',
|
|
139
|
+
}}
|
|
140
|
+
>
|
|
141
|
+
{formatMoney(data?.totalMoneyInsurance)} đ
|
|
142
|
+
</MText>
|
|
143
|
+
</View>
|
|
144
|
+
<View
|
|
145
|
+
style={{
|
|
146
|
+
flexDirection: 'row',
|
|
147
|
+
alignItems: 'center',
|
|
148
|
+
justifyContent: 'space-between',
|
|
149
|
+
marginTop: 16,
|
|
150
|
+
}}
|
|
151
|
+
>
|
|
152
|
+
<MText style={{ fontSize: 12, color: '#333333' }}>
|
|
153
|
+
Thời hạn
|
|
154
|
+
</MText>
|
|
155
|
+
<MText
|
|
156
|
+
style={{
|
|
157
|
+
fontSize: 12,
|
|
158
|
+
color: '#333333',
|
|
159
|
+
fontWeight: 'bold',
|
|
160
|
+
}}
|
|
161
|
+
>
|
|
162
|
+
{data?.loanTime} tháng
|
|
163
|
+
</MText>
|
|
164
|
+
</View>
|
|
165
|
+
<View
|
|
166
|
+
style={{
|
|
167
|
+
flexDirection: 'row',
|
|
168
|
+
alignItems: 'center',
|
|
169
|
+
justifyContent: 'space-between',
|
|
170
|
+
marginTop: 16,
|
|
171
|
+
}}
|
|
172
|
+
>
|
|
173
|
+
<MText style={{ fontSize: 12, color: '#333333' }}>
|
|
174
|
+
Ngày dự kiến giải ngân
|
|
175
|
+
</MText>
|
|
176
|
+
<MText
|
|
177
|
+
style={{
|
|
178
|
+
fontSize: 12,
|
|
179
|
+
color: '#333333',
|
|
180
|
+
fontWeight: 'bold',
|
|
181
|
+
}}
|
|
182
|
+
>
|
|
183
|
+
{formatDDMMYYY(data?.expectedDisbursementDate)}
|
|
184
|
+
</MText>
|
|
185
|
+
</View>
|
|
186
|
+
</View>
|
|
187
|
+
|
|
188
|
+
<View
|
|
189
|
+
style={{
|
|
190
|
+
borderWidth: 1,
|
|
191
|
+
borderColor: '#FF8E4F',
|
|
192
|
+
borderRadius: 8,
|
|
193
|
+
marginHorizontal: 16,
|
|
194
|
+
}}
|
|
195
|
+
>
|
|
196
|
+
<View
|
|
197
|
+
style={{
|
|
198
|
+
backgroundColor: '#FFF3E9',
|
|
199
|
+
height: 32,
|
|
200
|
+
borderTopLeftRadius: 8,
|
|
201
|
+
borderTopRightRadius: 8,
|
|
202
|
+
flexDirection: 'row',
|
|
203
|
+
alignItems: 'center',
|
|
204
|
+
}}
|
|
205
|
+
>
|
|
206
|
+
<MText
|
|
207
|
+
style={{
|
|
208
|
+
flex: 1,
|
|
209
|
+
textAlign: 'center',
|
|
210
|
+
color: '#333333',
|
|
211
|
+
fontSize: 12,
|
|
212
|
+
}}
|
|
213
|
+
>
|
|
214
|
+
Ngày thanh toán
|
|
215
|
+
</MText>
|
|
216
|
+
<MText
|
|
217
|
+
style={{
|
|
218
|
+
flex: 1,
|
|
219
|
+
textAlign: 'center',
|
|
220
|
+
color: '#333333',
|
|
221
|
+
fontSize: 12,
|
|
222
|
+
}}
|
|
223
|
+
>
|
|
224
|
+
Số tiền thanh toán
|
|
225
|
+
</MText>
|
|
226
|
+
</View>
|
|
227
|
+
{data?.listPaymentSchedule?.map((item: any, index: number) => {
|
|
228
|
+
return (
|
|
229
|
+
<View
|
|
230
|
+
key={index}
|
|
231
|
+
style={{
|
|
232
|
+
paddingVertical: 16,
|
|
233
|
+
flexDirection: 'row',
|
|
234
|
+
alignItems: 'center',
|
|
235
|
+
borderBottomWidth:
|
|
236
|
+
index === data?.listPaymentSchedule?.length - 1 ? 0 : 1,
|
|
237
|
+
borderColor: '#DADADA',
|
|
238
|
+
}}
|
|
239
|
+
>
|
|
240
|
+
<MText
|
|
241
|
+
style={{
|
|
242
|
+
flex: 1,
|
|
243
|
+
textAlign: 'center',
|
|
244
|
+
color: '#999999',
|
|
245
|
+
fontSize: 12,
|
|
246
|
+
}}
|
|
247
|
+
>
|
|
248
|
+
{formatDDMMYYY(item?.payDate)}
|
|
249
|
+
</MText>
|
|
250
|
+
<MText
|
|
251
|
+
style={{
|
|
252
|
+
flex: 1,
|
|
253
|
+
textAlign: 'center',
|
|
254
|
+
color: '#333333',
|
|
255
|
+
fontSize: 12,
|
|
256
|
+
fontWeight: 'bold',
|
|
257
|
+
}}
|
|
258
|
+
>
|
|
259
|
+
{formatMoney(item?.totalMoneyNeedPayment)} đ
|
|
260
|
+
</MText>
|
|
261
|
+
</View>
|
|
262
|
+
);
|
|
263
|
+
})}
|
|
264
|
+
</View>
|
|
265
|
+
</ScrollView>
|
|
266
|
+
<TouchableOpacity
|
|
267
|
+
onPress={() => {
|
|
268
|
+
navigation.dispatch(
|
|
269
|
+
CommonActions.reset({
|
|
270
|
+
index: 1,
|
|
271
|
+
routes: [{ name: ScreenNames.Main }],
|
|
272
|
+
})
|
|
273
|
+
);
|
|
274
|
+
}}
|
|
275
|
+
style={{
|
|
276
|
+
marginHorizontal: 16,
|
|
277
|
+
marginVertical: 16,
|
|
278
|
+
}}
|
|
279
|
+
>
|
|
280
|
+
<LinearGradient
|
|
281
|
+
colors={['#FF7A00', '#EF4123']}
|
|
282
|
+
style={{
|
|
283
|
+
alignItems: 'center',
|
|
284
|
+
borderRadius: 30,
|
|
285
|
+
height: 40,
|
|
286
|
+
justifyContent: 'center',
|
|
287
|
+
}}
|
|
288
|
+
>
|
|
289
|
+
<MText
|
|
290
|
+
style={{
|
|
291
|
+
color: 'white',
|
|
292
|
+
fontSize: 16,
|
|
293
|
+
}}
|
|
294
|
+
>
|
|
295
|
+
Xác nhận
|
|
296
|
+
</MText>
|
|
297
|
+
</LinearGradient>
|
|
298
|
+
</TouchableOpacity>
|
|
299
|
+
</SafeAreaView>
|
|
300
|
+
<Loading isLoading={isLoading} />
|
|
301
|
+
</View>
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_mobxReactLite","_native","_MHeader","_api","_Loading","_MText","_utils","_reactNativeLinearGradient","_navigation","_jsxFileName","PreviewSchedulePaymentTopup","exports","observer","props","_props$route","_props$route$params2","_data$listPaymentSche","_this","navigation","useNavigation","_React$useState","React","useState","_React$useState2","_slicedToArray2","default","isLoading","setIsLoading","_React$useState3","_React$useState4","data","setData","getData","_callee","_props$route$params","response","_regenerator","async","_callee$","_context","prev","next","awrap","Api","getInstance","getPlanPaymentV2","route","params","id","sent","kind","meta","errorCode","Alert","alert","errorMessage","t0","stop","Promise","useEffect","unsubscribe","addListener","createElement","View","style","flex","backgroundColor","__self","__source","fileName","lineNumber","columnNumber","title","onBack","goBack","SafeAreaView","ScrollView","borderWidth","borderColor","borderRadius","margin","padding","flexDirection","alignItems","justifyContent","MText","fontSize","color","fontWeight","marginTop","formatMoney","loanAmount","totalMoneyInsurance","loanTime","formatDDMMYYY","expectedDisbursementDate","marginHorizontal","height","borderTopLeftRadius","borderTopRightRadius","textAlign","listPaymentSchedule","map","item","index","_data$listPaymentSche2","key","paddingVertical","borderBottomWidth","length","payDate","totalMoneyNeedPayment","TouchableOpacity","onPress","dispatch","CommonActions","reset","routes","name","ScreenNames","Main","marginVertical","colors"],"sourceRoot":"../../../../src","sources":["screens/loan/PreviewSchedulePaymentTopup.tsx"],"mappings":"kWACA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAOA,IAAAE,cAAA,CAAAF,OAAA,oBACA,IAAAG,OAAA,CAAAH,OAAA,6BAKA,IAAAI,QAAA,CAAAL,sBAAA,CAAAC,OAAA,8BACA,IAAAK,IAAA,CAAAL,OAAA,uBACA,IAAAM,QAAA,CAAAP,sBAAA,CAAAC,OAAA,8BACA,IAAAO,MAAA,CAAAP,OAAA,2BACA,IAAAQ,MAAA,CAAAR,OAAA,g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,CAAE,SAAS,CAAE,CAC/B1D,KAAK,CAAE,CACLmB,UAAU,CAAE,QAAQ,CACpBJ,YAAY,CAAE,EAAE,CAChBkB,MAAM,CAAE,EAAE,CACVb,cAAc,CAAE,QAClB,CAAE,CAAAjB,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA5D,YAAA,CAAA6D,UAAA,KAAAC,YAAA,MAEF3E,MAAA,CAAA6B,OAAA,CAAAqC,aAAA,CAACzD,MAAA,CAAAgF,KAAK,EACJrB,KAAK,CAAE,CACLuB,KAAK,CAAE,OAAO,CACdD,QAAQ,CAAE,EACZ,CAAE,CAAAnB,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA5D,YAAA,CAAA6D,UAAA,KAAAC,YAAA,MACH,kBAEM,CACO,CACA,CACN,CAAC,CACf3E,MAAA,CAAA6B,OAAA,CAAAqC,aAAA,CAAC1D,QAAA,CAAAqB,OAAO,EAACC,SAAS,CAAEA,SAAU,CAAAyC,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA5D,YAAA,CAAA6D,UAAA,KAAAC,YAAA,IAAE,CAC5B,CAAC,CAEX,CACF,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.UpdateLoan=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _mobxReactLite=require("mobx-react-lite");var _reactNative=require("react-native");var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _native=require("@react-navigation/native");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _MText=require("../../components/MText");var _formik=require("formik");var _utils=require("../../utils");var _CommonStyles=require("../CommonStyles");var _icons=require("../../assets/icons");var _api=require("../../services/api");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _theme=require("../../theme");var _AppStore=_interopRequireDefault(require("../../AppStore"));var _navigation=require("../../navigation");var _moment=_interopRequireDefault(require("moment"));var _lodash=require("lodash");var yup=_interopRequireWildcard(require("yup"));var _jsxFileName="/Users/tima/Desktop/tima-care-v2/src/screens/loan/UpdateLoan.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var UpdateLoan=exports.UpdateLoan=(0,_mobxReactLite.observer)(function UpdateLoan(props){var _this=this,_formRef$current16;var navigation=(0,_native.useNavigation)();var formRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var _useState3=(0,_react.useState)(0),_useState4=(0,_slicedToArray2.default)(_useState3,2),maximumAmount=_useState4[0],setMaximumAmount=_useState4[1];var getData=function _callee(){var response,_response$data,_response$data$meta,_response$data$data,_formRef$current,_response$data$data2,_formRef$current2,_response$data$data3,_formRef$current3,_response$data$data4,_formRef$current4,_response$data$data5,_formRef$current5,_response$data$data6,_formRef$current6,_response$data$data7,_formRef$current7,_response$data$data8,_formRef$current8,_formRef$current9,_formRef$current10,_formRef$current11,_formRef$current12,_response$data$data13,_response$data$data14,_response$data$data15,rateTypeId,loanTime,timeInsurenceCustomer,timeInsuranceProperty,_response$data2,_response$data2$meta;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:setIsLoading(true);_context.prev=1;_context.next=4;return _regenerator.default.awrap(_api.Api.getInstance().getInfoUpdateTopup(props.route.params.id));case 4:response=_context.sent;if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:(_response$data$meta=_response$data.meta)==null?void 0:_response$data$meta.errorCode)===200){setMaximumAmount((_response$data$data=response.data.data)==null?void 0:_response$data$data.loanAmount);(_formRef$current=formRef.current)==null?void 0:_formRef$current.setFieldValue('loanAmount',(_response$data$data2=response.data.data)==null?void 0:_response$data$data2.loanAmount);(_formRef$current2=formRef.current)==null?void 0:_formRef$current2.setFieldValue('moneyInsurenceCustomer',(_response$data$data3=response.data.data)==null?void 0:_response$data$data3.moneyInsurenceCustomer);(_formRef$current3=formRef.current)==null?void 0:_formRef$current3.setFieldValue('moneyInsuranceProperty',(_response$data$data4=response.data.data)==null?void 0:_response$data$data4.moneyInsuranceProperty);(_formRef$current4=formRef.current)==null?void 0:_formRef$current4.setFieldValue('moneyInsurranceHospitalization',(_response$data$data5=response.data.data)==null?void 0:_response$data$data5.moneyInsurranceHospitalization);(_formRef$current5=formRef.current)==null?void 0:_formRef$current5.setFieldValue('buyInsurenceCustomer',(_response$data$data6=response.data.data)==null?void 0:_response$data$data6.buyInsurenceCustomer);(_formRef$current6=formRef.current)==null?void 0:_formRef$current6.setFieldValue('buyInsuranceProperty',(_response$data$data7=response.data.data)==null?void 0:_response$data$data7.buyInsuranceProperty);(_formRef$current7=formRef.current)==null?void 0:_formRef$current7.setFieldValue('buyInsurranceHospitalization',(_response$data$data8=response.data.data)==null?void 0:_response$data$data8.buyInsurranceHospitalization);rateTypeId=_AppStore.default.listRateType.find(function(x){var _response$data$data9;return x.id===((_response$data$data9=response.data.data)==null?void 0:_response$data$data9.rateTypeId);});(_formRef$current8=formRef.current)==null?void 0:_formRef$current8.setFieldValue('rateTypeId',rateTypeId);loanTime=_AppStore.default.listLoanTime.find(function(x){var _response$data$data10;return x.id===((_response$data$data10=response.data.data)==null?void 0:_response$data$data10.loanTime);});(_formRef$current9=formRef.current)==null?void 0:_formRef$current9.setFieldValue('loanTime',loanTime);timeInsurenceCustomer=_AppStore.default.listInsurenceTimeAll.find(function(x){var _response$data$data11;return x.id===((_response$data$data11=response.data.data)==null?void 0:_response$data$data11.timeInsurenceCustomer);});(_formRef$current10=formRef.current)==null?void 0:_formRef$current10.setFieldValue('timeInsurenceCustomer',timeInsurenceCustomer);timeInsuranceProperty=_AppStore.default.listInsurenceTimeAll.find(function(x){var _response$data$data12;return x.id===((_response$data$data12=response.data.data)==null?void 0:_response$data$data12.timeInsuranceProperty);});(_formRef$current11=formRef.current)==null?void 0:_formRef$current11.setFieldValue('timeInsuranceProperty',timeInsuranceProperty);(_formRef$current12=formRef.current)==null?void 0:_formRef$current12.setFieldValue('firstPaymentDate',(_response$data$data13=response.data.data)!=null&&_response$data$data13.firstPaymentDate?(0,_moment.default)((_response$data$data14=response.data.data)==null?void 0:_response$data$data14.firstPaymentDate).format('DD-MM-YYYY'):null);_AppStore.default.getFirstDayPayment((_response$data$data15=response.data.data)==null?void 0:_response$data$data15.loanBriefId,2);}else{_reactNative.Alert.alert('Thông báo',(_response$data2=response.data)==null?void 0:(_response$data2$meta=_response$data2.meta)==null?void 0:_response$data2$meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra trong quá trình lấy dữ liệu');}_context.next=12;break;case 8:_context.prev=8;_context.t0=_context["catch"](1);console.error(_context.t0);_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra trong quá trình lấy dữ liệu');case 12:_context.prev=12;setIsLoading(false);return _context.finish(12);case 15:case"end":return _context.stop();}},null,null,[[1,8,12,15]],Promise);};(0,_react.useEffect)(function(){var _props$route;if((_props$route=props.route)!=null&&_props$route.params){getData();}},[]);var getInfoInsurence=function _callee2(loanAmount,loanTime,rateTypeId,timeInsurenceCustomer,timeInsuranceProperty){var response,_response$data3,_response$data3$meta,_formRef$current13,_response$data$data16,_formRef$current14,_response$data$data17,_formRef$current15,_response$data$data18,_response$data4,_response$data4$meta;return _regenerator.default.async(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;_context2.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getInfoInsurence(props.route.params.id,loanAmount,loanTime,rateTypeId,timeInsurenceCustomer,timeInsuranceProperty));case 3:response=_context2.sent;if(response.kind==='ok'){if(((_response$data3=response.data)==null?void 0:(_response$data3$meta=_response$data3.meta)==null?void 0:_response$data3$meta.errorCode)===200){(_formRef$current13=formRef.current)==null?void 0:_formRef$current13.setFieldValue('moneyInsurenceCustomer',(_response$data$data16=response.data.data)==null?void 0:_response$data$data16.moneyInsurenceCustomer);(_formRef$current14=formRef.current)==null?void 0:_formRef$current14.setFieldValue('moneyInsuranceProperty',(_response$data$data17=response.data.data)==null?void 0:_response$data$data17.moneyInsuranceProperty);(_formRef$current15=formRef.current)==null?void 0:_formRef$current15.setFieldValue('moneyInsurranceHospitalization',(_response$data$data18=response.data.data)==null?void 0:_response$data$data18.moneyInsurranceHospitalization);}else{_reactNative.Alert.alert('Thông báo',(_response$data4=response.data)==null?void 0:(_response$data4$meta=_response$data4.meta)==null?void 0:_response$data4$meta.errorMessage);}}else{}_context2.next=9;break;case 7:_context2.prev=7;_context2.t0=_context2["catch"](0);case 9:case"end":return _context2.stop();}},null,null,[[0,7]],Promise);};var debounceCall=(0,_react.useCallback)((0,_lodash.debounce)(function(textParam){var _formRef$current$valu,_formRef$current$valu2,_formRef$current$valu3,_formRef$current$valu4,_formRef$current$valu5;getInfoInsurence(Number(textParam.replace(/\D/g,'')),(_formRef$current$valu=formRef.current.values.loanTime)==null?void 0:_formRef$current$valu.id,(_formRef$current$valu2=formRef.current.values)==null?void 0:(_formRef$current$valu3=_formRef$current$valu2.rateTypeId)==null?void 0:_formRef$current$valu3.id,(_formRef$current$valu4=formRef.current.values.timeInsurenceCustomer)==null?void 0:_formRef$current$valu4.id,(_formRef$current$valu5=formRef.current.values.timeInsuranceProperty)==null?void 0:_formRef$current$valu5.id);},500),[]);var onSubmit=function _callee3(values){var _values$rateTypeId,_values$loanTime,_values$timeInsurence,_values$timeInsurance,body,response,_response$data5,_response$data5$meta,_response$data6,_response$data6$meta;return _regenerator.default.async(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.prev=0;body={loanBriefId:props.route.params.id,loanAmount:values==null?void 0:values.loanAmount,rateTypeId:(_values$rateTypeId=values.rateTypeId)==null?void 0:_values$rateTypeId.id,loanTime:values==null?void 0:(_values$loanTime=values.loanTime)==null?void 0:_values$loanTime.id,firstPaymentDate:(0,_moment.default)(values.firstPaymentDate,'DD-MM-YYYY').format('YYYY-MM-DD'),buyInsurenceCustomer:values.buyInsurenceCustomer,buyInsuranceProperty:values.buyInsuranceProperty,buyInsurranceHospitalization:values.buyInsurranceHospitalization,timeInsurenceCustomer:(_values$timeInsurence=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence.id,timeInsuranceProperty:(_values$timeInsurance=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance.id,moneyInsurenceCustomer:values.moneyInsurenceCustomer,moneyInsuranceProperty:values.moneyInsuranceProperty,moneyInsurranceHospitalization:values.moneyInsurranceHospitalization};_context3.next=4;return _regenerator.default.awrap(_api.Api.getInstance().updateInfoTopup(body));case 4:response=_context3.sent;if(response.kind==='ok'){if(((_response$data5=response.data)==null?void 0:(_response$data5$meta=_response$data5.meta)==null?void 0:_response$data5$meta.errorCode)===200){_reactNative.Alert.alert('Thông báo','Cập nhật thông tin thành công',[{text:'Đồng ý',onPress:function onPress(){navigation.dispatch(_native.StackActions.replace(_navigation.ScreenNames.PreviewSchedulePaymentTopup,{id:props.route.params.id,isUpdate:true}));}}]);}else{_reactNative.Alert.alert('Thông báo',(_response$data6=response.data)==null?void 0:(_response$data6$meta=_response$data6.meta)==null?void 0:_response$data6$meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra trong quá trình cập nhật');}_context3.next=12;break;case 8:_context3.prev=8;_context3.t0=_context3["catch"](0);console.error(_context3.t0);_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra trong quá trình cập nhật');case 12:case"end":return _context3.stop();}},null,null,[[0,8]],Promise);};return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'#FDFDFD'},__self:this,__source:{fileName:_jsxFileName,lineNumber:234,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"C\u1EADp nh\u1EADt th\xF4ng tin",onBack:function onBack(){return navigation.goBack();},__self:this,__source:{fileName:_jsxFileName,lineNumber:235,columnNumber:7}}),_react.default.createElement(_reactNative.SafeAreaView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:239,columnNumber:7}},_react.default.createElement(_reactNative.ScrollView,{__self:this,__source:{fileName:_jsxFileName,lineNumber:240,columnNumber:9}},_react.default.createElement(_formik.Formik,{onSubmit:onSubmit,innerRef:formRef,initialValues:{loanAmount:0,moneyInsurenceCustomer:0,moneyInsuranceProperty:0,moneyInsurranceHospitalization:0,buyInsurenceCustomer:false,buyInsuranceProperty:false,buyInsurranceHospitalization:false,rateTypeId:null,loanTime:null,firstPaymentDate:null,timeInsurenceCustomer:null,timeInsuranceProperty:null},validationSchema:yup.object().shape({firstPaymentDate:yup.string().required('Vui lòng chọn ngày thanh toán')}),__self:this,__source:{fileName:_jsxFileName,lineNumber:241,columnNumber:11}},function(_ref){var _values$rateTypeId2,_values$loanTime3,_values$timeInsurence4,_values$timeInsurance5;var values=_ref.values,handleChange=_ref.handleChange,setFieldValue=_ref.setFieldValue,errors=_ref.errors;return _react.default.createElement(_reactNative.View,{style:{padding:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:266,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:267,columnNumber:19}},"Ch\u1ECDn s\u1ED1 ti\u1EC1n"),_react.default.createElement(_reactNative.TextInput,{style:[styles.input,{color:_theme.color.primary}],value:(0,_utils.formatMoney)(values.loanAmount),onChangeText:function onChangeText(text){setFieldValue('loanAmount',Number(text.replace(/\D/g,'')));debounceCall(text);},keyboardType:"numeric",__self:_this,__source:{fileName:_jsxFileName,lineNumber:268,columnNumber:19}}),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#FFEBEB',marginTop:8,padding:8,borderRadius:4,flexDirection:'row',alignItems:'center',gap:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:280,columnNumber:19}},_react.default.createElement(_icons.WarningIcon,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:291,columnNumber:21}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',fontSize:12},__self:_this,__source:{fileName:_jsxFileName,lineNumber:292,columnNumber:21}},"S\u1ED1 ti\u1EC1n vay t\u1ED1i \u0111a ",(0,_utils.formatMoney)(maximumAmount),"\u0111")),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:302,columnNumber:19}},"H\xECnh th\u1EE9c thanh to\xE1n"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn hình thức thanh toán',data:_AppStore.default.listRateType,callback:function callback(value){var _values$loanTime2,_values$timeInsurence2,_values$timeInsurance2;setFieldValue('rateTypeId',value);getInfoInsurence(values.loanAmount,(_values$loanTime2=values.loanTime)==null?void 0:_values$loanTime2.id,value==null?void 0:value.id,(_values$timeInsurence2=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence2.id,(_values$timeInsurance2=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance2.id);}}));},style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:305,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:333,columnNumber:21}},values==null?void 0:(_values$rateTypeId2=values.rateTypeId)==null?void 0:_values$rateTypeId2.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:339,columnNumber:21}})),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:342,columnNumber:19}},"Th\u1EDDi gian vay"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn thời gian vay',data:_AppStore.default.listLoanTime,callback:function callback(value){var _values$rateTypeId3,_values$timeInsurence3,_values$timeInsurance3;setFieldValue('loanTime',value);getInfoInsurence(values.loanAmount,value==null?void 0:value.id,values==null?void 0:(_values$rateTypeId3=values.rateTypeId)==null?void 0:_values$rateTypeId3.id,(_values$timeInsurence3=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence3.id,(_values$timeInsurance3=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance3.id);}}));},style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:345,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:373,columnNumber:21}},values==null?void 0:(_values$loanTime3=values.loanTime)==null?void 0:_values$loanTime3.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:379,columnNumber:21}})),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#FFF8F2',marginTop:16,borderRadius:8,padding:16,borderLeftWidth:1,borderLeftColor:'#EF592E'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:382,columnNumber:19}},_react.default.createElement(_MText.MText,{style:{color:'#EF592E',fontWeight:'bold'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:392,columnNumber:21}},"Ph\xED kh\xE1c"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:10,marginTop:10},__self:_this,__source:{fileName:_jsxFileName,lineNumber:400,columnNumber:21}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setFieldValue('buyInsurenceCustomer',!values.buyInsurenceCustomer);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:408,columnNumber:23}},values.buyInsurenceCustomer?_react.default.createElement(_icons.CheckBoxActive,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:417,columnNumber:27}}):_react.default.createElement(_icons.CheckBox,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:419,columnNumber:27}})),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:422,columnNumber:23}},_react.default.createElement(_MText.MText,{style:{color:'#333333',fontSize:12,fontWeight:'bold'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:423,columnNumber:25}},"BH s\u1EE9c kho\u1EBB ng\u01B0\u1EDDi vay"),_react.default.createElement(_MText.MText,{style:{color:'#828282',fontSize:12,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:432,columnNumber:25}},"S\u1ED1 ti\u1EC1n",' ',_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:440,columnNumber:27}},(0,_utils.formatMoney)(values.moneyInsurenceCustomer),"\u0111"))),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn thời gian',data:_AppStore.default.listInsurenceTimeAll,callback:function callback(value){var _values$loanTime4,_values$rateTypeId4,_values$timeInsurance4;setFieldValue('timeInsurenceCustomer',value);getInfoInsurence(values.loanAmount,(_values$loanTime4=values.loanTime)==null?void 0:_values$loanTime4.id,values==null?void 0:(_values$rateTypeId4=values.rateTypeId)==null?void 0:_values$rateTypeId4.id,value==null?void 0:value.id,(_values$timeInsurance4=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance4.id);}}));},style:{backgroundColor:'#FFFFFF',height:40,borderRadius:6,alignItems:'center',justifyContent:'space-between',flexDirection:'row',paddingHorizontal:10,borderWidth:1,borderColor:'#F5F5F5',width:_reactNative.Dimensions.get('window').width/3},__self:_this,__source:{fileName:_jsxFileName,lineNumber:450,columnNumber:23}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:482,columnNumber:25}},(_values$timeInsurence4=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence4.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:485,columnNumber:25}}))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#EFEFEF',marginVertical:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:488,columnNumber:21}}),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:10},__self:_this,__source:{fileName:_jsxFileName,lineNumber:495,columnNumber:21}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setFieldValue('buyInsuranceProperty',!values.buyInsuranceProperty);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:502,columnNumber:23}},values.buyInsuranceProperty?_react.default.createElement(_icons.CheckBoxActive,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:511,columnNumber:27}}):_react.default.createElement(_icons.CheckBox,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:513,columnNumber:27}})),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:516,columnNumber:23}},_react.default.createElement(_MText.MText,{style:{color:'#333333',fontSize:12,fontWeight:'bold'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:517,columnNumber:25}},"B\u1EA3o hi\u1EC3m v\u1EADt ch\u1EA5t"),_react.default.createElement(_MText.MText,{style:{color:'#828282',fontSize:12,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:526,columnNumber:25}},"S\u1ED1 ti\u1EC1n",' ',_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:534,columnNumber:27}},(0,_utils.formatMoney)(values.moneyInsuranceProperty),"\u0111"))),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn thời gian',data:_AppStore.default.listInsurenceTimeAll,callback:function callback(value){var _values$loanTime5,_values$rateTypeId5,_values$timeInsurence5;setFieldValue('timeInsuranceProperty',value);getInfoInsurence(values.loanAmount,(_values$loanTime5=values.loanTime)==null?void 0:_values$loanTime5.id,values==null?void 0:(_values$rateTypeId5=values.rateTypeId)==null?void 0:_values$rateTypeId5.id,values==null?void 0:(_values$timeInsurence5=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence5.id,value==null?void 0:value.id);}}));},style:{backgroundColor:'#FFFFFF',height:40,borderRadius:6,alignItems:'center',justifyContent:'space-between',flexDirection:'row',paddingHorizontal:10,borderWidth:1,borderColor:'#F5F5F5',width:_reactNative.Dimensions.get('window').width/3},__self:_this,__source:{fileName:_jsxFileName,lineNumber:544,columnNumber:23}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:576,columnNumber:25}},(_values$timeInsurance5=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance5.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:579,columnNumber:25}}))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#EFEFEF',marginVertical:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:582,columnNumber:21}}),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:10},__self:_this,__source:{fileName:_jsxFileName,lineNumber:589,columnNumber:21}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setFieldValue('buyInsurranceHospitalization',!values.buyInsurranceHospitalization);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:596,columnNumber:23}},values.buyInsurranceHospitalization?_react.default.createElement(_icons.CheckBoxActive,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:605,columnNumber:27}}):_react.default.createElement(_icons.CheckBox,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:607,columnNumber:27}})),_react.default.createElement(_reactNative.View,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:610,columnNumber:23}},_react.default.createElement(_MText.MText,{style:{color:'#333333',fontSize:12,fontWeight:'bold'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:611,columnNumber:25}},"BH tr\u1EE3 c\u1EA5p n\u1EB1m vi\u1EC7n"),_react.default.createElement(_MText.MText,{style:{color:'#828282',fontSize:12,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:620,columnNumber:25}},"S\u1ED1 ti\u1EC1n",' ',_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:628,columnNumber:27}},(0,_utils.formatMoney)(values.moneyInsurranceHospitalization),"\u0111")))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#BDBDBD',marginVertical:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:640,columnNumber:21}}),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',gap:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:647,columnNumber:21}},_react.default.createElement(_icons.Tick2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:648,columnNumber:23}}),_react.default.createElement(_MText.MText,{style:{fontSize:10,color:'#828282'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:649,columnNumber:23}},"Quy\u1EC1n l\u1EE3i b\u1EA3o hi\u1EC3m s\u1EE9c kho\u1EBB l\xEAn t\u1EDBi 100% t\u1EEB B\u1EA3o Minh",'\n',"(Tai n\u1EA1n, th\u01B0\u01A1ng t\u1EADt,...)")),_react.default.createElement(_reactNative.View,{style:{marginTop:8,flexDirection:'row',gap:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:660,columnNumber:21}},_react.default.createElement(_icons.Tick2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:663,columnNumber:23}}),_react.default.createElement(_MText.MText,{style:{fontSize:10,color:'#828282'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:664,columnNumber:23}},"Quy\u1EC1n l\u1EE3i b\u1EA3o hi\u1EC3m v\u1EADt ch\u1EA5t 100% t\u1EEB B\u1EA3o Minh"))),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:675,columnNumber:19}},"Ch\u1ECDn l\u1ECBch thanh to\xE1n"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn ngày thanh toán',data:_AppStore.default.listFirstDayPayment.map(function(x,index){return{id:index+1,name:x};}),callback:function callback(value){setFieldValue('firstPaymentDate',value.name);}}));},style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:678,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:704,columnNumber:21}},values==null?void 0:values.firstPaymentDate),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:710,columnNumber:21}})),errors&&errors.firstPaymentDate&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:713,columnNumber:21}},errors.firstPaymentDate));})),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:(_formRef$current16=formRef.current)==null?void 0:_formRef$current16.handleSubmit,style:{marginHorizontal:16,marginVertical:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:729,columnNumber:9}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:{alignItems:'center',borderRadius:30,height:40,justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:736,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:745,columnNumber:13}},"C\u1EADp nh\u1EADt")))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:756,columnNumber:7}}));});var styles=_reactNative.StyleSheet.create({input:{height:40,marginVertical:0,borderWidth:0.5,borderColor:'#E0E0E0',borderRadius:4,marginTop:8,paddingHorizontal:10,fontFamily:'Roboto',color:'#333333',fontWeight:'bold'}});
|
|
2
|
+
//# sourceMappingURL=UpdateLoan.js.map
|