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

109 lines
4.9 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 17283
// Function ID: 17284
2026-07-20 16:05:17 +00:00
// Name: ConnectGuardianShareScreen
2026-09-02 09:53:35 +00:00
// Dependencies: [19, 17, 7291, 21, 4478, 709, 1233, 2368, 4193, 4723, 11712, 644, 14709, 8707, 8708, 4926, 4474, 14710, 6056, 5503, 11724, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-02 09:53:35 +00:00
// Module 17283 (ConnectGuardianShareScreen)
import ThemesDefault from "Themes" /* 709 */;
import getSystemLocale from "getSystemLocale" /* 1233 */;
import messagesProxyDefault from "messagesProxy" /* 2368 */;
2026-09-01 10:26:29 +00:00
import _modDef4723 from "module_4723" /* 4723 */;
2026-09-02 09:53:35 +00:00
import Modal from "Modal" /* 11724 */;
import useOnNewPendingRequestDefault from "useOnNewPendingRequest" /* 14709 */;
2026-08-24 06:08:38 +00:00
import closure_3 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
2026-09-02 09:53:35 +00:00
import closure_5 from "freshTeenActivityWithMap" /* 7291 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
2026-09-01 10:26:29 +00:00
import createCacheKey from "createCacheKey" /* 4478 */;
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 ConnectGuardianShareScreen() {
2026-08-24 06:08:38 +00:00
const tmp = callback3();
2026-09-02 09:53:35 +00:00
let obj = getLinkCode(1233);
const syncMessages = obj.useSyncMessages(getLinkCode(2368).messagesLoader);
2026-07-20 16:05:17 +00:00
const callback = React.useCallback(() => {
2026-09-02 09:53:35 +00:00
const intl = getLinkCode(1233).intl;
getLinkCode(4193).presentFailedToast(intl.string(getLinkCode(1233).t.R0RpRX));
2026-09-01 10:26:29 +00:00
let arr = callback(4723);
2026-07-20 16:05:17 +00:00
arr = arr.pop();
}, []);
2026-09-02 09:53:35 +00:00
obj1 = getLinkCode(11712);
2026-07-23 10:11:24 +00:00
getLinkCode = obj1.useFamilyCenterActions({ onError: callback }).getLinkCode;
2026-09-02 09:53:35 +00:00
let obj2 = getLinkCode(644);
2026-08-24 06:08:38 +00:00
const items = [closure_5];
2026-07-29 08:29:29 +00:00
const stateFromStores = obj2.useStateFromStores(items, () => store.getLinkCode());
2026-09-02 09:53:35 +00:00
let obj3 = getLinkCode(644);
2026-08-24 06:08:38 +00:00
const items1 = [closure_5];
2026-07-29 08:29:29 +00:00
const stateFromStores1 = obj3.useStateFromStores(items1, () => store.getLinkCodeExpiresAt());
2026-07-20 16:05:17 +00:00
const effect = React.useEffect(() => {
getLinkCode();
}, []);
2026-09-01 10:26:29 +00:00
useOnNewPendingRequestDefault(_modDef4723.pop);
2026-08-24 06:08:38 +00:00
obj = { spacing: ThemesDefault.space.PX_40, children: null };
obj = { spacing: ThemesDefault.space.PX_8, children: null };
2026-07-29 08:29:29 +00:00
obj1 = { style: tmp.title, variant: "heading-xl/bold", color: "mobile-text-heading-primary", accessibilityRole: "header", children: null };
2026-09-02 09:53:35 +00:00
let intl = getLinkCode(1233).intl;
2026-08-24 06:08:38 +00:00
obj1[4] = intl.string(messagesProxyDefault.ITlV6p);
2026-09-01 10:26:29 +00:00
const items2 = [callback(getLinkCode(4474).Text, obj1), ];
2026-07-29 08:29:29 +00:00
obj2 = { style: tmp.body, variant: "text-sm/medium", color: "text-muted", children: null };
2026-09-02 09:53:35 +00:00
const intl2 = getLinkCode(1233).intl;
2026-08-24 06:08:38 +00:00
obj2[3] = intl2.format(messagesProxyDefault.F4GT2S, { link: "https://support.discord.com/hc/articles/14155060633623" });
2026-09-01 10:26:29 +00:00
items2[1] = callback(getLinkCode(4474).Text, obj2);
2026-07-29 08:29:29 +00:00
obj[1] = items2;
2026-09-01 10:26:29 +00:00
const items3 = [callback2(getLinkCode(4926).Stack, obj), ];
2026-08-24 06:08:38 +00:00
obj3 = { spacing: ThemesDefault.space.PX_24, style: tmp.cardSection, children: null };
2026-07-29 08:29:29 +00:00
const obj4 = { style: tmp.qrLabel, variant: "text-md/semibold", color: "mobile-text-heading-primary", children: null };
2026-09-02 09:53:35 +00:00
const intl3 = getLinkCode(1233).intl;
2026-08-24 06:08:38 +00:00
obj4[3] = intl3.string(messagesProxyDefault.pojgfk);
2026-09-01 10:26:29 +00:00
const items4 = [callback(getLinkCode(4474).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-09-02 09:53:35 +00:00
let tmp11Result = tmp11(tmp2(14710).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-09-01 10:26:29 +00:00
items3[1] = tmp12(getLinkCode(4926).Stack, obj3);
2026-07-29 08:29:29 +00:00
obj[1] = items3;
2026-09-01 10:26:29 +00:00
obj7[0] = tmp12(getLinkCode(4926).Stack, obj);
2026-09-02 09:53:35 +00:00
obj6[0] = tmp11(getLinkCode(8708).ModalContent, obj7);
return tmp11(getLinkCode(8707).ModalScreen, obj6);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const tmp9 = useOnNewPendingRequestDefault;
2026-09-02 09:53:35 +00:00
tmp11Result = tmp11(View, { style: tmp.loading, children: callback(getLinkCode(6056).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 };
2026-08-24 06:08:38 +00:00
createCacheKey = { alignItems: "center", justifyContent: "center", paddingVertical: ThemesDefault.space.PX_24 };
2026-07-29 08:29:29 +00:00
createCacheKey[4] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_8 = createCacheKey.createStyles(createCacheKey);
const result = require("set").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 };
2026-08-24 06:08:38 +00:00
obj = {
headerShown: true,
2026-09-02 09:53:35 +00:00
headerLeft: callback(5503).getHeaderBackButton(callback2(4723).pop),
2026-08-24 06:08:38 +00:00
headerTitle() {
return null;
},
render() {
return callback(closure_9, {});
}
2026-07-29 08:29:29 +00:00
};
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 };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[2] = intl.string(getSystemLocale.t["13/7kX"]);
return callback(Modal.Modal, obj);
2026-07-20 16:05:17 +00:00
};