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

55 lines
2.5 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 10718
// Function ID: 10719
2026-07-20 16:05:17 +00:00
// Name: ConfirmActivityGateContent
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 21, 4380, 712, 10719, 4376, 1236, 4744, 1297, 2]
2026-07-20 16:05:17 +00:00
// Exports: confirmActivityAgeGateAlert
2026-08-25 06:04:03 +00:00
// Module 10718 (ConfirmActivityGateContent)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import Button from "Button" /* 1297 */;
2026-08-25 06:04:03 +00:00
import Text from "Text" /* 4376 */;
import setDefault from "set" /* 4744 */;
import SvgComponentDefault from "SvgComponent" /* 10719 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
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(children) {
2026-08-24 06:08:38 +00:00
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
const items = [callback(SvgComponentDefault, {}), ];
2026-07-20 16:05:17 +00:00
obj = { style: tmp.alertBodyText, variant: "text-md/normal", children: children.description };
2026-08-24 06:08:38 +00:00
items[1] = callback(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-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ jsx: c4, jsxs: c5 } = jsxProd);
createCacheKey = { alertContainer: { display: "flex", alignItems: "center", padding: 8 }, alertBodyText: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { fontSize: 16, lineHeight: 24, color: ThemesDefault.colors.INTERACTIVE_TEXT_DEFAULT, textAlign: "center" };
2026-07-29 08:29:29 +00:00
createCacheKey[1] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_6 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/activities/confirmActivityAgeGateAlert.native.tsx");
2026-07-20 16:05:17 +00:00
export const confirmActivityAgeGateAlert = function confirmActivityAgeGateAlert(arg0) {
({ application, onAgree, onDisagree } = arg0);
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
2026-07-20 16:05:17 +00:00
let obj = { applicationName: application.name };
2026-08-24 06:08:38 +00:00
const formatToPlainStringResult = intl.formatToPlainString(getSystemLocale.t.OgmIqy, obj);
2026-07-29 08:29:29 +00:00
obj = { title: null, children: null, cancelText: null, confirmText: null, onConfirm: null, onCancel: null, confirmColor: null };
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
obj[0] = intl2.string(getSystemLocale.t.SSDPOF);
2026-07-29 08:29:29 +00:00
obj[1] = callback(ConfirmActivityGateContent, { description: formatToPlainStringResult });
2026-08-24 06:08:38 +00:00
const intl3 = getSystemLocale.intl;
obj[2] = intl3.string(getSystemLocale.t.hg1uxn);
const intl4 = getSystemLocale.intl;
obj[3] = intl4.string(getSystemLocale.t.wVq7uo);
2026-07-29 08:29:29 +00:00
obj[4] = onAgree;
obj[5] = onDisagree;
2026-08-24 06:08:38 +00:00
obj[6] = Button.ButtonColors.RED;
return Promise.resolve(setDefault.show(obj));
2026-07-20 16:05:17 +00:00
};