react-native-timacare 3.3.47 → 3.3.49

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.
@@ -7,6 +7,10 @@ import { formatDDMMYYY, formatMoney } from '../../utils';
7
7
  import { Api } from '../../services/api';
8
8
  import { color } from '../../theme';
9
9
  import { SkeletonDisbursedList } from '../../components/SkeletonLoanCard';
10
+ import LinearGradient from 'react-native-linear-gradient';
11
+ import { useNavigation } from '@react-navigation/native';
12
+ import { commonStyles } from '../CommonStyles';
13
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
10
14
 
11
15
  const cardStyle = {
12
16
  backgroundColor: '#FFFFFF',
@@ -43,14 +47,17 @@ const InfoRow = ({ label, value, valueColor = '#1A1A1A' }) => (
43
47
  );
44
48
 
45
49
  export default function InforLoan({ id }: { id: number }) {
50
+ const navigation = useNavigation();
46
51
  const [isLoading, setIsLoading] = useState(false);
47
52
  const [data, setData] = useState<any>();
48
53
  const [expanded, setExpanded] = useState(false);
54
+ const insets = useSafeAreaInsets();
49
55
 
50
56
  const getData = async () => {
51
57
  try {
52
58
  setIsLoading(true);
53
59
  const response = await Api.getInstance().get_detail_loan_tima(id);
60
+ console.log(response);
54
61
  if (response.kind === 'ok') {
55
62
  if (response.data?.meta?.errorCode === 200) {
56
63
  setData(response.data?.data);
@@ -80,120 +87,155 @@ export default function InforLoan({ id }: { id: number }) {
80
87
  }
81
88
 
82
89
  return (
83
- <ScrollView
84
- style={{ flex: 1 }}
85
- contentContainerStyle={{ paddingVertical: 16 }}
86
- >
87
- {/* Thẻ thông tin hợp đồng giải ngân */}
88
- <View style={cardStyle}>
89
- <InfoRow label="Mã HĐ giải ngân" value={data?.contractCode || ''} />
90
- <InfoRow
91
- label="Số tiền giải ngân"
92
- value={`${formatMoney(data?.totalMoneyDisbursement || 0)} đ`}
93
- />
94
- <InfoRow
95
- label="Thời hạn"
96
- value={data?.loanTime ? `${data?.loanTime} tháng` : ''}
97
- />
98
- <InfoRow
99
- label="Ngày giải ngân"
100
- value={data?.fromDate ? formatDDMMYYY(data?.fromDate) : ''}
101
- />
102
- <InfoRow
103
- label="Ngày đến hạn tiếp theo"
104
- value={data?.nextDate ? formatDDMMYYY(data?.nextDate) : ''}
105
- />
106
- <InfoRow label="Trạng thái Hợp đồng" value={data?.statusName || ''} />
107
- </View>
108
-
109
- {/* Thẻ tổng phải trả + trạng thái thanh toán */}
110
- <View
111
- style={[
112
- {
113
- marginTop: 16,
114
- marginHorizontal: 16,
115
- paddingHorizontal: 16,
116
- paddingVertical: 8,
117
- borderRadius: 12,
118
- borderWidth: 1,
119
- borderColor: '#E0E0E0',
120
- },
121
- ]}
90
+ <>
91
+ <ScrollView
92
+ style={{ flex: 1 }}
93
+ contentContainerStyle={{ paddingVertical: 16 }}
122
94
  >
123
- <TouchableOpacity
124
- activeOpacity={0.8}
125
- onPress={() => setExpanded((prev) => !prev)}
126
- style={{
127
- flexDirection: 'row',
128
- alignItems: 'center',
129
- justifyContent: 'space-between',
130
- paddingVertical: 12,
131
- }}
95
+ {/* Thẻ thông tin hợp đồng giải ngân */}
96
+ <View style={cardStyle}>
97
+ <InfoRow label="Mã giải ngân" value={data?.contractCode || ''} />
98
+ <InfoRow
99
+ label="Số tiền giải ngân"
100
+ value={`${formatMoney(data?.totalMoneyDisbursement || 0)} đ`}
101
+ />
102
+ <InfoRow
103
+ label="Thời hạn"
104
+ value={data?.loanTime ? `${data?.loanTime} tháng` : ''}
105
+ />
106
+ <InfoRow
107
+ label="Ngày giải ngân"
108
+ value={data?.fromDate ? formatDDMMYYY(data?.fromDate) : ''}
109
+ />
110
+ <InfoRow
111
+ label="Ngày đến hạn tiếp theo"
112
+ value={data?.nextDate ? formatDDMMYYY(data?.nextDate) : ''}
113
+ />
114
+ <InfoRow label="Trạng thái Hợp đồng" value={data?.statusName || ''} />
115
+ </View>
116
+
117
+ {/* Thẻ tổng phải trả + trạng thái thanh toán */}
118
+ <View
119
+ style={[
120
+ {
121
+ marginTop: 16,
122
+ marginHorizontal: 16,
123
+ paddingHorizontal: 16,
124
+ paddingVertical: 8,
125
+ borderRadius: 12,
126
+ borderWidth: 1,
127
+ borderColor: '#E0E0E0',
128
+ },
129
+ ]}
132
130
  >
133
- <MText style={{ fontSize: 14, color: '#4F4F4F' }}>
134
- Tổng phải trả
135
- </MText>
136
- <View style={{ flexDirection: 'row', alignItems: 'center' }}>
137
- <MText
138
- style={{
139
- fontSize: 14,
140
- fontWeight: '600',
141
- fontFamily: 'BeVietnamPro-SemiBold',
142
- color: color.primary,
143
- marginRight: 8,
144
- }}
145
- >
146
- {formatMoney(data?.totalMoneyNeedPay || 0)} đ
131
+ <TouchableOpacity
132
+ activeOpacity={0.8}
133
+ onPress={() => setExpanded((prev) => !prev)}
134
+ style={{
135
+ flexDirection: 'row',
136
+ alignItems: 'center',
137
+ justifyContent: 'space-between',
138
+ paddingVertical: 12,
139
+ }}
140
+ >
141
+ <MText style={{ fontSize: 14, color: '#4F4F4F' }}>
142
+ Tổng phải trả
147
143
  </MText>
148
- <View
149
- style={{
150
- transform: [{ rotate: expanded ? '180deg' : '0deg' }],
151
- }}
152
- >
153
- <IconArrowDown width={14} height={14} fill="#828282" />
154
- </View>
155
- </View>
156
- </TouchableOpacity>
157
- {/* Chi tiết kỳ thanh toán khi mở rộng */}
158
- {expanded &&
159
- data?.schedules?.map((item, index) => (
160
- <View
161
- key={item?.paymentScheduleID || index}
162
- style={{
163
- flexDirection: 'row',
164
- alignItems: 'center',
165
- justifyContent: 'space-between',
166
- paddingVertical: 8,
167
- paddingHorizontal: 24,
168
- }}
169
- >
170
- <MText style={{ fontSize: 13, color: '#828282' }}>
171
- {formatDDMMYYY(item?.payDate)}
172
- </MText>
144
+ <View style={{ flexDirection: 'row', alignItems: 'center' }}>
173
145
  <MText
174
146
  style={{
175
- fontSize: 13,
176
- color: '#828282',
147
+ fontSize: 14,
148
+ fontWeight: '600',
149
+ fontFamily: 'BeVietnamPro-SemiBold',
150
+ color: color.primary,
151
+ marginRight: 8,
177
152
  }}
178
153
  >
179
- {formatMoney(item?.moneyNeedPay || 0)} đ
154
+ {formatMoney(data?.totalMoneyNeedPay || 0)} đ
180
155
  </MText>
156
+ <View
157
+ style={{
158
+ transform: [{ rotate: expanded ? '180deg' : '0deg' }],
159
+ }}
160
+ >
161
+ <IconArrowDown width={14} height={14} fill="#828282" />
162
+ </View>
181
163
  </View>
182
- ))}
183
- {expanded && (
184
- <View
164
+ </TouchableOpacity>
165
+ {/* Chi tiết kỳ thanh toán khi mở rộng */}
166
+ {expanded &&
167
+ data?.schedules?.map((item, index) => (
168
+ <View
169
+ key={item?.paymentScheduleID || index}
170
+ style={{
171
+ flexDirection: 'row',
172
+ alignItems: 'center',
173
+ justifyContent: 'space-between',
174
+ paddingVertical: 8,
175
+ paddingHorizontal: 24,
176
+ }}
177
+ >
178
+ <MText style={{ fontSize: 13, color: '#828282' }}>
179
+ {formatDDMMYYY(item?.payDate)}
180
+ </MText>
181
+ <MText
182
+ style={{
183
+ fontSize: 13,
184
+ color: '#828282',
185
+ }}
186
+ >
187
+ {formatMoney(item?.moneyNeedPay || 0)} đ
188
+ </MText>
189
+ </View>
190
+ ))}
191
+ {expanded && (
192
+ <View
193
+ style={{
194
+ height: 1,
195
+ backgroundColor: '#E0E0E0',
196
+ }}
197
+ />
198
+ )}
199
+ <InfoRow
200
+ label="Trạng thái"
201
+ value={data?.paymentStatusName || ''}
202
+ valueColor={data?.isPaid ? '#27AE60' : color.primary}
203
+ />
204
+ </View>
205
+ </ScrollView>
206
+ <View
207
+ style={{
208
+ paddingHorizontal: 16,
209
+ marginBottom: insets.bottom,
210
+ }}
211
+ >
212
+ <TouchableOpacity
213
+ onPress={() => {
214
+ navigation.navigate('ShowQrCode', {
215
+ data,
216
+ id: id,
217
+ item: {
218
+ payMoney: data?.totalMoneyNeedPay,
219
+ },
220
+ });
221
+ }}
222
+ >
223
+ <LinearGradient
224
+ colors={['#FF7A00', '#EF4123']}
185
225
  style={{
186
- height: 1,
187
- backgroundColor: '#E0E0E0',
226
+ borderRadius: 30,
227
+ paddingHorizontal: 24,
228
+ alignItems: 'center',
229
+ justifyContent: 'center',
230
+ height: 40,
188
231
  }}
189
- />
190
- )}
191
- <InfoRow
192
- label="Trạng thái"
193
- value={data?.paymentStatusName || ''}
194
- valueColor={data?.isPaid ? '#27AE60' : color.primary}
195
- />
232
+ >
233
+ <MText style={[commonStyles.textNormalBold, { color: '#FDFDFD' }]}>
234
+ Thanh toán
235
+ </MText>
236
+ </LinearGradient>
237
+ </TouchableOpacity>
196
238
  </View>
197
- </ScrollView>
239
+ </>
198
240
  );
199
241
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_MText","_icons","_utils","_api","_theme","_SkeletonLoanCard","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t2","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","cardStyle","backgroundColor","borderRadius","borderWidth","borderColor","marginHorizontal","paddingHorizontal","paddingVertical","InfoRow","_ref","label","value","_ref$valueColor","valueColor","createElement","View","style","flexDirection","alignItems","justifyContent","__self","__source","fileName","lineNumber","columnNumber","MText","fontSize","color","fontWeight","fontFamily","InforLoan","_ref2","_data$schedules","_this2","id","_useState","useState","_useState2","_slicedToArray2","isLoading","setIsLoading","_useState3","_useState4","data","setData","_useState5","_useState6","expanded","setExpanded","getData","_callee","response","_response$data","_response$data$meta","_response$data2","_response$data3","_response$data3$meta","_t","_regenerator","async","_context","prev","next","awrap","Api","getInstance","get_detail_loan_tima","sent","kind","meta","errorCode","Alert","alert","errorMessage","finish","stop","Promise","useEffect","ScrollView","flex","paddingTop","SkeletonDisbursedList","count","contentContainerStyle","contractCode","formatMoney","totalMoneyDisbursement","loanTime","fromDate","formatDDMMYYY","nextDate","statusName","marginTop","TouchableOpacity","activeOpacity","onPress","primary","marginRight","totalMoneyNeedPay","transform","rotate","IconArrowDown","width","height","fill","schedules","map","item","index","key","paymentScheduleID","payDate","moneyNeedPay","paymentStatusName","isPaid"],"sourceRoot":"../../../../src","sources":["screens/detail-loan-tima/InforLoan.tsx"],"mappings":"iVACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBACA,IAAAE,MAAA,CAAAF,OAAA,2BACA,IAAAG,MAAA,CAAAH,OAAA,uBACA,IAAAI,MAAA,CAAAJ,OAAA,gBACA,IAAAK,IAAA,CAAAL,OAAA,uBACA,IAAAM,MAAA,CAAAN,OAAA,gBACA,IAAAO,iBAAA,CAAAP,OAAA,sCAA0E,IAAAQ,KAAA,MAAAC,YAAA,8FAAAV,wBAAAW,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAb,uBAAA,UAAAA,wBAAAW,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,SAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,CAAAM,CAAA,EAAAO,GAAA,CAAAb,CAAA,CAAAQ,CAAA,WAAAM,GAAA,IAAAd,CAAA,aAAAc,GAAA,KAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,CAAAc,GAAA,KAAAP,CAAA,EAAAD,CAAA,CAAAW,MAAA,CAAAC,cAAA,GAAAD,MAAA,CAAAE,wBAAA,CAAAnB,CAAA,CAAAc,GAAA,KAAAP,CAAA,CAAAK,GAAA,EAAAL,CAAA,CAAAM,GAAA,EAAAP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AAA4C,UAAA,KAAAC,YAAA,KACH,CACF,CACDxD,MAAA,CAAAsB,OAAA,CAAAwB,aAAA,CAACN,OAAO,EACNE,KAAK,CAAC,oBAAY,CAClBC,KAAK,CAAE,CAAAgC,IAAI,cAAJA,IAAI,CAAEsE,iBAAiB,GAAI,EAAG,CACrCpG,UAAU,CAAE8B,IAAI,QAAJA,IAAI,CAAEuE,MAAM,CAAG,SAAS,CAAGvF,YAAK,CAACqE,OAAQ,CAAA5E,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA3C,YAAA,CAAA4C,UAAA,KAAAC,YAAA,IACtD,CACG,CACI,CAAC,CAEjB","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_MText","_icons","_utils","_api","_theme","_SkeletonLoanCard","_reactNativeLinearGradient","_interopRequireDefault","_native","_CommonStyles","_reactNativeSafeAreaContext","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t2","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","cardStyle","backgroundColor","borderRadius","borderWidth","borderColor","marginHorizontal","paddingHorizontal","paddingVertical","InfoRow","_ref","label","value","_ref$valueColor","valueColor","createElement","View","style","flexDirection","alignItems","justifyContent","__self","__source","fileName","lineNumber","columnNumber","MText","fontSize","color","fontWeight","fontFamily","InforLoan","_ref2","_data$schedules","_this2","id","navigation","useNavigation","_useState","useState","_useState2","_slicedToArray2","isLoading","setIsLoading","_useState3","_useState4","data","setData","_useState5","_useState6","expanded","setExpanded","insets","useSafeAreaInsets","getData","_callee","response","_response$data","_response$data$meta","_response$data2","_response$data3","_response$data3$meta","_t","_regenerator","async","_context","prev","next","awrap","Api","getInstance","get_detail_loan_tima","sent","console","log","kind","meta","errorCode","Alert","alert","errorMessage","finish","stop","Promise","useEffect","ScrollView","flex","paddingTop","SkeletonDisbursedList","count","Fragment","contentContainerStyle","contractCode","formatMoney","totalMoneyDisbursement","loanTime","fromDate","formatDDMMYYY","nextDate","statusName","marginTop","TouchableOpacity","activeOpacity","onPress","primary","marginRight","totalMoneyNeedPay","transform","rotate","IconArrowDown","width","height","fill","schedules","map","item","index","key","paymentScheduleID","payDate","moneyNeedPay","paymentStatusName","isPaid","marginBottom","bottom","navigate","payMoney","colors","commonStyles","textNormalBold"],"sourceRoot":"../../../../src","sources":["screens/detail-loan-tima/InforLoan.tsx"],"mappings":"iVACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBACA,IAAAE,MAAA,CAAAF,OAAA,2BACA,IAAAG,MAAA,CAAAH,OAAA,uBACA,IAAAI,MAAA,CAAAJ,OAAA,gBACA,IAAAK,IAAA,CAAAL,OAAA,uBACA,IAAAM,MAAA,CAAAN,OAAA,gBACA,IAAAO,iBAAA,CAAAP,OAAA,sCACA,IAAAQ,0BAAA,CAAAC,sBAAA,CAAAT,OAAA,kCACA,IAAAU,OAAA,CAAAV,OAAA,6BACA,IAAAW,aAAA,CAAAX,OAAA,oBACA,IAAAY,2BAAA,CAAAZ,OAAA,mCAAmE,IAAAa,KAAA,MAAAC,YAAA,8FAAAf,wBAAAgB,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAlB,uBAAA,UAAAA,wBAAAgB,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,SAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,CAAAM,CAAA,EAAAO,GAA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AAAsI,gBAAgB,EACfE,OAAO,CAAE,QAAT,CAAAA,OAAOA,CAAA,CAAQ,CACbnE,UAAU,CAACyF,QAAQ,CAAC,YAAY,CAAE,CAChC/E,IAAI,CAAJA,IAAI,CACJX,EAAE,CAAEA,EAAE,CACNgF,IAAI,CAAE,CACJW,QAAQ,CAAEhF,IAAI,cAAJA,IAAI,CAAE4D,iBAClB,CACF,CAAC,CAAC,CACJ,CAAE,CAAArF,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA3C,YAAA,CAAA4C,UAAA,KAAAC,YAAA,KAEF7D,MAAA,CAAA2B,OAAA,CAAAwB,aAAA,CAACzC,0BAAA,CAAAiB,OAAc,EACbwI,MAAM,CAAE,CAAC,SAAS,CAAE,SAAS,CAAE,CAC/B9G,KAAK,CAAE,CACLd,YAAY,CAAE,EAAE,CAChBI,iBAAiB,CAAE,EAAE,CACrBY,UAAU,CAAE,QAAQ,CACpBC,cAAc,CAAE,QAAQ,CACxB2F,MAAM,CAAE,EACV,CAAE,CAAA1F,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA3C,YAAA,CAAA4C,UAAA,KAAAC,YAAA,MAEF7D,MAAA,CAAA2B,OAAA,CAAAwB,aAAA,CAAC/C,MAAA,CAAA0D,KAAK,EAACT,KAAK,CAAE,CAAC+G,0BAAY,CAACC,cAAc,CAAE,CAAErG,KAAK,CAAE,SAAU,CAAC,CAAE,CAAAP,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA3C,YAAA,CAAA4C,UAAA,KAAAC,YAAA,MAAC,eAE5D,CACO,CACA,CACd,CACN,CAAC,CAEP","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.ShowQrCode=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _icons=require("../../assets/icons");var _MText=require("../../components/MText");var _native=require("@react-navigation/native");var _api=require("../../services/api");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _cameraRoll=require("@react-native-camera-roll/camera-roll");var _reactNativeBlobUtil=_interopRequireDefault(require("react-native-blob-util"));var _utils=require("../../utils");var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _reactNativeModal=_interopRequireDefault(require("react-native-modal"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _moment=_interopRequireDefault(require("moment"));var _rnTourguide=require("rn-tourguide");var _storage=require("../../utils/storage");var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/detail-loan/ShowQrCode.tsx",_this=this;function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var ShowQrCode=exports.ShowQrCode=(0,_mobxReactLite.observer)(function ShowQrCode(props){return _react.default.createElement(_rnTourguide.TourGuideProvider,{borderRadius:8,maskOffset:4,tooltipComponent:TransferContentTooltip,tooltipStyle:$tourTooltipPosition,backdropColor:"rgba(0, 0, 0, 0.35)",androidStatusBarVisible:true,verticalOffset:_reactNative.Platform.OS==='android'?_reactNative.StatusBar.currentHeight-25:0,__self:this,__source:{fileName:_jsxFileName,lineNumber:43,columnNumber:5}},_react.default.createElement(ShowQrCodeContent,(0,_extends2.default)({},props,{__self:this,__source:{fileName:_jsxFileName,lineNumber:54,columnNumber:7}})));});var TransferContentTooltip=function TransferContentTooltip(_ref){var currentStep=_ref.currentStep,handleStop=_ref.handleStop;return _react.default.createElement(_reactNative.View,{style:$tourTooltip,__self:_this,__source:{fileName:_jsxFileName,lineNumber:61,columnNumber:5}},_react.default.createElement(_MText.MText,{style:$tourTooltipText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:62,columnNumber:7}},currentStep==null?void 0:currentStep.text),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:handleStop,style:$tourTooltipButton,__self:_this,__source:{fileName:_jsxFileName,lineNumber:63,columnNumber:7}},_react.default.createElement(_MText.MText,{style:$tourTooltipButtonText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:64,columnNumber:9}},"\u0110\u1ED3ng \xFD")),_react.default.createElement(_reactNative.View,{style:$tourTooltipArrow,__self:_this,__source:{fileName:_jsxFileName,lineNumber:66,columnNumber:7}}));};var ShowQrCodeContent=(0,_mobxReactLite.observer)(function ShowQrCodeContent(props){var _props$route8,_props$route8$params,_props$route9,_props$route9$params,_props$route9$params$,_props$route$params2,_props$route$params2$,_props$route$params4,_props$route$params4$,_props$route0,_props$route0$params,_props$route1,_props$route1$params,_props$route10,_props$route10$params,_props$route10$params2,_props$route14,_props$route14$params,_props$route$params5,_props$route$params5$,_props$route$params6,_props$route$params6$,_props$route17,_props$route17$params;var navigation=(0,_native.useNavigation)();var scrollViewRef=(0,_react.useRef)(null);var transferContentRef=(0,_react.useRef)(null);var transferContentY=(0,_react.useRef)(0);var transferContentHeight=(0,_react.useRef)(0);var scrollViewHeight=(0,_react.useRef)(0);var scrollContentHeight=(0,_react.useRef)(0);var startGuideTimeout=(0,_react.useRef)();var _useState=(0,_react.useState)(),_useState2=(0,_slicedToArray2.default)(_useState,2),linkImage=_useState2[0],setLinkImage=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),isLoading=_useState4[0],setIsLoading=_useState4[1];var _useState5=(0,_react.useState)(false),_useState6=(0,_slicedToArray2.default)(_useState5,2),showGuide=_useState6[0],setShowGuide=_useState6[1];var _useState7=(0,_react.useState)(false),_useState8=(0,_slicedToArray2.default)(_useState7,2),shouldStartGuide=_useState8[0],setShouldStartGuide=_useState8[1];var _useState9=(0,_react.useState)(false),_useState0=(0,_slicedToArray2.default)(_useState9,2),isGuideRunning=_useState0[0],setIsGuideRunning=_useState0[1];var _useTourGuideControll=(0,_rnTourguide.useTourGuideController)(),canStart=_useTourGuideControll.canStart,start=_useTourGuideControll.start,eventEmitter=_useTourGuideControll.eventEmitter;var getData=function getData(){var _props$route,_props$route$params,_props$route2,_props$route2$params,_props$route3,_props$route3$params,_props$route4,_props$route4$params,_props$route5,_props$route5$params,_props$route5$params$;setIsLoading(true);_api.Api.getInstance().getQrPayment({LoanBriefId:props==null?void 0:(_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:_props$route$params.id,TypeCloseLoan:props!=null&&(_props$route2=props.route)!=null&&(_props$route2$params=_props$route2.params)!=null&&_props$route2$params.isFullPayment?1:0,Money:props!=null&&(_props$route3=props.route)!=null&&(_props$route3$params=_props$route3.params)!=null&&_props$route3$params.isFullPayment?props==null?void 0:(_props$route4=props.route)==null?void 0:(_props$route4$params=_props$route4.params)==null?void 0:_props$route4$params.totalMoney:props==null?void 0:(_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:(_props$route5$params$=_props$route5$params.item)==null?void 0:_props$route5$params$.payMoney}).then(function(response){setIsLoading(false);if(response.kind==='ok'){if(response.data.meta.errorCode===200){var _response$data,_response$data$data,_props$route6,_props$route6$params;setLinkImage((_response$data=response.data)==null?void 0:(_response$data$data=_response$data.data)==null?void 0:_response$data$data.fullPath);if(props!=null&&(_props$route6=props.route)!=null&&(_props$route6$params=_props$route6.params)!=null&&_props$route6$params.isFullPayment){setTimeout(function(){setShowGuide(true);},300);}else{setShouldStartGuide(true);}}else{var _response$data2,_response$data2$meta;_reactNative.Alert.alert('Thông báo',response==null?void 0:(_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. Vui lòng thử lại sau');}}).catch(function(err){_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');setIsLoading(false);}).finally(function(){setIsLoading(false);});};(0,_react.useEffect)(function(){getData();},[]);(0,_react.useEffect)(function(){var handleStartGuide=function handleStartGuide(){return setIsGuideRunning(true);};var handleStopGuide=function handleStopGuide(){return setIsGuideRunning(false);};eventEmitter==null?void 0:eventEmitter.on('start',handleStartGuide);eventEmitter==null?void 0:eventEmitter.on('stop',handleStopGuide);return function(){eventEmitter==null?void 0:eventEmitter.off('start',handleStartGuide);eventEmitter==null?void 0:eventEmitter.off('stop',handleStopGuide);};},[eventEmitter]);var scrollToTransferContent=function scrollToTransferContent(){var _scrollViewRef$curren2,_transferContentRef$c;var scrollToY=function scrollToY(y){var _scrollViewRef$curren;var targetHeight=arguments.length>1&&arguments[1]!==undefined?arguments[1]:transferContentHeight.current;var viewportHeight=scrollViewHeight.current||_reactNative.Dimensions.get('window').height;var contentHeight=scrollContentHeight.current||viewportHeight;var maxScrollY=Math.max(contentHeight-viewportHeight,0);var minTopForTooltip=120;var bottomGap=80;var preferredTargetTop=Math.min(Math.max(viewportHeight*0.42,minTopForTooltip),Math.max(viewportHeight-targetHeight-bottomGap,minTopForTooltip));var nextScrollY=Math.min(Math.max(y-preferredTargetTop,0),maxScrollY);(_scrollViewRef$curren=scrollViewRef.current)==null?void 0:_scrollViewRef$curren.scrollTo({y:nextScrollY,animated:true});};var innerViewNode=(_scrollViewRef$curren2=scrollViewRef.current)==null?void 0:_scrollViewRef$curren2.getInnerViewNode==null?void 0:_scrollViewRef$curren2.getInnerViewNode();if(innerViewNode&&(_transferContentRef$c=transferContentRef.current)!=null&&_transferContentRef$c.measureLayout){transferContentRef.current.measureLayout(innerViewNode,function(_x,y,_width,height){return scrollToY(y,height);},function(){return scrollToY(transferContentY.current);});}else{scrollToY(transferContentY.current);}};var startGuide=function _callee(){var guide;return _regenerator.default.async(function(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=1;return _regenerator.default.awrap((0,_storage.load)('show_guide_qr_code'));case 1:guide=_context.sent;if(!guide){scrollToTransferContent();startGuideTimeout.current=setTimeout(function(){start(1);setShouldStartGuide(false);(0,_storage.save)('show_guide_qr_code','true');},450);}else{setShouldStartGuide(false);}case 2:case"end":return _context.stop();}},null,null,null,Promise);};(0,_react.useEffect)(function(){var _props$route7,_props$route7$params;if(!(props!=null&&(_props$route7=props.route)!=null&&(_props$route7$params=_props$route7.params)!=null&&_props$route7$params.isFullPayment)&&shouldStartGuide&&canStart){startGuide();}return function(){if(startGuideTimeout.current){clearTimeout(startGuideTimeout.current);}};},[canStart,shouldStartGuide,start]);return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'rgba(244, 244, 244, 1)'},__self:this,__source:{fileName:_jsxFileName,lineNumber:210,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Vay tr\u1EF1c tuy\u1EBFn 24/7",__self:this,__source:{fileName:_jsxFileName,lineNumber:211,columnNumber:7}}),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:212,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:$header,__self:this,__source:{fileName:_jsxFileName,lineNumber:213,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{style:$backButton,onPress:function onPress(){return navigation.goBack();},__self:this,__source:{fileName:_jsxFileName,lineNumber:214,columnNumber:11}},_react.default.createElement(_icons.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:218,columnNumber:13}})),_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:220,columnNumber:11}},props!=null&&(_props$route8=props.route)!=null&&(_props$route8$params=_props$route8.params)!=null&&_props$route8$params.isFullPayment?'TẤT TOÁN HỢP ĐỒNG':'THANH TOÁN KỲ')),_react.default.createElement(_reactNative.ScrollView,{ref:scrollViewRef,scrollEnabled:!isGuideRunning,onLayout:function onLayout(event){scrollViewHeight.current=event.nativeEvent.layout.height;},onContentSizeChange:function onContentSizeChange(_width,height){scrollContentHeight.current=height;},__self:this,__source:{fileName:_jsxFileName,lineNumber:232,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{backgroundColor:'white',marginHorizontal:16,borderRadius:16,padding:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:242,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{textAlign:'center',fontSize:12,fontWeight:'300'},__self:this,__source:{fileName:_jsxFileName,lineNumber:250,columnNumber:13}},"\u0110\u1EC3 thanh to\xE1n h\u1EE3p \u0111\u1ED3ng, vui l\xF2ng chuy\u1EC3n kho\u1EA3n t\u1EDBi"),_react.default.createElement(_MText.MText,{style:{textAlign:'center',fontSize:12,fontWeight:'600',color:'rgba(51, 51, 51, 1)',marginTop:4},__self:this,__source:{fileName:_jsxFileName,lineNumber:259,columnNumber:13}},props==null?void 0:(_props$route9=props.route)==null?void 0:(_props$route9$params=_props$route9.params)==null?void 0:(_props$route9$params$=_props$route9$params.data)==null?void 0:_props$route9$params$.bankName),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'rgba(224, 224, 224, 1)',marginVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:271,columnNumber:13}}),_react.default.createElement(_reactNative.View,{style:{flexDirection:'column',justifyContent:'center',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:278,columnNumber:13}},_react.default.createElement(_reactNative.Image,{source:{uri:linkImage},style:{width:_reactNative.Dimensions.get('window').width-100,height:_reactNative.Dimensions.get('window').width-100,resizeMode:'contain'},__self:this,__source:{fileName:_jsxFileName,lineNumber:285,columnNumber:15}}),_react.default.createElement(_reactNative.TouchableOpacity,{style:{marginTop:10,flexDirection:'row',alignItems:'center',gap:5,backgroundColor:'#FFF7F0',borderWidth:1,borderColor:'#EF592E',borderRadius:4,paddingHorizontal:8,paddingVertical:4},onPress:function _callee2(){return _regenerator.default.async(function(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_reactNativeBlobUtil.default.config({fileCache:true,appendExt:'png'}).fetch('GET',linkImage).then(function(res){console.log(res);_cameraRoll.CameraRoll.saveAsset(res.data,{type:'photo'}).then(function(){_reactNative.Alert.alert('Thông báo','Tải mã QR thành công');}).catch(function(error){_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');console.log(error);});}).catch(function(error){console.log(error);_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');});case 1:case"end":return _context2.stop();}},null,null,null,Promise);},__self:this,__source:{fileName:_jsxFileName,lineNumber:295,columnNumber:15}},_react.default.createElement(_icons.IconDownload,{__self:this,__source:{fileName:_jsxFileName,lineNumber:337,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:{color:'rgba(51, 51, 51, 1)',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:338,columnNumber:17}},"T\u1EA3i m\xE3 QR"))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'rgba(224, 224, 224, 1)',marginVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:348,columnNumber:13}}),_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:355,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'rgba(51, 51, 51, 1)',fontWeight:'300',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:356,columnNumber:15}},"S\u1ED1 t\xE0i kho\u1EA3n"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},__self:this,__source:{fileName:_jsxFileName,lineNumber:366,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'rgba(61, 61, 61, 1)',fontWeight:'600',fontSize:16,fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:373,columnNumber:17}},(_props$route$params2=props.route.params)==null?void 0:(_props$route$params2$=_props$route$params2.data)==null?void 0:_props$route$params2$.accountNumber),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){var _props$route$params3,_props$route$params3$;return _reactNative.Clipboard.setString((_props$route$params3=props.route.params)==null?void 0:(_props$route$params3$=_props$route$params3.data)==null?void 0:_props$route$params3$.accountNumber);},__self:this,__source:{fileName:_jsxFileName,lineNumber:383,columnNumber:17}},_react.default.createElement(_icons.IconCopy,{__self:this,__source:{fileName:_jsxFileName,lineNumber:388,columnNumber:19}}))),_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'rgba(51, 51, 51, 1)',fontWeight:'300',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:391,columnNumber:15}},"T\xEAn t\xE0i kho\u1EA3n th\u1EE5 h\u01B0\u1EDFng"),_react.default.createElement(_MText.MText,{style:{color:'rgba(61, 61, 61, 1)',fontWeight:'600',fontSize:16,fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:401,columnNumber:15}},(_props$route$params4=props.route.params)==null?void 0:(_props$route$params4$=_props$route$params4.data)==null?void 0:_props$route$params4$.accountName),_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:412,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'rgba(51, 51, 51, 1)',fontWeight:'300',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:413,columnNumber:17}},"S\u1ED1 ti\u1EC1n ph\u1EA3i tr\u1EA3"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},__self:this,__source:{fileName:_jsxFileName,lineNumber:423,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:430,columnNumber:19}},(0,_utils.formatMoney)(props!=null&&(_props$route0=props.route)!=null&&(_props$route0$params=_props$route0.params)!=null&&_props$route0$params.isFullPayment?props==null?void 0:(_props$route1=props.route)==null?void 0:(_props$route1$params=_props$route1.params)==null?void 0:_props$route1$params.totalMoney:props==null?void 0:(_props$route10=props.route)==null?void 0:(_props$route10$params=_props$route10.params)==null?void 0:(_props$route10$params2=_props$route10$params.item)==null?void 0:_props$route10$params2.payMoney),' ',"\u0111"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){var _props$route11,_props$route11$params,_props$route12,_props$route12$params,_props$route13,_props$route13$params,_props$route13$params2;return _reactNative.Clipboard.setString(props!=null&&(_props$route11=props.route)!=null&&(_props$route11$params=_props$route11.params)!=null&&_props$route11$params.isFullPayment?props==null?void 0:(_props$route12=props.route)==null?void 0:(_props$route12$params=_props$route12.params)==null?void 0:_props$route12$params.totalMoney:props==null?void 0:(_props$route13=props.route)==null?void 0:(_props$route13$params=_props$route13.params)==null?void 0:(_props$route13$params2=_props$route13$params.item)==null?void 0:_props$route13$params2.payMoney);},__self:this,__source:{fileName:_jsxFileName,lineNumber:444,columnNumber:19}},_react.default.createElement(_icons.IconCopy,{__self:this,__source:{fileName:_jsxFileName,lineNumber:453,columnNumber:21}}))),_react.default.createElement(_MText.MText,{style:{color:'#828282',fontSize:10,fontStyle:'italic'},__self:this,__source:{fileName:_jsxFileName,lineNumber:456,columnNumber:17}},"S\u1ED1 ti\u1EC1n \u0111\u01B0\u1EE3c t\xEDnh \u0111\u1EBFn ng\xE0y ",(0,_moment.default)().format('DD/MM/YYYY'))),_react.default.createElement(_rnTourguide.TourGuideZone,{zone:1,text:'Để hệ thống ghi nhận chính xác khoản thanh toán, bạn đừng quên sao chép đúng nội dung chuyển khoản nhé!',tooltipBottomOffset:-45,style:$transferGuideZone,__self:this,__source:{fileName:_jsxFileName,lineNumber:466,columnNumber:15}},_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:474,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'rgba(51, 51, 51, 1)',fontWeight:'300'},__self:this,__source:{fileName:_jsxFileName,lineNumber:475,columnNumber:19}},"N\u1ED9i dung chuy\u1EC3n kho\u1EA3n",' ',_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#EB5757',fontWeight:'300'},__self:this,__source:{fileName:_jsxFileName,lineNumber:483,columnNumber:21}},"(B\u1EAFt bu\u1ED9c)")),_react.default.createElement(_reactNative.View,{ref:transferContentRef,onLayout:function onLayout(event){transferContentY.current=event.nativeEvent.layout.y;transferContentHeight.current=event.nativeEvent.layout.height;},style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},__self:this,__source:{fileName:_jsxFileName,lineNumber:493,columnNumber:19}},_react.default.createElement(_MText.MText,{style:{color:'rgba(61, 61, 61, 1)',fontWeight:'600',fontSize:16,fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:506,columnNumber:21}},props!=null&&(_props$route14=props.route)!=null&&(_props$route14$params=_props$route14.params)!=null&&_props$route14$params.isFullPayment?"Tat toan TC"+((_props$route$params5=props.route.params)==null?void 0:(_props$route$params5$=_props$route$params5.data)==null?void 0:_props$route$params5$.codeId):"TC"+((_props$route$params6=props.route.params)==null?void 0:(_props$route$params6$=_props$route$params6.data)==null?void 0:_props$route$params6$.codeId)),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){var _props$route15,_props$route15$params,_props$route$params7,_props$route$params7$,_props$route$params8,_props$route$params8$;return _reactNative.Clipboard.setString(props!=null&&(_props$route15=props.route)!=null&&(_props$route15$params=_props$route15.params)!=null&&_props$route15$params.isFullPayment?"Tat toan TC"+((_props$route$params7=props.route.params)==null?void 0:(_props$route$params7$=_props$route$params7.data)==null?void 0:_props$route$params7$.codeId):"TC"+((_props$route$params8=props.route.params)==null?void 0:(_props$route$params8$=_props$route$params8.data)==null?void 0:_props$route$params8$.codeId));},__self:this,__source:{fileName:_jsxFileName,lineNumber:518,columnNumber:21}},_react.default.createElement(_icons.IconCopy,{__self:this,__source:{fileName:_jsxFileName,lineNumber:527,columnNumber:23}})))))),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#FFF2F2',padding:10,borderRadius:8,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:533,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#EB5757',fontSize:12,fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:541,columnNumber:15}},"*L\u01B0u \xFD:"),_react.default.createElement(_MText.MText,{style:{fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:551,columnNumber:15}},"- Vui l\xF2ng sao ch\xE9p \u0111\xFAng v\xE0 \u0111\u1EA7y \u0111\u1EE7 n\u1ED9i dung thanh to\xE1n \u0111\u1EC3 h\u1EC7 th\u1ED1ng ghi nh\u1EADn giao d\u1ECBch"),_react.default.createElement(_MText.MText,{style:{fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:559,columnNumber:15}},"- Th\xF4ng tin t\xE0i kho\u1EA3n d\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9 cung c\u1EA5p b\u1EDFi GPay. T\xE0i kho\u1EA3n chuy\xEAn d\u1EE5ng n\xE0y ch\u1EC9 d\xE0nh cho m\u1EE5c \u0111\xEDch tr\u1EA3 n\u1EE3 c\u1EE7a b\xEAn \u0111i vay."))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',padding:16,marginBottom:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:570,columnNumber:11}},_react.default.createElement(_MText.MText,{__self:this,__source:{fileName:_jsxFileName,lineNumber:579,columnNumber:13}},"H\u01B0\u1EDBng d\u1EABn chuy\u1EC3n ti\u1EC1n"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){var _props$route16,_props$route16$params;if(props!=null&&(_props$route16=props.route)!=null&&(_props$route16$params=_props$route16.params)!=null&&_props$route16$params.isFullPayment){setShowGuide(true);}else{navigation.push('GuideTransferBank');}},__self:this,__source:{fileName:_jsxFileName,lineNumber:580,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#2F80ED',textDecorationLine:'underline'},__self:this,__source:{fileName:_jsxFileName,lineNumber:589,columnNumber:15}},"Xem chi ti\u1EBFt")))),(props==null?void 0:(_props$route17=props.route)==null?void 0:(_props$route17$params=_props$route17.params)==null?void 0:_props$route17$params.isFullPayment)&&_react.default.createElement(_reactNative.TouchableOpacity,{style:{margin:16},onPress:function onPress(){_reactNative.Alert.alert('Xác nhận tất toán','Bạn có chắc muốn gửi YÊU CẦU TẤT TOÁN hợp đồng không?',[{text:'Có',onPress:function onPress(){var _props$route18,_props$route18$params,_response$data3,_response$data3$meta;var response,_response$data4,_response$data4$meta;return _regenerator.default.async(function(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=1;return _regenerator.default.awrap(_api.Api.getInstance().confirm_final_settlement({loanBriefId:props==null?void 0:(_props$route18=props.route)==null?void 0:(_props$route18$params=_props$route18.params)==null?void 0:_props$route18$params.id}));case 1:response=_context3.sent;if(response.kind==='ok'&&((_response$data3=response.data)==null?void 0:(_response$data3$meta=_response$data3.meta)==null?void 0:_response$data3$meta.errorCode)===200){_reactNative.Alert.alert('GỬI YÊU CẦU THÀNH CÔNG!','Yêu cầu tất toán đang được Tima xử lý, vui lòng chờ trong ít phút.',[{text:'Đồng ý',onPress:function onPress(){navigation.navigate('Main');}}]);}else{_reactNative.Alert.alert('Thông báo',(response==null?void 0:(_response$data4=response.data)==null?void 0:(_response$data4$meta=_response$data4.meta)==null?void 0:_response$data4$meta.errorMessage)||'Có lỗi xảy ra. Vui lòng thử lại sau');}case 2:case"end":return _context3.stop();}},null,null,null,Promise);}},{text:'Không'}]);},__self:this,__source:{fileName:_jsxFileName,lineNumber:598,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:{alignItems:'center',borderRadius:30,height:40,justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:644,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:653,columnNumber:15}},"X\xE1c nh\u1EADn t\u1EA5t to\xE1n")))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:664,columnNumber:7}}),_react.default.createElement(_reactNativeModal.default,{isVisible:showGuide,onBackdropPress:function onBackdropPress(){return setShowGuide(false);},style:{justifyContent:'flex-end',margin:0},__self:this,__source:{fileName:_jsxFileName,lineNumber:665,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{backgroundColor:'white',borderTopLeftRadius:30,borderTopRightRadius:30},__self:this,__source:{fileName:_jsxFileName,lineNumber:670,columnNumber:9}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{borderTopLeftRadius:30,borderTopRightRadius:30,paddingBottom:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:677,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{padding:16,alignItems:'center',gap:4},__self:this,__source:{fileName:_jsxFileName,lineNumber:685,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'600',color:'white',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:686,columnNumber:15}},"C\xC1C B\u01AF\u1EDAC T\u1EA4T TO\xC1N"),_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:696,columnNumber:15}},"C\xF3 2 b\u01B0\u1EDBc, vui l\xF2ng \u0111\u1ECDc k\u0129 th\xF4ng tin"))),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'white',borderTopLeftRadius:30,borderTopRightRadius:30,top:-24,padding:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:706,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold',color:'#EF592E'},__self:this,__source:{fileName:_jsxFileName,lineNumber:715,columnNumber:13}},"B\u01AF\u1EDAC 1: CHUY\u1EC2N KHO\u1EA2N"),_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:724,columnNumber:13}},"C\xE1ch 1: Thanh to\xE1n b\u1EB1ng QR (Khuy\u1EBFn ngh\u1ECB)"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:733,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:741,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:742,columnNumber:15}},"L\u01B0u ho\u1EB7c qu\xE9t m\xE3 QR")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:746,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:754,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:755,columnNumber:15}},"M\u1EDF app ng\xE2n h\xE0ng v\xE0 thanh to\xE1n")),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'rgba(224, 224, 224, 1)',marginVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:759,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:766,columnNumber:13}},"C\xE1ch 2: Chuy\u1EC3n kho\u1EA3n th\u1EE7 c\xF4ng"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:774,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:782,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:783,columnNumber:15}},"Copy th\xF4ng tin t\xE0i kho\u1EA3n (S\u1ED1 TK, Ng\xE2n h\xE0ng, S\u1ED1 ti\u1EC1n)")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:787,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:795,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:796,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'#EB5757',fontSize:12,fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:797,columnNumber:17}},"B\u1EAET BU\u1ED8C:"),' ',"Copy \u0111\xFAng \u201CN\u1ED9i dung chuy\u1EC3n kho\u1EA3n\u201D")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:810,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:818,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:819,columnNumber:15}},"M\u1EDF app ng\xE2n h\xE0ng v\xE0 thanh to\xE1n")),_react.default.createElement(_reactNative.View,{style:{height:12,backgroundColor:'#FFF3E9',marginVertical:10,marginHorizontal:-16},__self:this,__source:{fileName:_jsxFileName,lineNumber:823,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold',color:'#EF592E'},__self:this,__source:{fileName:_jsxFileName,lineNumber:831,columnNumber:13}},"B\u01AF\u1EDAC 2:"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:840,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:848,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:849,columnNumber:15}},"Ch\u1ECDn \u201CX\xE1c nh\u1EADn t\u1EA5t to\xE1n\u201D \u0111\u1EC3 g\u1EEDi y\xEAu c\u1EA7u t\u1EDBi Tima th\u1EF1c hi\u1EC7n \u201CT\u1EA5t to\xE1n h\u1EE3p \u0111\u1ED3ng\u201D"))),_react.default.createElement(_reactNative.TouchableOpacity,{style:{position:'absolute',left:16,top:16},onPress:function onPress(){return setShowGuide(false);},__self:this,__source:{fileName:_jsxFileName,lineNumber:855,columnNumber:11}},_react.default.createElement(_icons.CloseIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:859,columnNumber:13}})))));});var $backButton={position:'absolute',left:16};var $header={flexDirection:'row',alignItems:'center',paddingVertical:16,justifyContent:'center'};var $tourTooltipPosition={alignItems:'flex-end',overflow:'visible',paddingHorizontal:16,paddingTop:0,paddingBottom:0,borderRadius:0};var $tourTooltip={width:224,minHeight:84,backgroundColor:'white',borderRadius:8,paddingHorizontal:12,paddingTop:10,paddingBottom:12,shadowColor:'#000',shadowOffset:{width:0,height:2},shadowOpacity:0.18,shadowRadius:8,elevation:8};var $tourTooltipText={color:'#333333',fontSize:10,lineHeight:16,fontWeight:'400'};var $tourTooltipButton={alignSelf:'flex-end',marginTop:6};var $tourTooltipButtonText={color:'#EF592E',fontSize:10,lineHeight:16,textDecorationLine:'underline'};var $tourTooltipArrow={position:'absolute',right:18,bottom:-10,width:0,height:0,borderLeftWidth:8,borderRightWidth:8,borderTopWidth:10,borderLeftColor:'transparent',borderRightColor:'transparent',borderTopColor:'white'};var $transferGuideZone={backgroundColor:'white',borderRadius:8,borderWidth:2,borderColor:'white',marginTop:16};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.ShowQrCode=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _icons=require("../../assets/icons");var _MText=require("../../components/MText");var _native=require("@react-navigation/native");var _api=require("../../services/api");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _cameraRoll=require("@react-native-camera-roll/camera-roll");var _reactNativeBlobUtil=_interopRequireDefault(require("react-native-blob-util"));var _utils=require("../../utils");var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _reactNativeModal=_interopRequireDefault(require("react-native-modal"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _moment=_interopRequireDefault(require("moment"));var _rnTourguide=require("rn-tourguide");var _storage=require("../../utils/storage");var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/detail-loan/ShowQrCode.tsx",_this=this;function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var ShowQrCode=exports.ShowQrCode=(0,_mobxReactLite.observer)(function ShowQrCode(props){return _react.default.createElement(_rnTourguide.TourGuideProvider,{borderRadius:8,maskOffset:4,tooltipComponent:TransferContentTooltip,tooltipStyle:$tourTooltipPosition,backdropColor:"rgba(0, 0, 0, 0.35)",androidStatusBarVisible:true,verticalOffset:_reactNative.Platform.OS==='android'?_reactNative.StatusBar.currentHeight-25:0,__self:this,__source:{fileName:_jsxFileName,lineNumber:43,columnNumber:5}},_react.default.createElement(ShowQrCodeContent,(0,_extends2.default)({},props,{__self:this,__source:{fileName:_jsxFileName,lineNumber:54,columnNumber:7}})));});var TransferContentTooltip=function TransferContentTooltip(_ref){var currentStep=_ref.currentStep,handleStop=_ref.handleStop;return _react.default.createElement(_reactNative.View,{style:$tourTooltip,__self:_this,__source:{fileName:_jsxFileName,lineNumber:61,columnNumber:5}},_react.default.createElement(_MText.MText,{style:$tourTooltipText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:62,columnNumber:7}},currentStep==null?void 0:currentStep.text),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:handleStop,style:$tourTooltipButton,__self:_this,__source:{fileName:_jsxFileName,lineNumber:63,columnNumber:7}},_react.default.createElement(_MText.MText,{style:$tourTooltipButtonText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:64,columnNumber:9}},"\u0110\u1ED3ng \xFD")),_react.default.createElement(_reactNative.View,{style:$tourTooltipArrow,__self:_this,__source:{fileName:_jsxFileName,lineNumber:66,columnNumber:7}}));};var ShowQrCodeContent=(0,_mobxReactLite.observer)(function ShowQrCodeContent(props){var _props$route8,_props$route8$params,_props$route9,_props$route9$params,_props$route9$params$,_props$route$params$d,_props$route$params2,_props$route$params2$,_props$route$params3,_props$route$params3$,_props$route$params$d3,_props$route$params6,_props$route$params6$,_props$route$params7,_props$route$params7$,_props$route0,_props$route0$params,_props$route1,_props$route1$params,_props$route10,_props$route10$params,_props$route10$params2,_props$route14,_props$route14$params,_props$route$params8,_props$route$params8$,_props$route$params$d4,_props$route$params9,_props$route$params9$,_props$route$params0,_props$route$params0$,_props$route$params0$2,_props$route17,_props$route17$params;var navigation=(0,_native.useNavigation)();var scrollViewRef=(0,_react.useRef)(null);var transferContentRef=(0,_react.useRef)(null);var transferContentY=(0,_react.useRef)(0);var transferContentHeight=(0,_react.useRef)(0);var scrollViewHeight=(0,_react.useRef)(0);var scrollContentHeight=(0,_react.useRef)(0);var startGuideTimeout=(0,_react.useRef)();var _useState=(0,_react.useState)(),_useState2=(0,_slicedToArray2.default)(_useState,2),linkImage=_useState2[0],setLinkImage=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),isLoading=_useState4[0],setIsLoading=_useState4[1];var _useState5=(0,_react.useState)(false),_useState6=(0,_slicedToArray2.default)(_useState5,2),showGuide=_useState6[0],setShowGuide=_useState6[1];var _useState7=(0,_react.useState)(false),_useState8=(0,_slicedToArray2.default)(_useState7,2),shouldStartGuide=_useState8[0],setShouldStartGuide=_useState8[1];var _useState9=(0,_react.useState)(false),_useState0=(0,_slicedToArray2.default)(_useState9,2),isGuideRunning=_useState0[0],setIsGuideRunning=_useState0[1];var _useTourGuideControll=(0,_rnTourguide.useTourGuideController)(),canStart=_useTourGuideControll.canStart,start=_useTourGuideControll.start,eventEmitter=_useTourGuideControll.eventEmitter;var getData=function getData(){var _props$route,_props$route$params,_props$route2,_props$route2$params,_props$route3,_props$route3$params,_props$route4,_props$route4$params,_props$route5,_props$route5$params,_props$route5$params$;setIsLoading(true);_api.Api.getInstance().getQrPayment({LoanBriefId:props==null?void 0:(_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:_props$route$params.id,TypeCloseLoan:props!=null&&(_props$route2=props.route)!=null&&(_props$route2$params=_props$route2.params)!=null&&_props$route2$params.isFullPayment?1:0,Money:props!=null&&(_props$route3=props.route)!=null&&(_props$route3$params=_props$route3.params)!=null&&_props$route3$params.isFullPayment?props==null?void 0:(_props$route4=props.route)==null?void 0:(_props$route4$params=_props$route4.params)==null?void 0:_props$route4$params.totalMoney:props==null?void 0:(_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:(_props$route5$params$=_props$route5$params.item)==null?void 0:_props$route5$params$.payMoney}).then(function(response){setIsLoading(false);if(response.kind==='ok'){if(response.data.meta.errorCode===200){var _response$data,_response$data$data,_props$route6,_props$route6$params;setLinkImage((_response$data=response.data)==null?void 0:(_response$data$data=_response$data.data)==null?void 0:_response$data$data.fullPath);if(props!=null&&(_props$route6=props.route)!=null&&(_props$route6$params=_props$route6.params)!=null&&_props$route6$params.isFullPayment){setTimeout(function(){setShowGuide(true);},300);}else{setShouldStartGuide(true);}}else{var _response$data2,_response$data2$meta;_reactNative.Alert.alert('Thông báo',response==null?void 0:(_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. Vui lòng thử lại sau');}}).catch(function(err){_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');setIsLoading(false);}).finally(function(){setIsLoading(false);});};(0,_react.useEffect)(function(){getData();},[]);(0,_react.useEffect)(function(){var handleStartGuide=function handleStartGuide(){return setIsGuideRunning(true);};var handleStopGuide=function handleStopGuide(){return setIsGuideRunning(false);};eventEmitter==null?void 0:eventEmitter.on('start',handleStartGuide);eventEmitter==null?void 0:eventEmitter.on('stop',handleStopGuide);return function(){eventEmitter==null?void 0:eventEmitter.off('start',handleStartGuide);eventEmitter==null?void 0:eventEmitter.off('stop',handleStopGuide);};},[eventEmitter]);var scrollToTransferContent=function scrollToTransferContent(){var _scrollViewRef$curren2,_transferContentRef$c;var scrollToY=function scrollToY(y){var _scrollViewRef$curren;var targetHeight=arguments.length>1&&arguments[1]!==undefined?arguments[1]:transferContentHeight.current;var viewportHeight=scrollViewHeight.current||_reactNative.Dimensions.get('window').height;var contentHeight=scrollContentHeight.current||viewportHeight;var maxScrollY=Math.max(contentHeight-viewportHeight,0);var minTopForTooltip=120;var bottomGap=80;var preferredTargetTop=Math.min(Math.max(viewportHeight*0.42,minTopForTooltip),Math.max(viewportHeight-targetHeight-bottomGap,minTopForTooltip));var nextScrollY=Math.min(Math.max(y-preferredTargetTop,0),maxScrollY);(_scrollViewRef$curren=scrollViewRef.current)==null?void 0:_scrollViewRef$curren.scrollTo({y:nextScrollY,animated:true});};var innerViewNode=(_scrollViewRef$curren2=scrollViewRef.current)==null?void 0:_scrollViewRef$curren2.getInnerViewNode==null?void 0:_scrollViewRef$curren2.getInnerViewNode();if(innerViewNode&&(_transferContentRef$c=transferContentRef.current)!=null&&_transferContentRef$c.measureLayout){transferContentRef.current.measureLayout(innerViewNode,function(_x,y,_width,height){return scrollToY(y,height);},function(){return scrollToY(transferContentY.current);});}else{scrollToY(transferContentY.current);}};var startGuide=function _callee(){var guide;return _regenerator.default.async(function(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=1;return _regenerator.default.awrap((0,_storage.load)('show_guide_qr_code'));case 1:guide=_context.sent;if(!guide){scrollToTransferContent();startGuideTimeout.current=setTimeout(function(){start(1);setShouldStartGuide(false);(0,_storage.save)('show_guide_qr_code','true');},450);}else{setShouldStartGuide(false);}case 2:case"end":return _context.stop();}},null,null,null,Promise);};(0,_react.useEffect)(function(){var _props$route7,_props$route7$params;if(!(props!=null&&(_props$route7=props.route)!=null&&(_props$route7$params=_props$route7.params)!=null&&_props$route7$params.isFullPayment)&&shouldStartGuide&&canStart){startGuide();}return function(){if(startGuideTimeout.current){clearTimeout(startGuideTimeout.current);}};},[canStart,shouldStartGuide,start]);return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'rgba(244, 244, 244, 1)'},__self:this,__source:{fileName:_jsxFileName,lineNumber:210,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Vay tr\u1EF1c tuy\u1EBFn 24/7",__self:this,__source:{fileName:_jsxFileName,lineNumber:211,columnNumber:7}}),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:212,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:$header,__self:this,__source:{fileName:_jsxFileName,lineNumber:213,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{style:$backButton,onPress:function onPress(){return navigation.goBack();},__self:this,__source:{fileName:_jsxFileName,lineNumber:214,columnNumber:11}},_react.default.createElement(_icons.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:218,columnNumber:13}})),_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:220,columnNumber:11}},props!=null&&(_props$route8=props.route)!=null&&(_props$route8$params=_props$route8.params)!=null&&_props$route8$params.isFullPayment?'TẤT TOÁN HỢP ĐỒNG':'THANH TOÁN KỲ')),_react.default.createElement(_reactNative.ScrollView,{ref:scrollViewRef,scrollEnabled:!isGuideRunning,onLayout:function onLayout(event){scrollViewHeight.current=event.nativeEvent.layout.height;},onContentSizeChange:function onContentSizeChange(_width,height){scrollContentHeight.current=height;},__self:this,__source:{fileName:_jsxFileName,lineNumber:232,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{backgroundColor:'white',marginHorizontal:16,borderRadius:16,padding:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:242,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{textAlign:'center',fontSize:12,fontWeight:'300'},__self:this,__source:{fileName:_jsxFileName,lineNumber:250,columnNumber:13}},"\u0110\u1EC3 thanh to\xE1n h\u1EE3p \u0111\u1ED3ng, vui l\xF2ng chuy\u1EC3n kho\u1EA3n t\u1EDBi"),_react.default.createElement(_MText.MText,{style:{textAlign:'center',fontSize:12,fontWeight:'600',color:'rgba(51, 51, 51, 1)',marginTop:4},__self:this,__source:{fileName:_jsxFileName,lineNumber:259,columnNumber:13}},props==null?void 0:(_props$route9=props.route)==null?void 0:(_props$route9$params=_props$route9.params)==null?void 0:(_props$route9$params$=_props$route9$params.data)==null?void 0:_props$route9$params$.bankName),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'rgba(224, 224, 224, 1)',marginVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:271,columnNumber:13}}),_react.default.createElement(_reactNative.View,{style:{flexDirection:'column',justifyContent:'center',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:278,columnNumber:13}},_react.default.createElement(_reactNative.Image,{source:{uri:linkImage},style:{width:_reactNative.Dimensions.get('window').width-100,height:_reactNative.Dimensions.get('window').width-100,resizeMode:'contain'},__self:this,__source:{fileName:_jsxFileName,lineNumber:285,columnNumber:15}}),_react.default.createElement(_reactNative.TouchableOpacity,{style:{marginTop:10,flexDirection:'row',alignItems:'center',gap:5,backgroundColor:'#FFF7F0',borderWidth:1,borderColor:'#EF592E',borderRadius:4,paddingHorizontal:8,paddingVertical:4},onPress:function _callee2(){return _regenerator.default.async(function(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_reactNativeBlobUtil.default.config({fileCache:true,appendExt:'png'}).fetch('GET',linkImage).then(function(res){console.log(res);_cameraRoll.CameraRoll.saveAsset(res.data,{type:'photo'}).then(function(){_reactNative.Alert.alert('Thông báo','Tải mã QR thành công');}).catch(function(error){_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');console.log(error);});}).catch(function(error){console.log(error);_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');});case 1:case"end":return _context2.stop();}},null,null,null,Promise);},__self:this,__source:{fileName:_jsxFileName,lineNumber:295,columnNumber:15}},_react.default.createElement(_icons.IconDownload,{__self:this,__source:{fileName:_jsxFileName,lineNumber:337,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:{color:'rgba(51, 51, 51, 1)',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:338,columnNumber:17}},"T\u1EA3i m\xE3 QR"))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'rgba(224, 224, 224, 1)',marginVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:348,columnNumber:13}}),_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:355,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'rgba(51, 51, 51, 1)',fontWeight:'300',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:356,columnNumber:15}},"S\u1ED1 t\xE0i kho\u1EA3n"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},__self:this,__source:{fileName:_jsxFileName,lineNumber:366,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'rgba(61, 61, 61, 1)',fontWeight:'600',fontSize:16,fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:373,columnNumber:17}},(_props$route$params$d=(_props$route$params2=props.route.params)==null?void 0:(_props$route$params2$=_props$route$params2.data)==null?void 0:_props$route$params2$.accountNumber)!=null?_props$route$params$d:(_props$route$params3=props.route.params)==null?void 0:(_props$route$params3$=_props$route$params3.data)==null?void 0:_props$route$params3$.bankAccountNo),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){var _props$route$params$d2,_props$route$params4,_props$route$params4$,_props$route$params5,_props$route$params5$;return _reactNative.Clipboard.setString((_props$route$params$d2=(_props$route$params4=props.route.params)==null?void 0:(_props$route$params4$=_props$route$params4.data)==null?void 0:_props$route$params4$.accountNumber)!=null?_props$route$params$d2:(_props$route$params5=props.route.params)==null?void 0:(_props$route$params5$=_props$route$params5.data)==null?void 0:_props$route$params5$.bankAccountNo);},__self:this,__source:{fileName:_jsxFileName,lineNumber:384,columnNumber:17}},_react.default.createElement(_icons.IconCopy,{__self:this,__source:{fileName:_jsxFileName,lineNumber:392,columnNumber:19}}))),_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'rgba(51, 51, 51, 1)',fontWeight:'300',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:395,columnNumber:15}},"T\xEAn t\xE0i kho\u1EA3n th\u1EE5 h\u01B0\u1EDFng"),_react.default.createElement(_MText.MText,{style:{color:'rgba(61, 61, 61, 1)',fontWeight:'600',fontSize:16,fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:405,columnNumber:15}},(_props$route$params$d3=(_props$route$params6=props.route.params)==null?void 0:(_props$route$params6$=_props$route$params6.data)==null?void 0:_props$route$params6$.accountName)!=null?_props$route$params$d3:(_props$route$params7=props.route.params)==null?void 0:(_props$route$params7$=_props$route$params7.data)==null?void 0:_props$route$params7$.bankAccountName),_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:417,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'rgba(51, 51, 51, 1)',fontWeight:'300',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:418,columnNumber:17}},"S\u1ED1 ti\u1EC1n ph\u1EA3i tr\u1EA3"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},__self:this,__source:{fileName:_jsxFileName,lineNumber:428,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:435,columnNumber:19}},(0,_utils.formatMoney)(props!=null&&(_props$route0=props.route)!=null&&(_props$route0$params=_props$route0.params)!=null&&_props$route0$params.isFullPayment?props==null?void 0:(_props$route1=props.route)==null?void 0:(_props$route1$params=_props$route1.params)==null?void 0:_props$route1$params.totalMoney:props==null?void 0:(_props$route10=props.route)==null?void 0:(_props$route10$params=_props$route10.params)==null?void 0:(_props$route10$params2=_props$route10$params.item)==null?void 0:_props$route10$params2.payMoney),' ',"\u0111"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){var _props$route11,_props$route11$params,_props$route12,_props$route12$params,_props$route13,_props$route13$params,_props$route13$params2;return _reactNative.Clipboard.setString(props!=null&&(_props$route11=props.route)!=null&&(_props$route11$params=_props$route11.params)!=null&&_props$route11$params.isFullPayment?props==null?void 0:(_props$route12=props.route)==null?void 0:(_props$route12$params=_props$route12.params)==null?void 0:_props$route12$params.totalMoney:props==null?void 0:(_props$route13=props.route)==null?void 0:(_props$route13$params=_props$route13.params)==null?void 0:(_props$route13$params2=_props$route13$params.item)==null?void 0:_props$route13$params2.payMoney);},__self:this,__source:{fileName:_jsxFileName,lineNumber:449,columnNumber:19}},_react.default.createElement(_icons.IconCopy,{__self:this,__source:{fileName:_jsxFileName,lineNumber:458,columnNumber:21}}))),_react.default.createElement(_MText.MText,{style:{color:'#828282',fontSize:10,fontStyle:'italic'},__self:this,__source:{fileName:_jsxFileName,lineNumber:461,columnNumber:17}},"S\u1ED1 ti\u1EC1n \u0111\u01B0\u1EE3c t\xEDnh \u0111\u1EBFn ng\xE0y ",(0,_moment.default)().format('DD/MM/YYYY'))),_react.default.createElement(_rnTourguide.TourGuideZone,{zone:1,text:'Để hệ thống ghi nhận chính xác khoản thanh toán, bạn đừng quên sao chép đúng nội dung chuyển khoản nhé!',tooltipBottomOffset:-45,style:$transferGuideZone,__self:this,__source:{fileName:_jsxFileName,lineNumber:471,columnNumber:15}},_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:479,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'rgba(51, 51, 51, 1)',fontWeight:'300'},__self:this,__source:{fileName:_jsxFileName,lineNumber:480,columnNumber:19}},"N\u1ED9i dung chuy\u1EC3n kho\u1EA3n",' ',_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#EB5757',fontWeight:'300'},__self:this,__source:{fileName:_jsxFileName,lineNumber:488,columnNumber:21}},"(B\u1EAFt bu\u1ED9c)")),_react.default.createElement(_reactNative.View,{ref:transferContentRef,onLayout:function onLayout(event){transferContentY.current=event.nativeEvent.layout.y;transferContentHeight.current=event.nativeEvent.layout.height;},style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},__self:this,__source:{fileName:_jsxFileName,lineNumber:498,columnNumber:19}},_react.default.createElement(_MText.MText,{style:{color:'rgba(61, 61, 61, 1)',fontWeight:'600',fontSize:16,fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:511,columnNumber:21}},props!=null&&(_props$route14=props.route)!=null&&(_props$route14$params=_props$route14.params)!=null&&_props$route14$params.isFullPayment?"Tat toan TC"+((_props$route$params8=props.route.params)==null?void 0:(_props$route$params8$=_props$route$params8.data)==null?void 0:_props$route$params8$.codeId):"TC"+((_props$route$params$d4=(_props$route$params9=props.route.params)==null?void 0:(_props$route$params9$=_props$route$params9.data)==null?void 0:_props$route$params9$.codeId)!=null?_props$route$params$d4:(_props$route$params0=props.route.params)==null?void 0:(_props$route$params0$=_props$route$params0.data)==null?void 0:(_props$route$params0$2=_props$route$params0$.contractCode)==null?void 0:_props$route$params0$2.replace('TC-',''))),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){var _props$route15,_props$route15$params,_props$route$params1,_props$route$params1$,_props$route$params$d5,_props$route$params10,_props$route$params11,_props$route$params12,_props$route$params13,_props$route$params14;return _reactNative.Clipboard.setString(props!=null&&(_props$route15=props.route)!=null&&(_props$route15$params=_props$route15.params)!=null&&_props$route15$params.isFullPayment?"Tat toan TC"+((_props$route$params1=props.route.params)==null?void 0:(_props$route$params1$=_props$route$params1.data)==null?void 0:_props$route$params1$.codeId):"TC"+((_props$route$params$d5=(_props$route$params10=props.route.params)==null?void 0:(_props$route$params11=_props$route$params10.data)==null?void 0:_props$route$params11.codeId)!=null?_props$route$params$d5:(_props$route$params12=props.route.params)==null?void 0:(_props$route$params13=_props$route$params12.data)==null?void 0:(_props$route$params14=_props$route$params13.contractCode)==null?void 0:_props$route$params14.replace('TC-','')));},__self:this,__source:{fileName:_jsxFileName,lineNumber:529,columnNumber:21}},_react.default.createElement(_icons.IconCopy,{__self:this,__source:{fileName:_jsxFileName,lineNumber:544,columnNumber:23}})))))),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#FFF2F2',padding:10,borderRadius:8,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:550,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#EB5757',fontSize:12,fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:558,columnNumber:15}},"*L\u01B0u \xFD:"),_react.default.createElement(_MText.MText,{style:{fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:568,columnNumber:15}},"- Vui l\xF2ng sao ch\xE9p \u0111\xFAng v\xE0 \u0111\u1EA7y \u0111\u1EE7 n\u1ED9i dung thanh to\xE1n \u0111\u1EC3 h\u1EC7 th\u1ED1ng ghi nh\u1EADn giao d\u1ECBch"),_react.default.createElement(_MText.MText,{style:{fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:576,columnNumber:15}},"- Th\xF4ng tin t\xE0i kho\u1EA3n d\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9 cung c\u1EA5p b\u1EDFi GPay. T\xE0i kho\u1EA3n chuy\xEAn d\u1EE5ng n\xE0y ch\u1EC9 d\xE0nh cho m\u1EE5c \u0111\xEDch tr\u1EA3 n\u1EE3 c\u1EE7a b\xEAn \u0111i vay."))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',padding:16,marginBottom:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:587,columnNumber:11}},_react.default.createElement(_MText.MText,{__self:this,__source:{fileName:_jsxFileName,lineNumber:596,columnNumber:13}},"H\u01B0\u1EDBng d\u1EABn chuy\u1EC3n ti\u1EC1n"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){var _props$route16,_props$route16$params;if(props!=null&&(_props$route16=props.route)!=null&&(_props$route16$params=_props$route16.params)!=null&&_props$route16$params.isFullPayment){setShowGuide(true);}else{navigation.push('GuideTransferBank');}},__self:this,__source:{fileName:_jsxFileName,lineNumber:597,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#2F80ED',textDecorationLine:'underline'},__self:this,__source:{fileName:_jsxFileName,lineNumber:606,columnNumber:15}},"Xem chi ti\u1EBFt")))),(props==null?void 0:(_props$route17=props.route)==null?void 0:(_props$route17$params=_props$route17.params)==null?void 0:_props$route17$params.isFullPayment)&&_react.default.createElement(_reactNative.TouchableOpacity,{style:{margin:16},onPress:function onPress(){_reactNative.Alert.alert('Xác nhận tất toán','Bạn có chắc muốn gửi YÊU CẦU TẤT TOÁN hợp đồng không?',[{text:'Có',onPress:function onPress(){var _props$route18,_props$route18$params,_response$data3,_response$data3$meta;var response,_response$data4,_response$data4$meta;return _regenerator.default.async(function(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=1;return _regenerator.default.awrap(_api.Api.getInstance().confirm_final_settlement({loanBriefId:props==null?void 0:(_props$route18=props.route)==null?void 0:(_props$route18$params=_props$route18.params)==null?void 0:_props$route18$params.id}));case 1:response=_context3.sent;if(response.kind==='ok'&&((_response$data3=response.data)==null?void 0:(_response$data3$meta=_response$data3.meta)==null?void 0:_response$data3$meta.errorCode)===200){_reactNative.Alert.alert('GỬI YÊU CẦU THÀNH CÔNG!','Yêu cầu tất toán đang được Tima xử lý, vui lòng chờ trong ít phút.',[{text:'Đồng ý',onPress:function onPress(){navigation.navigate('Main');}}]);}else{_reactNative.Alert.alert('Thông báo',(response==null?void 0:(_response$data4=response.data)==null?void 0:(_response$data4$meta=_response$data4.meta)==null?void 0:_response$data4$meta.errorMessage)||'Có lỗi xảy ra. Vui lòng thử lại sau');}case 2:case"end":return _context3.stop();}},null,null,null,Promise);}},{text:'Không'}]);},__self:this,__source:{fileName:_jsxFileName,lineNumber:615,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:{alignItems:'center',borderRadius:30,height:40,justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:661,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:670,columnNumber:15}},"X\xE1c nh\u1EADn t\u1EA5t to\xE1n")))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:681,columnNumber:7}}),_react.default.createElement(_reactNativeModal.default,{isVisible:showGuide,onBackdropPress:function onBackdropPress(){return setShowGuide(false);},style:{justifyContent:'flex-end',margin:0},__self:this,__source:{fileName:_jsxFileName,lineNumber:682,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{backgroundColor:'white',borderTopLeftRadius:30,borderTopRightRadius:30},__self:this,__source:{fileName:_jsxFileName,lineNumber:687,columnNumber:9}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{borderTopLeftRadius:30,borderTopRightRadius:30,paddingBottom:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:694,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{padding:16,alignItems:'center',gap:4},__self:this,__source:{fileName:_jsxFileName,lineNumber:702,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'600',color:'white',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:703,columnNumber:15}},"C\xC1C B\u01AF\u1EDAC T\u1EA4T TO\xC1N"),_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:713,columnNumber:15}},"C\xF3 2 b\u01B0\u1EDBc, vui l\xF2ng \u0111\u1ECDc k\u0129 th\xF4ng tin"))),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'white',borderTopLeftRadius:30,borderTopRightRadius:30,top:-24,padding:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:723,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold',color:'#EF592E'},__self:this,__source:{fileName:_jsxFileName,lineNumber:732,columnNumber:13}},"B\u01AF\u1EDAC 1: CHUY\u1EC2N KHO\u1EA2N"),_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:741,columnNumber:13}},"C\xE1ch 1: Thanh to\xE1n b\u1EB1ng QR (Khuy\u1EBFn ngh\u1ECB)"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:750,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:758,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:759,columnNumber:15}},"L\u01B0u ho\u1EB7c qu\xE9t m\xE3 QR")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:763,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:771,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:772,columnNumber:15}},"M\u1EDF app ng\xE2n h\xE0ng v\xE0 thanh to\xE1n")),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'rgba(224, 224, 224, 1)',marginVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:776,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:783,columnNumber:13}},"C\xE1ch 2: Chuy\u1EC3n kho\u1EA3n th\u1EE7 c\xF4ng"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:791,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:799,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:800,columnNumber:15}},"Copy th\xF4ng tin t\xE0i kho\u1EA3n (S\u1ED1 TK, Ng\xE2n h\xE0ng, S\u1ED1 ti\u1EC1n)")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:804,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:812,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:813,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'#EB5757',fontSize:12,fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:814,columnNumber:17}},"B\u1EAET BU\u1ED8C:"),' ',"Copy \u0111\xFAng \u201CN\u1ED9i dung chuy\u1EC3n kho\u1EA3n\u201D")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:827,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:835,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:836,columnNumber:15}},"M\u1EDF app ng\xE2n h\xE0ng v\xE0 thanh to\xE1n")),_react.default.createElement(_reactNative.View,{style:{height:12,backgroundColor:'#FFF3E9',marginVertical:10,marginHorizontal:-16},__self:this,__source:{fileName:_jsxFileName,lineNumber:840,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold',color:'#EF592E'},__self:this,__source:{fileName:_jsxFileName,lineNumber:848,columnNumber:13}},"B\u01AF\u1EDAC 2:"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:857,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:865,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:866,columnNumber:15}},"Ch\u1ECDn \u201CX\xE1c nh\u1EADn t\u1EA5t to\xE1n\u201D \u0111\u1EC3 g\u1EEDi y\xEAu c\u1EA7u t\u1EDBi Tima th\u1EF1c hi\u1EC7n \u201CT\u1EA5t to\xE1n h\u1EE3p \u0111\u1ED3ng\u201D"))),_react.default.createElement(_reactNative.TouchableOpacity,{style:{position:'absolute',left:16,top:16},onPress:function onPress(){return setShowGuide(false);},__self:this,__source:{fileName:_jsxFileName,lineNumber:872,columnNumber:11}},_react.default.createElement(_icons.CloseIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:876,columnNumber:13}})))));});var $backButton={position:'absolute',left:16};var $header={flexDirection:'row',alignItems:'center',paddingVertical:16,justifyContent:'center'};var $tourTooltipPosition={alignItems:'flex-end',overflow:'visible',paddingHorizontal:16,paddingTop:0,paddingBottom:0,borderRadius:0};var $tourTooltip={width:224,minHeight:84,backgroundColor:'white',borderRadius:8,paddingHorizontal:12,paddingTop:10,paddingBottom:12,shadowColor:'#000',shadowOffset:{width:0,height:2},shadowOpacity:0.18,shadowRadius:8,elevation:8};var $tourTooltipText={color:'#333333',fontSize:10,lineHeight:16,fontWeight:'400'};var $tourTooltipButton={alignSelf:'flex-end',marginTop:6};var $tourTooltipButtonText={color:'#EF592E',fontSize:10,lineHeight:16,textDecorationLine:'underline'};var $tourTooltipArrow={position:'absolute',right:18,bottom:-10,width:0,height:0,borderLeftWidth:8,borderRightWidth:8,borderTopWidth:10,borderLeftColor:'transparent',borderRightColor:'transparent',borderTopColor:'white'};var $transferGuideZone={backgroundColor:'white',borderRadius:8,borderWidth:2,borderColor:'white',marginTop:16};
2
2
  //# sourceMappingURL=ShowQrCode.js.map