Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
78 lines
2.9 KiB
TypeScript
78 lines
2.9 KiB
TypeScript
// Module ID: 11949
|
|
// Function ID: 11950
|
|
// Name: ClassificationDetailModal
|
|
// Dependencies: [19, 21, 4605, 576, 4808, 5674, 11950, 11980, 11981, 11952, 1484, 7052, 1114, 2]
|
|
// Exports: default
|
|
|
|
// Module 11949 (ClassificationDetailModal)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import NavigatorHeader from "NavigatorHeader" /* 5674 */;
|
|
import SafetyHubActionCreatorsAll from "SafetyHubActionCreators" /* 11952 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const constants = { CLASSIFICATION_DETAIL: "CLASSIFICATION_DETAIL" };
|
|
const createStyles = fn(4605);
|
|
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(11981).useSafetyHubInitialized();
|
|
const items = [safetyHubInitialized];
|
|
const effect = safetyHubInitialized.useEffect(() => {
|
|
if (!safetyHubInitialized) {
|
|
const safetyHubData = SafetyHubActionCreatorsAll.getSafetyHubData();
|
|
}
|
|
}, items);
|
|
let obj = classificationId(11981);
|
|
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(4808).pop();
|
|
}),
|
|
render() {
|
|
return jsx(source(11950), {
|
|
classificationId,
|
|
source,
|
|
onClose() {
|
|
closure_1(4808).pop();
|
|
if (closure_1_1) {
|
|
closure_0(11980).openAccountStanding();
|
|
const obj = closure_0(11980);
|
|
}
|
|
},
|
|
onError() {
|
|
closure_1_1(4808).pop();
|
|
const arr = closure_1_1(4808);
|
|
classificationId(11980).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(7052).Navigator, { screens: memo, initialRouteName: constants.CLASSIFICATION_DETAIL, headerBackTitle: null });
|
|
};
|