decord/source/modules/activities/confirmActivityAgeGateAlert.native.tsx
2026-09-02 09:53:35 +00:00

54 lines
2.5 KiB
TypeScript

// Module ID: 9495
// Function ID: 9496
// Name: ConfirmActivityGateContent
// Dependencies: [19, 17, 21, 4478, 709, 9496, 4474, 1233, 4857, 1296, 2]
// Exports: confirmActivityAgeGateAlert
// Module 9495 (ConfirmActivityGateContent)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 709 */;
import getSystemLocale from "getSystemLocale" /* 1233 */;
import Button from "Button" /* 1296 */;
import Text from "Text" /* 4474 */;
import setDefault from "set" /* 4857 */;
import SvgComponentDefault from "SvgComponent" /* 9496 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4478 */;
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));
};