decord/source/modules/parent_tools/native/FamilyCenterNativeUtils.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

46 lines
2.2 KiB
TypeScript

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