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

54 lines
1.5 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 18725
// Function ID: 18726
// Name: BundleUpdaterActionCreators
2026-10-10 08:08:14 +00:00
// Dependencies: [17, 5299, 1126, 2]
2026-07-20 16:05:17 +00:00
2026-10-13 12:43:34 +00:00
// Module 18725 (BundleUpdaterActionCreators)
2026-10-03 08:58:59 +00:00
import react_native from "react-native" /* 17 */;
import intl5 from "intl" /* 1126 */;
2026-10-10 08:08:14 +00:00
import AlertActionCreatorsDefault from "AlertActionCreators" /* 5299 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
const NativeModules = react_native.NativeModules;
2026-07-23 10:11:24 +00:00
let c4 = false;
2026-10-03 08:58:59 +00:00
let obj = {
2026-07-20 16:05:17 +00:00
prepareUpdate(versionRequired) {
2026-10-03 08:58:59 +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-07-20 16:05:17 +00:00
};
2026-10-03 08:58:59 +00:00
const show = AlertActionCreatorsDefault.show;
AlertActionCreatorsDefault;
intl = intl5.intl;
intl2 = intl5.intl;
intl3 = intl5.intl;
intl4 = intl5.intl;
show(obj);
2026-08-24 06:08:38 +00:00
c4 = true;
2026-07-20 16:05:17 +00:00
}
},
deferUpdate() {
2026-10-03 08:58:59 +00:00
const tmp = c4;
if (tmp) {
2026-07-23 10:11:24 +00:00
c4 = false;
2026-07-20 16:05:17 +00:00
const BundleUpdaterManager = NativeModules.BundleUpdaterManager;
BundleUpdaterManager.reload();
}
}
};
2026-10-03 08:58:59 +00:00
const result = size.fileFinishedImporting("actions/native/BundleUpdaterActionCreators.tsx");
export default obj;