decord/source/modules/parent_tools/native/FamilyCenterNativeUtils.tsx
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

46 lines
2.2 KiB
TypeScript

// Module ID: 12048
// Function ID: 12049
// Name: FamilyCenterNativeUtils
// Dependencies: [4853, 7645, 1074, 1241, 7646, 4842, 12049, 1897, 2]
// Exports: handleFamilyCenterQRCodeScan, resumeFamilyCenterConnection
// Module 12048 (FamilyCenterNativeUtils)
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import asyncRequireImpl from "asyncRequireImpl" /* 1897 */;
import ModalActionCreatorsDefault from "ModalActionCreators" /* 4842 */;
import FamilyCenterActionCreatorsDefault from "FamilyCenterActionCreators" /* 7646 */;
import FamilyCenterPendingConnectionStore from "FamilyCenterPendingConnectionStore" /* 4853 */;
require = fn;
const FamilyCenterConstants = fn(7645);
({ 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(12049, 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(12049, dependencyMap.paths), { userId: null, linkCode: null }, c7);
flag = true;
const obj4 = { userId: null, linkCode: null };
}
return flag;
};