// Module ID: 10718 // Function ID: 10719 // Name: ConfirmActivityGateContent // Dependencies: [19, 17, 21, 4380, 712, 10719, 4376, 1236, 4744, 1297, 2] // Exports: confirmActivityAgeGateAlert // Module 10718 (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" /* 4376 */; import setDefault from "set" /* 4744 */; import SvgComponentDefault from "SvgComponent" /* 10719 */; import { View } from "get ActivityIndicator" /* 17 */; import jsxProd from "jsxProd" /* 21 */; import createCacheKey from "createCacheKey" /* 4380 */; 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)); };