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

93 lines
3.5 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11097
// Function ID: 11098
2026-07-20 16:05:17 +00:00
// Name: ClassificationDetailModal
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 676, 11098, 21, 4668, 712, 5265, 6345, 11099, 7398, 11134, 11106, 1501, 6343, 1236, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 11097 (ClassificationDetailModal)
import ThemesDefault from "Themes" /* 712 */;
import closure_4 from "noop" /* 19 */;
import { UserSettingsSections } from "ME" /* 676 */;
import { AccountSettingsTabs } from "AccountSettingsTabs" /* 11098 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
let closure_8 = { 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;
2026-08-24 06:08:38 +00:00
let closure_9 = createCacheKey.createStyles(createCacheKey);
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;
2026-08-24 06:08:38 +00:00
let obj = classificationId(11134);
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) {
2026-08-24 06:08:38 +00:00
const safetyHubData = flag(headerStyle[11]).getSafetyHubData();
const obj = flag(headerStyle[11]);
2026-07-20 16:05:17 +00:00
}
}, items);
2026-08-15 05:55:55 +00:00
const isFocused = classificationId(1501).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;
},
2026-08-24 06:08:38 +00:00
headerLeft: classificationId(headerStyle[7]).getHeaderCloseButton(function closeModal() {
return callback(table[6]).pop();
}),
render() {
return closure_1_7(callback(closure_1_3[8]), {
classificationId: closure_0,
source: closure_2,
onClose() {
let arr = closure_1_1(closure_1_3[6]);
arr = arr.pop();
if (closure_1) {
let obj = closure_1_0(closure_1_3[9]);
obj = { screen: null, params: null };
obj[0] = closure_1_5.ACCOUNT;
obj = { initialTab: null };
obj[0] = closure_1_6.STANDING;
obj[1] = obj;
obj.openUserSettings(obj);
}
},
onError() {
let arr = callback2(5265);
arr = arr.pop();
let obj = callback(7398);
obj = { screen: constants.ACCOUNT, params: obj };
obj = { initialTab: constants2.STANDING };
2026-07-20 16:05:17 +00:00
obj.openUserSettings(obj);
}
2026-08-24 06:08:38 +00:00
});
}
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
obj[closure_1_8.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(1236).intl;
obj[2] = intl.string(classificationId(1236).t["13/7kX"]);
2026-08-24 06:08:38 +00:00
return jsx(classificationId(6343).Navigator, { screens: memo, initialRouteName: constants.CLASSIFICATION_DETAIL, headerBackTitle: null });
2026-07-20 16:05:17 +00:00
};