decord/source/modules/parent_tools/native/FamilyCenterNativeUtils.tsx

47 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 11045
// Function ID: 85865
2026-07-20 16:05:17 +00:00
// Name: FAMILY_CENTER_REQUEST_MODAL_KEY
2026-07-27 11:26:19 +00:00
// Dependencies: [4349, 5766, 653, 675, 5767, 4338, 11046, 1935, 2]
2026-07-20 16:05:17 +00:00
// Exports: handleFamilyCenterQRCodeScan, resumeFamilyCenterConnection
2026-07-27 11:26:19 +00:00
// Module 11045 (FAMILY_CENTER_REQUEST_MODAL_KEY)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import items from "items";
import { AnalyticEvents } from "ME";
let closure_4;
let closure_5;
const require = arg1;
({ FAMILY_CENTER_LINK_REQUEST_REGEX: closure_4, FamilyCenterAction: closure_5 } = items);
const result = require("ME").fileFinishedImporting("modules/parent_tools/native/FamilyCenterNativeUtils.tsx");
2026-07-20 16:05:17 +00:00
export const FAMILY_CENTER_REQUEST_MODAL_KEY = "family-center-request-modal";
2026-07-23 10:11:24 +00:00
export const handleFamilyCenterQRCodeScan = function handleFamilyCenterQRCodeScan(c7, FamilyCenterQRCodeScan) {
const match = c7.match(closure_4);
2026-07-20 16:05:17 +00:00
if (null === match) {
return null;
} else {
2026-07-23 10:11:24 +00:00
let obj = importDefault(675);
2026-07-20 16:05:17 +00:00
obj = { action: ScanQRCode.ScanQRCode, selected_teen_id: match[1], source: FamilyCenterQRCodeScan };
obj.track(AnalyticEvents.FAMILY_CENTER_ACTION, obj);
2026-07-25 08:10:48 +00:00
importDefault(5767).setPendingConnection(match[1], match[2]);
const obj3 = importDefault(5767);
2026-07-20 16:05:17 +00:00
obj = { userId: match[1], linkCode: match[2] };
2026-07-27 11:26:19 +00:00
importDefault(4338).pushLazy(require(1935) /* maybeLoadBundle */(11046, dependencyMap.paths), obj, "family-center-request-modal");
2026-07-20 16:05:17 +00:00
}
};
export const resumeFamilyCenterConnection = function resumeFamilyCenterConnection() {
2026-07-23 10:11:24 +00:00
pendingConnection = pendingConnection.getPendingConnection();
2026-07-20 16:05:17 +00:00
let flag = null != pendingConnection;
if (flag) {
2026-07-25 08:10:48 +00:00
let obj = importDefault(4338);
2026-07-20 16:05:17 +00:00
obj.popWithKey("family-center-request-modal");
obj = {};
({ teenId: obj3.userId, linkCode: obj3.linkCode } = pendingConnection);
2026-07-27 11:26:19 +00:00
importDefault(4338).pushLazy(require(1935) /* maybeLoadBundle */(11046, dependencyMap.paths), obj, "family-center-request-modal");
2026-07-20 16:05:17 +00:00
flag = true;
2026-07-25 08:10:48 +00:00
const obj2 = importDefault(4338);
2026-07-20 16:05:17 +00:00
}
return flag;
};