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

47 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 11085
// Function ID: 86227
2026-07-20 16:05:17 +00:00
// Name: FAMILY_CENTER_REQUEST_MODAL_KEY
2026-07-24 07:16:23 +00:00
// Dependencies: [4348, 6770, 653, 675, 6771, 4337, 11086, 1934, 2]
2026-07-20 16:05:17 +00:00
// Exports: handleFamilyCenterQRCodeScan, resumeFamilyCenterConnection
2026-07-24 07:16:23 +00:00
// Module 11085 (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-23 10:11:24 +00:00
importDefault(6771).setPendingConnection(match[1], match[2]);
const obj3 = importDefault(6771);
2026-07-20 16:05:17 +00:00
obj = { userId: match[1], linkCode: match[2] };
2026-07-24 07:16:23 +00:00
importDefault(4337).pushLazy(require(1934) /* maybeLoadBundle */(11086, 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-23 10:11:24 +00:00
let obj = importDefault(4337);
2026-07-20 16:05:17 +00:00
obj.popWithKey("family-center-request-modal");
obj = {};
({ teenId: obj3.userId, linkCode: obj3.linkCode } = pendingConnection);
2026-07-24 07:16:23 +00:00
importDefault(4337).pushLazy(require(1934) /* maybeLoadBundle */(11086, dependencyMap.paths), obj, "family-center-request-modal");
2026-07-20 16:05:17 +00:00
flag = true;
2026-07-23 10:11:24 +00:00
const obj2 = importDefault(4337);
2026-07-20 16:05:17 +00:00
}
return flag;
};