decord/alpha/source/actions/native/BundleUpdaterActionCreators.tsx
2026-10-13 12:43:34 +00:00

53 lines
1.5 KiB
TypeScript

// Module ID: 18725
// Function ID: 18726
// Name: BundleUpdaterActionCreators
// Dependencies: [17, 5299, 1126, 2]
// Module 18725 (BundleUpdaterActionCreators)
import react_native from "react-native" /* 17 */;
import intl5 from "intl" /* 1126 */;
import AlertActionCreatorsDefault from "AlertActionCreators" /* 5299 */;
import size from "module_2" /* 2 */;
const NativeModules = react_native.NativeModules;
let c4 = false;
let obj = {
prepareUpdate(versionRequired) {
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();
}
};
const show = AlertActionCreatorsDefault.show;
AlertActionCreatorsDefault;
intl = intl5.intl;
intl2 = intl5.intl;
intl3 = intl5.intl;
intl4 = intl5.intl;
show(obj);
c4 = true;
}
},
deferUpdate() {
const tmp = c4;
if (tmp) {
c4 = false;
const BundleUpdaterManager = NativeModules.BundleUpdaterManager;
BundleUpdaterManager.reload();
}
}
};
const result = size.fileFinishedImporting("actions/native/BundleUpdaterActionCreators.tsx");
export default obj;