decord/source/modules/activities/confirmExternalAppLaunchAlert.native.tsx

73 lines
3.3 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 10720
// Function ID: 10721
2026-07-20 16:05:17 +00:00
// Name: ConfirmActivityGateContent
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 4408, 21, 4380, 10721, 4376, 1236, 4815, 4094, 4744, 2]
2026-07-20 16:05:17 +00:00
// Exports: confirmExternalAppLaunchAlert
2026-08-25 06:04:03 +00:00
// Module 10720 (ConfirmActivityGateContent)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
2026-08-25 06:04:03 +00:00
import Text from "Text" /* 4376 */;
import setDefault from "set" /* 4744 */;
import Button from "Button" /* 4815 */;
import registerAssetDefault from "registerAsset" /* 10721 */;
2026-08-24 06:08:38 +00:00
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
2026-08-25 06:04:03 +00:00
import { PRIVATE_APPS_HELP_ARTICLE } from "items3" /* 4408 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
function ConfirmActivityGateContent(activityName) {
const tmp = callback3();
2026-07-29 08:29:29 +00:00
let obj = { style: tmp.alertContainer, children: null };
2026-08-24 06:08:38 +00:00
obj = { source: registerAssetDefault, style: tmp.announcementBirb };
2026-07-20 16:05:17 +00:00
const items = [callback(closure_3, obj), , , ];
2026-07-29 08:29:29 +00:00
obj = { style: tmp.alertEyebrowText, variant: "eyebrow", children: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[2] = intl.string(getSystemLocale.t["06YebE"]);
items[1] = callback(Text.Text, obj);
obj1 = { style: tmp.alertTitleText, variant: "heading-lg/bold", children: null };
const intl2 = getSystemLocale.intl;
obj1[2] = intl2.format(getSystemLocale.t["Z/eMDT"], { activityName: activityName.application.name });
items[2] = callback(Text.Text, obj1);
2026-07-29 08:29:29 +00:00
const obj3 = { style: tmp.alertSubtitleText, variant: "text-sm/normal", children: null };
2026-08-24 06:08:38 +00:00
const intl3 = getSystemLocale.intl;
obj3[2] = intl3.string(getSystemLocale.t.z81WwD);
items[3] = callback(Text.Text, obj3);
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-07-20 16:05:17 +00:00
return callback2(closure_4, obj);
}
function LinkButton() {
2026-07-29 08:29:29 +00:00
let obj = { style: callback3().linkWrapper, children: null };
2026-07-20 16:05:17 +00:00
obj = {
2026-07-23 10:11:24 +00:00
variant: "secondary",
size: "sm",
2026-07-20 16:05:17 +00:00
onPress() {
2026-07-29 08:29:29 +00:00
callback(table[9]).openURL(closure_5);
},
text: null
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[3] = intl.string(getSystemLocale.t.E0gf5l);
obj[1] = callback(Button.Button, obj);
2026-07-20 16:05:17 +00:00
return callback(closure_4, obj);
}
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ Image: c3, View: c4 } = get_ActivityIndicator);
({ jsx: closure_6, jsxs: error } = jsxProd);
let closure_8 = createCacheKey.createStyles({ alertContainer: { display: "flex", alignItems: "center", padding: 8 }, alertEyebrowText: { marginTop: 40, textAlign: "center" }, alertTitleText: { marginTop: 16, textAlign: "center" }, alertSubtitleText: { marginTop: 16, textAlign: "center" }, announcementBirb: { width: 90, height: 100, position: "absolute", top: -66 }, linkWrapper: { marginTop: 8 } });
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/activities/confirmExternalAppLaunchAlert.native.tsx");
2026-07-20 16:05:17 +00:00
export const confirmExternalAppLaunchAlert = function confirmExternalAppLaunchAlert(arg0) {
({ application, onConfirm, onCancel } = arg0);
2026-08-24 06:08:38 +00:00
let obj = setDefault;
2026-07-29 08:29:29 +00:00
obj = { title: "", children: callback(ConfirmActivityGateContent, { application }), onConfirm, confirmText: null, onCancel: null, cancelText: null, footer: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[3] = intl.string(getSystemLocale.t["3PatSz"]);
2026-07-29 08:29:29 +00:00
obj[4] = onCancel;
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
obj[5] = intl2.string(getSystemLocale.t["ETE/oC"]);
2026-07-29 08:29:29 +00:00
obj[6] = callback(LinkButton, {});
2026-07-20 16:05:17 +00:00
return Promise.resolve(obj.show(obj));
};