decord/source/modules/safety_hub/native/ClassificationDetailModal.tsx

83 lines
3 KiB
TypeScript
Raw Normal View History

// Module ID: 11883
// Function ID: 11884
2026-07-20 16:05:17 +00:00
// Name: ClassificationDetailModal
// Dependencies: [19, 21, 4560, 576, 4763, 5624, 11884, 11914, 11915, 11886, 1484, 7000, 1114, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 11883 (ClassificationDetailModal)
import ThemesDefault from "Themes" /* 576 */;
2026-08-24 06:08:38 +00:00
import closure_4 from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
let closure_6 = { CLASSIFICATION_DETAIL: "CLASSIFICATION_DETAIL" };
2026-07-29 08:29:29 +00:00
createCacheKey = { headerStyle: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWER };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
let closure_7 = createCacheKey.createStyles(createCacheKey);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/safety_hub/native/ClassificationDetailModal.tsx");
2026-07-20 16:05:17 +00:00
export default function ClassificationDetailModal(classificationId) {
classificationId = classificationId.classificationId;
const source = classificationId.source;
let flag = classificationId.shouldRedirectToAccountStanding;
if (flag === undefined) {
flag = false;
}
2026-08-24 06:08:38 +00:00
dependencyMap = undefined;
2026-07-23 10:11:24 +00:00
let safetyHubInitialized;
2026-08-24 06:08:38 +00:00
const tmp = callback();
2026-07-20 16:05:17 +00:00
dependencyMap = tmp;
let obj = classificationId(11915);
2026-07-23 10:11:24 +00:00
safetyHubInitialized = obj.useSafetyHubInitialized();
2026-07-20 16:05:17 +00:00
const items = [safetyHubInitialized];
2026-07-23 10:11:24 +00:00
const effect = safetyHubInitialized.useEffect(() => {
2026-07-20 16:05:17 +00:00
if (!safetyHubInitialized) {
const safetyHubData = flag(headerStyle[9]).getSafetyHubData();
const obj = flag(headerStyle[9]);
2026-07-20 16:05:17 +00:00
}
}, items);
const isFocused = classificationId(1484).useIsFocused();
2026-07-20 16:05:17 +00:00
const items1 = [classificationId, flag, tmp, source];
2026-07-29 08:29:29 +00:00
const memo = safetyHubInitialized.useMemo(() => {
2026-08-24 06:08:38 +00:00
closure_1 = closure_2;
2026-07-29 08:29:29 +00:00
closure_2 = closure_1;
2026-07-20 16:05:17 +00:00
let obj = {};
obj = {
2026-08-24 06:08:38 +00:00
headerStyle: headerStyle.headerStyle,
2026-07-20 16:05:17 +00:00
headerTitle() {
return null;
},
headerLeft: classificationId(headerStyle[5]).getHeaderCloseButton(function closeModal() {
return callback(table[4]).pop();
2026-08-24 06:08:38 +00:00
}),
render() {
return closure_1_5(callback(closure_1_3[6]), {
2026-08-24 06:08:38 +00:00
classificationId: closure_0,
source: closure_2,
onClose() {
let arr = closure_1_1(closure_1_3[4]);
2026-08-24 06:08:38 +00:00
arr = arr.pop();
if (closure_1) {
closure_1_0(closure_1_3[7]).openAccountStanding();
const obj = closure_1_0(closure_1_3[7]);
2026-08-24 06:08:38 +00:00
}
},
onError() {
let arr = callback2(4763);
2026-08-24 06:08:38 +00:00
arr = arr.pop();
callback(11914).openAccountStanding();
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
});
}
2026-07-20 16:05:17 +00:00
};
obj[closure_1_6.CLASSIFICATION_DETAIL] = obj;
2026-07-20 16:05:17 +00:00
return obj;
2026-07-29 08:29:29 +00:00
}, items1);
obj = { screens: memo, initialRouteName: constants.CLASSIFICATION_DETAIL, headerBackTitle: null };
const intl = classificationId(1114).intl;
obj[2] = intl.string(classificationId(1114).t["13/7kX"]);
return jsx(classificationId(7000).Navigator, { screens: memo, initialRouteName: constants.CLASSIFICATION_DETAIL, headerBackTitle: null });
2026-07-20 16:05:17 +00:00
};