decord/source/modules/activate_device/native/ActivateDeviceSuccess.tsx

71 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 13111
// Function ID: 13112
2026-07-20 16:05:17 +00:00
// Name: ActivateDeviceSuccess
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 17, 21, 4255, 1236, 10397, 5221, 1416, 13110, 4251, 4665, 2]
2026-07-20 16:05:17 +00:00
// Exports: ActivateDeviceSuccess
2026-08-05 07:35:12 +00:00
// Module 13111 (ActivateDeviceSuccess)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c4;
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c4, jsxs: c5, Fragment: closure_6 } = jsxProd);
let closure_7 = createCacheKey.createStyles({ image: { width: 300, height: 200, alignSelf: "center" } });
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/activate_device/native/ActivateDeviceSuccess.tsx");
2026-07-20 16:05:17 +00:00
export const ActivateDeviceSuccess = function ActivateDeviceSuccess(onComplete) {
let data;
let successImage;
({ data, successImage } = onComplete);
if (null != data.twoWayLinkCode) {
2026-07-29 08:29:29 +00:00
const intl2 = require(1236) /* getSystemLocale */.intl;
let stringResult = intl2.string(require(1236) /* getSystemLocale */.t.QhATl2);
2026-07-20 16:05:17 +00:00
} else {
const scopes = data.scopes;
stringResult = null;
2026-07-29 08:29:29 +00:00
if (scopes.some((arg0) => callback(table[5]).isSocialLayerUmbrellaScope(arg0))) {
const intl = require(1236) /* getSystemLocale */.intl;
stringResult = intl.string(require(1236) /* getSystemLocale */.t.vBPvK3);
2026-07-20 16:05:17 +00:00
}
}
let tmp9 = null;
if (null != successImage) {
2026-07-29 08:29:29 +00:00
let obj = { source: null, style: null, resizeMode: "contain" };
let obj1 = require(1416) /* getAvatarURL */;
obj[0] = obj1.makeSource(successImage);
obj[1] = tmp.image;
2026-08-05 07:35:12 +00:00
tmp9 = callback(importDefault(5221), obj);
const tmp13 = importDefault(5221);
2026-07-20 16:05:17 +00:00
}
const items = [tmp9, , ];
2026-08-05 07:35:12 +00:00
obj = { style: importDefault(13110).innerContent, children: null };
2026-07-29 08:29:29 +00:00
obj = { variant: "heading-lg/bold", color: "mobile-text-heading-primary", style: null, children: null };
2026-08-05 07:35:12 +00:00
obj[2] = importDefault(13110).centerText;
2026-07-29 08:29:29 +00:00
const intl3 = require(1236) /* getSystemLocale */.intl;
obj[3] = intl3.string(require(1236) /* getSystemLocale */.t.qDtJmD);
2026-08-05 07:35:12 +00:00
const items1 = [callback(require(4251) /* Text */.Text, obj), ];
2026-07-29 08:29:29 +00:00
let tmp18Result = null;
2026-07-20 16:05:17 +00:00
if (null != stringResult) {
2026-07-29 08:29:29 +00:00
obj1 = { variant: "text-md/medium", color: "text-default", style: null, children: null };
2026-08-05 07:35:12 +00:00
obj1[2] = importDefault(13110).centerText;
2026-07-29 08:29:29 +00:00
obj1[3] = stringResult;
2026-08-05 07:35:12 +00:00
tmp18Result = tmp18(tmp19(4251).Text, obj1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj2 = { children: null };
items1[1] = tmp18Result;
obj[1] = items1;
2026-07-20 16:05:17 +00:00
items[1] = closure_5(View, obj);
2026-07-29 08:29:29 +00:00
const obj3 = { size: "lg", text: null, onPress: null, grow: true };
const intl4 = tmp19(1236).intl;
obj3[1] = intl4.string(require(1236) /* getSystemLocale */.t.cpT0Cq);
obj3[2] = onComplete.onComplete;
2026-08-05 07:35:12 +00:00
items[2] = callback(require(4665) /* Button */.Button, obj3);
2026-07-29 08:29:29 +00:00
obj2[0] = items;
return closure_5(closure_6, obj2);
2026-07-20 16:05:17 +00:00
};