decord/beta/source/actions/native/BundleUpdaterActionCreators.tsx

54 lines
1.5 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 18721
// Function ID: 18722
// Name: BundleUpdaterActionCreators
2026-10-12 16:32:48 +00:00
// Dependencies: [17, 5299, 1126, 2]
2026-10-12 16:32:48 +00:00
// Module 18721 (BundleUpdaterActionCreators)
2026-10-01 14:13:23 +00:00
import react_native from "react-native" /* 17 */;
2026-10-07 22:43:51 +00:00
import intl5 from "intl" /* 1126 */;
2026-10-12 16:32:48 +00:00
import AlertActionCreatorsDefault from "AlertActionCreators" /* 5299 */;
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
const NativeModules = react_native.NativeModules;
let c4 = false;
2026-10-01 14:13:23 +00:00
let obj = {
prepareUpdate(versionRequired) {
2026-10-01 14:13:23 +00:00
let intl;
let intl2;
let intl3;
let intl4;
const tmp = versionRequired;
if (tmp) {
const obj = {
title: intl.string(intl5.t.GQZdmI),
body: intl2.string(intl5.t.Fizu9y),
confirmText: intl3.string(intl5.t.UefCDS),
cancelText: intl4.string(intl5.t["1SzcG6"]),
onConfirm() {
BundleUpdaterManager = BundleUpdaterManager.BundleUpdaterManager;
return BundleUpdaterManager.reload();
}
};
2026-10-01 14:13:23 +00:00
const show = AlertActionCreatorsDefault.show;
AlertActionCreatorsDefault;
intl = intl5.intl;
intl2 = intl5.intl;
intl3 = intl5.intl;
intl4 = intl5.intl;
show(obj);
c4 = true;
}
},
deferUpdate() {
2026-10-01 14:13:23 +00:00
const tmp = c4;
if (tmp) {
c4 = false;
const BundleUpdaterManager = NativeModules.BundleUpdaterManager;
BundleUpdaterManager.reload();
}
}
};
2026-10-01 14:13:23 +00:00
const result = size.fileFinishedImporting("actions/native/BundleUpdaterActionCreators.tsx");
export default obj;