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

55 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11140
// Function ID: 11141
2026-07-20 16:05:17 +00:00
// Name: FAMILY_CENTER_REQUEST_MODAL_KEY
2026-08-24 06:08:38 +00:00
// Dependencies: [4998, 5302, 676, 698, 5303, 5265, 11141, 2008, 2]
2026-07-20 16:05:17 +00:00
// Exports: handleFamilyCenterQRCodeScan, resumeFamilyCenterConnection
2026-08-24 06:08:38 +00:00
// Module 11140 (FAMILY_CENTER_REQUEST_MODAL_KEY)
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
import asyncRequireImpl from "asyncRequireImpl" /* 2008 */;
import _modDef5265 from "module_5265" /* 5265 */;
import maybeFetchCollectiblesForInvoicesDefault from "maybeFetchCollectiblesForInvoices" /* 5303 */;
import closure_3 from "initialize" /* 4998 */;
import items from "items" /* 5302 */;
import { AnalyticEvents } from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
({ FAMILY_CENTER_LINK_REQUEST_REGEX: c4, FamilyCenterAction: c5 } = items);
let c7 = "family-center-request-modal";
2026-08-24 06:08:38 +00:00
const result = require("set").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-29 08:29:29 +00:00
export const handleFamilyCenterQRCodeScan = function handleFamilyCenterQRCodeScan(pathname, FamilyCenterQRCodeScan) {
const match = pathname.match(closure_4);
2026-07-20 16:05:17 +00:00
if (null === match) {
return null;
} else {
2026-08-24 06:08:38 +00:00
let obj = expandEventPropertiesDefault;
2026-07-29 08:29:29 +00:00
obj = { action: null, selected_teen_id: null, source: null };
obj[0] = ScanQRCode.ScanQRCode;
obj[1] = match[1];
obj[2] = FamilyCenterQRCodeScan;
2026-07-20 16:05:17 +00:00
obj.track(AnalyticEvents.FAMILY_CENTER_ACTION, obj);
2026-08-24 06:08:38 +00:00
maybeFetchCollectiblesForInvoicesDefault.setPendingConnection(match[1], match[2]);
const obj3 = maybeFetchCollectiblesForInvoicesDefault;
2026-07-29 08:29:29 +00:00
obj = { userId: null, linkCode: null };
obj[0] = match[1];
obj[1] = match[2];
2026-08-24 06:08:38 +00:00
_modDef5265.pushLazy(asyncRequireImpl(11141, dependencyMap.paths), obj, c7);
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-08-24 06:08:38 +00:00
let obj = _modDef5265;
2026-07-29 08:29:29 +00:00
obj.popWithKey(c7);
obj = { userId: null, linkCode: null };
({ teenId: obj3[0], linkCode: obj3[1] } = pendingConnection);
2026-08-24 06:08:38 +00:00
_modDef5265.pushLazy(asyncRequireImpl(11141, dependencyMap.paths), obj, c7);
2026-07-20 16:05:17 +00:00
flag = true;
2026-08-24 06:08:38 +00:00
const obj2 = _modDef5265;
2026-07-20 16:05:17 +00:00
}
return flag;
};