2026-07-28 08:39:19 +00:00
|
|
|
// Module ID: 13000
|
|
|
|
|
// Function ID: 100704
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: ActivateDeviceSuccess
|
2026-07-28 08:39:19 +00:00
|
|
|
// Dependencies: [31, 27, 33, 4165, 1212, 8926, 5119, 1392, 12999, 4161, 4578, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: ActivateDeviceSuccess
|
|
|
|
|
|
2026-07-28 08:39:19 +00:00
|
|
|
// Module 13000 (ActivateDeviceSuccess)
|
2026-07-23 10:11:24 +00:00
|
|
|
import "result";
|
|
|
|
|
import { View } from "get ActivityIndicator";
|
|
|
|
|
import jsxProd from "jsxProd";
|
|
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
|
|
|
|
|
|
|
|
|
let closure_4;
|
|
|
|
|
let closure_5;
|
|
|
|
|
let closure_6;
|
|
|
|
|
const require = arg1;
|
|
|
|
|
({ jsx: closure_4, jsxs: closure_5, Fragment: closure_6 } = jsxProd);
|
|
|
|
|
let closure_7 = _createForOfIteratorHelperLoose.createStyles({ image: { width: 300, height: 200, alignSelf: "center" } });
|
|
|
|
|
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-23 10:11:24 +00:00
|
|
|
const intl2 = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
let stringResult = intl2.string(require(1212) /* getSystemLocale */.t.QhATl2);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
const scopes = data.scopes;
|
|
|
|
|
stringResult = null;
|
2026-07-23 10:11:24 +00:00
|
|
|
if (scopes.some((arg0) => outer1_0(outer1_2[5]).isSocialLayerUmbrellaScope(arg0))) {
|
|
|
|
|
const intl = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
stringResult = intl.string(require(1212) /* getSystemLocale */.t.vBPvK3);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let obj = {};
|
|
|
|
|
let tmp9 = null;
|
|
|
|
|
if (null != successImage) {
|
|
|
|
|
obj = {};
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj2 = require(1392) /* getAvatarURL */;
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.source = obj2.makeSource(successImage);
|
|
|
|
|
obj.style = tmp.image;
|
|
|
|
|
obj.resizeMode = "contain";
|
2026-07-28 08:39:19 +00:00
|
|
|
tmp9 = callback(importDefault(5119), obj);
|
|
|
|
|
const tmp13 = importDefault(5119);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
const items = [tmp9, , ];
|
2026-07-28 08:39:19 +00:00
|
|
|
obj = { style: importDefault(12999).innerContent };
|
|
|
|
|
const obj1 = { variant: "heading-lg/bold", color: "mobile-text-heading-primary", style: importDefault(12999).centerText };
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl3 = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
obj1.children = intl3.string(require(1212) /* getSystemLocale */.t.qDtJmD);
|
2026-07-28 08:39:19 +00:00
|
|
|
const items1 = [callback(require(4161) /* Text */.Text, obj1), ];
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp17 = null;
|
|
|
|
|
if (null != stringResult) {
|
2026-07-28 08:39:19 +00:00
|
|
|
obj2 = { variant: "text-md/medium", color: "text-default", style: importDefault(12999).centerText, children: stringResult };
|
|
|
|
|
tmp17 = callback(require(4161) /* Text */.Text, obj2);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
items1[1] = tmp17;
|
|
|
|
|
obj.children = items1;
|
|
|
|
|
items[1] = closure_5(View, obj);
|
|
|
|
|
const obj3 = { size: "lg" };
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl4 = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
obj3.text = intl4.string(require(1212) /* getSystemLocale */.t.cpT0Cq);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj3.onPress = onComplete.onComplete;
|
|
|
|
|
obj3.grow = true;
|
2026-07-28 08:39:19 +00:00
|
|
|
items[2] = callback(require(4578) /* Button */.Button, obj3);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.children = items;
|
|
|
|
|
return closure_5(closure_6, obj);
|
|
|
|
|
};
|