// Module ID: 13538 // Function ID: 13539 // Name: ActivateDeviceSuccess // Dependencies: [19, 17, 21, 4445, 1236, 9209, 5445, 1435, 13537, 4441, 4880, 2] // Exports: ActivateDeviceSuccess // Module 13538 (ActivateDeviceSuccess) import noopAll from "noop" /* 19 */; import getSystemLocale from "getSystemLocale" /* 1236 */; import getAvatarURL from "getAvatarURL" /* 1435 */; import Text from "Text" /* 4441 */; import Button from "Button" /* 4880 */; import preloadDefault from "preload" /* 5445 */; import innerContentDefault from "innerContent" /* 13537 */; import { View } from "get ActivityIndicator" /* 17 */; import jsxProd from "jsxProd" /* 21 */; import createCacheKey from "createCacheKey" /* 4445 */; 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(4441).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(1236).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); };