54 lines
2.5 KiB
TypeScript
54 lines
2.5 KiB
TypeScript
// Module ID: 9403
|
|
// Function ID: 9404
|
|
// Name: ConfirmActivityGateContent
|
|
// Dependencies: [19, 17, 21, 4445, 712, 9404, 4441, 1236, 4809, 1297, 2]
|
|
// Exports: confirmActivityAgeGateAlert
|
|
|
|
// Module 9403 (ConfirmActivityGateContent)
|
|
import noopAll from "noop" /* 19 */;
|
|
import ThemesDefault from "Themes" /* 712 */;
|
|
import getSystemLocale from "getSystemLocale" /* 1236 */;
|
|
import Button from "Button" /* 1297 */;
|
|
import Text from "Text" /* 4441 */;
|
|
import setDefault from "set" /* 4809 */;
|
|
import SvgComponentDefault from "SvgComponent" /* 9404 */;
|
|
import { View } from "get ActivityIndicator" /* 17 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4445 */;
|
|
|
|
require = arg1;
|
|
function ConfirmActivityGateContent(children) {
|
|
const tmp = callback3();
|
|
let obj = { style: tmp.alertContainer, children: null };
|
|
const items = [callback(SvgComponentDefault, {}), ];
|
|
obj = { style: tmp.alertBodyText, variant: "text-md/normal", children: children.description };
|
|
items[1] = callback(Text.Text, obj);
|
|
obj[1] = items;
|
|
return callback2(View, obj);
|
|
}
|
|
noopAll;
|
|
({ jsx: c4, jsxs: c5 } = jsxProd);
|
|
createCacheKey = { alertContainer: { display: "flex", alignItems: "center", padding: 8 }, alertBodyText: null };
|
|
createCacheKey = { fontSize: 16, lineHeight: 24, color: ThemesDefault.colors.INTERACTIVE_TEXT_DEFAULT, textAlign: "center" };
|
|
createCacheKey[1] = createCacheKey;
|
|
let closure_6 = createCacheKey.createStyles(createCacheKey);
|
|
const result = require("set").fileFinishedImporting("modules/activities/confirmActivityAgeGateAlert.native.tsx");
|
|
|
|
export const confirmActivityAgeGateAlert = function confirmActivityAgeGateAlert(arg0) {
|
|
({ application, onAgree, onDisagree } = arg0);
|
|
const intl = getSystemLocale.intl;
|
|
let obj = { applicationName: application.name };
|
|
const formatToPlainStringResult = intl.formatToPlainString(getSystemLocale.t.OgmIqy, obj);
|
|
obj = { title: null, children: null, cancelText: null, confirmText: null, onConfirm: null, onCancel: null, confirmColor: null };
|
|
const intl2 = getSystemLocale.intl;
|
|
obj[0] = intl2.string(getSystemLocale.t.SSDPOF);
|
|
obj[1] = callback(ConfirmActivityGateContent, { description: formatToPlainStringResult });
|
|
const intl3 = getSystemLocale.intl;
|
|
obj[2] = intl3.string(getSystemLocale.t.hg1uxn);
|
|
const intl4 = getSystemLocale.intl;
|
|
obj[3] = intl4.string(getSystemLocale.t.wVq7uo);
|
|
obj[4] = onAgree;
|
|
obj[5] = onDisagree;
|
|
obj[6] = Button.ButtonColors.RED;
|
|
return Promise.resolve(setDefault.show(obj));
|
|
};
|