decord/source/modules/parent_tools/native/FamilyCenterNativeUtils.tsx
github-actions 8d58bae3b2 chore: update source for alpha 347.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4907.js (118.4 MB)
2026-09-18 06:58:00 +00:00

46 lines
2.2 KiB
TypeScript

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