decord/source/modules/activate_device/native/ActivateDeviceSuccess.tsx
2026-09-02 09:53:35 +00:00

71 lines
2.8 KiB
TypeScript

// Module ID: 13847
// Function ID: 13848
// Name: ActivateDeviceSuccess
// Dependencies: [19, 17, 21, 4478, 1233, 9301, 5501, 1430, 13846, 4474, 4928, 2]
// Exports: ActivateDeviceSuccess
// Module 13847 (ActivateDeviceSuccess)
import noopAll from "noop" /* 19 */;
import getSystemLocale from "getSystemLocale" /* 1233 */;
import getAvatarURL from "getAvatarURL" /* 1430 */;
import Text from "Text" /* 4474 */;
import Button from "Button" /* 4928 */;
import preloadDefault from "preload" /* 5501 */;
import innerContentDefault from "innerContent" /* 13846 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4478 */;
require = arg1;
noopAll;
({ jsx: c4, jsxs: c5, Fragment: closure_6 } = jsxProd);
let closure_7 = createCacheKey.createStyles({ image: { width: 300, height: 200, alignSelf: "center" } });
const result = require("set").fileFinishedImporting("modules/activate_device/native/ActivateDeviceSuccess.tsx");
export const ActivateDeviceSuccess = function ActivateDeviceSuccess(onComplete) {
({ data, successImage } = onComplete);
if (null != data.twoWayLinkCode) {
const intl2 = getSystemLocale.intl;
let stringResult = intl2.string(getSystemLocale.t.QhATl2);
} else {
const scopes = data.scopes;
stringResult = null;
if (scopes.some((arg0) => callback(table[5]).isSocialLayerUmbrellaScope(arg0))) {
const intl = getSystemLocale.intl;
stringResult = intl.string(getSystemLocale.t.vBPvK3);
}
}
let tmp9 = null;
if (null != successImage) {
let obj = { source: null, style: null, resizeMode: "contain" };
obj1 = getAvatarURL;
obj[0] = obj1.makeSource(successImage);
obj[1] = tmp.image;
tmp9 = callback(preloadDefault, obj);
const tmp13 = preloadDefault;
}
const items = [tmp9, , ];
obj = { style: innerContentDefault.innerContent, children: null };
obj = { variant: "heading-lg/bold", color: "mobile-text-heading-primary", style: innerContentDefault.centerText, children: null };
const intl3 = getSystemLocale.intl;
obj[3] = intl3.string(getSystemLocale.t.qDtJmD);
const items1 = [callback(Text.Text, obj), ];
let tmp18Result = null;
if (null != stringResult) {
obj1 = { variant: "text-md/medium", color: "text-default", style: null, children: null };
obj1[2] = innerContentDefault.centerText;
obj1[3] = stringResult;
tmp18Result = tmp18(tmp19(4474).Text, obj1);
}
const obj2 = { children: null };
items1[1] = tmp18Result;
obj[1] = items1;
items[1] = closure_5(View, obj);
const obj3 = { size: "lg", text: null, onPress: null, grow: true };
const intl4 = tmp19(1233).intl;
obj3[1] = intl4.string(getSystemLocale.t.cpT0Cq);
obj3[2] = onComplete.onComplete;
items[2] = callback(Button.Button, obj3);
obj2[0] = items;
return closure_5(closure_6, obj2);
};