108 lines
4.9 KiB
TypeScript
108 lines
4.9 KiB
TypeScript
// Module ID: 17383
|
|
// Function ID: 17384
|
|
// Name: ConnectGuardianShareScreen
|
|
// Dependencies: [19, 17, 7470, 21, 4481, 709, 1233, 2368, 4193, 4731, 11848, 644, 14805, 8351, 8352, 4934, 4477, 14806, 5532, 5579, 11860, 2]
|
|
// Exports: default
|
|
|
|
// Module 17383 (ConnectGuardianShareScreen)
|
|
import ThemesDefault from "Themes" /* 709 */;
|
|
import getSystemLocale from "getSystemLocale" /* 1233 */;
|
|
import messagesProxyDefault from "messagesProxy" /* 2368 */;
|
|
import _modDef4731 from "module_4731" /* 4731 */;
|
|
import Modal from "Modal" /* 11860 */;
|
|
import useOnNewPendingRequestDefault from "useOnNewPendingRequest" /* 14805 */;
|
|
import closure_3 from "noop" /* 19 */;
|
|
import { View } from "get ActivityIndicator" /* 17 */;
|
|
import closure_5 from "freshTeenActivityWithMap" /* 7470 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4481 */;
|
|
|
|
require = arg1;
|
|
function ConnectGuardianShareScreen() {
|
|
const tmp = callback3();
|
|
let obj = getLinkCode(1233);
|
|
const syncMessages = obj.useSyncMessages(getLinkCode(2368).messagesLoader);
|
|
const callback = React.useCallback(() => {
|
|
const intl = getLinkCode(1233).intl;
|
|
getLinkCode(4193).presentFailedToast(intl.string(getLinkCode(1233).t.R0RpRX));
|
|
let arr = callback(4731);
|
|
arr = arr.pop();
|
|
}, []);
|
|
obj1 = getLinkCode(11848);
|
|
getLinkCode = obj1.useFamilyCenterActions({ onError: callback }).getLinkCode;
|
|
let obj2 = getLinkCode(644);
|
|
const items = [closure_5];
|
|
const stateFromStores = obj2.useStateFromStores(items, () => store.getLinkCode());
|
|
let obj3 = getLinkCode(644);
|
|
const items1 = [closure_5];
|
|
const stateFromStores1 = obj3.useStateFromStores(items1, () => store.getLinkCodeExpiresAt());
|
|
const effect = React.useEffect(() => {
|
|
getLinkCode();
|
|
}, []);
|
|
useOnNewPendingRequestDefault(_modDef4731.pop);
|
|
obj = { spacing: ThemesDefault.space.PX_40, children: null };
|
|
obj = { spacing: ThemesDefault.space.PX_8, children: null };
|
|
obj1 = { style: tmp.title, variant: "heading-xl/bold", color: "mobile-text-heading-primary", accessibilityRole: "header", children: null };
|
|
let intl = getLinkCode(1233).intl;
|
|
obj1[4] = intl.string(messagesProxyDefault.ITlV6p);
|
|
const items2 = [callback(getLinkCode(4477).Text, obj1), ];
|
|
obj2 = { style: tmp.body, variant: "text-sm/medium", color: "text-muted", children: null };
|
|
const intl2 = getLinkCode(1233).intl;
|
|
obj2[3] = intl2.format(messagesProxyDefault.F4GT2S, { link: "https://support.discord.com/hc/articles/14155060633623" });
|
|
items2[1] = callback(getLinkCode(4477).Text, obj2);
|
|
obj[1] = items2;
|
|
const items3 = [callback2(getLinkCode(4934).Stack, obj), ];
|
|
obj3 = { spacing: ThemesDefault.space.PX_24, style: tmp.cardSection, children: null };
|
|
const obj4 = { style: tmp.qrLabel, variant: "text-md/semibold", color: "mobile-text-heading-primary", children: null };
|
|
const intl3 = getLinkCode(1233).intl;
|
|
obj4[3] = intl3.string(messagesProxyDefault.pojgfk);
|
|
const items4 = [callback(getLinkCode(4477).Text, obj4), ];
|
|
if (null != stateFromStores) {
|
|
if (null != stateFromStores1) {
|
|
const obj5 = { shareActions: "full", linkCode: null, expiresAt: null, onRefresh: null };
|
|
obj5[1] = stateFromStores;
|
|
obj5[2] = stateFromStores1;
|
|
obj5[3] = getLinkCode;
|
|
let tmp11Result = tmp11(tmp2(14806).ConnectGuardianCard, obj5);
|
|
}
|
|
const obj6 = { children: null };
|
|
const obj7 = { children: null };
|
|
items4[1] = tmp11Result;
|
|
obj3[2] = items4;
|
|
items3[1] = tmp12(getLinkCode(4934).Stack, obj3);
|
|
obj[1] = items3;
|
|
obj7[0] = tmp12(getLinkCode(4934).Stack, obj);
|
|
obj6[0] = tmp11(getLinkCode(8352).ModalContent, obj7);
|
|
return tmp11(getLinkCode(8351).ModalScreen, obj6);
|
|
}
|
|
const tmp9 = useOnNewPendingRequestDefault;
|
|
tmp11Result = tmp11(View, { style: tmp.loading, children: callback(getLinkCode(5532).ActivityIndicator, {}) });
|
|
}
|
|
({ 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: ThemesDefault.space.PX_24 };
|
|
createCacheKey[4] = createCacheKey;
|
|
let closure_8 = createCacheKey.createStyles(createCacheKey);
|
|
const result = require("set").fileFinishedImporting("modules/parent_tools/native/ConnectGuardianShareModal.tsx");
|
|
|
|
export default function ConnectGuardianShareModal() {
|
|
const memo = React.useMemo(() => {
|
|
let obj = { CONNECT_GUARDIAN_SHARE: null };
|
|
obj = {
|
|
headerShown: true,
|
|
headerLeft: callback(5579).getHeaderBackButton(callback2(4731).pop),
|
|
headerTitle() {
|
|
return null;
|
|
},
|
|
render() {
|
|
return callback(closure_9, {});
|
|
}
|
|
};
|
|
obj[0] = obj;
|
|
return obj;
|
|
}, []);
|
|
let obj = { initialRouteName: "CONNECT_GUARDIAN_SHARE", screens: memo, headerBackTitle: null };
|
|
const intl = getSystemLocale.intl;
|
|
obj[2] = intl.string(getSystemLocale.t["13/7kX"]);
|
|
return callback(Modal.Modal, obj);
|
|
};
|