Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
78 lines
2.9 KiB
TypeScript
78 lines
2.9 KiB
TypeScript
// Module ID: 12009
|
|
// Function ID: 12010
|
|
// Name: ClassificationDetailModal
|
|
// Dependencies: [19, 21, 4636, 576, 4839, 5705, 12010, 12040, 12041, 12012, 1484, 7103, 1114, 2]
|
|
// Exports: default
|
|
|
|
// Module 12009 (ClassificationDetailModal)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import NavigatorHeader from "NavigatorHeader" /* 5705 */;
|
|
import SafetyHubActionCreatorsAll from "SafetyHubActionCreators" /* 12012 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const constants = { CLASSIFICATION_DETAIL: "CLASSIFICATION_DETAIL" };
|
|
const createStyles = fn(4636);
|
|
let obj2 = { headerStyle: { backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOWER } };
|
|
let closure_7 = createStyles.createStyles(obj2);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/safety_hub/native/ClassificationDetailModal.tsx");
|
|
|
|
export default function ClassificationDetailModal(classificationId) {
|
|
classificationId = classificationId.classificationId;
|
|
const source = classificationId.source;
|
|
let flag = classificationId.shouldRedirectToAccountStanding;
|
|
if (flag === undefined) {
|
|
flag = false;
|
|
}
|
|
const tmp = closure_7();
|
|
dependencyMap = tmp;
|
|
const safetyHubInitialized = classificationId(12041).useSafetyHubInitialized();
|
|
const items = [safetyHubInitialized];
|
|
const effect = safetyHubInitialized.useEffect(() => {
|
|
if (!safetyHubInitialized) {
|
|
const safetyHubData = SafetyHubActionCreatorsAll.getSafetyHubData();
|
|
}
|
|
}, items);
|
|
let obj = classificationId(12041);
|
|
const isFocused = classificationId(1484).useIsFocused();
|
|
const items1 = [classificationId, flag, tmp, source];
|
|
const memo = safetyHubInitialized.useMemo(() => {
|
|
closure_1 = flag;
|
|
let obj = {};
|
|
const obj2 = {
|
|
headerStyle: headerStyle.headerStyle,
|
|
headerTitle() {
|
|
return null;
|
|
},
|
|
headerLeft: NavigatorHeader.getHeaderCloseButton(function closeModal() {
|
|
return closure_1(4839).pop();
|
|
}),
|
|
render() {
|
|
return jsx(source(12010), {
|
|
classificationId,
|
|
source,
|
|
onClose() {
|
|
closure_1(4839).pop();
|
|
if (closure_1_1) {
|
|
closure_0(12040).openAccountStanding();
|
|
const obj = closure_0(12040);
|
|
}
|
|
},
|
|
onError() {
|
|
closure_1_1(4839).pop();
|
|
const arr = closure_1_1(4839);
|
|
classificationId(12040).openAccountStanding();
|
|
}
|
|
});
|
|
}
|
|
};
|
|
obj[constants.CLASSIFICATION_DETAIL] = obj2;
|
|
return obj;
|
|
}, items1);
|
|
const obj3 = { screens: memo, initialRouteName: constants.CLASSIFICATION_DETAIL, headerBackTitle: null };
|
|
const intl = classificationId(1114).intl;
|
|
obj3.headerBackTitle = intl.string(classificationId(1114).t["13/7kX"]);
|
|
return jsx(classificationId(7103).Navigator, { screens: memo, initialRouteName: constants.CLASSIFICATION_DETAIL, headerBackTitle: null });
|
|
};
|