decord/source/modules/parent_tools/native/FamilyCenterNativeUtils.tsx
github-actions a36fe4ec9c chore: update source for alpha 347.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-14 20:04:03 +00:00

46 lines
2.2 KiB
TypeScript

// Module ID: 12044
// Function ID: 12045
// Name: FamilyCenterNativeUtils
// Dependencies: [4850, 7641, 1074, 1240, 7642, 4839, 12045, 1896, 2]
// Exports: handleFamilyCenterQRCodeScan, resumeFamilyCenterConnection
// Module 12044 (FamilyCenterNativeUtils)
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1240 */;
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
import ModalActionCreatorsDefault from "ModalActionCreators" /* 4839 */;
import FamilyCenterActionCreatorsDefault from "FamilyCenterActionCreators" /* 7642 */;
import FamilyCenterPendingConnectionStore from "FamilyCenterPendingConnectionStore" /* 4850 */;
require = fn;
const FamilyCenterConstants = fn(7641);
({ FAMILY_CENTER_LINK_REQUEST_REGEX: closure_4, FamilyCenterAction: hasOwnProperty } = FamilyCenterConstants);
const AnalyticEvents = fn(1074).AnalyticEvents;
let c7 = "family-center-request-modal";
const size = fn(2);
const result = size.fileFinishedImporting("modules/parent_tools/native/FamilyCenterNativeUtils.tsx");
export const FAMILY_CENTER_REQUEST_MODAL_KEY = "family-center-request-modal";
export const handleFamilyCenterQRCodeScan = function handleFamilyCenterQRCodeScan(pathname, FamilyCenterQRCodeScan) {
const match = pathname.match(React4);
if (null === match) {
return null;
} else {
const obj2 = { action: ScanQRCode.ScanQRCode, selected_teen_id: match[1], source: FamilyCenterQRCodeScan };
AnalyticsUtilsDefault.track(AnalyticEvents.FAMILY_CENTER_ACTION, obj2);
FamilyCenterActionCreatorsDefault.setPendingConnection(match[1], match[2]);
const obj5 = { userId: match[1], linkCode: match[2] };
ModalActionCreatorsDefault.pushLazy(asyncRequireImpl(12045, dependencyMap.paths), obj5, c7);
}
};
export const resumeFamilyCenterConnection = function resumeFamilyCenterConnection() {
const pendingConnection = FamilyCenterPendingConnectionStore.getPendingConnection();
let flag = null != pendingConnection;
if (flag) {
ModalActionCreatorsDefault.popWithKey(c7);
({ teenId: obj3.userId, linkCode: obj3.linkCode } = pendingConnection);
ModalActionCreatorsDefault.pushLazy(asyncRequireImpl(12045, dependencyMap.paths), { userId: null, linkCode: null }, c7);
flag = true;
const obj4 = { userId: null, linkCode: null };
}
return flag;
};