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

53 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 8740
// Function ID: 8741
2026-07-20 16:05:17 +00:00
// Name: ConfirmActivityGateContent
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 17, 21, 4661, 712, 8741, 4734, 1236, 4827, 1297, 2]
2026-07-20 16:05:17 +00:00
// Exports: confirmActivityAgeGateAlert
2026-08-15 05:55:55 +00:00
// Module 8740 (ConfirmActivityGateContent)
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
const require = arg1;
2026-07-20 16:05:17 +00:00
function ConfirmActivityGateContent(children) {
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
let obj = { style: tmp.alertContainer, children: null };
2026-08-15 05:55:55 +00:00
const items = [callback(importDefault(8741), {}), ];
2026-07-20 16:05:17 +00:00
obj = { style: tmp.alertBodyText, variant: "text-md/normal", children: children.description };
2026-08-15 05:55:55 +00:00
items[1] = callback(require(4734) /* Text */.Text, obj);
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-07-20 16:05:17 +00:00
return callback2(View, obj);
}
2026-07-29 08:29:29 +00:00
({ jsx: c4, jsxs: c5 } = jsxProd);
createCacheKey = { alertContainer: { display: "flex", alignItems: "center", padding: 8 }, alertBodyText: null };
createCacheKey = { fontSize: 16, lineHeight: 24, color: require("Themes").colors.INTERACTIVE_TEXT_DEFAULT, textAlign: "center" };
createCacheKey[1] = createCacheKey;
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/activities/confirmActivityAgeGateAlert.native.tsx");
2026-07-20 16:05:17 +00:00
export const confirmActivityAgeGateAlert = function confirmActivityAgeGateAlert(arg0) {
let application;
let onAgree;
let onDisagree;
({ application, onAgree, onDisagree } = arg0);
2026-07-29 08:29:29 +00:00
const intl = require(1236) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
let obj = { applicationName: application.name };
2026-07-29 08:29:29 +00:00
const formatToPlainStringResult = intl.formatToPlainString(require(1236) /* getSystemLocale */.t.OgmIqy, obj);
obj = { title: null, children: null, cancelText: null, confirmText: null, onConfirm: null, onCancel: null, confirmColor: null };
const intl2 = require(1236) /* getSystemLocale */.intl;
obj[0] = intl2.string(require(1236) /* getSystemLocale */.t.SSDPOF);
obj[1] = callback(ConfirmActivityGateContent, { description: formatToPlainStringResult });
const intl3 = require(1236) /* getSystemLocale */.intl;
obj[2] = intl3.string(require(1236) /* getSystemLocale */.t.hg1uxn);
const intl4 = require(1236) /* getSystemLocale */.intl;
obj[3] = intl4.string(require(1236) /* getSystemLocale */.t.wVq7uo);
obj[4] = onAgree;
obj[5] = onDisagree;
obj[6] = require(1297) /* Button */.ButtonColors.RED;
2026-08-15 05:55:55 +00:00
return Promise.resolve(importDefault(4827).show(obj));
2026-07-20 16:05:17 +00:00
};