decord/source/modules/parent_tools/native/ConnectGuardianShareModal.tsx

107 lines
4.9 KiB
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 16542
// Function ID: 16543
2026-07-20 16:05:17 +00:00
// Name: ConnectGuardianShareScreen
2026-08-08 06:10:11 +00:00
// Dependencies: [19, 17, 6996, 21, 4303, 712, 1236, 2284, 4001, 4509, 11323, 647, 14125, 7807, 7808, 4712, 4299, 14126, 5823, 5270, 11335, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-08 06:10:11 +00:00
// Module 16542 (ConnectGuardianShareScreen)
2026-07-29 08:29:29 +00:00
import HeaderBackImage from "HeaderBackImage";
import { View } from "ConnectGuardianCard";
import freshTeenActivityWithMap from "freshTeenActivityWithMap";
import jsxProd from "set";
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
let error;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function ConnectGuardianShareScreen() {
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
let obj = getLinkCode(1236);
2026-08-06 08:05:19 +00:00
const syncMessages = obj.useSyncMessages(getLinkCode(2284).messagesLoader);
2026-07-20 16:05:17 +00:00
const callback = React.useCallback(() => {
2026-07-29 08:29:29 +00:00
const intl = getLinkCode(1236).intl;
2026-08-07 06:50:47 +00:00
getLinkCode(4001).presentFailedToast(intl.string(getLinkCode(1236).t.R0RpRX));
2026-08-08 06:10:11 +00:00
let arr = callback(4509);
2026-07-20 16:05:17 +00:00
arr = arr.pop();
}, []);
2026-08-08 06:10:11 +00:00
let obj1 = getLinkCode(11323);
2026-07-23 10:11:24 +00:00
getLinkCode = obj1.useFamilyCenterActions({ onError: callback }).getLinkCode;
2026-07-29 08:29:29 +00:00
let obj2 = getLinkCode(647);
const items = [freshTeenActivityWithMap];
const stateFromStores = obj2.useStateFromStores(items, () => store.getLinkCode());
let obj3 = getLinkCode(647);
const items1 = [freshTeenActivityWithMap];
const stateFromStores1 = obj3.useStateFromStores(items1, () => store.getLinkCodeExpiresAt());
2026-07-20 16:05:17 +00:00
const effect = React.useEffect(() => {
getLinkCode();
}, []);
2026-08-08 06:10:11 +00:00
importDefault(14125)(importDefault(4509).pop);
2026-07-29 08:29:29 +00:00
obj = { spacing: null, children: null };
obj[0] = importDefault(712).space.PX_40;
obj = { spacing: null, children: null };
obj[0] = importDefault(712).space.PX_8;
obj1 = { style: tmp.title, variant: "heading-xl/bold", color: "mobile-text-heading-primary", accessibilityRole: "header", children: null };
let intl = getLinkCode(1236).intl;
2026-08-06 08:05:19 +00:00
obj1[4] = intl.string(importDefault(2284).ITlV6p);
2026-08-08 06:10:11 +00:00
const items2 = [callback(getLinkCode(4299).Text, obj1), ];
2026-07-29 08:29:29 +00:00
obj2 = { style: tmp.body, variant: "text-sm/medium", color: "text-muted", children: null };
const intl2 = getLinkCode(1236).intl;
2026-08-06 08:05:19 +00:00
obj2[3] = intl2.format(importDefault(2284).F4GT2S, { link: "https://support.discord.com/hc/articles/14155060633623" });
2026-08-08 06:10:11 +00:00
items2[1] = callback(getLinkCode(4299).Text, obj2);
2026-07-29 08:29:29 +00:00
obj[1] = items2;
2026-08-08 06:10:11 +00:00
const items3 = [callback2(getLinkCode(4712).Stack, obj), ];
2026-07-29 08:29:29 +00:00
obj3 = { spacing: null, style: null, children: null };
obj3[0] = importDefault(712).space.PX_24;
obj3[1] = tmp.cardSection;
const obj4 = { style: tmp.qrLabel, variant: "text-md/semibold", color: "mobile-text-heading-primary", children: null };
const intl3 = getLinkCode(1236).intl;
2026-08-06 08:05:19 +00:00
obj4[3] = intl3.string(importDefault(2284).pojgfk);
2026-08-08 06:10:11 +00:00
const items4 = [callback(getLinkCode(4299).Text, obj4), ];
2026-07-20 16:05:17 +00:00
if (null != stateFromStores) {
if (null != stateFromStores1) {
2026-07-29 08:29:29 +00:00
const obj5 = { shareActions: "full", linkCode: null, expiresAt: null, onRefresh: null };
obj5[1] = stateFromStores;
obj5[2] = stateFromStores1;
obj5[3] = getLinkCode;
2026-08-08 06:10:11 +00:00
let tmp11Result = tmp11(tmp2(14126).ConnectGuardianCard, obj5);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj6 = { children: null };
const obj7 = { children: null };
items4[1] = tmp11Result;
obj3[2] = items4;
2026-08-08 06:10:11 +00:00
items3[1] = tmp12(getLinkCode(4712).Stack, obj3);
2026-07-29 08:29:29 +00:00
obj[1] = items3;
2026-08-08 06:10:11 +00:00
obj7[0] = tmp12(getLinkCode(4712).Stack, obj);
obj6[0] = tmp11(getLinkCode(7808).ModalContent, obj7);
return tmp11(getLinkCode(7807).ModalScreen, obj6);
2026-07-20 16:05:17 +00:00
}
2026-08-08 06:10:11 +00:00
const tmp9 = importDefault(14125);
tmp11Result = tmp11(View, { style: tmp.loading, children: callback(getLinkCode(5823).ActivityIndicator, {}) });
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
({ jsx: closure_6, jsxs: error } = jsxProd);
createCacheKey = { title: { textAlign: "center" }, body: { textAlign: "center" }, qrLabel: { textAlign: "center" }, cardSection: { alignItems: "center" }, loading: null };
createCacheKey = { alignItems: "center", justifyContent: "center", paddingVertical: require("Themes").space.PX_24 };
createCacheKey[4] = createCacheKey;
createCacheKey = createCacheKey.createStyles(createCacheKey);
const result = require("freshTeenActivityWithMap").fileFinishedImporting("modules/parent_tools/native/ConnectGuardianShareModal.tsx");
2026-07-20 16:05:17 +00:00
export default function ConnectGuardianShareModal() {
2026-07-29 08:29:29 +00:00
const memo = React.useMemo(() => {
let obj = { CONNECT_GUARDIAN_SHARE: null };
obj = { headerShown: true, headerLeft: null, headerTitle: null, render: null };
2026-08-08 06:10:11 +00:00
obj[1] = callback(5270).getHeaderBackButton(callback2(4509).pop);
2026-07-29 08:29:29 +00:00
obj[2] = function headerTitle() {
return null;
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[3] = function render() {
return callback(closure_9, {});
};
obj[0] = obj;
2026-07-20 16:05:17 +00:00
return obj;
2026-07-29 08:29:29 +00:00
}, []);
let obj = { initialRouteName: "CONNECT_GUARDIAN_SHARE", screens: memo, headerBackTitle: null };
const intl = require(1236) /* getSystemLocale */.intl;
obj[2] = intl.string(require(1236) /* getSystemLocale */.t["13/7kX"]);
2026-08-08 06:10:11 +00:00
return callback(require(11335) /* Modal */.Modal, obj);
2026-07-20 16:05:17 +00:00
};